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
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
Model countries and breed as ListField
Update collections with update_db_status.py
The text was updated successfully, but these errors were encountered:
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 collectionsDescribe alternatives you've considered
An alternative could be executing an aggregation pipeline within sample collections using SMARTER-backend
Additional context
ListField
update_db_status.py
The text was updated successfully, but these errors were encountered: