Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions static/app/utils/onDemandMetrics/features.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down
Loading