Define feature flag and policies for "New Runner creation workflow" for groups and projects
Background
In #387808 (closed) we implemented the new runner creation workflow for Instance runners, so admins can create runners using the new creation workflow: #383139 (closed).
More work is needed to extend GraphQL APIs needed for groups and projects.
Description
We should create a new feature flag and update our policies to create this mutation.
- Create a new feature flag
create_runner_workflow_for_namespace
that can be restricted to groups that will have the mutation enabled. - Update our policies at
app/policies/group_policy.rb
andapp/policies/project_policy.rb
to takecreate_runner_workflow_for_namespace
into account instead of the globalcreate_runner_workflow
which can only be used by admins.
Edited by Miguel Rincon