Sorting discrepancies for new environment page

What does this MR do and why?

This MR adds a sorting component to the deployments list. It allows sorting by createdAt and finishedAt. When sorting by finishedAt, we show only the deployments that have actually finished, thus they are in the SUCCESS state.

References

Please include cross links to any resources that are relevant to this MR This will give reviewers and future readers helpful context to give an efficient review of the changes introduced.

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-10-25_at_22.49.17 Screen Recording 2024-10-28 at 16.16.56.mov
Viewport size After
xs (<576px) Screenshot 2024-10-28 at 16.19.01.png
md (>=768px) Screenshot 2024-10-28 at 16.17.56.png
lg (>=992px) Screenshot 2024-10-28 at 16.18.07.png

How to set up and validate locally

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

  1. Create some deployments using this .gitlab-ci.yaml.
  2. Visit Operate -> Environments and select an environment.
  3. See the list of deployments related to the selected environment.
  4. Verify sorting by "created on" and "finished on".

Related to #391220 (closed)

Edited by Anna Vovchenko

Merge request reports

Loading