-
Notifications
You must be signed in to change notification settings - Fork 17
Concepts: Always ON feature flag
Pratik Bhattacharya edited this page Dec 16, 2021
·
3 revisions
When a feature has been rolled out successfully to all the users, the feature flag must return true for all users (all combination of Flight Context). To achieve that you will need to set a condition which returns true for all scenarios. You can do that by creating a Generic filter which Key as Enabled and Value as 1. The service checks for this special condition and for this condition the flag will always be evaluated to true. It is recommended that you create a new Stage/Ring, add the Enabled condition and activate that Ring.
This is how your feature flag will look like
{
"name": "Always-On-Demo",
"description": "Mail must belong to any of the configured value",
"enabled": true,
"environment": "dev",
"conditions": {
"client_filters": [
{
"name": "UserUPN",
"parameters": {
"operator": "In",
"value": "tonystark@gmail.com,jarvis@gmail.com,steverogers@gmail.com",
"isActive": "false",
"stageId": "1",
"stageName": "Ring 1",
"flightContextKey": "UserUPN"
}
},
{
"name": "Generic",
"parameters": {
"operator": "Equals",
"value": "1",
"isActive": "true",
"stageId": "2",
"stageName": "Global Rollout ring",
"flightContextKey": "Enabled"
}
}
]
}
}