Skip to content

Commit a9454bc

Browse files
feat(relay): Managed Relay for all (front-end) (#98688)
Front-end changes to make managed relay available for all. Back-end here: #98696 Ref: https://linear.app/getsentry/issue/INGEST-544/update-sentry
1 parent 4709b2d commit a9454bc

File tree

6 files changed

+1
-124
lines changed

6 files changed

+1
-124
lines changed

static/app/types/hooks.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,6 @@ export type FeatureDisabledHooks = {
268268
'feature-disabled:project-selector-all-projects': FeatureDisabledHook;
269269
'feature-disabled:project-selector-checkbox': FeatureDisabledHook;
270270
'feature-disabled:rate-limits': FeatureDisabledHook;
271-
'feature-disabled:relay': FeatureDisabledHook;
272271
'feature-disabled:replay-sidebar-item': FeatureDisabledHook;
273272
'feature-disabled:sso-basic': FeatureDisabledHook;
274273
'feature-disabled:sso-saml2': FeatureDisabledHook;
Lines changed: 1 addition & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,7 @@
1-
import Feature from 'sentry/components/acl/feature';
2-
import FeatureDisabled from 'sentry/components/acl/featureDisabled';
3-
import Panel from 'sentry/components/panels/panel';
4-
import PanelBody from 'sentry/components/panels/panelBody';
5-
import {t} from 'sentry/locale';
6-
import useOrganization from 'sentry/utils/useOrganization';
7-
81
import {RelayWrapper} from './relayWrapper';
92

103
function OrganizationRelay() {
11-
const organization = useOrganization();
12-
return (
13-
<Feature
14-
organization={organization}
15-
features="relay"
16-
hookName="feature-disabled:relay"
17-
renderDisabled={p => (
18-
<Panel>
19-
<PanelBody withPadding>
20-
<FeatureDisabled
21-
features={p.features}
22-
hideHelpToggle
23-
featureName={t('Relay')}
24-
/>
25-
</PanelBody>
26-
</Panel>
27-
)}
28-
>
29-
<RelayWrapper />
30-
</Feature>
31-
);
4+
return <RelayWrapper />;
325
}
336

347
export default OrganizationRelay;

static/gsApp/components/features/disabledRelay.tsx

Lines changed: 0 additions & 82 deletions
This file was deleted.

static/gsApp/components/labelWithPowerIcon.tsx

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ import type {Subscription} from 'getsentry/types';
1111
import {isEnterprise} from 'getsentry/utils/billing';
1212

1313
const SSO = 'sso';
14-
const RELAY = 'relay';
1514
const ALLOCATIONS = 'allocations-upsell';
1615
const TEAM_ROLES = 'team-roles-upsell';
1716

@@ -37,11 +36,6 @@ const POWER_FEATURE_CONFIG = [
3736
features: ['sso-saml2'],
3837
partial: true,
3938
},
40-
{
41-
id: RELAY,
42-
features: ['relay'],
43-
partial: false,
44-
},
4539
{
4640
id: ALLOCATIONS,
4741
features: ['spend-allocations'],

static/gsApp/registerHooks.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ import DisabledDataForwarding from 'getsentry/components/features/disabledDataFo
1919
import DisabledDateRange from 'getsentry/components/features/disabledDateRange';
2020
import DisabledDiscardGroup from 'getsentry/components/features/disabledDiscardGroup';
2121
import DisabledRateLimits from 'getsentry/components/features/disabledRateLimits';
22-
import DisabledRelay from 'getsentry/components/features/disabledRelay';
2322
import DisabledSelectorItems from 'getsentry/components/features/disabledSelectorItems';
2423
import ExploreDateRangeQueryLimitFooter from 'getsentry/components/features/exploreDateRangeQueryLimitFooter';
2524
import InsightsDateRangeQueryLimitFooter from 'getsentry/components/features/insightsDateRangeQueryLimitFooter';
@@ -255,7 +254,6 @@ const GETSENTRY_HOOKS: Partial<Hooks> = {
255254

256255
'feature-disabled:discard-groups': p => <DisabledDiscardGroup {...p} />,
257256
'feature-disabled:data-forwarding': p => <DisabledDataForwarding {...p} />,
258-
'feature-disabled:relay': p => <DisabledRelay {...p} />,
259257
'feature-disabled:rate-limits': p => <DisabledRateLimits {...p} />,
260258
'feature-disabled:sso-basic': p => <DisabledAuthProvider {...p} />,
261259
'feature-disabled:sso-saml2': p => <DisabledAuthProvider {...p} />,

tests/js/getsentry-test/fixtures/featureList.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -92,11 +92,6 @@ export function FeatureListFixture(): Record<string, Feature> {
9292
description:
9393
'Configure custom Symbol Servers, Amazon S3 buckets, or GCS buckets for debug files.',
9494
},
95-
relay: {
96-
name: 'Relay',
97-
description:
98-
'Use Relay as middle layer for on premise data scrubbing before sending data to Sentry.',
99-
},
10095
'app-store-connect-multiple': {
10196
name: 'Multiple App Store Connect apps',
10297
description: 'Add multiple Apple App Store Connect apps per project',

0 commit comments

Comments
 (0)