Salsa: Adding a custom instruction field
Considering that the first experiment we can up for Salsa turned out to
already not fit nicely with the instructions for testing out treatments
that was included, I think it makes more sense to just have the
instructions be a user-generated field. This CL adds a field called
"instructions" to the experiment model that you can fill with a chunk of
HTML when you're creating your experiment. These instructions will be
displayed under each treatment on the participant page, telling them how
to best experience the changes.
This way no matter how wacky the treatments get or now narrow their use
cases may be, we can customize the participant instructions exactly to
it's use case. Obviously though, there is only one set of instructions
per experiment, or else it ruins the blind-ness of the study.
BUG=chromium-os:37756
TEST=There is a dev server with this CL running at cmooney.mtv:8081.
You can try to make a new experiment with instructions and they will
appear as I've described above. If you omit the instructions, creation
with fail
Change-Id: Ibdd38dcc9f552cdcb0f7393c25eb04457fa02165
Signed-off-by: Charlie Mooney <charliemooney@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/41022
Reviewed-by: Andrew de los Reyes <adlr@chromium.org>
Commit-Queue: Charles Mooney <charliemooney@google.com>
Tested-by: Charles Mooney <charliemooney@google.com>
5 files changed