Adds a split_test_module XModule, that can choose one of its children
to display, based on a get_condition_for_user API added to the runtime.
To test, add something like this to an xml course, or make equivalent
tweaks in mongo.
<vertical url_name="split_test_vert">
<split_test url_name="split1" experiment_id="0" condition_id_to_child='{"0": "i4x://MITx/6.00x/html/split_test_cond0", "1": "i4x://MITx/6.00x/html/split_test_cond1"}'>
<html url_name="split_test_cond0">condition 0</html>
<html url_name="split_test_cond1">condition 1</html>
</split_test>
</vertical>
Also needs an experiment configured in the course policy json: e.g.
"user_partitions": [{"id": 0,
"name": "Experiment 0",
"description": "Unicorns?",
"version": 1,
"groups": [{"id": 0,
"name": "group 0",
"version": 1},
{"id": 1,
"name": "group 1",
"version": 1}]}]
(This particular snippet will work inside a course with org MITx
and course name 6.00x)
Co-Author: Sarina Canelake <sarina@edx.org>
Co-Author: Julia Hansbrough <julia@edx.org>
Co-Author: Diana Huang <diana@edx.org>
Co-Author: Calen Pennington <cale@edx.org>
[LMS-2095]
| Name |
Last commit
|
Last update |
|---|---|---|
| .. | ||
| contentstore | Loading commit data... | |
| css | Loading commit data... | |
| js | Loading commit data... | |
| modulestore | Loading commit data... | |
| open_ended_grading_classes | Loading commit data... | |
| partitions | Loading commit data... | |
| public/js | Loading commit data... | |
| templates | Loading commit data... | |
| tests | Loading commit data... | |
| util | Loading commit data... | |
| video_module | Loading commit data... | |
| __init__.py | Loading commit data... | |
| abtest_module.py | Loading commit data... | |
| annotatable_module.py | Loading commit data... | |
| backcompat_module.py | Loading commit data... | |
| capa_base.py | Loading commit data... | |
| capa_module.py | Loading commit data... | |
| combined_open_ended_module.py | Loading commit data... | |
| conditional_module.py | Loading commit data... | |
| course_module.py | Loading commit data... | |
| crowdsource_hinter.py | Loading commit data... | |
| discussion_module.py | Loading commit data... | |
| editing_module.py | Loading commit data... | |
| error_module.py | Loading commit data... | |
| errortracker.py | Loading commit data... | |
| exceptions.py | Loading commit data... | |
| fields.py | Loading commit data... | |
| foldit_module.py | Loading commit data... | |
| graders.py | Loading commit data... | |
| gst_module.py | Loading commit data... | |
| hidden_module.py | Loading commit data... | |
| html_checker.py | Loading commit data... | |
| html_module.py | Loading commit data... | |
| lti_module.py | Loading commit data... | |
| mako_module.py | Loading commit data... | |
| peer_grading_module.py | Loading commit data... | |
| poll_module.py | Loading commit data... | |
| progress.py | Loading commit data... | |
| randomize_module.py | Loading commit data... | |
| raw_module.py | Loading commit data... | |
| seq_module.py | Loading commit data... | |
| split_test_module.py | Loading commit data... | |
| static_content.py | Loading commit data... | |
| stringify.py | Loading commit data... | |
| template_module.py | Loading commit data... | |
| templates.py | Loading commit data... | |
| textannotation_module.py | Loading commit data... | |
| timeinfo.py | Loading commit data... | |
| vertical_module.py | Loading commit data... | |
| videoannotation_module.py | Loading commit data... | |
| word_cloud_module.py | Loading commit data... | |
| wrapper_module.py | Loading commit data... | |
| x_module.py | Loading commit data... | |
| xml_module.py | Loading commit data... |