Skip to content

CollectionSearchExtension + TokenPaginationExtension unsupported? #334

Description

@fmigneault

Using CollectionSearchExtension + TokenPaginationExtension simultaneously (as configured in https://github.com/crim-ca/stac-app/blob/8eaeafc0972cb4ed3c16e8d8d12785ae0704ee12/src/stac_app.py#L117-L148) does not seem to be considered.

The OffsetPaginationExtension seems to be applied regardless, as shown by the response's next link:
Image

In contrast, doing the same with Items listing works as intended:
https://github.com/crim-ca/stac-app/blob/8eaeafc0972cb4ed3c16e8d8d12785ae0704ee12/src/stac_app.py#L150-L172

Image

These behaviours seem to align with PagingLinks used for items:

class PagingLinks(BaseLinks):

And CollectionSearchPagingLinks for collections:

class CollectionSearchPagingLinks(BaseLinks):

Each using their respective hardcoded token/offset keywords.

However, it seems counter-intuitive that the PG integration does not let the flexibility between token/offset paging extensions offered by the base (https://github.com/stac-utils/stac-fastapi/tree/main/stac_fastapi/extensions/stac_fastapi/extensions/core/pagination), and that they are used inconsistently between Collections/Items.

Is there something else to configure, or is this imposed by stac-fastapi-pgstac for some technical reason?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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