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