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

Links are overwritten when storing Item/Collection in database #210

Closed
StijnCaerts opened this issue Mar 13, 2024 · 1 comment
Closed

Links are overwritten when storing Item/Collection in database #210

StijnCaerts opened this issue Mar 13, 2024 · 1 comment

Comments

@StijnCaerts
Copy link
Collaborator

Describe the bug
The links on Item and Collection objects are overwritten before persisting them in the database.

For Items, the links are overwritten in the ItemSerializer.stac_to_db() method:

For Collections, the links are overwritten in the TransactionsClient itself:

To Reproduce
Steps to reproduce the behavior:

  1. Create collection with links, eg. rel=license
  2. Links are overwritten and the original links cannot be retrieved again when requesting the collection. They are also not persisted in the database.

Expected behavior

  • Filter out INFERRED_LINK_RELS, store remaining links in the database
  • Inferred links are added again when loading objects from database
jonhealy1 added a commit that referenced this issue Mar 15, 2024
Don't overwrite links before persisting Item/Collection in database
@StijnCaerts
Copy link
Collaborator Author

Closed by #211

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