Skip to content

Update the deployments tab title to show the count

What does this MR do and why?

This MR adds the deployment count to the deployments history tab. It uses the newly added deployments_display_count field. The field returns an actual count up to 999 deployments and then returns 999+.

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

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

Before After
Screenshot_2024-03-18_at_17.27.50 Screenshot_2024-03-18_at_17.28.09

In case of more than 1000 deployments, it will look like this:

Screenshot_2024-03-18_at_17.29.40

In case there's no deployment, it will look like this:

Screenshot_2024-03-18_at_17.35.47

How to set up and validate locally

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

  1. Visit Operate -> Environments and create an environment.
  2. Create a deployment for the environment. To simplify that you could clone this project: https://gitlab.com/andrei.zubov/pipelinestest and run a few deployment pipelines.
  3. Click on the newly created environment title to navigate to the environment detail page.
  4. Verify the deployments list.

Related to #442820 (closed)

Edited by Anna Vovchenko

Merge request reports