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

feat: Update DMS provider to expect multiple sortable properties. #343

Merged

Conversation

moonscape09
Copy link

The sortby mechanism in the query method has been updated to expect sortable properties in a collection rather than as a single item, enabling multiple sortable properties. This has been done by adding a new sortables list member to the MSCDMSCoreAPIProvider class. This attribute is set to a sortables definition if it exists as a list in msc-pygeoapi-config.yml. Otherwise, it stores just the time_field.

cc @kngai

@moonscape09 moonscape09 force-pushed the dms-multiple-sortable-properties branch 3 times, most recently from 4bf06c2 to a87b25f Compare June 25, 2024 20:09
@kngai kngai self-requested a review July 4, 2024 18:12
@moonscape09 moonscape09 force-pushed the dms-multiple-sortable-properties branch from a87b25f to a76f89f Compare July 5, 2024 18:45
The `sortby` mechanism in the query method has been updated to expect sortable properties in a collection rather than as a single item, enabling multiple sortable properties. This has been done by adding a new `sortables` list member to the `MSCDMSCoreAPIProvider` class. This attribute is set to a `sortables` definition if it exists as a list in `msc-pygeoapi-config.yml`. Otherwise, it stores just the `time_field`.
@moonscape09 moonscape09 force-pushed the dms-multiple-sortable-properties branch from a76f89f to 1a89e46 Compare July 22, 2024 20:24
@tomkralidis tomkralidis merged commit ace64ae into ECCC-MSC:master Jul 22, 2024
2 checks passed
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