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
let me know if you want me to close this issue, change this issue to address the lack of a 404 returned for an empty collection with a joplin stac id, or open a new issue for it.
Summary
Seeing incorrect results for collections/{collection_id}/items and collections/{collection_id}/items/{item_id}. Maybe this is a pgstac error?
To Reproduce
add lines to create empty-collection at end of
ingest_joplin_data
function (right below line 44):run pgstac app
Expected
http://0.0.0.0:8082/collections/empty-collection/items
should return context { limit: 10, returned: 0}
http://0.0.0.0:8082/collections/empty-collection/items/fe916452-ba6f-4631-9154-c249924a122d
should return return 404
http://0.0.0.0:8082/collections/joplin/items/f7f164c9-cfdf-436d-a3f0-69864c38ba2a
should return item for id f7f164c9-cfdf-436d-a3f0-69864c38ba2a
Actual results
http://0.0.0.0:8082/collections/empty-collection/items
returns first 10 items for joplin
http://0.0.0.0:8082/collections/empty-collection/items/fe916452-ba6f-4631-9154-c249924a122d
returns joplin item fe916452-ba6f-4631-9154-c249924a122d
http://0.0.0.0:8082/collections/joplin/items/f7f164c9-cfdf-436d-a3f0-69864c38ba2a
returns joplin item fe916452-ba6f-4631-9154-c249924a122d
The text was updated successfully, but these errors were encountered: