Unable to create feature flags with userIds
Summary
Cannot create a feature flag whenever there is userIds rollout strategy
Steps to reproduce
- Create a new project
- Click "Feature Flags" under the "Operations" in side Menu
- Click "New feature flags"
- Enter "ff1" in Name
- Change the Rollout strategy to "User IDs"
- Enter "qa" in the textbox under "User IDs"
- Click "Create feature flag"
Then, you will see this error at the top: Scopes strategies parameters are invalid
Example Project
https://gitlab.com/kelvinhome/my-test-project/-/feature_flags/new
What is the current bug behavior?
Cannot create a feature flag with "User IDs" Rollout strategy
What is the expected correct behavior?
You can create the feature flag with "User IDs" Rollout strategy
Relevant logs and/or screenshots
https://gitlab.com/kelvinhome/my-test-project/blob/master/Screen_Shot_2020-01-02_at_3.15.36_PM.png
Output of checks
This bug happens on GitLab.com
Results of GitLab environment info
Results of GitLab application Check
Possible fixes
It seems that the "Create feature flag" action sends an extra strategy {"name":"userWithId","parameters":{}} to the server which the server returns a 400 error.