Closed Bug 1896187 Opened 2 months ago Closed 1 month ago

Reuse jexl expressions and Nimbus targeting work for featuregates

Categories

(Toolkit :: FeatureGate, task, P2)

Desktop
All
task

Tracking

()

RESOLVED FIXED
128 Branch
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. 🎉

Severity: -- → N/A
Priority: -- → P2
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
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
Attachment #9402853 - Attachment is obsolete: true
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
Status: ASSIGNED → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED
Target Milestone: --- → 128 Branch
Regressions: 1900963
Component: Settings UI → FeatureGate
Product: Firefox → Toolkit
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: