Skip to content

Fix GraphQL userNotesCount when not logged in

What does this MR do and why?

Fix GraphQL userNotesCount when not logged in

Changelog: fixed

Screenshots or screen recordings

Before:

image

After:

image

How to set up and validate locally

  1. Find a group with some issues
  2. While still logged in, run a GraphQL query to ensure data is coming back http://gdk.test:3000/-/graphql-explorer:
     query {
       group(fullPath: "flightjs") {
         issues(first: 5) {
           nodes {
             id
             iid
             webUrl
             userNotesCount
           }
         }
       }
     }
  3. Now logout and run the same query 🤞

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 to #426016

Edited by Lee Tickett

Merge request reports

Loading