Add the mediawiki.experiments module
authorSam Smith <git@samsmith.io>
Wed, 12 Aug 2015 19:53:19 +0000 (20:53 +0100)
committerJdlrobson <jrobson@wikimedia.org>
Wed, 26 Aug 2015 17:23:41 +0000 (17:23 +0000)
commit8da91885e02a365d5ad7905606ed2c5bb50334f5
treecdb8343280c9293f70c89fcecec70d05c444a9e2
parent937ae6444a683a3b0aaf14c21f529ad0e91419ef
Add the mediawiki.experiments module

The module provides a generic bucketing function - it accepts an
experiment specification and a token that identifies a unique user - and
doesn't have any side effects, i.e. the bucket isn't persisted to
storage. It is therefore assumed that clients are responsible for either
storing the token or storing the bucket for the duration of an
experiment.

The module was extracted from the - admittedly, unused - module of the
same name in the MobileFrontend extension as it's intended to be used by
the Gather and QuickSurveys extensions.

Bug: T109010
Change-Id: Icf7f6fedf0c2deb5d5548c9e24456cc7a7c6a743
maintenance/jsduck/categories.json
resources/Resources.php
resources/src/mediawiki/mediawiki.experiments.js [new file with mode: 0644]
tests/qunit/QUnitTestResources.php
tests/qunit/suites/resources/mediawiki/mediawiki.experiments.test.js [new file with mode: 0644]