Skip to content

Comments

feat(flags): Remove graduated dashboards-mep feature flag#108809

Open
wedamija wants to merge 3 commits intomasterfrom
flag-burner/ga/dashboards-mep
Open

feat(flags): Remove graduated dashboards-mep feature flag#108809
wedamija wants to merge 3 commits intomasterfrom
flag-burner/ga/dashboards-mep

Conversation

@wedamija
Copy link
Member

Summary

Removes the organizations:dashboards-mep feature flag that has been enabled at 100% via flagpole with no conditions.

This flag has been fully rolled out and its behavior is now the default.

Test plan

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@wedamija wedamija requested review from a team as code owners February 21, 2026 02:17
@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
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.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
) -> Mapping[str, bool | None]:
feature_names = [
"organizations:performance-use-metrics",
"organizations:dashboards-mep",
Copy link
Contributor

Choose a reason for hiding this comment

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

Dead get_features method never called after removal

Low Severity

The get_features method in OrganizationEventsTimeseriesEndpoint is now dead code. The only call site (batch_features = self.get_features(...)) was removed in this PR, but the method definition was left behind. No parent class or subclass calls this method either.

Fix in Cursor Fix in Web

The previous commit simplified use_metrics in organization_events_stats.py
and organization_events_timeseries.py but missed 5 other files that had
the same `or True` dead code pattern. This removes the dead feature flag
checks and unused batch_features variables where applicable.

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

) -> Mapping[str, bool | None]:
feature_names = [
"organizations:performance-use-metrics",
"organizations:dashboards-mep",
Copy link
Contributor

Choose a reason for hiding this comment

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

Dead get_features method never called after cleanup

Low Severity

The get_features method in OrganizationEventsTimeseriesEndpoint is now dead code — its only caller (batch_features = self.get_features(...)) was removed as part of this PR, but the method definition was kept and even modified (to remove dashboards-mep from its feature list). The same applies to get_features in DataExportEndpoint. Both methods still fetch feature flags via features.batch_has but are never invoked.

Additional Locations (1)

Fix in Cursor Fix in Web

"organizations:mep-rollout-flag",
"organizations:dynamic-sampling",
"organizations:performance-use-metrics",
"organizations:dashboards-mep",
Copy link
Contributor

Choose a reason for hiding this comment

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

Dead get_metrics_features method never called after cleanup

Low Severity

The get_metrics_features methods in DashboardWidgetQuerySerializer and DiscoverSavedQuerySerializer are now dead code. Their only callers in the respective validate methods were removed when use_metrics was hardcoded to True, but the method definitions remain (and were even modified to remove dashboards-mep from their feature lists). No other code calls these methods.

Additional Locations (1)

Fix in Cursor Fix in Web

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant