Skip to content

Update pipelines badge count in MR pipelines

Frédéric Caplette requested to merge fc-mr-pipelines-update-badge-count into master

What does this MR do and why?

This is behind a disabled FF mr_pipelines_graphql.

As part of our effort to migrate the Merge request page pipelines tab to GraphQL, we are now updating the tab count when new pipelines are fetched / created.

In this state:

  1. Running a new pipeline will update the pipelines count in the tab
  2. Manual actions dropdown does not render. This will be implemented in: #467551
  3. no mini graph as this will be implemented in: #419725
  4. No pagination as this will be implemented in: #423282

For more details, you can check the epic: &11080

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

Screen_Recording_2024-06-14_at_1.11.04_PM

How to set up and validate locally

  1. Make sure you have runners set up
  2. Enable the feature flag mr_pipelines_graphql
  3. Create a merge request
  4. Go to the MR page
  5. Go to the pipelines tab
  6. Check the current count of pipelines in the tab
  7. Use the "Run pipeline" button
  8. Wait for the new pipeline to be created
  9. Notice the count goes up
Edited by Frédéric Caplette

Merge request reports