Skip to content

Update exclusions graphql endpoints to handle groups

What does this MR do and why?

Update exclusions graphql endpoints to handle groups

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.

How to set up and validate locally

Try creating and deleting groups through graphql queries/mutations. For example:

  1. Create a group
  2. Create a project in that group
  3. Create an exclusion for the project
  4. Create an create an exclusion for the group

Example queries:

mutation integrationExclusionCreate($input: IntegrationExclusionCreateInput!) {
  integrationExclusionCreate(input: $input) {
    exclusions {
      project {
        id
        name
      },
      group {
        id
        name
      }
    }
    errors
  }
}
query integrationExclusion {
  integrationExclusions(integrationName: BEYOND_IDENTITY) {
    nodes {
      project {
        name
        id
        fullPath
      }
      group {
        name
        id
      }
    }
  }
}
mutation integrationExclusionDelete($input: IntegrationExclusionDeleteInput!) {
  integrationExclusionDelete(input: $input) {
    exclusions {
      project {
        id
        name
      }
      group {
        id
        name
      } 
    }
    errors
  }
}

Related to #454372

Edited by Jerry Seto

Merge request reports