Closed
Bug 1440779
Opened 7 years ago
Closed 6 years ago
Implement preference-experiment action as an internal action
Categories
(Firefox :: Normandy Client, enhancement, P3)
Firefox
Normandy Client
Tracking
()
RESOLVED
FIXED
Firefox 66
Tracking | Status | |
---|---|---|
firefox66 | --- | fixed |
People
(Reporter: mythmon, Assigned: glasserc)
References
(Blocks 1 open bug)
Details
Attachments
(6 files)
This bug covers converting the preference-experiment action [0] an internal action (see bug 1436129).
[0]: https://github.com/mozilla/normandy/tree/dfd3ff3edc70ac04f8f043e040f9190854f80021/recipe-server/client/actions/preference-experiment
Reporter | ||
Updated•7 years ago
|
Summary: Implement show-heartbeat action as an internal action → Implement preference-experiment action as an internal action
Reporter | ||
Updated•6 years ago
|
Assignee: nobody → eglassercamp
Assignee | ||
Comment 1•6 years ago
|
||
Having _preExecute be called in the constructor makes it hard to test
it, but because it's a lifecycle hook that subclasses are intended to
override, testing it is very natural.
While we're here, move the initialization of AddonStudyAction from
_preExecute to the constructor, since it doesn't really make sense for
AddonStudyAction to be constructed without all members initialized.
Assignee | ||
Comment 2•6 years ago
|
||
Reading test logs is a bit baffling because all tests are called
"wrappedTestFunction". Try to imitate a Pythonic decorator and
make the returned function have the same name as the old one.
Function.prototype.name is a readonly property, but MDN says you can
set a function's name using Object.defineProperty, so that's what we
do.
Depends on D13572
Assignee | ||
Comment 3•6 years ago
|
||
Depends on D13573
Assignee | ||
Comment 4•6 years ago
|
||
I think this should have been here before but it wasn't.
To make it easier to distinguish recipes generated by
preferenceStudyFactory, give them a unique name with the unused
_preferenceStudyFactoryId.
Depends on D13574
Assignee | ||
Comment 5•6 years ago
|
||
Depends on D13575
Assignee | ||
Comment 6•6 years ago
|
||
Depends on D13576
Assignee | ||
Comment 7•6 years ago
|
||
Assignee | ||
Comment 8•6 years ago
|
||
Rebased onto current master. https://treeherder.mozilla.org/#/jobs?repo=try&revision=1a21c4aec784dc1592a31998f60428534322de4f
Assignee | ||
Comment 9•6 years ago
|
||
Oops, eslint caught something obvious. Trying again.. https://treeherder.mozilla.org/#/jobs?repo=try&revision=1a21c4aec784dc1592a31998f60428534322de4f
Assignee | ||
Updated•6 years ago
|
Keywords: checkin-needed
Comment 10•6 years ago
|
||
Pushed by rgurzau@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/ecb4a2b0d498
BaseAction: move _preExecute call out of constructor r=mythmon,Gijs
https://hg.mozilla.org/integration/autoland/rev/ece7d0900e93
preserve function name through decoration r=mythmon,Gijs
https://hg.mozilla.org/integration/autoland/rev/d89944340ed8
Add PreferenceExperimentAction r=mythmon,Gijs
https://hg.mozilla.org/integration/autoland/rev/3b87bd13f013
shut off experiments when the optoutstudies pref is disabled r=mythmon,Gijs
https://hg.mozilla.org/integration/autoland/rev/1d864f34b724
hook up in-tree version of PreferenceExperimentAction r=mythmon,Gijs
https://hg.mozilla.org/integration/autoland/rev/8dc5062c2711
Refactor unenrollment to use Promise.all r=Gijs
Keywords: checkin-needed
Comment 11•6 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/ecb4a2b0d498
https://hg.mozilla.org/mozilla-central/rev/ece7d0900e93
https://hg.mozilla.org/mozilla-central/rev/d89944340ed8
https://hg.mozilla.org/mozilla-central/rev/3b87bd13f013
https://hg.mozilla.org/mozilla-central/rev/1d864f34b724
https://hg.mozilla.org/mozilla-central/rev/8dc5062c2711
Status: NEW → RESOLVED
Closed: 6 years ago
status-firefox66:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 66
Updated•6 years ago
|
status-firefox60:
affected → ---
You need to log in
before you can comment on or make changes to this bug.
Description
•