Closed jmondo closed 9 years ago
@jmondo thanks for the PR! We'll probably have to add an additional test to handle the new if/else case.
@jmondo thanks again for the PR. It looks like this was solved for unequal probabilities, but at the wrong level, in alternative_for
instead of higher up in choose
. I've fixed this and added a test case covering this behavior in 1bf8d6b.
awesome! thanks so much :)
previously if probabilities feature was disabled, it would not use the existing assignment
use case: if you are doing an experiment and you want to grandfather old users by using
ab_add_participant
description of problem: as of right now
ab_add_participant
won't do anything because when it hitsAbTest#alternative_for
, it just skips down toDigest::MD5.hexdigest("#{name}/#{identity}").to_i(17) % @alternatives.size
and overwrites the alternative.anyone willing to help me out with the failing test?