Skip to content

Add `admin_runners` custom role permission

mo khan requested to merge mokhax/442851/admin_runners into master

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.

#442851 (closed)

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
Before: Project Page Before: Project CI/CD Settings After: Create role After: Roles and Permissions After: Project Page After: Project CI/CD Settings After: Create Project Runner After: Group CI/CD Settings After: Enable/Disable instance runners for Group

How to set up and validate locally

  1. In rails console enable the experiment fully
    Feature.enable(:custom_ability_admin_runners)
  2. Create a role with the Admin Runners permission enabled.
  3. Assign the new role to a new user
  4. Login with the new user
  5. Visit any project page and ensure that the Settings menu item appears in the navigation.
  6. Click on the Settings menu and ensure that the CI/CD menu item appears.
  7. Click on the CI/CD menu.
  8. Ensure that the Runners section appears.
  9. Click on Expand
  10. Ensure that the list of runners are displayed.
Edited by mo khan

Merge request reports

Loading