Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🗃️ track breeds and countries in countries and breeds collection respectively #93

Open
2 tasks
bunop opened this issue Jun 12, 2023 · 0 comments
Open
2 tasks
Labels
enhancement New feature or request
Projects

Comments

@bunop
Copy link
Member

bunop commented Jun 12, 2023

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: To do
SMARTER
To do
Development

No branches or pull requests

1 participant