Skip to content

in pgstac transaction extension delete operation, any item with the given id may be deleted #381

@philvarner

Description

@philvarner

in pgstac/transactions.py, the db is only passed the item_id, and not the collection_id the item is in. This leads me to believe that this would delete any Item with that ID, rather than being scoped to the specific collection in the path.

    async def delete_item(
        self, item_id: str, collection_id: str, **kwargs
    ) -> stac_types.Item:
        ...
        await dbfunc(pool, "delete_item", item_id) # no collection_id in call
        ...

@bitner

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