Allow updating the shared runners setting via GraphQL
What does this MR do and why?
This change allows users that belong to a custom role with the admin_runners
permission enabled to be able to execute the Mutation.groupUpdate
GraphQL Mutation in order to change the shared_runners_setting
on the target group.
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 |
---|---|
How to set up and validate locally
- In rails console enable the experiment fully
Feature.enable(:custom_ability_admin_runners)
- Visit the GraphQL Explorer at
http://127.0.0.1:3000-/graphql-explorer
- Execute the
Mutation.groupUpdate
Mutation to change thesharedRunnersSetting
mutation updateGroup($fullPath: ID!){
groupUpdate(input: {fullPath: $fullPath, sharedRunnersSetting: DISABLED_AND_OVERRIDABLE}) {
errors
group{
id
sharedRunnersSetting
}
}
}
Edited by mo khan