catalyst / moodle-tool_abconfig

A way to A/B test config, or slowly turn on config for certain audiences or % of traffic
https://moodle.org/plugins/tool_abconfig
6 stars 4 forks source link

For admins allow a specific optional url param override to force trigger an experiment conditions #7

Closed brendanheywood closed 4 years ago

brendanheywood commented 4 years ago

ie with an experiment name of 'objectfs' (experimentshortname) and a condition set of 'tryfoo' then if you visit any page like

then it will force just this single page view into that experiment, for both request scope and session scope. You should be able to force multiple experiments at the same time.

In the experiment page construct a little helper which spits out these params so you can cut and paste it into any url, including an example link to dashboard which includes these params.

Also for this reason 'experimentshortname' needs to be a tighter just PARAM_ALPHANUM so it's a valid param

/course/view.php?id=1&objectfs=auto

Peterburnett commented 4 years ago

Implemented in PR #11