mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 14:13:43 +01:00
Merge pull request #30405 from overleaf/dp-cleanup-editor-redesign-opt-out-2
(Re)Cleanup editor-redesign-opt-out feature flag GitOrigin-RevId: afefced1f77de2b8b27e1333ffa647ac41561e31
This commit is contained in:
committed by
Copybot
parent
f2a70de6ef
commit
5e49f421c2
@@ -22,7 +22,6 @@ import { expressify } from '@overleaf/promise-utils'
|
||||
import { acceptsJson } from '../../infrastructure/RequestContentTypeDetection.mjs'
|
||||
import Modules from '../../infrastructure/Modules.mjs'
|
||||
import OneTimeTokenHandler from '../Security/OneTimeTokenHandler.mjs'
|
||||
import SplitTestHandler from '../SplitTests/SplitTestHandler.mjs'
|
||||
|
||||
async function _sendSecurityAlertClearedSessions(user) {
|
||||
const emailOptions = {
|
||||
@@ -412,18 +411,7 @@ async function updateUserSettings(req, res, next) {
|
||||
user.ace.referencesSearchMode = mode
|
||||
}
|
||||
if (body.enableNewEditor != null) {
|
||||
const assignment = await SplitTestHandler.promises.getAssignment(
|
||||
req,
|
||||
res,
|
||||
'editor-redesign-opt-out'
|
||||
)
|
||||
const isOptOutStageEnabled = assignment.variant === 'enabled'
|
||||
|
||||
if (isOptOutStageEnabled) {
|
||||
user.ace.enableNewEditorStageFour = Boolean(body.enableNewEditor)
|
||||
} else {
|
||||
user.ace.enableNewEditor = Boolean(body.enableNewEditor)
|
||||
}
|
||||
user.ace.enableNewEditorStageFour = Boolean(body.enableNewEditor)
|
||||
}
|
||||
if (body.darkModePdf != null) {
|
||||
user.ace.darkModePdf = Boolean(body.darkModePdf)
|
||||
|
||||
Reference in New Issue
Block a user