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 #2384

Merged
merged 1 commit into from
Jul 3, 2023

Conversation

knolleary
Copy link
Member

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 requested a review from Pezmc July 3, 2023 10:59
@Pezmc Pezmc merged commit 9a75bb2 into main Jul 3, 2023
@Pezmc Pezmc deleted the 2363-fix-pipeline-stage-ordering branch July 3, 2023 11:24
knolleary added a commit that referenced this pull request Jul 3, 2023
Ensure pipeline stages are listed in the correct order (backport #2384)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

I can't promote a NR instance through the DevOps Pipeline
2 participants