From ede03daafdf27fe901ffee8dd5f7f6af0296bfb7 Mon Sep 17 00:00:00 2001 From: Antoine Clausse Date: Thu, 25 Apr 2024 13:44:18 +0200 Subject: [PATCH] Rename test to `local-ccy-format-v2` to restart with clean data (#18115) GitOrigin-RevId: 610495f41d69f8cac1a427ef7b8d64886bc5cdba --- .../src/Features/Subscription/SubscriptionController.js | 8 ++++---- .../frontend/js/features/plans/group-plan-modal/index.js | 2 +- .../context/subscription-dashboard-context.tsx | 2 +- .../user/subscription/plans-v2/plans-v2-group-plan.js | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/services/web/app/src/Features/Subscription/SubscriptionController.js b/services/web/app/src/Features/Subscription/SubscriptionController.js index 955a96effe..dccc47c70a 100644 --- a/services/web/app/src/Features/Subscription/SubscriptionController.js +++ b/services/web/app/src/Features/Subscription/SubscriptionController.js @@ -88,7 +88,7 @@ async function plansPage(req, res) { const localCcyAssignment = await SplitTestHandler.promises.getAssignment( req, res, - 'local-ccy-format' + 'local-ccy-format-v2' ) const formatCurrency = localCcyAssignment.variant === 'enabled' @@ -143,7 +143,7 @@ async function userSubscriptionPage(req, res) { const localCcyAssignment = await SplitTestHandler.promises.getAssignment( req, res, - 'local-ccy-format' + 'local-ccy-format-v2' ) const results = @@ -261,7 +261,7 @@ async function interstitialPaymentPage(req, res) { const localCcyAssignment = await SplitTestHandler.promises.getAssignment( req, res, - 'local-ccy-format' + 'local-ccy-format-v2' ) res.render('subscriptions/interstitial-payment', { @@ -296,7 +296,7 @@ async function successfulSubscription(req, res) { const localCcyAssignment = await SplitTestHandler.promises.getAssignment( req, res, - 'local-ccy-format' + 'local-ccy-format-v2' ) const { personalSubscription } = await SubscriptionViewModelBuilder.promises.buildUsersSubscriptionViewModel( diff --git a/services/web/frontend/js/features/plans/group-plan-modal/index.js b/services/web/frontend/js/features/plans/group-plan-modal/index.js index b979852ed6..be15ab28f7 100644 --- a/services/web/frontend/js/features/plans/group-plan-modal/index.js +++ b/services/web/frontend/js/features/plans/group-plan-modal/index.js @@ -25,7 +25,7 @@ export function updateGroupModalPlanPricing() { const modalEl = document.querySelector('[data-ol-group-plan-modal]') const { planCode, size, currency, usage } = getFormValues() - const localCcyVariant = getSplitTestVariant('local-ccy-format') + const localCcyVariant = getSplitTestVariant('local-ccy-format-v2') const { localizedPrice, localizedPerUserPrice } = createLocalizedGroupPlanPrice({ diff --git a/services/web/frontend/js/features/subscription/context/subscription-dashboard-context.tsx b/services/web/frontend/js/features/subscription/context/subscription-dashboard-context.tsx index 77dc69408e..b8d905df86 100644 --- a/services/web/frontend/js/features/subscription/context/subscription-dashboard-context.tsx +++ b/services/web/frontend/js/features/subscription/context/subscription-dashboard-context.tsx @@ -81,7 +81,7 @@ export const SubscriptionDashboardContext = createContext< >(undefined) const getFormatCurrencies = () => - getSplitTestVariant('local-ccy-format') === 'enabled' + getSplitTestVariant('local-ccy-format-v2') === 'enabled' ? formatCurrencyLocalized : formatCurrencyDefault diff --git a/services/web/frontend/js/pages/user/subscription/plans-v2/plans-v2-group-plan.js b/services/web/frontend/js/pages/user/subscription/plans-v2/plans-v2-group-plan.js index 02417c2301..444f57f5b0 100644 --- a/services/web/frontend/js/pages/user/subscription/plans-v2/plans-v2-group-plan.js +++ b/services/web/frontend/js/pages/user/subscription/plans-v2/plans-v2-group-plan.js @@ -26,7 +26,7 @@ export function updateMainGroupPlanPricing() { ? 'educational' : 'enterprise' - const localCcyVariant = getSplitTestVariant('local-ccy-format') + const localCcyVariant = getSplitTestVariant('local-ccy-format-v2') const formatCurrency = localCcyVariant === 'enabled' ? formatCurrencyLocalized