mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
Add option to bypass percentage-based rollouts
This commit is contained in:
parent
f3d037f7bc
commit
22d1693f38
1 changed files with 2 additions and 0 deletions
|
@ -28,6 +28,8 @@ CollaboratorsHandler = require '../Collaborators/CollaboratorsHandler'
|
||||||
module.exports = ProjectController =
|
module.exports = ProjectController =
|
||||||
|
|
||||||
_isInPercentageRollout: (objectId, percentage) ->
|
_isInPercentageRollout: (objectId, percentage) ->
|
||||||
|
if Settings.bypassPercentageRollouts = true
|
||||||
|
return true
|
||||||
counter = parseInt(objectId.toString().substring(18, 24), 16)
|
counter = parseInt(objectId.toString().substring(18, 24), 16)
|
||||||
return (counter % 100) < percentage
|
return (counter % 100) < percentage
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue