-
Notifications
You must be signed in to change notification settings - Fork 45
Description
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:

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
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?