From ffa826119ae482e354b1cd0f26433d07330b4864 Mon Sep 17 00:00:00 2001 From: isabellaenriquez Date: Mon, 17 Nov 2025 11:35:01 -0500 Subject: [PATCH] ref(seer): Rename billing flag --- .../account/notifications/notificationSettingsByType.spec.tsx | 2 +- .../account/notifications/notificationSettingsByType.tsx | 2 +- static/gsAdmin/components/changePlanAction.spec.tsx | 2 +- static/gsApp/constants.tsx | 2 +- static/gsApp/views/subscriptionPage/usageOverview.spec.tsx | 2 +- tests/js/getsentry-test/fixtures/constants.ts | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/static/app/views/settings/account/notifications/notificationSettingsByType.spec.tsx b/static/app/views/settings/account/notifications/notificationSettingsByType.spec.tsx index f414094c4c394a..a8c3bffe2fca7e 100644 --- a/static/app/views/settings/account/notifications/notificationSettingsByType.spec.tsx +++ b/static/app/views/settings/account/notifications/notificationSettingsByType.spec.tsx @@ -325,7 +325,7 @@ describe('NotificationSettingsByType', () => { 'continuous-profiling-billing', 'seer-billing', 'logs-billing', - 'prevent-billing', + 'seer-user-billing', ], }); renderComponent({ diff --git a/static/app/views/settings/account/notifications/notificationSettingsByType.tsx b/static/app/views/settings/account/notifications/notificationSettingsByType.tsx index ad859faca70952..196b357d996528 100644 --- a/static/app/views/settings/account/notifications/notificationSettingsByType.tsx +++ b/static/app/views/settings/account/notifications/notificationSettingsByType.tsx @@ -213,7 +213,7 @@ export function NotificationSettingsByType({notificationType}: Props) { ); const hasPreventBilling = organizations.some(organization => - organization.features?.includes('prevent-billing') + organization.features?.includes('seer-user-billing') ); const excludeTransactions = hasOrgWithAm3 && !hasOrgWithoutAm3; diff --git a/static/gsAdmin/components/changePlanAction.spec.tsx b/static/gsAdmin/components/changePlanAction.spec.tsx index aadca9f695d81d..288dea2e837f8f 100644 --- a/static/gsAdmin/components/changePlanAction.spec.tsx +++ b/static/gsAdmin/components/changePlanAction.spec.tsx @@ -239,7 +239,7 @@ describe('ChangePlanAction', () => { }); it('completes form with addOns', async () => { - mockOrg.features = ['seer-billing', 'prevent-billing']; + mockOrg.features = ['seer-billing', 'seer-user-billing']; const putMock = MockApiClient.addMockResponse({ url: `/customers/${mockOrg.slug}/subscription/`, method: 'PUT', diff --git a/static/gsApp/constants.tsx b/static/gsApp/constants.tsx index d8d9ab7c3a5db9..0f9d5687931b67 100644 --- a/static/gsApp/constants.tsx +++ b/static/gsApp/constants.tsx @@ -209,7 +209,7 @@ export const BILLED_DATA_CATEGORY_INFO = { }, [DataCategoryExact.PREVENT_USER]: { ...DEFAULT_BILLED_DATA_CATEGORY_INFO[DataCategoryExact.PREVENT_USER], - feature: 'prevent-billing', + feature: 'seer-user-billing', canProductTrial: true, maxAdminGift: 10_000, // TODO(prevent): Update this to the actual max admin gift tallyType: 'seat', diff --git a/static/gsApp/views/subscriptionPage/usageOverview.spec.tsx b/static/gsApp/views/subscriptionPage/usageOverview.spec.tsx index 260cd9a6f72b07..8bc5c4bddc75ce 100644 --- a/static/gsApp/views/subscriptionPage/usageOverview.spec.tsx +++ b/static/gsApp/views/subscriptionPage/usageOverview.spec.tsx @@ -226,7 +226,7 @@ describe('UsageOverview', () => { }); it('renders table based on add-on state', () => { - organization.features.push('prevent-billing'); + organization.features.push('seer-user-billing'); const subWithSeer = SubscriptionWithSeerFixture({organization}); SubscriptionStore.set(organization.slug, subWithSeer); render( diff --git a/tests/js/getsentry-test/fixtures/constants.ts b/tests/js/getsentry-test/fixtures/constants.ts index 1917417db3606d..eecf96949456e6 100644 --- a/tests/js/getsentry-test/fixtures/constants.ts +++ b/tests/js/getsentry-test/fixtures/constants.ts @@ -17,7 +17,7 @@ export const AM_ADD_ON_CATEGORIES = { apiName: AddOnCategory.PREVENT, dataCategories: [DataCategory.PREVENT_USER, DataCategory.PREVENT_REVIEW], name: 'prevent', - billingFlag: 'prevent-billing', + billingFlag: 'seer-user-billing', order: 2, productName: 'prevent', },