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

[Lens] accuracy mode for Top Values #129220

Merged
merged 27 commits into from
Apr 19, 2022

Conversation

drewdaemon
Copy link
Contributor

@drewdaemon drewdaemon commented Apr 1, 2022

Summary

Resolves #117909

Screen.Recording.2022-04-01.at.3.46.22.PM.mov

Help icon:
Screen Shot 2022-04-13 at 11 01 39 AM

Checklist

Delete any items that are not applicable to this PR.

@drewdaemon drewdaemon added release_note:enhancement Team:Visualizations Visualization editors, elastic-charts and infrastructure Feature:Lens v8.3.0 labels Apr 1, 2022
@drewdaemon drewdaemon force-pushed the f/accuracy-mode-for-top-values branch from c1deba5 to 7553381 Compare April 1, 2022 17:49
@drewdaemon
Copy link
Contributor Author

@elasticmachine merge upstream

@drewdaemon
Copy link
Contributor Author

@elasticmachine merge upstream

@drewdaemon drewdaemon marked this pull request as ready for review April 13, 2022 01:36
@drewdaemon drewdaemon requested review from a team as code owners April 13, 2022 01:36
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-vis-editors @elastic/kibana-vis-editors-external (Team:VisEditors)

@drewdaemon
Copy link
Contributor Author

@flash1293 what is the official process for removing a translation string that is no longer used?

@drewdaemon drewdaemon added the ui-copy Review of UI copy with docs team is recommended label Apr 13, 2022
@flash1293
Copy link
Contributor

While testing this I noticed that the multi terms agg is actually not reporting precision errors - it's missing this implementation:

hasPrecisionError: (aggBucket) => Boolean(aggBucket?.doc_count_error_upper_bound),

Since you are working on this anyway right now, could you add it?

@drewdaemon
Copy link
Contributor Author

@elasticmachine merge upstream

@gchaps
Copy link
Contributor

gchaps commented Apr 14, 2022

Here are some suggestions for the copy in the tooltip and the warning:

Tooltip

Improves results for high-cardinality data, but increases the load on the Elasticsearch cluster.

Warning 1

Top 5 values for customer_first_name.keyword might be an approximation.
You can enable accuracy mode for more precise results, but note that it
increases the load on the Elasticsearch cluster. Learn more.

Enable accuracy mode (use sentence case)

Warning 2

Top 5 values for customer_first_name.keyword might be an approximation.
For more precise results, try increasing the number of top values or using filters instead. Learn more.

package.json Outdated Show resolved Hide resolved
@drewdaemon
Copy link
Contributor Author

@gchaps thanks for those suggestions. Way better than what I had.
Screen Shot 2022-04-15 at 8 45 33 AM
Screen Shot 2022-04-15 at 8 43 11 AM
Screen Shot 2022-04-15 at 8 43 00 AM

@gchaps
Copy link
Contributor

gchaps commented Apr 15, 2022

@andrewctate In the updated screenshots, "top 5 values" is repeated in the text. Is that just for the example you are showing? I'm not sure where {name} is coming from.

@drewdaemon
Copy link
Contributor Author

@gchaps thanks for catching that 🤦‍♂️ . Here's the real deal:
Screen Shot 2022-04-18 at 2 29 12 PM

@kibana-ci
Copy link
Collaborator

💚 Build Succeeded

Metrics [docs]

Public APIs missing comments

Total count of every public API that lacks a comment. Target amount is 0. Run node scripts/build_api_docs --plugin [yourplugin] --stats comments for more detailed information.

id before after diff
data 2809 2811 +2

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
lens 1.1MB 1.1MB +1.8KB

Page load bundle

Size of the bundles that are downloaded on every page load. Target size is below 100kb

id before after diff
data 422.6KB 423.1KB +563.0B
Unknown metric groups

API count

id before after diff
data 3419 3421 +2

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@gchaps
Copy link
Contributor

gchaps commented Apr 18, 2022

Text LGTM

Copy link
Member

@ppisljar ppisljar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

app services code LGTM

Copy link
Contributor

@flash1293 flash1293 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested again and works well now even for multi field terms, LGTM 👍

@drewdaemon drewdaemon merged commit c96f2a6 into elastic:main Apr 19, 2022
@kibanamachine kibanamachine added the backport:skip This commit does not require backporting label Apr 19, 2022
dmlemeshko pushed a commit to dmlemeshko/kibana that referenced this pull request May 5, 2022
kertal pushed a commit to kertal/kibana that referenced this pull request May 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:skip This commit does not require backporting Feature:Lens release_note:enhancement Team:Visualizations Visualization editors, elastic-charts and infrastructure ui-copy Review of UI copy with docs team is recommended v8.3.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Lens] Expose shard size for top values (terms) aggregations
8 participants