Allow users to define any strategies in GitLab Feature Flag system
Problem
Currently, users cannot define custom strategy or multiple strategies in GitLab Feature Flag system. This is problematic when users depend on unique context which doesn't exist predefined strategies e.g. userWithId
, gradualRolloutUserId
.
Usecase
Let's say, users want to gate features with user_id and user_group_id. In this case, users cannot use userWithId
strategy as it's not compatible with user_group_id.
The solution would be using Custom Strategy, which lets users to define strategy logic and understand both user_id and user_group_id.
Proposal
Show "Custom strategy" item in the strategy-choice dropbox and if it's selected, show textbox to input custom strategies.
Sample custom strategy
{
"name": "MyCustomStrategy",
"parameters": {
"emailList": "['foo@bar.com']"
},
"evaluation": {
"BooleanExpression": {
"property": "email",
"operator": "in"
"parameter": "emailList"
}
}
}
This page may contain information related to upcoming products, features and functionality. It is important to note that the information presented is for informational purposes only, so please do not rely on the information for purchasing or planning purposes. Just like with all projects, the items mentioned on the page are subject to change or delay, and the development, release, and timing of any products, features, or functionality remain at the sole discretion of GitLab Inc.