Expose Slack profile synchronization failures - #1522
Merged
Conversation
Contributor
Greptile SummaryThe PR makes Slack profile synchronization failures visible to GoodJob while preserving previously persisted profile data.
Confidence Score: 4/5The PR appears safe to merge, with a non-blocking test-coverage gap for the distinct non-2xx Slack response branch. The changed runtime behavior has a coherent failure path and preserves existing profile fields, but the revised test no longer verifies the newly promised handling of ordinary HTTP errors. Files Needing Attention: test/jobs/slack_profile_sync_job_test.rb Important Files Changed
Prompt To Fix All With AI### Issue 1
test/jobs/slack_profile_sync_job_test.rb:77-78
**Non-2xx coverage was replaced**
The revised test replaces the HTTP 500 case with an HTTP 200 `ok: false` case, although these exercise separate operands of the new error condition. Retain the HTTP error case and add `missing_scope` separately so regressions that silently accept non-2xx responses or omit their status from `ApiError` remain covered.
---
For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.Reviews (1): Last reviewed commit: "Expose Slack profile API failures" | Re-trigger Greptile |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary of the problem
Follow-up to #1520. A Slack profile sync could appear successful in GoodJob while retaining the old avatar and name. Slack often reports API failures as HTTP 200 responses with
ok: false; the sync silently treated those responses as missing profile data and returned successfully.Describe your changes
SlackIntegration::ApiErrorfor HTTP errors and Slackok: falseresponsesSlackProfileSyncJobafter reporting them so GoodJob records the execution as failed rather than successfulmissing_scopecaseScreenshots / Media
N/A