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

Investigate date sorting in Dashboard #27

Open
mickohanlon23 opened this issue Jul 13, 2022 · 0 comments
Open

Investigate date sorting in Dashboard #27

mickohanlon23 opened this issue Jul 13, 2022 · 0 comments

Comments

@mickohanlon23
Copy link
Contributor

mickohanlon23 commented Jul 13, 2022

See #23 (comment)

In DashboardLibrary.cql, we group resources together, and then sort them by the date field associated with the Tuple for each resource. However, this date is a string value, not a date value. Moreover, the string value can follow different formats for different instances of a resource, for example when the strings are different lengths (ex. YYYY-MM vs YYYY-MM-DD). Or where the word "to" is included in the string you are sorting with, to concatenate the start and end date strings (end date may not always be present).

Investigate the way we sort by date, make any updates that are needed, and add testing to show that the resource instances can be properly sorted by date for each resource type.

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

No branches or pull requests

1 participant