Skip to content

Collection pagination limits "child" links on landing page #495

@StijnCaerts

Description

@StijnCaerts

Describe the bug
Since collection pagination was implemented, the landing page does no longer shows "child" links to all collections. Only links to the first 10 (= default page size limit) collections are returned.

Should links to all collections be returned? Or can we remove these collection child links altogether? They are not required by the STAC API specification.
https://github.com/radiantearth/stac-api-spec/blob/v1.0.0/core/README.md#link-relations

To Reproduce
Steps to reproduce the behavior:

  1. Create more than 10 collections
  2. Fetch the landing page: GET /
  3. Inspect the "rel": "child" links

You can trick the landing page to return more collections by passing the limit HTTP parameter. For example, GET /?limit=100

Expected behavior
Either "child" links to all collections to be returned, or none at all.

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