Skip to content

Commit

Permalink
chore(performance): Remove transaction anomalies UI code (#80692)
Browse files Browse the repository at this point in the history
This feature never shipped. Effectively this reverts
#31400 and
#32050
  • Loading branch information
gggritso authored Nov 13, 2024
1 parent 823416f commit 9719230
Show file tree
Hide file tree
Showing 13 changed files with 28 additions and 1,031 deletions.
6 changes: 0 additions & 6 deletions static/app/routes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1658,12 +1658,6 @@ function buildRoutes() {
() => import('sentry/views/performance/transactionSummary/transactionEvents')
)}
/>
<Route
path="anomalies/"
component={make(
() => import('sentry/views/performance/transactionSummary/transactionAnomalies')
)}
/>
<Route
path="profiles/"
component={make(
Expand Down
96 changes: 0 additions & 96 deletions static/app/utils/performance/anomalies/anomaliesQuery.tsx

This file was deleted.

24 changes: 0 additions & 24 deletions static/app/views/performance/transactionSummary/header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import type {Location} from 'history';

import Feature from 'sentry/components/acl/feature';
import GuideAnchor from 'sentry/components/assistant/guideAnchor';
import FeatureBadge from 'sentry/components/badge/featureBadge';
import ButtonBar from 'sentry/components/buttonBar';
import {CreateAlertFromViewButton} from 'sentry/components/createAlertButton';
import FeedbackWidgetButton from 'sentry/components/feedback/widget/feedbackWidgetButton';
Expand Down Expand Up @@ -37,7 +36,6 @@ import {useDomainViewFilters} from 'sentry/views/insights/pages/useFilters';
import Breadcrumb, {getTabCrumbs} from 'sentry/views/performance/breadcrumb';
import {aggregateWaterfallRouteWithQuery} from 'sentry/views/performance/transactionSummary/aggregateSpanWaterfall/utils';
import {TAB_ANALYTICS} from 'sentry/views/performance/transactionSummary/pageLayout';
import {anomaliesRouteWithQuery} from 'sentry/views/performance/transactionSummary/transactionAnomalies/utils';
import {eventsRouteWithQuery} from 'sentry/views/performance/transactionSummary/transactionEvents/utils';
import {profilesRouteWithQuery} from 'sentry/views/performance/transactionSummary/transactionProfiles/utils';
import {replaysRouteWithQuery} from 'sentry/views/performance/transactionSummary/transactionReplays/utils';
Expand Down Expand Up @@ -102,8 +100,6 @@ function TransactionHeader({
return eventsRouteWithQuery(routeQuery);
case Tab.SPANS:
return spansRouteWithQuery(routeQuery);
case Tab.ANOMALIES:
return anomaliesRouteWithQuery(routeQuery);
case Tab.REPLAYS:
return replaysRouteWithQuery(routeQuery);
case Tab.PROFILING: {
Expand Down Expand Up @@ -147,10 +143,6 @@ function TransactionHeader({

const project = projects.find(p => p.id === projectId);

const hasAnomalyDetection = organization.features.includes(
'performance-anomaly-detection-ui'
);

const hasSessionReplay =
organization.features.includes('session-replay') &&
project &&
Expand Down Expand Up @@ -221,14 +213,6 @@ function TransactionHeader({
<TabList.Item key={Tab.EVENTS}>{t('Sampled Events')}</TabList.Item>
<TabList.Item key={Tab.TAGS}>{t('Tags')}</TabList.Item>
<TabList.Item key={Tab.SPANS}>{t('Spans')}</TabList.Item>
<TabList.Item
key={Tab.ANOMALIES}
textValue={t('Anomalies')}
hidden={!hasAnomalyDetection}
>
{t('Anomalies')}
<FeatureBadge type="alpha" tooltipProps={{disabled: true}} />
</TabList.Item>
<TabList.Item
key={Tab.WEB_VITALS}
textValue={t('Web Vitals')}
Expand Down Expand Up @@ -396,14 +380,6 @@ function TransactionHeader({
<TabList.Item key={Tab.EVENTS}>{t('Sampled Events')}</TabList.Item>
<TabList.Item key={Tab.TAGS}>{t('Tags')}</TabList.Item>
<TabList.Item key={Tab.SPANS}>{t('Spans')}</TabList.Item>
<TabList.Item
key={Tab.ANOMALIES}
textValue={t('Anomalies')}
hidden={!hasAnomalyDetection}
>
{t('Anomalies')}
<FeatureBadge type="alpha" tooltipProps={{disabled: true}} />
</TabList.Item>
<TabList.Item
key={Tab.WEB_VITALS}
textValue={t('Web Vitals')}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ import {
getTransactionName,
} from '../utils';

import {anomaliesRouteWithQuery} from './transactionAnomalies/utils';
import {eventsRouteWithQuery} from './transactionEvents/utils';
import {profilesRouteWithQuery} from './transactionProfiles/utils';
import {replaysRouteWithQuery} from './transactionReplays/utils';
Expand Down Expand Up @@ -140,8 +139,6 @@ function PageLayout(props: Props) {
return eventsRouteWithQuery(routeQuery);
case Tab.SPANS:
return spansRouteWithQuery(routeQuery);
case Tab.ANOMALIES:
return anomaliesRouteWithQuery(routeQuery);
case Tab.REPLAYS:
return replaysRouteWithQuery(routeQuery);
case Tab.PROFILING: {
Expand Down
1 change: 0 additions & 1 deletion static/app/views/performance/transactionSummary/tabs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ enum Tab {
TAGS = 'tags',
EVENTS = 'events',
SPANS = 'spans',
ANOMALIES = 'anomalies',
REPLAYS = 'replays',
PROFILING = 'profiling',
AGGREGATE_WATERFALL = 'aggregateWaterfall',
Expand Down

This file was deleted.

Loading

0 comments on commit 9719230

Please sign in to comment.