[Feature Flag] API didnt return the list name/id
Summary
Steps to reproduce
Hi,
I used the Feature Flag feature, with his API.
I add a user list strategy to a feature flag.
When I request this endpoint GET /projects/:id/feature_flags
, I dont receive the id and name of user list in parameters field. It's empty
But, when I used ids of users, I received the list of filled ids in parameters.
May it should be fixed.
Example Project
What is the current bug behavior?
What is the expected correct behavior?
Received the user_list id in field parameters
Relevant logs and/or screenshots
[
{
"name":"poc_millenium",
"description":"The Millennium Falcon fature flag",
"active":true,
"version":"new_version_flag",
"created_at":"2023-07-13T07:53:57.609Z",
"updated_at":"2023-07-18T13:11:24.639Z",
"scopes":[
],
"strategies":[
{
"id":123456,
"name":"userWithId",
"parameters":{
"userIds":"anakin@xxx.com,m.auriau@xxx.com"
},
"scopes":[
{
"id":123456,
"environment_scope":"*"
}
]
},
{
"id":123456,
"name":"gitlabUserList",
"parameters":{
/** it's empty :/ **/
},
"scopes":[
{
"id":123456,
"environment_scope":"recette"
}
]
}
]
},
{
"name":"poc_xwing",
"description":"",
"active":true,
"version":"new_version_flag",
"created_at":"2023-07-17T14:26:59.378Z",
"updated_at":"2023-07-17T14:26:59.378Z",
"scopes":[
],
"strategies":[
{
"id":123456,
"name":"gitlabUserList",
"parameters":{
},
"scopes":[
{
"id":123456,
"environment_scope":"*"
}
]
}
]
}
]
Output of checks
Results of GitLab environment info
Expand for output related to GitLab environment info
(For installations with omnibus-gitlab package run and paste the output of: `sudo gitlab-rake gitlab:env:info`) (For installations from source run and paste the output of: `sudo -u git -H bundle exec rake gitlab:env:info RAILS_ENV=production`)
Results of GitLab application Check
Expand for output related to the GitLab application check
(For installations with omnibus-gitlab package run and paste the output of:
sudo gitlab-rake gitlab:check SANITIZE=true
)(For installations from source run and paste the output of:
sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production SANITIZE=true
)(we will only investigate if the tests are passing)
Possible fixes
In the meantime, I'm going to use the list of ids instead of the list of users