Skip to content

ref(incidents): Remove organizations:incidents from dataset gating - #122384

Merged
RudraPatel2003 merged 1 commit into
masterfrom
rudra-org-inc-backend-8
Aug 24, 2026
Merged

ref(incidents): Remove organizations:incidents from dataset gating#122384
RudraPatel2003 merged 1 commit into
masterfrom
rudra-org-inc-backend-8

Conversation

@RudraPatel2003

@RudraPatel2003 RudraPatel2003 commented Aug 20, 2026

Copy link
Copy Markdown
Member

The organizations:incidents flag is being made available to all plans. This PR is one of many to remove checks for this flag around the codebase.

This broke some getsentry tests, there is a PR for that: https://github.com/getsentry/getsentry/pull/21635

Fixes ISWF-3270

@github-actions github-actions Bot added the Scope: Backend Automatically applied to PRs that change backend components label Aug 20, 2026
@linear-code

linear-code Bot commented Aug 20, 2026

Copy link
Copy Markdown

ISWF-3270

@RudraPatel2003
RudraPatel2003 marked this pull request as ready for review August 24, 2026 17:23
@RudraPatel2003
RudraPatel2003 requested a review from a team as a code owner August 24, 2026 17:23

@cvxluo cvxluo 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.

lgtm just make sure to merge after getsentry

Base automatically changed from rudra-org-inc-backend-7 to master August 24, 2026 18:28
@RudraPatel2003
RudraPatel2003 requested review from a team as code owners August 24, 2026 18:28
@RudraPatel2003
RudraPatel2003 force-pushed the rudra-org-inc-backend-8 branch from e0467ad to d9bc9c6 Compare August 24, 2026 18:29
@sentry

sentry Bot commented Aug 24, 2026

Copy link
Copy Markdown
Contributor

Sentry Snapshot Testing

Name Added Removed Changed Renamed Unchanged Skipped Status
sentry-frontend
sentry-frontend
0 0 0 0 473 0 ✅ Unchanged

⚙️ sentry-frontend Snapshot Settings

@RudraPatel2003
RudraPatel2003 force-pushed the rudra-org-inc-backend-8 branch from d9bc9c6 to e090b89 Compare August 24, 2026 20:19

@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.

Want reviews to match your repository better? Bugbot Learning can learn team-specific rules from PR activity. A team admin can enable Learning in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit e090b89. Configure here.

Behavior changes in is_metric_subscription_allowed:

- Dataset.Events metric alert subscriptions are no longer plan-gated at all; they fall through to the default allow.

- Dataset.Transactions now requires only organizations:performance-view.

- Dataset.EventsAnalyticsPlatform now requires only organizations:visibility-explore-view.

Because Events becomes ungated, tests that used it to express "a metric detector the org isn't entitled to" are rewritten against Transactions/performance-view, and the two test_metric_detector_not_allowed_returns_404 cases are deleted as no longer expressible.

Note for review: get_disallowed_metric_datasets still iterates Dataset.Events even though it can no longer be disallowed.
@RudraPatel2003
RudraPatel2003 force-pushed the rudra-org-inc-backend-8 branch from e090b89 to 237a0b9 Compare August 24, 2026 21:00
@RudraPatel2003
RudraPatel2003 merged commit b252053 into master Aug 24, 2026
68 checks passed
@RudraPatel2003
RudraPatel2003 deleted the rudra-org-inc-backend-8 branch August 24, 2026 21:13
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.

2 participants