Skip to content

SCRUM-5952 enable transgenic constructs to be displayed.#1564

Merged
cmpich merged 2 commits intostagefrom
SCRUM-5952
Apr 10, 2026
Merged

SCRUM-5952 enable transgenic constructs to be displayed.#1564
cmpich merged 2 commits intostagefrom
SCRUM-5952

Conversation

@cmpich
Copy link
Copy Markdown
Contributor

@cmpich cmpich commented Apr 10, 2026

No description provided.

@cmpich cmpich requested a review from a team as a code owner April 10, 2026 11:01
@claude
Copy link
Copy Markdown

claude bot commented Apr 10, 2026

Code Review

Changes reviewed: Type replacement (TransgenicAlleleDocumentTransgenicAlleleSummaryDocument) in the API layer, and new severity-based sorting of variant consequences.

Verdict: Looks correct

Type replacement (API layer): This is a good fix. The indexer (TransgenicAlleleCurationIndexer) already indexes documents as TransgenicAlleleSummaryDocument, so the API/service layer should deserialize from Elasticsearch using the same type. The previous code was deserializing into TransgenicAlleleDocument (the curation API source type), which likely caused fields like transgenicAlleleConstructs, hasDiseaseAnnotations, and hasPhenotypeAnnotations to be missing or mismatched in the response.

Note: This changes the REST endpoint return type for GET /api/allele/{id}/constructs, which will change the JSON response shape. This is intentional and likely needed to make the endpoint actually return the indexed data correctly.

Consequence sorting (VariantSummaryConverter): The new sorting logic correctly handles null/empty vepConsequences and null severityOrder values, pushing unknowns to the end with Integer.MAX_VALUE. The consequences list is a mutable ArrayList, so the in-place sort is safe.

No bugs, security issues, or performance concerns found.

@cmpich cmpich merged commit 4676c44 into stage Apr 10, 2026
5 checks passed
@cmpich cmpich deleted the SCRUM-5952 branch April 10, 2026 11:58
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.

2 participants