-
Notifications
You must be signed in to change notification settings - Fork 117
Closed
Labels
enhancementNew feature or requestNew feature or requestquestionFurther information is requestedFurther information is requested
Description
By default we add all the collections
links to the landing page, but when the catalog grows this might become useless or really slow (we have catalogs with > 100 collections).
stac-fastapi/stac_fastapi/types/stac_fastapi/types/core.py
Lines 418 to 429 in c71a355
# Add Collections links | |
collections = 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']}"), | |
} | |
) |
Note: When using pgstac with the collection-search
extension enabled, we now return a default of 10 collections (default limit in pgstac) so the landing page of stac-fastapi-pgstac will only return the first 10 collections links
@m-mohr not sure if stac-browser is using the landing page child links or directly the /collections
link
gadomski
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestquestionFurther information is requestedFurther information is requested