Skip to content

Unable to delete item if it is present with same id in the multiple collections #456

@ivica3730k

Description

@ivica3730k

Hi all!
Using a stac-fastapi (pg) I found the following. If the item with the same id is present in the database(in my case item with id LC08_L2SP_202025_20210714_02_T1 being present both in landsat-c2-l2 and landsat-8-c2-l2 collection) the item can't be deleted
from any of the collections.

Opening the database I can see the following.
I am attaching screenshots below:

db
postman


My best guess would be that the delete SQL statement needs to be filtered with the collection id.

Thanks!
Ivica

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingpgstac

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions