Skip to content

Multi Species Support#392

Merged
BryonLewis merged 8 commits intomainfrom
multi-species-support
Mar 3, 2026
Merged

Multi Species Support#392
BryonLewis merged 8 commits intomainfrom
multi-species-support

Conversation

@BryonLewis
Copy link
Collaborator

@BryonLewis BryonLewis commented Feb 27, 2026

  • Swap from using a ManyToMany field to having a pass through of RecordingAnnotationSpecies that has the annotation, the species and the order. The ManyToMany acted as a Set and wouldn't allow duplicate entries so we need this passthrough model to make it work.
  • Migration should take the basic Species and separate it out into the different RecordingAnnotationSpecies
  • Added some admin display and configuration tools to make it easier to see this in the admin view
  • The endpoints that return back the species needed to be updated to support calling RecordingAnnotationSpecies to get the ordered set of species instead of the just the flat list from before.
  • The PATCH endpoint for recording annotations ahs also been updated to use the new RecordingAnnotationsSpecies instead of just species
  • Frontend has been modified to support multiple bats
  • I made two new components SingleSpecieEditor.vue and SingleSpecieInfo.vue to support having a single specie instead of multiple.
  • The SpeciesEditor now will display a 'bats' as a row that has a SingleSpecieInfo for list editing and a v-autocomplete field for dropdown.
  • When there is more than one row you can delete any row in the sequence
  • There must be at least 1 row remaining though.
  • NOTE: I DID NOT UPDATE PULSE OR SEQUENCE ANNOTATIONS, felt it was out of scope for this PR.

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Feb 27, 2026

Deploying bats-ai with  Cloudflare Pages  Cloudflare Pages

Latest commit: 683ddfe
Status: ✅  Deploy successful!
Preview URL: https://86718e3a.bats-ai.pages.dev
Branch Preview URL: https://multi-species-support.bats-ai.pages.dev

View logs

@BryonLewis BryonLewis merged commit 068d217 into main Mar 3, 2026
6 checks passed
@BryonLewis BryonLewis deleted the multi-species-support branch March 3, 2026 12:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant