End an A/B test

This commit is contained in:
Nick Winter 2015-11-22 07:53:49 -08:00
parent e0011ee5d0
commit 21810be8eb
2 changed files with 0 additions and 15 deletions

View file

@ -131,17 +131,6 @@ module.exports = class User extends CocoModel
application.tracker.identify fourthLevelGroup: @fourthLevelGroup unless me.isAdmin()
@fourthLevelGroup
getSubscriptionPromptGroup: ->
return @subscriptionPromptGroup if @subscriptionPromptGroup
group = me.get('testGroupNumber') % 3
@subscriptionPromptGroup = switch group
when 0 then 'favorable-odds'
when 1 then 'tactical-strike'
when 2 then 'boom-and-bust'
@subscriptionPromptGroup = 'favorable-odds' if me.isAdmin()
application.tracker.identify subscriptionPromptGroup: @subscriptionPromptGroup unless me.isAdmin()
@subscriptionPromptGroup
getVideoTutorialStylesIndex: (numVideos=0)->
# A/B Testing video tutorial styles
# Not a constant number of videos available (e.g. could be 0, 1, 3, or 4 currently)

View file

@ -315,10 +315,6 @@ module.exports = class CampaignView extends RootView
foundNext = false
dontPointTo = ['lost-viking', 'kithgard-mastery'] # Challenge levels we don't want most players bashing heads against
subscriptionPrompts = [{slug: 'boom-and-bust', unless: 'defense-of-plainswood'}]
if me.getSubscriptionPromptGroup() is 'favorable-odds'
subscriptionPrompts.push slug: 'favorable-odds', unless: 'the-raised-sword'
if me.getSubscriptionPromptGroup() is 'tactical-strike'
subscriptionPrompts.push slug: 'tactical-strike', unless: 'a-mayhem-of-munchkins'
for level in levels
# Iterate through all levels in order and look to find the first unlocked one that meets all our criteria for being pointed out as the next level.
level.nextLevels = (reward.level for reward in level.rewards ? [] when reward.level)