Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect displayed order in visualizations when using "Use count of parent document" #55

Closed
dtheodor opened this issue Mar 26, 2018 · 2 comments

Comments

@dtheodor
Copy link

Running Kibana 6.2.2, tried this with all plugin releases for this version

When doing a terms aggregation where the term belongs to a nested document and the metric is the Count of the parent doc (by clicking "Use count of parent document"), the order with which the buckets appear in the visualizations is wrong. I think that the order used is still the count of the nested documents, not the count of the parent doc.

This is purely a visual/UI issue, the query as well as the data displayed are correct, the top X is calculated using the count of the parent doc. It's just that the graph displays the different final buckets in the wrong order.

Example screenshots:

This is a bar chart that shows the wrong order

screenshot 166

This is the same bar chart but without "Use count of parent document", where the order is correct. The colors correspond to the same buckets in both charts.

screenshot 165

@ppadovani
Copy link
Owner

Ok.. updated the 1.0.2 build with a fix for this.. please test and let me know.

@dtheodor
Copy link
Author

Looks fixed

ppadovani added a commit that referenced this issue Mar 30, 2018
(cherry picked from commit e047780)

Additional work for #54

(cherry picked from commit 6f80501)

Additional work for #55

(cherry picked from commit 54c7afb)

fix #56

(cherry picked from commit 919fb59)

update to next version
ppadovani added a commit that referenced this issue Mar 30, 2018
(cherry picked from commit e047780)

Additional work for #54

(cherry picked from commit 6f80501)

Additional work for #55

(cherry picked from commit 54c7afb)

fix #56

(cherry picked from commit 919fb59)

update to next version

(cherry picked from commit 0830e8c)
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

No branches or pull requests

2 participants