CXH-434: map no_such_subteam to Unavailable for retry support#73
CXH-434: map no_such_subteam to Unavailable for retry support#73
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review infoConfiguration used: Organization UI Review profile: CHILL Plan: Pro ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (2)
🚧 Files skipped from review as they are similar to previous changes (2)
WalkthroughAdds an exported Slack error constant and maps that error to a transient gRPC code; replaces the per-manager action registration API with a registry-based Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches
🧪 Generate unit tests (beta)
Comment |
pkg/connector/client/helpers.go
Outdated
| return codes.NotFound | ||
| } | ||
|
|
||
| // no_such_subteam is a transient error - map to Unavailable to trigger SDK retry (CXH-434). |
There was a problem hiding this comment.
Why is no_such_subteam a transient error? I doesn't sound like it would be? I asked this in the other repo too.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Summary
no_such_subteamis a transient Slack API error returned when fetching user group membersMapSlackErrorToGRPCCodeand returnedcodes.Unknown, causing syncs to hard-failcodes.Unavailableso the SDK triggers automatic retry logicTest plan
go build ./...passesgolangci-lint runpasses with 0 issuesSummary by CodeRabbit
Bug Fixes
Refactor