Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure pipeline stages are listed in the correct order (backport #2384) #2385

Merged
merged 1 commit into from
Jul 3, 2023

Conversation

github-actions[bot]
Copy link

@github-actions github-actions bot commented Jul 3, 2023

Backport of #2384


Fixes #2363

Description

Ensures the stages in a pipeline are returned in the correct order.

Previously, they were returned in the order the database returned them and didn't take into account NextStageId. This was generally based on creation time, so our testing never saw this issue. For some reason, in some cases, the database is returning them in a different order.

The fix was to either fix the API to ensure the order, or fix the frontend to sort the list itself (or both). It felt more correct for the API to return a properly ordered list.

Checklist

  • I have read the contribution guidelines

  • Suitable unit/system level tests have been added and they pass <!-- If not adding test coverage, please clarify why ## Labels

  • Backport needed? -> add the backport label

@knolleary knolleary merged commit 5899847 into maintenance Jul 3, 2023
@knolleary knolleary deleted the backport-2384 branch July 3, 2023 11:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant