-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[WIP] [ML] Fixes total hits count for distribution chart normalization. #31134
Conversation
Pinging @elastic/ml-ui |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM ⚡️
💚 Build Succeeded |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
While this fixes this one particular use of tracking total hits, I wonder if this should be rolled in with the follow up to #26421, and switch over all the places where we use rest_total_hits_as_int
to use track_total_hits
, considering whether we need to use the exact hits total, or just an estimate.
@peteharverson good point, I now wrote #31179 to include |
To be in line with the roadmap and requirements described in #26356, I removed the |
Closing because of outdatedness. Opened this issue instead: #71852 |
Summary
Fixes a regression for
7.x
onwards: A change in how total hits get returned for queries broke the normalization for the event distribution chart.This PR fixes it by adding
track_total_hits: true
to the query and adapting the code to retrieve thetotalHits
value.