Reuse jexl expressions and Nimbus targeting work for featuregates
Categories
(Toolkit :: FeatureGate, task, P2)
Tracking
()
Tracking | Status | |
---|---|---|
firefox128 | --- | fixed |
People
(Reporter: Gijs, Assigned: Gijs)
References
(Blocks 1 open bug)
Details
Attachments
(1 file, 1 obsolete file)
It doesn't really make sense to have an additional way of specifying whether a feature/experiment/toggle/whatever is available on a given build specific to features.toml
and the FeatureGate
code. Although it's not surprising that, when this was built, it relied on the ifdef mechanisms that we use for C++/JS that's part of the browser, there doesn't seem to be a reason not to switch this over to the JEXL based checks we use for Nimbus.
Longer term this may help us to move the consumers of FeatureGate to Nimbus altogether, although that is a larger project. In the interim, this is about 200 lines of net code removal so that seems useful in and of itself.
Note that at least in the interim, the default value of a given FeatureGate must match the default value of its pref, which is determined at compile-time, and so this doesn't immediately yield more expressiveness (e.g. we can't immediately filter on geo or other runtime characteristics). We'll likely investigate how to change this in future. However, it does yield more expressiveness for where we expose features in this way, which is desirable especially on non-nightly branches. Either way this is about 200 lines of code removal. 🎉
Assignee | ||
Comment 1•2 months ago
|
||
Assignee | ||
Updated•2 months ago
|
Pushed by gijskruitbosch@gmail.com: https://hg.mozilla.org/integration/autoland/rev/0a74adb44160 make FeatureGate 'features to try' page use the same jexl filtering as Nimbus, r=barret,settings-reviewers,mconley
Assignee | ||
Comment 3•2 months ago
|
||
Pushed by smolnar@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/9654aaf21d82 bustage fix: set defaults for parsed feature gates correctly in python generation now that properties have been renamed. CLOSED TREE
Comment 5•2 months ago
|
||
Backed out for causing xpc failures @ toolkit/components/featuregates/test/unit/test_FeatureGate.js
Backout link: https://hg.mozilla.org/integration/autoland/rev/abdfc5289589473083a6cfc3ccb8657f751d20a4
Updated•2 months ago
|
Assignee | ||
Comment 6•1 month ago
|
||
Pushed by gijskruitbosch@gmail.com: https://hg.mozilla.org/integration/autoland/rev/1974e2a74ac3 make FeatureGate 'features to try' page use the same jexl filtering as Nimbus, r=barret,settings-reviewers,mconley
Comment 8•1 month ago
|
||
bugherder |
Updated•4 days ago
|
Description
•