You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Changes reviewed: Type replacement (TransgenicAlleleDocument → TransgenicAlleleSummaryDocument) 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.
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
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.
No description provided.