-
Notifications
You must be signed in to change notification settings - Fork 19
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
CollectionSerializer is duplicating "Items" link #143
Comments
Hi @ahuarte47 do you have a fix for this? |
Hi @jonhealy1 I did create any PR to fix this, I only changed my own copy of stac-fastapi including "items" in the list INFERRED_LINK_RELS, it works here. It does not seem a bug from stac-fastapi-elasticsearch, but it in combination with stac-fastapi. |
I created a PR in the upstream repository: stac-utils/stac-fastapi#640 |
Nice ok. Thank you. |
#211 also fixes this, as the generated links are no longer stored in the database. |
Describe the bug
db_to_stac method to transform database model to STAC collection is adding a set of links by default. "Items" link is not included in the list of inferred. So the later invoking to resolve_links adds it again because "items" passes this filter.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
"Items" link should be unique. INFERRED_LINK_RELS should include "Items" or taking care of this issue in Serializer.
The text was updated successfully, but these errors were encountered: