Closed Bug 1639422 Opened 4 years ago Closed 4 years ago

ExperimentAPI - add an API to expose the non-enrolled experiment branches

Categories

(Firefox :: Messaging System, enhancement)

enhancement

Tracking

()

RESOLVED FIXED
Firefox 78
Tracking Status
firefox77 --- wontfix
firefox78 --- fixed

People

(Reporter: nanj, Assigned: nanj)

References

Details

Attachments

(1 file)

ExperimentAPI currently doesn't have an API to fetch the experiment recipe for a given experiment group, nor does it support fetching the non-enrolled experiment branch(es). The API consumers would have to query the underlying store (i.e. RemoteSetting) for that information.

This is not ideal since such implementation detail should not be leaked to the consumers. Rather, ExperimentAPI should be the interface between the Experiment Manager and consumers.

The first consumer of this API could be the reach/trigger ping. Specifically, the reach ping has already been querying the RemoteSettings store to fetch the branch information in ExperimentManager.jsm. Doing so would be sub-optimal for the trigger ping as those trigger listeners are installed in the ASRouter. Having an API for that would be much preferred.

Blocks: 1634481
Assignee: nobody → najiang
Status: NEW → ASSIGNED
Pushed by najiang@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/bb5ecd68c9cf Add an API to expose the experiment recipe r=k88hudson
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 78

[Tracking Requested - why for this release]:

This is the dependency of the uplift candidate https://bugzilla.mozilla.org/show_bug.cgi?id=1634481#c7

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: