Skip to content

Commit 781d61e

Browse files
ref(metrics): Remove deprecated tag dashboards (#74934)
1 parent 36455ed commit 781d61e

File tree

2 files changed

+5
-13
lines changed

2 files changed

+5
-13
lines changed

static/app/views/dashboards/addWidget.tsx

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import styled from '@emotion/styled';
44

55
import Feature from 'sentry/components/acl/feature';
66
import FeatureBadge from 'sentry/components/badge/featureBadge';
7-
import Tag from 'sentry/components/badge/tag';
87
import type {ButtonProps} from 'sentry/components/button';
98
import {Button} from 'sentry/components/button';
109
import DropdownButton from 'sentry/components/dropdownButton';
@@ -15,10 +14,7 @@ import {IconAdd} from 'sentry/icons';
1514
import {t} from 'sentry/locale';
1615
import {space} from 'sentry/styles/space';
1716
import {trackAnalytics} from 'sentry/utils/analytics';
18-
import {
19-
hasCustomMetrics,
20-
hasCustomMetricsExtractionRules,
21-
} from 'sentry/utils/metrics/features';
17+
import {hasCustomMetrics} from 'sentry/utils/metrics/features';
2218
import useOrganization from 'sentry/utils/useOrganization';
2319
import {DataSet} from 'sentry/views/dashboards/widgetBuilder/utils';
2420

@@ -158,13 +154,9 @@ export function AddWidgetButton({onAddWidget, ...buttonProps}: Props & ButtonPro
158154
if (hasCustomMetrics(organization)) {
159155
menuItems.push({
160156
key: DataSet.METRICS,
161-
label: t('Custom Metrics'),
157+
label: t('Metrics'),
162158
onAction: () => handleAction(DataSet.METRICS),
163-
trailingItems: hasCustomMetricsExtractionRules(organization) ? (
164-
<Tag type="warning">{t('deprecated')}</Tag>
165-
) : (
166-
<FeatureBadge type="beta" />
167-
),
159+
trailingItems: <FeatureBadge type="beta" />,
168160
});
169161
}
170162

static/app/views/dashboards/detail.spec.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -515,7 +515,7 @@ describe('Dashboards > Detail', function () {
515515
'Errors',
516516
'Transactions',
517517
'Issues',
518-
'Custom Metrics',
518+
'Metrics',
519519
]);
520520
});
521521

@@ -551,7 +551,7 @@ describe('Dashboards > Detail', function () {
551551
expect(menuOptions.map(e => e.textContent)).toEqual([
552552
'Errors and Transactions',
553553
'Issues',
554-
'Custom Metrics',
554+
'Metrics',
555555
]);
556556
});
557557

0 commit comments

Comments
 (0)