Skip to content

Commit

Permalink
Fix: Inconsistent null count in tissue atlas term facet (#6458)
Browse files Browse the repository at this point in the history
  • Loading branch information
nadove-ucsc authored and achave11-ucsc committed Aug 16, 2024
1 parent 1b14f5d commit 8485142
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/azul/service/elasticsearch_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ def _prepare_aggregation(self, *, facet: str, facet_path: FieldPath) -> Agg:
agg_type='terms',
field=path,
size=config.terms_aggregation_size)
agg.bucket('untagged', 'missing', field=path)
nested_agg.bucket('untagged', 'missing', field=path)
return agg

def _annotate_aggs_for_translation(self, request: Search):
Expand Down Expand Up @@ -369,7 +369,7 @@ def _flatten_nested_aggs(self, aggs: MutableJSON):
except KeyError:
pass
else:
agg['myTerms'] = nested_agg['myTerms']
agg.update(nested_agg)

def _translate_response_aggs(self, aggs: MutableJSON):
"""
Expand Down

0 comments on commit 8485142

Please sign in to comment.