cnr-ibba / SMARTER-database

Smarter database repository
https://smarter-database.readthedocs.io/en/latest/
MIT License
1 stars 0 forks source link

:card_file_box: track breeds and countries in countries and breeds collection respectively #93

Open bunop opened 1 year ago

bunop commented 1 year ago

Is your feature request related to a problem? Please describe. When filtering samples from SMARTER-frontend, suggested breed and country values take no considerations about which breeds are available in each country and viceversa, so it's possible to take a breed and country which returns 0 results. If breed and country collections track countries and breeds respectively, it will be possible to query a breed endpoint and filter by country

Describe the solution you'd like Track breeds and countries int countries and breeds collection respectively. The script src/data/update_db_status.py could track that information in collections

Describe alternatives you've considered An alternative could be executing an aggregation pipeline within sample collections using SMARTER-backend

Additional context