Skip to content

CollectionSerializer is duplicating "Items" link #143

Closed
@ahuarte47

Description

@ahuarte47

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:

  1. Uploads a Collection to ES
  2. Reads it using CollectionSerializer:db_to_stac()

Expected behavior
"Items" link should be unique. INFERRED_LINK_RELS should include "Items" or taking care of this issue in Serializer.

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