[web] add Revert File button behind a feature flag (#17975)

* [web] add Revert File button behind a feature flag

* improve error message

* use constant for timeout

GitOrigin-RevId: 047c35d22e948351c52d469e48b869719f44ec4f
This commit is contained in:
Domagoj Kriskovic
2024-04-19 08:04:06 +00:00
committed by Copybot
parent 5ad70690c9
commit 945e51b8ed
8 changed files with 205 additions and 0 deletions
@@ -619,6 +619,9 @@ const ProjectController = {
paywallCtaAssignment(cb) {
SplitTestHandler.getAssignment(req, res, 'paywall-cta', cb)
},
revertFileAssignment(cb) {
SplitTestHandler.getAssignment(req, res, 'revert-file', cb)
},
projectTags(cb) {
if (!userId) {
return cb(null, [])