Skip to content

Exposing notes count in GraphQL

Adam Hegyi requested to merge 233942-expose-notes-count-for-mr-in-graphql into master

What does this MR do?

This MR exposes notes count for merge requests in GraphQL. The count will be used on the MR analytics page: https://gitlab.com/gitlab-org/gitlab/-/analytics/merge_request_analytics

Query

{
  project(fullPath:"gitlab-org/gitlab") {
    mergeRequests {
      nodes {
        iid
        notes {
          count
        }
      }
    }
  }
}

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

Belongs to #233942 (closed)

Edited by Adam Hegyi

Merge request reports