This repository has been archived by the owner on Jan 29, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
EXP-1865 add isRollout boolean property to Experiment type
Because: * we want to implement support for an isRollout flag in experiments This commit: * adds an isRollout boolean to the NimbusExperiment type * introduces example recipes for testing * adds a test for boolean property schema validation for experiments
- Loading branch information
Showing
5 changed files
with
170 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
{ | ||
"appId": "firefox-desktop", | ||
"appName": "firefox_desktop", | ||
"application": "firefox-desktop", | ||
"arguments": {}, | ||
"isRollout": true, | ||
"branches": [ | ||
{ | ||
"feature": { | ||
"enabled": true, | ||
"featureId": "urlbar", | ||
"value": { | ||
"firefoxSuggestLabelsEnabled": true, | ||
"quickSuggestEnabled": false, | ||
"quickSuggestNonSponsoredIndex": -1, | ||
"quickSuggestShouldShowOnboardingDialog": true, | ||
"quickSuggestShowOnboardingDialogAfterNRestarts": 2, | ||
"quickSuggestSponsoredIndex": -1 | ||
} | ||
}, | ||
"ratio": 1, | ||
"slug": "control" | ||
} | ||
], | ||
"bucketConfig": { | ||
"count": 1700, | ||
"namespace": "urlbar-21-rollout", | ||
"randomizationUnit": "normandy_id", | ||
"start": 7300, | ||
"total": 10000 | ||
}, | ||
"channel": "release", | ||
"endDate": null, | ||
"featureIds": ["urlbar"], | ||
"id": "desktop-rollout-firefox-suggest-history-rollout-3", | ||
"isEnrollmentPaused": true, | ||
"outcomes": [], | ||
"probeSets": [], | ||
"proposedDuration": 28, | ||
"proposedEnrollment": 7, | ||
"referenceBranch": "control", | ||
"schemaVersion": "1.7.0", | ||
"slug": "desktop-rollout-example-firefox-suggest-history-rollout-3", | ||
"startDate": "2021-08-24", | ||
"targeting": "browserSettings.update.channel == \"release\" && version|versionCompare('89.!') >= 0 && 'app.shield.optoutstudies.enabled'|preferenceValue && 'browser.urlbar.showSearchSuggestionsFirst'|preferenceValue && locale in ['en-CA', 'en-GB', 'en-US'] && region in ['US']", | ||
"userFacingDescription": "a UX treatment of history suggestions from Firefox", | ||
"userFacingName": "Desktop Rollout Example Firefox Suggest History Rollout 3" | ||
} |
54 changes: 54 additions & 0 deletions
54
data/experiment-recipe-samples/mobile-android-rollout.json
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,54 @@ | ||
{ | ||
"appId": "org.mozilla.firefox", | ||
"appName": "fenix", | ||
"application": "org.mozilla.firefox", | ||
"arguments": {}, | ||
"isRollout": true, | ||
"branches": [ | ||
{ | ||
"feature": { | ||
"enabled": true, | ||
"featureId": "homescreen", | ||
"value": { | ||
"sections-enabled": { | ||
"jumpBackIn": true, | ||
"pocket": true, | ||
"recentExplorations": true, | ||
"recentlySaved": true, | ||
"topSites": true | ||
} | ||
} | ||
}, | ||
"ratio": 1, | ||
"slug": "control" | ||
} | ||
], | ||
"bucketConfig": { | ||
"count": 9000, | ||
"namespace": "fenix-homescreen-release-2-rollout", | ||
"randomizationUnit": "nimbus_id", | ||
"start": 0, | ||
"total": 10000 | ||
}, | ||
"channel": "release", | ||
"endDate": null, | ||
"featureIds": ["homescreen"], | ||
"id": "mobile-rollout-example-all-users-home-screen-android-production", | ||
"isEnrollmentPaused": false, | ||
"outcomes": [ | ||
{ | ||
"priority": "secondary", | ||
"slug": "default-browser" | ||
} | ||
], | ||
"probeSets": [], | ||
"proposedDuration": 45, | ||
"proposedEnrollment": 28, | ||
"referenceBranch": "control", | ||
"schemaVersion": "1.7.0", | ||
"slug": "mobile-rollout-example-all-users-home-screen-android-production", | ||
"startDate": null, | ||
"targeting": "true", | ||
"userFacingDescription": "We want to understand the impact of the new Home screen on our users, to be measured by increased usage.", | ||
"userFacingName": "Mobile Rollout Example All Users Home Screen Android Production" | ||
} |
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,52 @@ | ||
{ | ||
"appId": "org.mozilla.ios.Firefox", | ||
"appName": "firefox_ios", | ||
"application": "org.mozilla.ios.Firefox", | ||
"arguments": {}, | ||
"isRollout": true, | ||
"branches": [ | ||
{ | ||
"feature": { | ||
"enabled": true, | ||
"featureId": "homescreen", | ||
"value": { | ||
"sections-enabled": { | ||
"jumpBackIn": true, | ||
"libraryShortcuts": false, | ||
"recentlySaved": true | ||
} | ||
} | ||
}, | ||
"ratio": 1, | ||
"slug": "control" | ||
} | ||
], | ||
"bucketConfig": { | ||
"count": 6000, | ||
"namespace": "ios-homescreen-release-2-rollout", | ||
"randomizationUnit": "nimbus_id", | ||
"start": 0, | ||
"total": 10000 | ||
}, | ||
"channel": "release", | ||
"endDate": null, | ||
"featureIds": ["homescreen"], | ||
"id": "mobile-rollout-example-all-users-homescreen-ios-production", | ||
"isEnrollmentPaused": false, | ||
"outcomes": [ | ||
{ | ||
"priority": "secondary", | ||
"slug": "default_browser" | ||
} | ||
], | ||
"probeSets": [], | ||
"proposedDuration": 28, | ||
"proposedEnrollment": 7, | ||
"referenceBranch": "control", | ||
"schemaVersion": "1.7.0", | ||
"slug": "mobile-rollout-example-all-users-homescreen-ios-production", | ||
"startDate": null, | ||
"targeting": "true", | ||
"userFacingDescription": "We want to understand the impact of the new Home screen on our users, to be measured by increased usage.", | ||
"userFacingName": "Mobile Rollout Example All Users HomeScreen iOS Production" | ||
} |
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