Skip to content

Add ability to update compliance frameworks via GraphQL

Max Woolf requested to merge 255340-update-compliance-framework into master

What does this MR do?

  • Adds a new ComplianceFramework::UpdateService class to manage updating compliance frameworks.
  • Adds a new GraphQL mutation, updateComplianceFramework to update compliance frameworks.
  • Adds specs for the service, mutation and feature specs.
  • Behind a feature flag, :ff_custom_compliance_frameworks.

Example GraphQL Mutation Usage

mutation {
  updateComplianceFramework(input: {
    id: "gid://gitlab/ComplianceManagement::Framework/14",
    name: "new name ax1!"
  }) {
    errors
    complianceFramework {
      id
      name
      color
      description
    }
  }
}

Screenshots (strongly suggested)

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Security

If this MR contains changes to processing or storing of credentials or tokens, authorization and authentication methods and other items described in the security review guidelines:

  • Label as security and @ mention @gitlab-com/gl-security/appsec
  • The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • Security reports checked/validated by a reviewer from the AppSec team

Related to #255340 (closed)

Edited by Max Woolf

Merge request reports