-
Notifications
You must be signed in to change notification settings - Fork 190
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(nimbus): Add firefox_labs_group field (#11899)
Because: - We need to expose the firefoxLabsGroup field on experiments; and - there is a typo in the `isFirefoxLabsOptIn` description This commit: - fixes the typo - adds the firefox_labs_group field to the NimbusExperiment model; and - exposes the field to the v6 and v8 APIs. Fixes #11778 Fixes #11896
- Loading branch information
Showing
13 changed files
with
111 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
56 changes: 56 additions & 0 deletions
56
.../experimenter/experiments/migrations/0275_nimbusexperiment_firefox_labs_group_and_more.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
# Generated by Django 5.1.1 on 2024-12-06 00:48 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("experiments", "0274_nimbusbranch_firefox_labs_title_and_more"), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name="nimbusexperiment", | ||
name="firefox_labs_group", | ||
field=models.CharField( | ||
blank=True, | ||
choices=[ | ||
( | ||
"experimental-features-group-customize-browsing", | ||
"Customize Browsing", | ||
), | ||
("experimental-features-group-webpage-display", "Webpage Display"), | ||
("experimental-features-group-developer-tools", "Developer Tools"), | ||
], | ||
max_length=255, | ||
null=True, | ||
verbose_name="The group this should appear under in Firefox Labs", | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name="nimbusexperiment", | ||
name="firefox_labs_description", | ||
field=models.TextField( | ||
blank=True, | ||
null=True, | ||
verbose_name="The description to display in Firefox Labs (Fluent ID)", | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name="nimbusexperiment", | ||
name="firefox_labs_title", | ||
field=models.TextField( | ||
blank=True, | ||
null=True, | ||
verbose_name="The title to display in Firefox Labs (Fluent ID)", | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name="nimbusexperiment", | ||
name="is_firefox_labs_opt_in", | ||
field=models.BooleanField( | ||
default=False, verbose_name="Is Experiment a Firefox Labs Opt-In?" | ||
), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters