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 |
---|---|---|
.. | ||
_static | Loading commit data... | |
_templates | Loading commit data... | |
images | Loading commit data... | |
__init__.py | Loading commit data... | |
calc.rst | Loading commit data... | |
capa.rst | Loading commit data... | |
chem.rst | Loading commit data... | |
cms.rst | Loading commit data... | |
common-lib.rst | Loading commit data... | |
conf.py | Loading commit data... | |
djangoapps-common.rst | Loading commit data... | |
djangoapps.rst | Loading commit data... | |
i18n.rst | Loading commit data... | |
i18n_translators_guide.rst | Loading commit data... | |
index.rst | Loading commit data... | |
lms.rst | Loading commit data... | |
overview.rst | Loading commit data... | |
sandbox-packages.rst | Loading commit data... | |
symmath.rst | Loading commit data... | |
transcripts.rst | Loading commit data... | |
transcripts_acceptance_tests.odt | Loading commit data... | |
transcripts_workflow.odg | Loading commit data... | |
transcripts_workflow.pdf | Loading commit data... | |
video_player.rst | Loading commit data... | |
xblocks.rst | Loading commit data... | |
xmodule.rst | Loading commit data... |