Skip to content

Add sorting pipelines for a commit

What does this MR do?

This MR adds sorting pipelines for a commit as there is no sorting after !6322 (merged).

Are there points in the code the reviewer needs to double check?

  • A simple test for pipelines for a commit might be too simple in this MR.
  • @ci_pipelines was renamed to @pipelines.
  • define_status_vars was removed due to duplicating with pipelines in the Commit model.
  • @ci_pipelines was replaced with @commit.pipelines.
  • @commit.pipelines is still in the chronological order now in the reverse chronological order.

Why was this MR needed?

A user expects pipelines in a commit are sorted like pipelines for a project.

Does this MR meet the acceptance criteria?

What are the relevant issue numbers?

Closes #26117 (closed)

Edited by Takuya Noguchi

Merge request reports