Skip to content

Add limited count connection type to GraphQL

Marius Bobin requested to merge 360672-add-count-with-limit-to-jobs into master

What does this MR do and why?

Related to #360672 (closed)

Returning a full count of jobs is expensive and for anything else than a demo project will timeout. In the haml implementation we return a limited count of jobs and we need to do the same for Vue.

Screenshots or screen recordings

image

image

image

query {
  project(fullPath: "gitlab-org/gitlab") {
    jobs {
      count(limit: 150)
    }
  }
}

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Marius Bobin

Merge request reports