Ver Fonte

Remove feature-flag `bootstrap-5-subscription` (#23114)

GitOrigin-RevId: 4a8dadb7e5ae65c2651b1eeb317bb43daca881c8
Antoine Clausse há 1 ano atrás
pai
commit
5d42e51d3e

+ 0 - 19
services/web/app/src/Features/Subscription/SubscriptionController.js

@@ -53,14 +53,6 @@ async function userSubscriptionPage(req, res) {
 
   await SplitTestHandler.promises.getAssignment(req, res, 'pause-subscription')
 
-  // Populates splitTestVariants with a value for the split test name and allows
-  // Pug to read it
-  await SplitTestHandler.promises.getAssignment(
-    req,
-    res,
-    'bootstrap-5-subscription'
-  )
-
   const { variant: flexibleLicensingVariant } =
     await SplitTestHandler.promises.getAssignment(
       req,
@@ -206,12 +198,6 @@ async function successfulSubscription(req, res) {
   if (!personalSubscription) {
     res.redirect('/user/subscription/plans')
   } else {
-    await SplitTestHandler.promises.getAssignment(
-      req,
-      res,
-      'bootstrap-5-subscription'
-    )
-
     res.render('subscriptions/successful-subscription-react', {
       title: 'thank_you',
       personalSubscription,
@@ -305,11 +291,6 @@ function cancelSubscription(req, res, next) {
  * @returns {Promise<void>}
  */
 async function canceledSubscription(req, res, next) {
-  await SplitTestHandler.promises.getAssignment(
-    req,
-    res,
-    'bootstrap-5-subscription'
-  )
   return res.render('subscriptions/canceled-subscription-react', {
     title: 'subscription_canceled',
     user: SessionManager.getSessionUser(req.session),

+ 0 - 13
services/web/app/src/Features/Subscription/TeamInvitesController.mjs

@@ -14,7 +14,6 @@ import EmailHandler from '../Email/EmailHandler.js'
 import { RateLimiter } from '../../infrastructure/RateLimiter.js'
 import Modules from '../../infrastructure/Modules.js'
 import UserAuditLogHandler from '../User/UserAuditLogHandler.js'
-import SplitTestHandler from '../SplitTests/SplitTestHandler.js'
 
 const rateLimiters = {
   resendGroupInvite: new RateLimiter('resend-group-invite', {
@@ -70,12 +69,6 @@ async function viewInvite(req, res, next) {
   const { invite, subscription } =
     await TeamInvitesHandler.promises.getInvite(token)
 
-  await SplitTestHandler.promises.getAssignment(
-    req,
-    res,
-    'bootstrap-5-subscription'
-  )
-
   if (!invite) {
     return ErrorController.notFound(req, res)
   }
@@ -192,12 +185,6 @@ async function viewInvites(req, res, next) {
     groupSubscription.teamInvites.find(invite => invite.email === user.email)
   )
 
-  await SplitTestHandler.promises.getAssignment(
-    req,
-    res,
-    'bootstrap-5-subscription'
-  )
-
   return res.render('subscriptions/team/group-invites', {
     teamInvites,
     user,

+ 0 - 1
services/web/app/views/subscriptions/canceled-subscription-react.pug

@@ -2,7 +2,6 @@ extends ../layout-react
 
 block vars
 	- bootstrap5PageStatus = 'enabled' // One of 'disabled', 'enabled', and 'queryStringOnly'
-	- bootstrap5PageSplitTest = 'bootstrap-5-subscription'
 
 block entrypointVar
 	- entrypoint = 'pages/user/subscription/canceled-subscription'

+ 0 - 1
services/web/app/views/subscriptions/dashboard-react.pug

@@ -2,7 +2,6 @@ extends ../layout-react
 
 block vars
 	- bootstrap5PageStatus = 'enabled' // One of 'disabled', 'enabled', and 'queryStringOnly'
-	- bootstrap5PageSplitTest = 'bootstrap-5-subscription'
 
 block entrypointVar
 	- entrypoint = 'pages/user/subscription/dashboard'

+ 0 - 1
services/web/app/views/subscriptions/successful-subscription-react.pug

@@ -2,7 +2,6 @@ extends ../layout-react
 
 block vars
 	- bootstrap5PageStatus = 'enabled' // One of 'disabled', 'enabled', and 'queryStringOnly'
-	- bootstrap5PageSplitTest = 'bootstrap-5-subscription'
 
 block entrypointVar
 	- entrypoint = 'pages/user/subscription/successful-subscription'

+ 0 - 1
services/web/app/views/subscriptions/team/group-invites.pug

@@ -2,7 +2,6 @@ extends ../../layout-react
 
 block vars
 	- bootstrap5PageStatus = 'enabled' // One of 'disabled', 'enabled', and 'queryStringOnly'
-	- bootstrap5PageSplitTest = 'bootstrap-5-subscription'
 
 block entrypointVar
 	- entrypoint = 'pages/user/subscription/group-invites'

+ 0 - 1
services/web/app/views/subscriptions/team/invite-managed.pug

@@ -2,7 +2,6 @@ extends ../../layout-react
 
 block vars
 	- bootstrap5PageStatus = 'enabled' // One of 'disabled', 'enabled', and 'queryStringOnly'
-	- bootstrap5PageSplitTest = 'bootstrap-5-subscription'
 
 block entrypointVar
 	- entrypoint = 'pages/user/subscription/invite-managed'

+ 0 - 1
services/web/app/views/subscriptions/team/invite.pug

@@ -2,7 +2,6 @@ extends ../../layout-react
 
 block vars
 	- bootstrap5PageStatus = 'enabled' // One of 'disabled', 'enabled', and 'queryStringOnly'
-	- bootstrap5PageSplitTest = 'bootstrap-5-subscription'
 
 block entrypointVar
 	- entrypoint = 'pages/user/subscription/invite'

+ 0 - 1
services/web/app/views/subscriptions/team/invite_logged_out.pug

@@ -2,7 +2,6 @@ extends ../../layout-react
 
 block vars
 	- bootstrap5PageStatus = 'enabled' // One of 'disabled', 'enabled', and 'queryStringOnly'
-	- bootstrap5PageSplitTest = 'bootstrap-5-subscription'
 
 block append meta
 	meta(name="ol-user" data-type="json" content=user)