Add ordered_statues to pipelines/:id/stages
What does this MR do?
When the query parameter ordered_statuses
is set in the
pipelines/:id/stages
endpoint, a new property will be sent with the
key ordered_statues
this will return all the builds that stage has, in
an ordered state. This includes the ones from latest_statues
as well.
This is needed so frontend can display the status in the correct order when gitlab-org/gitlab-ce#50101 since. Simply having latest_statues
& retried
will not work for frontend as discussed in the main issue #52043 (closed)
What are the relevant issue numbers?
gitlab-org/gitlab-ce#52043
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/21971#note_105123156
Does this MR meet the acceptance criteria?
-
Changelog entry added, if necessary Documentation created/updated-
Tests added for this feature/bug -
Conforms to the code review guidelines -
Conforms to the merge request performance guidelines -
Conforms to the style guides Conforms to the database guides
Closes #52043 (closed)
Edited by Steve Xuereb