Repository navigation
feat(np): migrate legacy issue alerts to np - #127289
Conversation
8adb8dc to
2fa4031
Compare
da00165 to
ef77a1e
Compare
|
bugbot run |
|
bugbot run |
|
bugbot run |
There was a problem hiding this comment.
✅ Bugbot reviewed your changes and found no new issues!
Comment @cursor review or bugbot run to trigger another review on this PR
Reviewed by Cursor Bugbot for commit 2aff789. Configure here.
hobzcalvin
left a comment
There was a problem hiding this comment.
I'm not too familiar with the existing threading behavior, so some of these questions may not make sense. 😆
| ThreadOptionKey = Literal[ | ||
| "sentry:issue_alerts_thread_flag", | ||
| "sentry:metric_alerts_thread_flag", | ||
| ] |
There was a problem hiding this comment.
I was thinking this could live somewhere tied to OrganizationOption? Like I actually don't need a type just for this one specific file/use-case (kinda consider it overkill), but I was more surprised the OrganizationOption stuff didn't have anything to enforce the sorts of strings that go in there.
There was a problem hiding this comment.
agreed, switched it back to how it was originally. Tying it to OrganizationOption seems like it would be a bigger change, so I made a follow up ticket ISWF-3631, i dont think its quite urgent enough to postpone the rollout more
hobzcalvin
left a comment
There was a problem hiding this comment.
thanks for all the back and forth; looking good! I think there are few lingering comments to resolve, otherwise good to ship.
cd3ac3b to
f6e1b38
Compare
Sentry Snapshot Testing
|
Co-Authored-By: Shayna Chambless <shayna.chambless@sentry.io>
Co-Authored-By: Shayna Chambless <shayna.chambless@sentry.io>
Co-Authored-By: Shayna Chambless <shayna.chambless@sentry.io>
…_with_response The method is also used for non-threaded sends because it's the one that returns the provider response (e.g. Slack's message ts). Name it for that. Co-Authored-By: Shayna Chambless <shayna.chambless@sentry.io>
Thread creators set ThreadKey.object_id (the group ID for issue and metric alert threads) and it's saved on new threads. The issue activity path now finds every platform thread for an issue by (key_type, object_id) instead of searching key_data. Co-Authored-By: Shayna Chambless <shayna.chambless@sentry.io>
…ype and object_id Platform threads now record the kind of object they're about alongside object_id, and activity replies find issue threads by (object_type, object_id), which the new index covers. Co-Authored-By: Shayna Chambless <shayna.chambless@sentry.io>
Drop the file-specific ThreadOptionKey Literal; OrganizationOption keys are plain strings everywhere else. Shared key typing is tracked separately. Co-Authored-By: Shayna Chambless <shayna.chambless@sentry.io>
f6e1b38 to
986dc7a
Compare
migrates legacy issue alerts to np for teams, slack, and discord.