Skip to content

Draft: Update mutation to create security policy project for group

What does this MR do and why?

This change modifies mutation to create security policy project. It changes the name of the argument from projectPath (and deprecates it) to fullPath. And allows to create security policy project for a group (with feature flag enabled).

How to set up and validate locally

  1. Create a new group.
  2. Enable feature flag for your group in rails console: Feature.enable(:group_level_security_policies, group)
  3. Go to GraphQL Explorer and run to create project to your group:
mutation {
  securityPolicyProjectCreate(input: { fullPath: "your-group" }) {
    errors
    project {
      id
    }
  }
}

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #347069 (closed)

Edited by Alan (Maciej) Paruszewski

Merge request reports