Skip to content

feat(broadcasts): Add organization targeting to broadcast admin UI#116723

Merged
geoffg-sentry merged 1 commit into
masterfrom
feat/targeted-broadcast-frontend
Jun 3, 2026
Merged

feat(broadcasts): Add organization targeting to broadcast admin UI#116723
geoffg-sentry merged 1 commit into
masterfrom
feat/targeted-broadcast-frontend

Conversation

@michelletran-sentry

Copy link
Copy Markdown
Contributor

Add an Organization IDs field to the broadcast create and edit forms that accepts a comma-separated list of org IDs, restricting the broadcast to those organizations. Pairs with the backend support added in getsentry#20507.

Also fixes region edit field which incorrectly used multi-select despite the model being a single CharField.

Add an Organization IDs field to the broadcast create and edit forms
that accepts a comma-separated list of org IDs, restricting the
broadcast to those organizations. Pairs with the backend support
added in getsentry#20507.

Also fixes region edit field which incorrectly used multi-select
despite the model being a single CharField.

Co-Authored-By: Claude <noreply@anthropic.com>
@github-actions github-actions Bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Jun 2, 2026

@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 26e2194. Configure here.

.split(',')
.map((s: string) => Number(s.trim()))
.filter((n: number) => n > 0);
}

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.

Empty org field sends array

High Severity

On broadcast edit save, an empty organizations text field is always converted to an empty array in the PUT payload. Create treats a blank field as undefined (all users), and the field help says empty means everyone. Saving any unrestricted broadcast—or clearing org IDs—can persist organizations: [] instead of removing targeting.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 26e2194. Configure here.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This is fine. We want to pass empty organizations list if the field is empty.

@geoffg-sentry geoffg-sentry merged commit 67f8959 into master Jun 3, 2026
77 checks passed
@geoffg-sentry geoffg-sentry deleted the feat/targeted-broadcast-frontend branch June 3, 2026 13:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants