Background
In T373406: Add experiment enrollment functionality to the Metrics Platform extension, we introduced generic experiment enrollment functionality to the MetricsPlatform extension with a view to replacing the equivalent functionality in GrowthExperiments. However, we learned that GrowthExperiments accepts overrides to experiment enrollments to ease QA. This task covers replicating that functionality in MetricsPlatform and documenting it and its limitations.
AC
- A user can assign themselves to an experiment variant
- Either via modifying the URL or via a JavaScript utility function
- The functionality is disabled by default
- This functionality can be enabled on a per-wiki basis
Requirements
- Unit/integration tests
- Documentation
- Passed QA?
Notes
- For logged-out users or temporary users, we can only expect these overrides to last as long as the browsing session
- For logged-in users, we could explore storing overrides as a user property. However, we would need to design a mechanism for tidying up overrides for inactive experiments, e.g. a maintenance script