Skip to content

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

Closed
@StijnCaerts

Description

@StijnCaerts

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions