Skip to content

Commit

Permalink
patch: table summary
Browse files Browse the repository at this point in the history
- es query crashing missing chromosome
  • Loading branch information
brouillette committed Jun 14, 2023
1 parent d2d3676 commit 883b602
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/api/mvc/tables/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ func GetTableSummary(c echo.Context) error {
// obtain other potentially relevant parameters from available query parameters
// (these should be empty, but utilizing this common function is convenient to set up
// the call to the variants index through the repository functions)
var es, chromosome, lowerBound, upperBound, reference, alternative, alleles, genotype, assemblyId, _ = mvc.RetrieveCommonElements(c)
var es, _, lowerBound, upperBound, reference, alternative, alleles, genotype, assemblyId, _ = mvc.RetrieveCommonElements(c)
// unused tableId from query parameter set to '_'

// table id must be provided
Expand Down Expand Up @@ -213,7 +213,7 @@ func GetTableSummary(c echo.Context) error {
totalVariantsCount := 0.0

docs, countError := esRepo.CountDocumentsContainerVariantOrSampleIdInPositionRange(cfg, es,
chromosome, lowerBound, upperBound,
"*", lowerBound, upperBound, // always wildcard "*" chromosome
"", "", // note : both variantId and sampleId are deliberately set to ""
reference, alternative, alleles, genotype, assemblyId, tableId)
if countError != nil {
Expand Down

0 comments on commit 883b602

Please sign in to comment.