فهرست منبع

Rollout autocompile to 1% of users and improve readability

Alasdair Smith 9 سال پیش
والد
کامیت
6ff3a2de9f
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 2 2
      services/web/app/coffee/Features/Project/ProjectController.coffee

+ 2 - 2
services/web/app/coffee/Features/Project/ProjectController.coffee

@@ -257,8 +257,8 @@ module.exports = ProjectController =
 				timestamp = parseInt(user_id.toString().substring(0, 8), 16)
 				counter = parseInt(user_id.toString().substring(18, 24), 16)
 
-				rolloutProportion = 0
-				if counter % 1000 >= rolloutProportion
+				rolloutPercentage = 1 # Percentage of users to roll out to
+				if counter % 1000 > rolloutPercentage
 					# Don't show if user is not part of roll out
 					return cb(null, false)
 				userSignupDate = new Date(timestamp * 1000)