-
Notifications
You must be signed in to change notification settings - Fork 48
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
Add support for selecting the search endpoint using media_type
#142
Conversation
The dependencies should also be updated but I'm not sure how to proceed, what is the policy regarding this. |
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.
Thanks for putting this in @mneagul.
See comments below on hard-coding the media_type
argument rather than passing it through the containing methods. Let me know if I'm missing a use-case for changing that value per API.
We should also update the PySTAC requirement to pystac~=1.4
to ensure we have a version of PySTAC that supports the media_type
argument in Catalog.get_links
and Catalog.get_single_link
.
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.
@duckontheweb you suggested pystac~=1.4
but (per previous dependency discussions ala stac-utils/stactools#228) should we do pystac >= 1.4
? I could see the case for ~=
since we control PySTAC -- curious your and others' thoughts.
Co-authored-by: Jon Duckworth <duckontheweb@gmail.com>
Co-authored-by: Jon Duckworth <duckontheweb@gmail.com>
Co-authored-by: Jon Duckworth <duckontheweb@gmail.com>
Co-authored-by: Jon Duckworth <duckontheweb@gmail.com>
Co-authored-by: Pete Gadomski <pete.gadomski@gmail.com>
Hi Everyone, How should I proceed with this PR ? The tests fail due to dependency issues. Marian |
Sorry I dropped the ball on this one... I don't have really strong opinions on this, but I tend to opt for |
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.
#144 will fix the PySTAC dependency issue, so once that gets merged this PR shouldn't need to worry about the dependency stuff.
Co-authored-by: Pete Gadomski <pete.gadomski@gmail.com>
Since this PR is introducing a change that requires PySTAC>=1.4.0, maybe it would actually be best to update that dependency here rather than in a separate PR. @gadomski @matthewhanson If you agree then I think the desired change would be to update the PySTAC dependency to |
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.
This branch needs to merge main to pick up the latest changes -- I don't have permission to push to the source branch so can't do it myself.
I updated merged the latest changes. I hope everything is ok. |
Codecov Report
@@ Coverage Diff @@
## main #142 +/- ##
=======================================
Coverage 80.93% 80.93%
=======================================
Files 9 9
Lines 556 556
=======================================
Hits 450 450
Misses 106 106
Continue to review full report at Codecov.
|
Related Issue(s): #
stac-utils/pystac#704
Description:
Added support for selecting the search endpoint using the
media_type
argument toget_single_link
.This should fix interoperability STAC implementations, particularly with the STAC extension in GeoServer.
PR Checklist: