Skip to content

feat(flags): Remove graduated issue_detection feature flags#108775

Merged
wedamija merged 3 commits intomasterfrom
flag-burner/ga/issue-detection
Feb 24, 2026
Merged

feat(flags): Remove graduated issue_detection feature flags#108775
wedamija merged 3 commits intomasterfrom
flag-burner/ga/issue-detection

Conversation

@wedamija
Copy link
Member

Summary

Removes 4 feature flags owned by the issue_detection team that have been enabled at 100% via flagpole with no conditions for an extended period:

  • organizations:anomaly-detection-threshold-data — Anomaly detection threshold data endpoint
  • organizations:issue-detection-sort-spans — Sorting spans for issue detection
  • organizations:large-http-payload-detector-improvements — Large HTTP payload detector improvements (path filtering)
  • organizations:suspect-commits-in-emails — Suspect commit information in workflow notification emails

These flags have been fully rolled out and their behavior is now the default. Owners should consider self-hosted implications — these features will now be available to all self-hosted users as well.

Changes:

  • Removed flag registrations from temporary.py
  • Removed features.has() checks, keeping the enabled code paths
  • Removed @with_feature test decorators and feature-flag-disabled test cases
  • Removed frontend feature gate checks
  • Cleaned up unused imports

Test plan

@wedamija wedamija requested review from a team as code owners February 20, 2026 23:01
@github-actions github-actions bot added Scope: Frontend Automatically applied to PRs that change frontend components Scope: Backend Automatically applied to PRs that change backend components labels Feb 20, 2026
@github-actions
Copy link
Contributor

🚨 Warning: This pull request contains Frontend and Backend changes!

It's discouraged to make changes to Sentry's Frontend and Backend in a single pull request. The Frontend and Backend are not atomically deployed. If the changes are interdependent of each other, they must be separated into two pull requests and be made forward or backwards compatible, such that the Backend or Frontend can be safely deployed independently.

Have questions? Please ask in the #discuss-dev-infra channel.

Copy link
Contributor

@cursor cursor bot left a comment

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 2 potential issues.

Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.

wedamija and others added 3 commits February 24, 2026 12:16
Remove flags that have been enabled at 100% via flagpole with no conditions:
- organizations:anomaly-detection-threshold-data
- organizations:issue-detection-sort-spans
- organizations:large-http-payload-detector-improvements
- organizations:suspect-commits-in-emails

These flags have been fully rolled out and are safe to remove. Their behavior
is now the default for all organizations.
After removing the anomaly-detection-threshold-data feature flag,
the anomaly data endpoint is now called whenever dynamic detection
is active. Tests that switch to or load dynamic detection need a
mock for the /detectors/{id}/anomaly-data/ endpoint.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The test fixture had two spans sharing the same span_id. After
removing the issue-detection-sort-spans feature flag (making span
tree sorting unconditional), build_tree deduplicates by span_id,
causing one span to be lost. Give the second span a unique ID and
update the test expectation to reflect the now-correct evidence_display.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@wedamija wedamija force-pushed the flag-burner/ga/issue-detection branch from e368746 to e46dfd2 Compare February 24, 2026 20:16
@wedamija wedamija enabled auto-merge (squash) February 24, 2026 20:19
@wedamija wedamija merged commit f967692 into master Feb 24, 2026
92 checks passed
@wedamija wedamija deleted the flag-burner/ga/issue-detection branch February 24, 2026 20:38
@github-actions github-actions bot locked and limited conversation to collaborators Mar 12, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Scope: Backend Automatically applied to PRs that change backend components 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