Skip to content

Add blocking merge request depenencies in GraphQL

What does this MR do and why?

This MR adds support for blocking merge request dependencies in GraphQL. This will allow users to see which merge requests are blocking a given merge request from being merged.

How to set up and validate locally

  1. Add some blocking MRs to a project in the GDK using the administrator account.
  • A good mix of private and public MRs is recommended.
  1. With a different user that can't see the private projects, go to your GraphiQL console: https://gdk.test:3443/-/graphql-explorer
  2. Make a query such as:
{
  project(fullPath: "flightjs/Flight [your project name here]") {
    mergeRequest(iid: "7 [the mr's iid here]") {
      blockingMergeRequests {
        hiddenCount
        totalCount
        visibleMergeRequests {
          iid
          title
        }
      }
    }
  }
}
  1. Confirm numbers and MR list are as expected!

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 MRs

  • #390947 - Add support for blocking merge request dependencies

This description was generated for revision 6efa2afd using AI

Edited by Gary Holtz

Merge request reports