Skip to content

Add group_id field to GraphQL (group_type)

Jacques Erasmus requested to merge 450961-add-groupid-graphql-type into master

What does this MR do and why?

Adds a group_id field to group_type.rb for the frontend to use when adding approval rules.

See !148667 (diffs) to see it in context.

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

Submit the following query via graphql-explorer

query groupsAutocomplete() {
  groups(search: "") {
    nodes {
      groupId
    }
  }
}

The result should be a list of GroupIds

Related to #450961

Edited by Jacques Erasmus

Merge request reports