Add applyTargeting param to about:studies preview URLS
Categories
(Firefox :: Nimbus Desktop Client, enhancement, P1)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox116 | --- | fixed |
People
(Reporter: k88hudson, Assigned: beth)
References
Details
Attachments
(1 file, 1 obsolete file)
If a nimbus preview URL includes applyTargeting, when force-enrolling, we should also check targeting.
This should NOT include bucketing.
Updated•4 years ago
|
| Assignee | ||
Updated•3 years ago
|
| Assignee | ||
Comment 1•3 years ago
|
||
about:studies URLs allow us to QA recipes in preview mode. However, this force enrolls you in the experiment without checking any targeting. We would like to be able to use aabout:studies to validate targeting by appending ?applyTargeting to a preview URL.
The code for opting in to experiments begins in AboutPages.jsm, goes through RemoteSettingsExperimentLoader.optInToExperiment, and ends up in ExperimentManager.forceEnroll.
We'll want to add an extra param to optInToExperiment specifying if we should validate the targeting. An example of where we check targeting is in RemoteSettingsExperimentLoader.updateRecipes. If targeting fails, we'll want to include a useful message (via an exception) that targeting was the reason we could not enroll.
Comment 3•2 years ago
|
||
I am an outreachy applicant. Can I contribute to this bug?
| Assignee | ||
Comment 4•2 years ago
|
||
Pushpanjali, yes. The instructions above are a bit out of date due to refactoring, so here are some updated ones:
- Update about-studies.js to also capture the
applyTargetingquery parameter. - Update RemoteSettingsExperimentLoader to grab the
applyTargetingparameter, defaulting to false. - Update the
EnrollmentsCtxconstructor call to setshouldCheckTargeting: applyTargeting
Comment 5•2 years ago
|
||
Yes, sir.
I am working on it.
Comment 6•2 years ago
|
||
Updated•2 years ago
|
| Assignee | ||
Updated•2 years ago
|
| Assignee | ||
Updated•2 years ago
|
Updated•2 years ago
|
| Assignee | ||
Comment 8•2 years ago
|
||
Depends on D173330
Comment 10•2 years ago
|
||
| bugherder | ||
Description
•