You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Connector PR Review: cxp-689 return not found on no such subteam
Blocking Issues: 0 | Suggestions: 1 | Threads Resolved: 0 Criteria: Criteria status: loaded .claude/skills/ci-review.md from trusted base 3ee9e76eca74. Review mode: full View review run
Review Summary
The full PR diff was scanned for security and correctness. This is a one-line behavior change in pkg/connector/client/helpers.go that remaps the Slack no_such_subteam error from codes.Unavailable (SDK auto-retry) to codes.NotFound so a disabled/deleted subteam is skipped during userGroup Grants sync instead of retried. The change is internally consistent — Grants() propagates the wrapped error via client.WrapError, and NotFound lets the SDK skip that resource and continue. Note this intentionally reverses a prior empirically-motivated fix; verify that no_such_subteam is genuinely a permanent (deleted/disabled) condition rather than transient, since true transients will no longer be retried. No new security or correctness issues found.
Security Issues
None found.
Correctness Issues
None found.
Suggestions
pkg/connector/client/slack.go:22-24 — The SlackErrNoSuchSubteam constant's doc comment still states "Retrying on this error was determined empirically to allow syncs to complete," which now contradicts the new NotFound (no-retry) mapping. Update it to reflect the disabled/deleted-subteam skip behavior.
Prompt for AI agents
Verify each finding against the current code and only fix it if needed.
## Suggestions
In `pkg/connector/client/slack.go`:
- Around line 22-24: The doc comment for the `SlackErrNoSuchSubteam` constant still
describes the old behavior ("Retrying on this error was determined empirically to
allow syncs to complete"). This now contradicts the updated mapping in
pkg/connector/client/helpers.go, which returns codes.NotFound (no retry). Update the
comment to explain that no_such_subteam indicates a disabled/deleted subteam and is
mapped to NotFound so the resource's grants are skipped rather than retried.
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
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.
No description provided.