Enable Shared Runners in parent-group should revert this option in sub-groups and projects to the previous state
Summary
If Shared Runners
were disabled in the group level, then re-enabled, all projects and sub-groups under the parent group still have Shared Runners
disabled and require manual actions to enable this option.
Steps to reproduce
- Create a parent group and verify if
Enable shared runners for this group
is switched On - Under the parent group, create a project
- Under the parent group, create a sub-group
- In the parent group > Settings > CI/CD > Runners, switch OFF
Enable shared runners for this group
and then swith it ON
Example Project
What is the current bug behavior?
All sub-groups and projects under the parent group, will have Enable shared runners for this group
switched OFF
This requires manual actions on every sub-group and project to enabled Shared Runners
What is the expected correct behavior?
If the option Enable shared runners for this group
was enabled in sub-groups and projects, this should revert back automatically if that option was enabled in the parent group.
In addition, having an option similar to "Re-enable shared runners for sub-groups and projects if this was previously enabled"
So that the user can decide whether they want to keep this option disabled for sub-groups and projects, or they want to revert the previous state.
Relevant logs and/or screenshots
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)