Skip to content

Commit a4443d3

Browse files
committed
update for PR feedback
1 parent 6991d7e commit a4443d3

File tree

3 files changed

+11
-25
lines changed

3 files changed

+11
-25
lines changed

components/support/nimbus-fml/fixtures/fe/misc-features.yaml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,12 @@ channels:
1111
- debug
1212
features:
1313
onboarding:
14-
description: A feature containing a field with pref
14+
description: A feature containing a field with pref-key
1515
variables:
1616
enabled:
1717
description: If true, enable new style onboarding.
1818
type: Boolean
19-
pref:
20-
key: enrollment_enabled
21-
branch: default
19+
pref-key: enrollment_enabled
2220
default: false
2321
messaging:
2422
description: A feature allowing coenrollment

components/support/nimbus-fml/fixtures/fe/pref_overrides.fml.yaml

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -16,28 +16,20 @@ features:
1616
my-boolean:
1717
type: Boolean
1818
description: A boolean
19-
pref:
20-
key: my-boolean-pref-key
21-
branch: default
19+
pref-key: my-boolean-pref-key
2220
default: false
2321
my-int:
2422
type: Int
2523
description: An Int
26-
pref:
27-
key: my-int-pref-key
28-
branch: default
24+
pref-key: my-int-pref-key
2925
default: 0
3026
my-string:
3127
type: String
3228
description: A String
33-
pref:
34-
key: my-string-pref-key
35-
branch: default
29+
pref-key: my-string-pref-key
3630
default: from manifest
3731
my-text:
3832
type: Text
3933
description: A Text
40-
pref:
41-
key: my-text-pref-key
42-
branch: default
34+
pref-key: my-text-pref-key
4335
default: from manifest

components/support/nimbus-fml/src/schema/validator.rs

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,24 +13,20 @@ use std::collections::{BTreeMap, HashSet};
1313

1414
const DISALLOWED_PREFS: &[(&str, &str)] = &[
1515
(
16-
r#"app\.shield\.optoutstudies\.enabled"#,
16+
r#"^app\.shield\.optoutstudies\.enabled$"#,
1717
"disabling Nimbus causes immediate unenrollment",
1818
),
1919
(
20-
r#"datareporting\.healthreport\.uploadEnabled"#,
20+
r#"^datareporting\.healthreport\.uploadEnabled$"#,
2121
"disabling telemetry causes immediate unenrollment",
2222
),
2323
(
24-
r#"services\.settings\.server"#,
24+
r#"^services\.settings\.server$"#,
2525
"changing the Remote Settings endpoint will break clients",
2626
),
27+
(r#"^nimbus\.debug$"#, "internal Nimbus preference for QA"),
2728
(
28-
r#"messaging-system\.rsexperimentloader\.collection"#,
29-
"changing the Nimbus collection will break clients",
30-
),
31-
(r#"nimbus\.debug"#, "internal Nimbus preference for QA"),
32-
(
33-
r#"security\.turn_off_all_security_so_that_viruses_can_take_over_this_computer"#,
29+
r#"^security\.turn_off_all_security_so_that_viruses_can_take_over_this_computer$"#,
3430
"this pref is automation-only and is unsafe to enable outside tests",
3531
),
3632
];

0 commit comments

Comments
 (0)