-
Notifications
You must be signed in to change notification settings - Fork 5
[Draft] Add project-based representative occurrence for Taxon #839
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
base: deployments/ood.antenna.insectai.org
Are you sure you want to change the base?
[Draft] Add project-based representative occurrence for Taxon #839
Conversation
…ject M2M relationship
✅ Deploy Preview for antenna-preview canceled.
|
✅ Deploy Preview for antenna-ood canceled.
|
Thanks for starting this @mohamedelabbas1996. My instinct is saying that we should rename this intermediate model to |
@mihow Thanks so much for the suggestion. My concern is around representing taxa that haven't yet been observed in a project. I'm not sure it's even allowed in the Django ORM to have a ManyToManyField where one side (like the project) is null. I believe both foreign keys must be non-null by definition. |
…d the cluster center and clustering algorithm to ProjectTaxon
…nickLab/antenna into feat/add-example-occurrences-for-taxa
Possible images to represent a Taxon or Cluster Update Taxon detail & list serializers:
All future image fields:
Notes about selecting determination score:occurrence |
9e03dc7
to
b56277d
Compare
Hey @mohamedelabbas1996, thank you for starting on this! I tested a bit and tried to render this information as well. Some questions:
![]() |
…b.com/RolnickLab/antenna into feat/add-example-occurrences-for-taxa
…b.com/RolnickLab/antenna into feat/add-example-occurrences-for-taxa
…b.com/RolnickLab/antenna into feat/add-example-occurrences-for-taxa
…mple-occurrences-for-taxa
Me and @mohamedelabbas1996 tried to sync this with OOD branch, but there are backend migration problems now. TBC! |
…nickLab/antenna into feat/add-example-occurrences-for-taxa
@mohamedelabbas1996 @annavik I fixed the migration & code conflicts. I left the existing |
@mihow consider hiding example occurrences that are not verified or are too low confidence (for cover images) |
a011a5f
to
3528f27
Compare
Summary
This PR introduces support for multiple candidate images to represent a taxon, enhancing how taxa are visually represented. It also adds API endpoints to feature and unfeature occurrences.
List of Changes
images
field to the taxon serializer that returns representative image URLs for each taxon, including:cover_image_url
)Related Issues
Closes #832
Detailed Description
This update allows users and downstream consumers (e.g. UI) to identify and display a representative visual summary of a taxon based on project data. These additions support feature parity for image-based navigation and selection, including:
How to Test the Changes
POST /api/v2/occurrences/{id}/feature/
DELETE /api/v2/occurrences/{id}/feature/
featured_occurrences
if featured.images
field contains valid URLs for:external_reference
most_recently_featured
highest_determination_score
Screenshots
TBD
Deployment Notes
Checklist