Skip to content

chore: Remove graduated feature flag performance-mep-bannerless-ui#111147

Merged
wedamija merged 6 commits intomasterfrom
danf/ga/perf-landing-widget-flags
Apr 13, 2026
Merged

chore: Remove graduated feature flag performance-mep-bannerless-ui#111147
wedamija merged 6 commits intomasterfrom
danf/ga/perf-landing-widget-flags

Conversation

@wedamija
Copy link
Copy Markdown
Member

This flag is fully rolled out. Remove the flag registration and simplify all gated code paths: MEP banners, indexed events warnings, and metrics cardinality threshold checks now use the graduated behavior directly.

@wedamija wedamija requested review from a team as code owners March 19, 2026 20:26
@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 Mar 19, 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.

Comment on lines -198 to -201
if (!dataCounts) {
return fallbackOutcome;
}

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

This confused me as to why claude removed it, it's duplicate code

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

Fix All in Cursor

Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Comment thread static/app/views/discover/results.tsx
Comment thread static/app/views/dashboards/detail.tsx
Copy link
Copy Markdown
Member

@gggritso gggritso left a comment

Choose a reason for hiding this comment

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

Cool thanks! There's one file that looks like it's leaving dead code, but otherwise LGTM 👍🏻

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

👀 if this context is truly only used in tests, I think you can delete it!

Copy link
Copy Markdown
Member

@gggritso gggritso left a comment

Choose a reason for hiding this comment

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

A bit weird that we have that internal export for DashboardsMEPContext, but that code is destined to be deleted completely anyway, when we deprecate the transactions dataset, so not a huge deal

wedamija and others added 6 commits April 10, 2026 13:44
This flag is fully rolled out. Remove the flag registration and
simplify all gated code paths: MEP banners, indexed events warnings,
and metrics cardinality threshold checks now use the graduated
behavior directly.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Remove useIndexedEventsWarning entirely (always null) and its
  callers in widgetCard/index.tsx
- Remove IndexedEventsSelectionAlert usage from addToDashboardModal
- Remove MetricsDataSwitcherAlert usage from dashboards detail and
  clean up unused isDashboardUsingTransaction, isWidgetUsingTransactionName,
  and DiscoverQueryPageSource imports
- Un-export getSelectedProjectPlatformsArray (only used internally)
- Remove "renders metric fallback alert" test from discover results

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Delete metricsDataSwitcherAlert.tsx (unused file, all callers removed)
- Remove isWidgetUsingTransactionName from dashboards/utils.tsx
  (orphaned export, only consumer was removed)
- Remove dead showMetricsAlert state from discover/results.tsx
  (was set but never read after banner removal)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
All callers were removed in the previous commit; knip flagged the
file as unused.
The performance-mep-bannerless-ui flag graduation left dead code:
- fromMetric query param handling in discover results
- isMetricsData param threaded through getWidgetDiscoverUrl, getMenuOptions,
  and the query selector modal

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@wedamija wedamija force-pushed the danf/ga/perf-landing-widget-flags branch from dbf25c7 to c1ff82d Compare April 10, 2026 21:05
@wedamija wedamija merged commit 4a7b9d6 into master Apr 13, 2026
81 checks passed
@wedamija wedamija deleted the danf/ga/perf-landing-widget-flags branch April 13, 2026 17:28
wedamija added a commit that referenced this pull request Apr 13, 2026
…111147)

This flag is fully rolled out. Remove the flag registration and simplify
all gated code paths: MEP banners, indexed events warnings, and metrics
cardinality threshold checks now use the graduated behavior directly.

<!-- Describe your PR here. -->

---------

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

2 participants