Merge pull request #17167 from overleaf/jpa-hide-writefull-anon

[web] hide Writefull promotion for non-logged-in users

GitOrigin-RevId: 945b0f3da4b3bbd64e71e10f40ab6f8320efb1cd
This commit is contained in:
Jakob Ackermann 2024-02-16 13:07:52 +00:00 committed by Copybot
parent b55bdf7ced
commit 4118775a49

View file

@ -600,7 +600,18 @@ const ProjectController = {
SplitTestHandler.getAssignment(req, res, 'ide-page', cb)
},
writefullIntegrationAssignment(cb) {
SplitTestHandler.getAssignment(req, res, 'writefull-integration', cb)
if (anonymous) {
// Disable allocation to split test for non-logged-in users.
// The in-editor promotion is only relevant for logged-in users.
cb()
} else {
SplitTestHandler.getAssignment(
req,
res,
'writefull-integration',
cb
)
}
},
compileLogEventsAssignment(cb) {
SplitTestHandler.getAssignment(req, res, 'compile-log-events', cb)