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

fix: sort promotions with running and pending first #1314

Merged
merged 1 commit into from
Dec 21, 2023
Merged

Conversation

rbreeze
Copy link
Contributor

@rbreeze rbreeze commented Dec 21, 2023

Fixes #1037

@jessesuen In the issue above, you mentioned adding a special section in the UI for currently running promotions. This seems like a separate issue to me, but I'm happy to keep the above issue open if you prefer to track it there

Signed-off-by: Remington Breeze <remington@breeze.software>
@rbreeze rbreeze requested a review from a team as a code owner December 21, 2023 20:19
Copy link

netlify bot commented Dec 21, 2023

Deploy Preview for docs-kargo-akuity-io ready!

Name Link
🔨 Latest commit 95e75c1
🔍 Latest deploy log https://app.netlify.com/sites/docs-kargo-akuity-io/deploys/65849dd65352490008b71ee4
😎 Deploy Preview https://deploy-preview-1314.kargo.akuity.io
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Comment on lines +55 to +68
running10,
running8,
running3,
running1,
pending11,
pending9,
pending4,
pending2,
unknown14,
errored13,
succeeded12,
unknown7,
failed6,
succeeded5
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Running promotions come first, sorted by timestamp. Then pending promotions, also sorted by timestamp, and finally everything else sorted by timestamp.

Comment on lines +93 to +97
<Popover
content={promotion.status?.message}
title={promotion.status?.phase}
placement='right'
>
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nothing changed here, just ran Prettier

Comment on lines +108 to +112
<Popover
content={promotion.status?.message}
title={promotion.status?.phase}
placement='right'
>
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here, Prettier fix

Copy link

codecov bot commented Dec 21, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (a2f6889) 45.82% compared to head (95e75c1) 45.82%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1314   +/-   ##
=======================================
  Coverage   45.82%   45.82%           
=======================================
  Files         135      135           
  Lines       11556    11556           
=======================================
  Hits         5296     5296           
  Misses       6069     6069           
  Partials      191      191           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@jessesuen jessesuen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We'll eventually want the running promotion displayed prominently, e.g. with details to the PR, etc... Also there can only be on running promo at a time so we can reserve special place in the UI for it.

EDIT: I just saw your comment. But yes that can be a different issue.

@jessesuen In the issue above, you mentioned a special section for currently running promotions. This seems like a separate issue to me, but I'm happy to keep the above issue open if you prefer to track it there

@rbreeze rbreeze added this pull request to the merge queue Dec 21, 2023
Merged via the queue into main with commit 5570d77 Dec 21, 2023
17 checks passed
@rbreeze rbreeze deleted the promotion-sort branch December 21, 2023 20:42
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.

Running promotion is buried onto last page
2 participants