Add `admin_runners` custom role permission
What does this MR do and why?
This change introduces a new custom permission to allow users the ability to manage runners for a group or project.
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Screenshots or screen recordings
Before | After |
---|---|
After: Enable/Disable instance runners for Group |
How to set up and validate locally
- In rails console enable the experiment fully
Feature.enable(:custom_ability_admin_runners)
- Create a role with the
Admin Runners
permission enabled. - Assign the new role to a new user
- Login with the new user
- Visit any project page and ensure that the
Settings
menu item appears in the navigation. - Click on the
Settings
menu and ensure that theCI/CD
menu item appears. - Click on the
CI/CD
menu. - Ensure that the
Runners
section appears. - Click on
Expand
- Ensure that the list of runners are displayed.
Edited by mo khan