Healy-Hyperspatial / stac-fastapi-mongo

Mongodb backend for stac-fastapi built on the stac-fastapi-elasticsearch core api library.
MIT License
6 stars 1 forks source link

Fix for item ids being required to be unique across all collections #26

Closed pedro-cf closed 3 months ago

pedro-cf commented 3 months ago

Related Issue(s):

Description: Added a new index based on collection id and item id to ensure item IDs aren't required to be unique across all collections.

PR Checklist:

jonhealy1 commented 3 months ago

@pedro-cf Should we create a test for this to make sure it will work as expected?

pedro-cf commented 3 months ago

@pedro-cf Should we create a test for this to make sure it will work as expected?

Greetings, made a test and fixed a bug 👍

Needed to fix up sync_prep_create_item and prep_create_item in database_logic