Skip to content

feat(seer-activity): Use a strategy for emailing issue owners#118106

Open
leeandher wants to merge 2 commits into
masterfrom
leanderrodrigues/iswf-2864-use-a-strategy-for-emailing-issue-owners
Open

feat(seer-activity): Use a strategy for emailing issue owners#118106
leeandher wants to merge 2 commits into
masterfrom
leanderrodrigues/iswf-2864-use-a-strategy-for-emailing-issue-owners

Conversation

@leeandher

@leeandher leeandher commented Jun 19, 2026

Copy link
Copy Markdown
Member

Original PR: #118105 -- I had stacked it on top of a branch I closed and deleted, so GH won't let me set a new base destination branch, hence a new PR for the same branch


The existing email target works fine for users, (and would work for teams if they had an email), but not the ISSUE_OWNERS type, since that one wont have an email associated.

We dont derive the emails from the determine_elligible_recipients function (the way GroupEvent workflows do) since we don't have an `event.

Instead, since activities always happen after a group exists, and presumably has been run through post_process, we just evaluate the GroupAssignee and GroupOwners. If a GroupAssignee exists, they get emailed. If not, we email all GroupOwners that exist. These are all deduped, so no extra emails 🤞 \

@leeandher leeandher requested a review from a team as a code owner June 19, 2026 20:42
@linear-code

linear-code Bot commented Jun 19, 2026

Copy link
Copy Markdown

ISWF-2864

@github-actions github-actions Bot added the Scope: Backend Automatically applied to PRs that change backend components label Jun 19, 2026
Comment thread src/sentry/notifications/notification_action/activity_registry/email.py Outdated

@cursor cursor Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 10cc314. Configure here.

Comment thread src/sentry/notifications/notification_action/activity_registry/email.py Outdated
@leeandher leeandher marked this pull request as draft June 19, 2026 20:44
@leeandher leeandher marked this pull request as ready for review June 19, 2026 21:28
@leeandher leeandher requested a review from a team as a code owner June 19, 2026 21:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Backend Automatically applied to PRs that change backend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant