Repository navigation
ref(slack): Remove unused Chat SDK ingress - #3552
Conversation
Co-Authored-By: Aditya Mathur <[email protected]>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
32 screenshot changes — 32 changed · 0 added · 0 removed Review screenshots in Frameshift Show 12 more changed screenshots14 more changed screenshots in Frameshift. |
There was a problem hiding this comment.
Looks good to me. I checked the whole repo and getsentry code search: JuniorChat, handleChatSdkPlatformWebhook and the runWithWorkspaceTeamId re-export are only used by the tests this PR changes. It merges cleanly onto main, and build, typecheck, lint and the Slack tests pass.
One small thing: in tests/integration/slack/message-changed-behavior.test.ts:31, the edit event has no top-level user, so the membership check drops it before the subtype filter runs. I removed "message_changed" from slack-message-subtypes.ts:6 and every Slack test still passed. If you add user: original.event.user to the edit event, the test passes as it is and fails (503) when the filter line is gone. Then the test checks the rule it is named for.
Co-Authored-By: Aditya Mathur <[email protected]>
Follow-up to #3552. A few helpers from the old Chat SDK handler model had no callers left: `determineThreadMessageKind` and its type, the handler-shape event fixtures (`slackMentionEvent` and friends), and `slackThreadId`. This deletes them and merges the duplicate thread id test file into the other one. Nothing breaks. **Before:** `message-router.ts` exported `determineThreadMessageKind`, but no code called it. **After:** it is gone, along with the unused fixtures. <!-- junior-request-attribution:start --> via @MathurAditya724. <!-- junior-request-attribution:end --> <!-- junior-session-footer:start --> <!-- junior-conversation-id:agent%3A219f856872e06d848e23f3c24a56c3d9 --> -- [View Session](https://junior-prod.sentry.dev/conversations/agent%3A219f856872e06d848e23f3c24a56c3d9) [[Sentry]](https://sentry.sentry.io/explore/conversations/agent%3A219f856872e06d848e23f3c24a56c3d9/?project=4510944073809921) <!-- junior-session-footer:end --> Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com> Co-authored-by: Aditya Mathur <[email protected]>
Production Slack traffic goes through
handleSlackWebhook, so nothing in the app usesJuniorChatorhandleChatSdkPlatformWebhookany more. This deletes both. The message_changed test that still used them now runs on the real Slack webhook path.Before: Slack events reached the app through
handleSlackWebhook, butJuniorChatandhandleChatSdkPlatformWebhookstill existed, and only tests used them.After: only the real path is left, and the message_changed test runs through it.
via @MathurAditya724.
--
View Session [Sentry]