Skip to content

Commit 562a1a0

Browse files
authored
ref: Remove dead code after continuous-profiling-beta ff removal (#111427)
Remove front-end code which will be dead after the no longer used feature flag `organizations:continuous-profiling-beta` is removed in #111394. Ref: [RELAY-192](https://linear.app/getsentry/issue/RELAY-192/remove-organizationscontinuous-profiling-beta-and)
1 parent 9e089c0 commit 562a1a0

File tree

2 files changed

+0
-72
lines changed

2 files changed

+0
-72
lines changed

static/gsApp/components/profiling/alerts.tsx

Lines changed: 0 additions & 70 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import {Flex} from '@sentry/scraps/layout';
77
import {Heading, Text} from '@sentry/scraps/text';
88

99
import {usePageFilters} from 'sentry/components/pageFilters/usePageFilters';
10-
import {DATA_CATEGORY_INFO} from 'sentry/constants';
1110
import {IconClose, IconInfo, IconWarning} from 'sentry/icons';
1211
import {t, tct} from 'sentry/locale';
1312
import {DataCategory} from 'sentry/types/core';
@@ -33,7 +32,6 @@ import {
3332
getProductTrial,
3433
isAm2Plan,
3534
isAm3Plan,
36-
isEnterprise,
3735
UsageAction,
3836
} from 'getsentry/utils/billing';
3937
import {getCategoryInfoFromPlural} from 'getsentry/utils/dataCategory';
@@ -273,74 +271,6 @@ export const ProfilingBetaAlertBanner = withSubscription(
273271
{noLoader: true}
274272
);
275273

276-
interface ContinuousProfilingBetaAlertBannerInner {
277-
organization: Organization;
278-
subscription: Subscription;
279-
}
280-
281-
function ContinuousProfilingBetaAlertBannerInner({
282-
organization,
283-
subscription,
284-
}: ContinuousProfilingBetaAlertBannerInner) {
285-
if (!organization.features.includes('continuous-profiling-beta')) {
286-
return null;
287-
}
288-
289-
const eventTypes: EventType[] = [
290-
DATA_CATEGORY_INFO.profile_duration.singular as EventType,
291-
DATA_CATEGORY_INFO.profile_duration_ui.singular as EventType,
292-
];
293-
294-
return (
295-
<Alert
296-
variant="warning"
297-
system
298-
trailingItems={
299-
<AddEventsCTA
300-
organization={organization}
301-
subscription={subscription}
302-
buttonProps={{
303-
priority: 'default',
304-
size: 'xs',
305-
style: {marginBlock: '-2px'},
306-
}}
307-
eventTypes={eventTypes}
308-
notificationType="overage_critical"
309-
referrer={`overage-alert-${eventTypes.join('-')}`}
310-
source="continuous-profiling-beta-trial-banner"
311-
/>
312-
}
313-
>
314-
{subscription.isFree
315-
? tct(
316-
'[bold:Profiling Beta Ending Soon:] Your free access ends May 19, 2025. Profiling will require a [budgetTerm] after this date. To avoid disruptions, upgrade to a paid plan.',
317-
{
318-
bold: <b />,
319-
budgetTerm: displayBudgetName(subscription.planDetails, {withBudget: true}),
320-
}
321-
)
322-
: isEnterprise(subscription.plan)
323-
? tct(
324-
'[bold:Profiling Beta Ending Soon:] Your free access ends May 19, 2025. To avoid disruptions, contact your account manager before then to add it to your plan.',
325-
{bold: <b />}
326-
)
327-
: tct(
328-
'[bold:Profiling Beta Ending Soon:] Your free access ends May 19, 2025. Profiling will require a [budgetTerm] after this date.',
329-
{
330-
bold: <b />,
331-
budgetTerm: displayBudgetName(subscription.planDetails, {
332-
withBudget: true,
333-
}),
334-
}
335-
)}
336-
</Alert>
337-
);
338-
}
339-
340-
export const ContinuousProfilingBetaAlertBanner = withSubscription(
341-
ContinuousProfilingBetaAlertBannerInner
342-
);
343-
344274
export function ContinuousProfilingBetaSDKAlertBanner() {
345275
const sdkDeprecationResults = useSDKDeprecations();
346276

static/gsApp/registerHooks.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,6 @@ import {CodecovSettingsLink} from './components/codecovSettingsLink';
8080
import {PrimaryNavigationQuotaExceeded} from './components/navBillingStatus';
8181
import {OpenInDiscoverBtn} from './components/openInDiscoverBtn';
8282
import {
83-
ContinuousProfilingBetaAlertBanner,
8483
ContinuousProfilingBetaSDKAlertBanner,
8584
ContinuousProfilingBillingRequirementBanner,
8685
ProfilingBetaAlertBanner,
@@ -213,7 +212,6 @@ const GETSENTRY_HOOKS: Partial<Hooks> = {
213212
'component:ai-setup-configuration': () => AiSetupConfiguration,
214213
'component:ai-setup-data-consent': () => AiSetupDataConsent,
215214
'component:codecov-integration-settings-link': () => CodecovSettingsLink,
216-
'component:continuous-profiling-beta-banner': () => ContinuousProfilingBetaAlertBanner,
217215
'component:continuous-profiling-beta-sdk-banner': () =>
218216
ContinuousProfilingBetaSDKAlertBanner,
219217
'component:continuous-profiling-billing-requirement-banner': () =>

0 commit comments

Comments
 (0)