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 it gov request table sort by submission date #2960

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

adamodd
Copy link
Contributor

@adamodd adamodd commented Jan 23, 2025

NOREF

Description

Defines sorting for the ITGOV requests table

See https://oddball.slack.com/archives/C06RSLZ4UKF/p1734620705537649

Default sort on Submission Date descending with undefineds listed first

Now:
screenshot_2025-01-23_at_10 33 45___am

@adamodd adamodd requested a review from a team as a code owner January 23, 2025 18:05
@adamodd adamodd requested review from aterstriep and removed request for a team January 23, 2025 18:05
samoddball
samoddball previously approved these changes Jan 23, 2025
@samoddball
Copy link
Contributor

looks good! so we want newest last (and potentially not on first page)?

Copy link

EKS Ingress URLs

@adamodd
Copy link
Contributor Author

adamodd commented Jan 23, 2025

@samoddball Thanks for catching that. Looks like it should be the other way around.

@adamodd
Copy link
Contributor Author

adamodd commented Jan 23, 2025

@samoddball Thanks again. Should be good now.

a: Row<MergedRequestsForTable>,
b: Row<MergedRequestsForTable>
) => {
return (a.original.submissionDate || 'z') >
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Dates are an ISO string so comparing against a 'z' will put undefineds at the end.

Copy link
Contributor

Choose a reason for hiding this comment

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

interesting! cool solution 😄

samoddball
samoddball previously approved these changes Jan 23, 2025
Copy link
Contributor

@samoddball samoddball left a comment

Choose a reason for hiding this comment

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

🔥

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.

2 participants