Replies: 1 comment 1 reply
-
Is that a Thinking about #323 I was maybe thinking about adding callback methods on all the I'm just expressing my personal opinion, maybe David will agree about returning the Item :-) |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
While working on #323, I considered adding support for a callback in the
delete_item
method https://github.com/stac-utils/stac-fastapi-pgstac/blob/main/stac_fastapi/pgstac/transactions.py#L179 that could be triggered on the deleted STAC item. However, I realized that in pgstac, thedelete_item
functionpgstac/src/pgstac/sql/003a_items.sql
Line 292 in 6c569c0
RETURNS VOID
, which means the content of the deleted item isn't available on the client side. The idea was to pass the item's content to a callback that could handle the removal of any underlying assets. Sincedelete_item
in pgstac is always executed on a single item, it doesn't seem like a significant overhead to return the content of the removed item. What are your thoughts on this?Beta Was this translation helpful? Give feedback.
All reactions