Merge branch 'as-fix-rollout-2'

This commit is contained in:
Shane Kilkelly 2017-11-13 09:50:46 +00:00
commit aea8e77f8a
3 changed files with 4 additions and 4 deletions

View file

@ -276,7 +276,7 @@ module.exports = ProjectController =
# Extract data from user's ObjectId
timestamp = parseInt(user_id.toString().substring(0, 8), 16)
rolloutPercentage = 60 # Percentage of users to roll out to
rolloutPercentage = 1 # Percentage of users to roll out to
if !ProjectController._isInPercentageRollout('autocompile', user_id, rolloutPercentage)
# Don't show if user is not part of roll out
return cb(null, { enabled: false, showOnboarding: false })
@ -285,7 +285,7 @@ module.exports = ProjectController =
# Don't show for users who registered after it was released
return cb(null, { enabled: true, showOnboarding: false })
timeout = setTimeout cb, 500
AnalyticsManager.getLastOccurance user_id, "shown-autocompile-onboarding", (error, event) ->
AnalyticsManager.getLastOccurance user_id, "shown-autocompile-onboarding-2", (error, event) ->
clearTimeout timeout
if error?
return cb(null, { enabled: true, showOnboarding: false })

View file

@ -23,4 +23,4 @@ define [
$scope.dismiss = () ->
$scope.onboarding.autoCompile = 'dismissed'
event_tracking.sendMB "shown-autocompile-onboarding"
event_tracking.sendMB "shown-autocompile-onboarding-2"

View file

@ -109,7 +109,7 @@ define [
toggleAutoCompile(newValue)
event_tracking.sendMB "autocompile-setting-changed", { value: newValue }
if (window.user?.betaProgram or window.showAutoCompileOnboarding) and $scope.autocompile_enabled
if (window.user?.betaProgram or window.autoCompileEnabled) and $scope.autocompile_enabled
toggleAutoCompile(true)
# abort compile if syntax checks fail