Top Hits aggregation #37341
Labels
bug
Fixes for quality problems that affect the customer experience
Feature:Aggregations
Aggregation infrastructure (AggConfig, esaggs, ...)
regression
Kibana version:
since 6.5
Describe the bug:
if you create a visualization with Top Hits as metric, the field list is not filtered.
The Top Hits aggregation, on visualization expect
numbers
. Only table accept alsostrings
.This will lead to some confusion by the user when trying to use top hits.
Steps to reproduce:
Expected behavior:
The list should be filtered out to only the usable fields.
Screenshots:
Any additional context:
The issue is a regression introduced by this PR #22756
There is a small typo on the aggType filter where the we are looking for
aggConfig.type.name !== 'top_hit'
instead oftop_hits
in as the MetricAggTypename
reports. I think this can be the only cause of that problemkibana/src/legacy/ui/public/agg_types/metrics/top_hit.js
Lines 42 to 50 in 78afde9
The text was updated successfully, but these errors were encountered: