mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Merge pull request #64 from sharelatex/as-1-pc-rollout
Rollout autocompile to 1% of users
This commit is contained in:
commit
672f944e7c
1 changed files with 2 additions and 2 deletions
|
@ -257,8 +257,8 @@ module.exports = ProjectController =
|
||||||
timestamp = parseInt(user_id.toString().substring(0, 8), 16)
|
timestamp = parseInt(user_id.toString().substring(0, 8), 16)
|
||||||
counter = parseInt(user_id.toString().substring(18, 24), 16)
|
counter = parseInt(user_id.toString().substring(18, 24), 16)
|
||||||
|
|
||||||
rolloutProportion = 0
|
rolloutPercentage = 1 # Percentage of users to roll out to
|
||||||
if counter % 1000 >= rolloutProportion
|
if counter % 100 > rolloutPercentage
|
||||||
# Don't show if user is not part of roll out
|
# Don't show if user is not part of roll out
|
||||||
return cb(null, false)
|
return cb(null, false)
|
||||||
userSignupDate = new Date(timestamp * 1000)
|
userSignupDate = new Date(timestamp * 1000)
|
||||||
|
|
Loading…
Reference in a new issue