Most AB tests run with just control and treatment variations. These were curiously represented in the Tracks code as .control and .treatment(nil), respectively. That nil is quite confusing for such a common case.
This PR updates the representation of the common case to simply be .treatment. Custom cases are now represented with a separate enum value.
Most AB tests run with just
control
andtreatment
variations. These were curiously represented in the Tracks code as.control
and.treatment(nil)
, respectively. Thatnil
is quite confusing for such a common case.This PR updates the representation of the common case to simply be
.treatment
. Custom cases are now represented with a separate enum value."control"
.control
.control
"treatment"
.treatment(nil)
.treatment
"purple_button"
.treatment("purple_button")
.customTreatment(name: "purple_button")
Fixes #226