Skip to content

fix: reorder pipelines to fix GitLab ordering issue

Tomas Vik requested to merge 569-fix-pipeline-order into main

This bug Pipelines page shows invalid YAML errors in fro... (gitlab#344853) breaks "latest first" ordering of pipelines for MR.

The extension depends on this ordering to show the status of the latest pipeline. This comment describes how the ordering issue affects the extension #569 (comment 1386657693).

This MR introduces a hotfix that reorders the first page of pipelines and returns the latest one based on iid.

This hotfix is not a complete solution. If there were more than ~25 pipelines with invalid yaml syntax in .gitlab-ci, the first page wouldn't contain the latest pipeline. But it should work in 99% cases.

This hotfix can be reverted once Pipelines page shows invalid YAML errors in fro... (gitlab#344853) is fixed.

Related to #569 (closed)

Edited by Tomas Vik

Merge request reports