You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In stac-fastapi (latest) with pgstac backend we noticed in our stac catalog that collection.links were getting lots of "rel":"items" stored, which was causing problems with API consumers- because incorrect or duplicated items links were being returned by the API.
In stac-fastapi (latest) with pgstac backend we noticed in our stac catalog that collection.links were getting lots of
"rel":"items"
stored, which was causing problems with API consumers- because incorrect or duplicated items links were being returned by the API.Here is where the inferred link rels are defined:
https://github.com/stac-utils/stac-fastapi-pgstac/blob/a1b06331d5882b682c7471fbe330c1e0d18586cb/stac_fastapi/pgstac/models/links.py#L14
and note also that the
items
are actually dynamically constructed over here:https://github.com/stac-utils/stac-fastapi-pgstac/blob/a1b06331d5882b682c7471fbe330c1e0d18586cb/stac_fastapi/pgstac/models/links.py#L199-L205
The fix could be as simple as adding
items
to that list constant, but also noting that this fix might involve touching these 3 repos:https://github.com/search?q=org%3Astac-utils%20INFERRED_LINK_RELS&type=code
Related issue: #505
cc @geospatial-jeff @duckontheweb
The text was updated successfully, but these errors were encountered: