Explorar el Código

Merge branch 'as-fix-rollout-2'

Shane Kilkelly hace 9 años
padre
commit
aea8e77f8a

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

@@ -276,7 +276,7 @@ module.exports = ProjectController =
 				# Extract data from user's ObjectId
 				# Extract data from user's ObjectId
 				timestamp = parseInt(user_id.toString().substring(0, 8), 16)
 				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)
 				if !ProjectController._isInPercentageRollout('autocompile', user_id, 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, { enabled: false, showOnboarding: false })
 					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
 					# Don't show for users who registered after it was released
 					return cb(null, { enabled: true, showOnboarding: false })
 					return cb(null, { enabled: true, showOnboarding: false })
 				timeout = setTimeout cb, 500
 				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
 					clearTimeout timeout
 					if error?
 					if error?
 						return cb(null, { enabled: true, showOnboarding: false })
 						return cb(null, { enabled: true, showOnboarding: false })

+ 1 - 1
services/web/public/coffee/ide/AutoCompileOnboardingController.coffee

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

+ 1 - 1
services/web/public/coffee/ide/pdf/controllers/PdfController.coffee

@@ -109,7 +109,7 @@ define [
 				toggleAutoCompile(newValue)
 				toggleAutoCompile(newValue)
 				event_tracking.sendMB "autocompile-setting-changed", { value: 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)
 			toggleAutoCompile(true)
 
 
 		# abort compile if syntax checks fail
 		# abort compile if syntax checks fail