feat: add diseasesWithParents to allele search results (SCRUM-5829)#1536
feat: add diseasesWithParents to allele search results (SCRUM-5829)#1536
Conversation
Add diseasesWithParents field to AlleleSearchResultDocument and copy it from AlleleSummaryDocument in the converter. Reorder indexer to convert derived documents before stripping transport-only fields from summary documents.
Code ReviewChanges reviewed: 3 files — adds Verdict: Looks good. ✅ The changes are clean and follow existing patterns:
No correctness issues, no performance concerns, no security problems found. |
Summary
diseasesWithParentsfield toAlleleSearchResultDocumentand copy it fromAlleleSummaryDocumentin the converterAlleleSummaryCurationIndexerto convert derived documents first, then strip transport-only fields viaremoveTransportFields()before indexing summary documents to ESContext
Companion to agr_curation release/v0.47.12. The curation side populates
diseasesWithParentson the summary document; this change ensures it flows through to theAlleleSearchResultDocumentin ES, enabling disease→allele related data links in search results.Test plan
diseasesWithParents