remove rfc button altogether first, put in correct experiment groups

This commit is contained in:
Ralf Teusner
2018-02-27 13:38:31 +01:00
parent 4778fc68fc
commit fbff875348
4 changed files with 38 additions and 24 deletions

View File

@ -3,12 +3,20 @@ class UserGroupSeparator
# seperates user into 20% no intervention, 20% break intervention, 60% rfc intervention
def self.getInterventionGroup(user)
lastDigitId = user.id % 10
if lastDigitId < 2 # 0,1
:no_intervention
elsif lastDigitId < 4 # 2,3
:break_intervention
else # 4,5,6,7,8,9
:rfc_intervention
if lastDigitId < 1 # 0
:rfc_intervention_stale_rfc
elsif lastDigitId < 2 # 1
:break_intervention_stale_rfc
elsif lastDigitId < 3 # 2
:no_intervention_stale_rfc
elsif lastDigitId < 4 # 3
:no_intervention_hide_rfc
elsif lastDigitId < 5 # 4
:break_intervention_show_rfc
elsif lastDigitId < 6 # 5
:no_intervention_show_rfc
else # 6,7,8,9
:rfc_intervention_show_rfc
end
end