Skip to content

Frontend: Add mergeRequests and issues to CiCatalogResource

What does this MR do and why?

Related to #415499 (closed)

Updating the ci_catalog_details query to use openMergeRequestsCount and openIssuesCount instead of the statistics object.

Screenshots or screen recordings

merge_requests_issues

How to set up and validate locally

Prerequisites

  1. Enable the feature flag Feature.enable(:ci_namespace_catalog_experimental)
  2. To set projects as a ci catalog resource, follow the instructions in this MR

To Test

  1. Navigate to http://127.0.0.1:3000/flightjs/Flight/-/ci/catalog/resources/1 (replace project path with your project of choice)
  2. You should be able to see the details page
  3. View the "About" section in the right panel and insure that merge request and issues count are rendered

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 Briley Sandlin

Merge request reports