Improve instance runners toggle link for subgroups
Background
This is a follow up of #349794 (closed).
When shared runners are disabled in an ancestor group, we provide a link in it's sub-groups and projects settings, so users can find the setting to Enable shared runners in their parent group.
Group view | Project view |
---|---|
Description
However, this link is only to the parent group and does not consider deeper nesting of sub-groups. Users that have access to an upper level of settings may want to directly find the setting for the group that can change it.
Example:
Given three levels:
-
gitLab-org
- settings can be: "Shared runners turned off", and "Allow to override turned off"
-
gitLab-org/team-engineering
- settings will be: "Shared runners = disabled" and "Allow to override = disabled", links to
gitLab-org
settings
- settings will be: "Shared runners = disabled" and "Allow to override = disabled", links to
-
gitLab-org/team-engineering/my-project
- settings will be: "Shared runners = disabled" and "Allow to override = disabled", links to
gitLab-org/team-engineering
settings
- settings will be: "Shared runners = disabled" and "Allow to override = disabled", links to
For a user that visits gitLab-org/team-engineering/my-project
, they will only see a link to gitLab-org/team-engineering
to change the setting, will have to navigate twice to get to the correct group.