Steps to replicate the issue (include links if applicable):
- Ensure wgGEUseMetricsPlatformExtension is set to true in the site config
- As an user in the control group for Revise Tone, go to https://ar.wikipedia.beta.wmcloud.org/'s main page
- You can verify you are in the control group by checking the Revise Tone task is missing from your Homepage (the task type selector looks like F70142662)
- On the main page, open the dev tools console and execute ge.utils.setUserVariant('growthexperiments-revise-tone_control')
- Go to Special:Homepage and open the task type selector
What happens?:
The Revise Tone task is missing. No error indicates the ge.utils.setUserVariant()
What should have happened instead?:
Either:
- The Revise Tone task is added, since the user was just opted into the treatment group, or
- the ge.utils.setUserVariant() execution errors out.
Notes
This bug only appears when the xLab manager is in use. Otherwise, the ge.utils.setUserVariant() helper can be used from any page. This makes the bug a Regression (of sort).
This was noticed, because @Dyolf77_WMF was having troubles with opting into Revise Tone treatment group on beta. Investigation showed the cause was executing the helper from the main page.