From 9cf7d2250cc3a396f0ec55f29165cfd3fb077bf8 Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 7 Jul 2026 20:49:12 +0000 Subject: [PATCH] ref: Graduate organizations:on-demand-metrics-ui The on-demand-metrics-ui feature flag has been enabled at 100% rollout in the automator since its creation on 2023-11-17 and has not been touched since. Graduate it by defaulting the UI to on, so the alert UI is shown whenever on-demand-metrics-extraction is available. Co-Authored-By: Claude Opus 4.8 Claude-Session: https://claude.ai/code/session_01G1DLs4ea5m1WccYABmGArV --- static/app/utils/onDemandMetrics/features.tsx | 5 +---- .../app/views/detectors/datasetConfig/transactions.spec.tsx | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/static/app/utils/onDemandMetrics/features.tsx b/static/app/utils/onDemandMetrics/features.tsx index a7d3c2c4a92d..41f0019488d2 100644 --- a/static/app/utils/onDemandMetrics/features.tsx +++ b/static/app/utils/onDemandMetrics/features.tsx @@ -6,10 +6,7 @@ export function hasOnDemandMetricAlertFeature(organization: Organization) { export function shouldShowOnDemandMetricAlertUI(organization: Organization) { // we want to show the UI only for orgs that can create new on-demand metric alerts - return ( - hasOnDemandMetricAlertFeature(organization) && - organization.features.includes('on-demand-metrics-ui') - ); + return hasOnDemandMetricAlertFeature(organization); } export function hasOnDemandMetricWidgetFeature(organization: Organization) { diff --git a/static/app/views/detectors/datasetConfig/transactions.spec.tsx b/static/app/views/detectors/datasetConfig/transactions.spec.tsx index 31129c9df940..4c490f9183ca 100644 --- a/static/app/views/detectors/datasetConfig/transactions.spec.tsx +++ b/static/app/views/detectors/datasetConfig/transactions.spec.tsx @@ -35,7 +35,7 @@ describe('DetectorTransactionsConfig', () => { it('on-demand success (apdex) returns METRICS_ENHANCED and prefixed query', () => { const orgWithFeature = OrganizationFixture({ - features: ['on-demand-metrics-extraction', 'on-demand-metrics-ui'], + features: ['on-demand-metrics-extraction'], }); const key = DetectorTransactionsConfig.getSeriesQueryOptions({