From 36666114d09544df7b91805a40425c1c302cf1db Mon Sep 17 00:00:00 2001 From: Stijn Caerts Date: Fri, 17 Oct 2025 16:40:34 +0200 Subject: [PATCH 1/2] fix: remove partial listing of collections from landing page (#495) --- stac_fastapi/core/stac_fastapi/core/core.py | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/stac_fastapi/core/stac_fastapi/core/core.py b/stac_fastapi/core/stac_fastapi/core/core.py index f4a9058e..87671822 100644 --- a/stac_fastapi/core/stac_fastapi/core/core.py +++ b/stac_fastapi/core/stac_fastapi/core/core.py @@ -201,17 +201,6 @@ async def landing_page(self, **kwargs) -> stac_types.LandingPage: ] ) - collections = await self.all_collections(request=kwargs["request"]) - for collection in collections["collections"]: - landing_page["links"].append( - { - "rel": Relations.child.value, - "type": MimeTypes.json.value, - "title": collection.get("title") or collection.get("id"), - "href": urljoin(base_url, f"collections/{collection['id']}"), - } - ) - # Add OpenAPI URL landing_page["links"].append( { From b981a076bea8f1fae05d66600f61c7fee79ad7e8 Mon Sep 17 00:00:00 2001 From: Stijn Caerts Date: Fri, 17 Oct 2025 17:35:57 +0200 Subject: [PATCH 2/2] update CHANGELOG.md --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 21151ced..86c41a13 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -19,6 +19,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. - Removed ENV_MAX_LIMIT environment variable; maximum limits are now handled by the default global limit environment variable. [#482](https://github.com/stac-utils/stac-fastapi-elasticsearch-opensearch/pull/482) - Changed the default and maximum pagination limits for collections/items endpoints. [#482](https://github.com/stac-utils/stac-fastapi-elasticsearch-opensearch/pull/482) +- Removed the `rel=child` links to the collections from the landing page, as the listing was incomplete due to pagination. [#496](https://github.com/stac-utils/stac-fastapi-elasticsearch-opensearch/pull/496) ### Fixed