-
Notifications
You must be signed in to change notification settings - Fork 4
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
Collection Metadata #62
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this looks pretty good in itself, but I had a few questions about goals for this endpoint and others, so Matt and I chatted over Slack. This takes us from building a handful OGC EDR compatible endpoints to making a more custom but non-compliant version of the overall OGC API spec (dataset/collection metadata at a different relative path in relation to the EDR endpoints).
We have the hooks already in Xpublish (even before we incorporate datatrees) that we could build an xpublish-ogc-compliance plugin, so before we go too far down the road of fully custom endpoints, we can plan ahead on how to get to a OGC complaint future.
@abkfenris I dont think I follow this. In the spec the routes look like this:
But with this PR ours is now this:
So we are not changing the routes any more than how they exist now
I fully think we should do this. To support this, before merging I will breakout the collections metadata to its own function so when we refactor into collections it is just plug and play for that. I do not want to do those plugins in this PR tho |
The spec doesn't have a leading
|
Gotcha. Their spec has |
Ya, they don't explain the fact that the spec is just part of a greater union of specs and then throw those mistakes in there doesn't help. |
Okay I think this is as far as it should go in this PR for now. I moved all the metadata to its own module and typed the entire collection metadata with pydantic. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #62 +/- ##
===========================================
+ Coverage 79.02% 89.64% +10.61%
===========================================
Files 6 12 +6
Lines 205 560 +355
===========================================
+ Hits 162 502 +340
- Misses 43 58 +15 ☔ View full report in Codecov by Sentry. 🚨 Try these New Features:
|
We do not have nested collections but this PR moves us closer, making a new route on
/edr/
that returns json formatted metadata attempting to match the reference spec (https://docs.ogc.org/is/19-086r6/19-086r6.html#_5d07dde9-231a-4652-a1f3-dd036c337bdc) as close as possible without going overboard.