Project settings permission toggles cause accidental change in access level
Related to https://gitlab.com/gitlab-org/gitlab/-/issues/492317#note_2163216308 (internal link)
Steps to reproduce
- Create a private project
- Go to that project -> Settings -> General -> Visibility, project features, permissions
- Toggle the
Issuestoggle off then back on - Save the page.
- The access level will have changed from
20to10by accident
Implementation guide
There is something funky going on with the logic in https://gitlab.com/gitlab-org/gitlab/-/blob/master/app/assets/javascripts/pages/projects/shared/permissions/components/project_feature_setting.vue#L72. We may need to keep track of the initial value of the value prop and then change back to that if it gets toggled back on. This will take a bit of digging. Weighting a 3 because there are unknowns.
Edited by Peter Hegman