Skip to content

Add min_access_level argument to Projects GraphQL query

What does this MR do and why?

Needed for &13066 where we are moving Your work -> Projects to Vue and fetching the data with GraphQL. We need to provide a Role filter in the UI so we are adding a min_access_level argument to the Projects GraphQL query.

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

  1. Go to http://gdk.test:3000/-/graphql-explorer
  2. Run the following
query getProjects {
  projects(membership: true, minAccessLevel: OWNER) {
    nodes {
      nameWithNamespace
      maxAccessLevel {
        humanAccess
      }
    }
  }
}
Edited by Peter Hegman

Merge request reports

Loading