Page MenuHomePhabricator

JS xLab SDK: Update the overriding enrollment feature to work with groups instead of feature names and values
Closed, ResolvedPublic5 Estimated Story Points

Description

Description

Now that we are exploring a new way to manage the experiment configuration (T390036: xLab: Simplify groups and feature values), the existing JS API we have to overrides the enrollment for experiments needs to be updated to work with groups instead of variants/features.

We are also working on a new module, mw.xLab, where all the existing JS API should reside so we are going to take the opportunity to move there this functionality.

Acceptance criteria

  • Overriding enrollment feature has been moved to the new mw.xLab module
  • Overriding enrollment feature works with groups instead of variants/features
    • Update clearExperimentOverride to work with groups
    • Update overrideExperimentEnrollment( EXPERIMENT_NAME, FEATURE_VARIANT_NAME, FEATURE_VARIANT_VALUE) to overrideExperimentGroup( EXPERIMENT_NAME, EXPERIMENT_GROUP )
    • Add clearExperimentOverride( EXPERIMENT_NAME )
    • Keep clearExperimentOverrides() as it's

Event Timeline

Change #1131433 had a related patch set uploaded (by Santiago Faci; author: Santiago Faci):

[mediawiki/extensions/MetricsPlatform@master] Added support for groups (removed for features) and the new API for the JS xLab SDK

https://gerrit.wikimedia.org/r/1131433

Change #1134280 had a related patch set uploaded (by Santiago Faci; author: Santiago Faci):

[mediawiki/extensions/MetricsPlatform@master] JS xLab SDK: Updated overriding features to work with groups

https://gerrit.wikimedia.org/r/1134280

Change #1134280 merged by jenkins-bot:

[mediawiki/extensions/MetricsPlatform@master] JS xLab SDK: Updated overriding features to work with groups

https://gerrit.wikimedia.org/r/1134280

Milimetric set the point value for this task to 5.Fri, Apr 11, 1:37 PM

Change #1131433 abandoned by Santiago Faci:

[mediawiki/extensions/MetricsPlatform@master] DNM: Added support for groups (removed for features) and the new API for the JS xLab SDK

https://gerrit.wikimedia.org/r/1131433