Skip to content

fix: set species fullName on variant search result documents (SCRUM-5966)#1562

Closed
oblodgett wants to merge 1 commit intostagefrom
SCRUM-5966
Closed

fix: set species fullName on variant search result documents (SCRUM-5966)#1562
oblodgett wants to merge 1 commit intostagefrom
SCRUM-5966

Conversation

@oblodgett
Copy link
Copy Markdown
Member

Summary

  • The VariantSummaryConverter creates a Species object when building variant documents from VCF data, but only sets abbreviation -- not fullName
  • The VariantSearchResultConverter calls getSpecies().getFullName() to populate the species field on variant_search_result documents, which returns null because fullName was never set
  • This one-line fix sets species.setFullName(speciesType.getName()) so variant search result documents get the species name (e.g. "Homo sapiens"), enabling the species facet to work

Test plan

  • Rebuild the variant index on stage
  • Verify variant_search_result documents now have a populated species field
  • Verify the species facet shows values at https://stage.alliancegenome.org/search?category=variant_search_result

The Species object created in VariantSummaryConverter only had
abbreviation set. VariantSearchResultConverter calls
getSpecies().getFullName() to populate the species field on
variant_search_result documents, which returned null because
fullName was never set. This caused the species facet to show
no values in the variant search category.
@oblodgett oblodgett requested a review from a team as a code owner April 10, 2026 08:38
@github-actions
Copy link
Copy Markdown

Claude Code Review Skipped — only 1 lines changed (<= 3). Comment @claude review my changes to request one.

@oblodgett oblodgett closed this Apr 10, 2026
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