Skip to content

chore: remove graduated feature flags (data-browsing batch 6)#108801

Merged
wedamija merged 2 commits into
masterfrom
flag-burner/ga/data-browsing-6
Feb 24, 2026
Merged

chore: remove graduated feature flags (data-browsing batch 6)#108801
wedamija merged 2 commits into
masterfrom
flag-burner/ga/data-browsing-6

Conversation

@wedamija
Copy link
Copy Markdown
Member

@wedamija wedamija commented Feb 21, 2026

Summary

Removes 4 feature flags owned by data-browsing that have been enabled at 100% via flagpole with no conditions:

  • organizations:tracemetrics-dashboards
  • organizations:tracemetrics-saved-queries
  • organizations:tracemetrics-stats
  • organizations:tracing-export-csv

These flags have been fully rolled out and their behavior is now the default.

Test plan

🤖 Generated with Claude Code

…metrics-saved-queries, tracemetrics-set-project-flag, tracemetrics-stats, tracing-export-csv)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@wedamija wedamija requested review from a team as code owners February 21, 2026 01:54
@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 21, 2026
@github-actions
Copy link
Copy Markdown
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
Copy Markdown
Member

@narsaynorath narsaynorath left a comment

Choose a reason for hiding this comment

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

My only suggestion is that the hooks, e.g. useHasTraceMetricsDashboards, can be removed or their callsites simplified if the hooks no longer need to be around. I can clean that up in another PR later if we just want to get this in to remove the flag and enable it as default behaviour

The hook was reduced to `return true` after the flag removal. Remove
it entirely and inline the true value / remove conditionals at all 5
callsites.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Copy link
Copy Markdown
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 3 potential issues.

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

],
});
}

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.

Metrics dashboard action no longer gated

Medium Severity

addToDashboardItems is now always returned, even when canUseMetricsSavedQueriesUI(organization) is false. This can surface the “Dashboard widget” submenu in contexts where metrics features are effectively disabled, leading to UI actions that can error (e.g., 403s) or create confusing dead-end behavior.

Fix in Cursor Fix in Web

Comment thread static/app/views/dashboards/datasetConfig/traceMetrics.tsx
<SpansExport
aggregatesTableResult={aggregatesTableResult}
spansTableResult={spansTableResult}
/>
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.

CSV export shown without backend capability check

Medium Severity

SpansExport is no longer wrapped by Feature features="organizations:tracing-export-csv". If any server/API permissioning still relies on that feature (or an equivalent capability), the UI will now expose export controls that can fail at execution time.

Fix in Cursor Fix in Web

@wedamija wedamija enabled auto-merge (squash) February 24, 2026 17:47
@wedamija wedamija merged commit 77b79f8 into master Feb 24, 2026
103 checks passed
@wedamija wedamija deleted the flag-burner/ga/data-browsing-6 branch February 24, 2026 17:57
mchen-sentry pushed a commit that referenced this pull request Feb 24, 2026
## Summary
Removes 4 feature flags owned by data-browsing that have been enabled at
100% via flagpole with no conditions:
- `organizations:tracemetrics-dashboards`
- `organizations:tracemetrics-saved-queries`
- `organizations:tracemetrics-stats`
- `organizations:tracing-export-csv`

These flags have been fully rolled out and their behavior is now the
default.

## Test plan
- [ ] CI passes
- [ ] Corresponding sentry-options-automator PR to remove flagpole
config

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
wedamija added a commit that referenced this pull request Feb 24, 2026
## Summary
Removes 4 feature flags owned by data-browsing that have been enabled at
100% via flagpole with no conditions:
- `organizations:tracemetrics-dashboards`
- `organizations:tracemetrics-saved-queries`
- `organizations:tracemetrics-stats`
- `organizations:tracing-export-csv`

These flags have been fully rolled out and their behavior is now the
default.

## Test plan
- [ ] CI passes
- [ ] Corresponding sentry-options-automator PR to remove flagpole
config

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
@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