Skip to content

GraphQL: Add CI jobs statistics types

What does this MR do and why?

Describe in detail what your merge request does and why.

This MR adds a couple of GraphQL types which will be used in #377963 (closed) to expose job queuing statistics.

Implementation overview

To avoid a huge MR at the end, I'm breaking up the work into several MRs to make reviews easier for everyone. The work is divided as follows:

step MR
1 GraphQL: Add CI jobs statistics types (!107743 - merged)
2 GraphQL: Use specific connection type for runne... (!107744 - merged)
3 Add :read_jobs_statistics to GlobalPolicy (!107747 - merged)
4 GraphQL: Expose jobs statistics in CiRunnersCon... (!107694 - merged)

The test coverage for the 2 types added here will be added in an upcoming MR (!107694 (merged)) that leverages them.

Part of #377963 (closed)

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

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 Pedro Pombeiro

Merge request reports

Loading