feat!(backend, website): add a new backend endpoint to get organism for an accession#6255
Open
anna-parker wants to merge 14 commits intomainfrom
Open
feat!(backend, website): add a new backend endpoint to get organism for an accession#6255anna-parker wants to merge 14 commits intomainfrom
anna-parker wants to merge 14 commits intomainfrom
Conversation
…ils given an accession
Contributor
|
Claude encountered an error —— View job I'll analyze this and get back to you. |
anna-parker
commented
Apr 11, 2026
anna-parker
commented
Apr 11, 2026
anna-parker
commented
Apr 11, 2026
anna-parker
commented
Apr 12, 2026
| ) | ||
| } | ||
|
|
||
| fun streamDetailsForAccessions( |
Contributor
Author
There was a problem hiding this comment.
I wonder if I should actually move this to a new file called SearchService.kt?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
resolves #6265
Generated with claude CLI
Backend: New endpoint GET /get-details
Given a list of accession and/or accessionVersions return details such as isRevocation and organism. This allows us to e.g. know which organism an accession belongs to without querying every LAPIS instance. Currently LAPIS is configured on an organism level and cannot perform such queries, if LAPIS becomes able to do this we can always remove this endpoint.
New files:
Modified files:
submittedAt as unix timestamp)
for released entries matching the given accessions/accession-versions
Endpoint behavior:
### Website: Use backend instead of all-LAPIS queries
findOrganismAndData.ts (details page): Instead of querying all LAPIS instances in parallel, now calls backend once to
get organism, then calls only the correct LAPIS instance. The "no version" redirect case is handled directly from the
backend result (finds max version).
getVersionsData.ts (versions page): Instead of querying all LAPIS instances, calls backend once to get organism, then
queries only that organism's LAPIS for version history.
SeqSetRecordsTableWithMetadata.tsx (seqsets): Instead of querying all LAPIS instances in parallel for each record,
calls backend once to get organism for all accessions, then queries only the relevant LAPIS instances (one per
distinct organism in the seqset).
backendClient.ts — added getSequenceEntryVersions() method that parses the NDJSON response.
backend.ts — added accessionVersionWithOrganism Zod schema and AccessionVersionWithOrganism type.
Screenshot
PR Checklist
🚀 Preview: https://get-sequenceentries-backe.loculus.org