-
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
[Lens] Avoid to compute over time suggestion for expensive configurations #115932
Conversation
@elasticmachine merge upstream |
@elasticmachine merge upstream |
Pinging @elastic/kibana-vis-editors (Team:VisEditors) |
@elasticmachine merge upstream |
@@ -21,6 +21,7 @@ import { | |||
getExistingColumnGroups, | |||
isReferenced, | |||
getReferencedColumnIds, | |||
hasTermsFunctionWithHighSize, |
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.
nit: I am not convinced to this name, but this is the best I could come up with
hasTermsFunctionWithHighSize, | |
hasTermsWithManyBuckets, |
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.
Works as expected, tested on FF 🆗
@elasticmachine merge upstream |
@elasticmachine merge upstream |
@elasticmachine merge upstream |
💚 Build Succeeded
Metrics [docs]Async chunks
History
To update your PR or re-run it, just comment with: |
…ions (elastic#115932) * ⚡ Avoid over time suggestion if too expensive * ✅ Add unit tests * 👌 Integrate feedback Co-authored-by: Kibana Machine <[email protected]> (cherry picked from commit eb9262d)
…ions (elastic#115932) * ⚡ Avoid over time suggestion if too expensive * ✅ Add unit tests * 👌 Integrate feedback Co-authored-by: Kibana Machine <[email protected]> (cherry picked from commit eb9262d)
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
…ions (#115932) (#123020) * ⚡ Avoid over time suggestion if too expensive * ✅ Add unit tests * 👌 Integrate feedback Co-authored-by: Kibana Machine <[email protected]> (cherry picked from commit eb9262d) Co-authored-by: Marco Liberati <[email protected]>
…ions (#115932) (#123022) * ⚡ Avoid over time suggestion if too expensive * ✅ Add unit tests * 👌 Integrate feedback Co-authored-by: Kibana Machine <[email protected]> (cherry picked from commit eb9262d) Co-authored-by: Marco Liberati <[email protected]> Co-authored-by: Kibana Machine <[email protected]>
Summary
Fixes #112229
This PR attempts to improve perceived performance of the Lens editor excluding some suggestion computation for expensive configurations.
Unit tests have been added as well.
The terms threshold hardcoded is
5
as in the issue.Checklist
Delete any items that are not applicable to this PR.
Risk Matrix
Delete this section if it is not applicable to this PR.
Before closing this PR, invite QA, stakeholders, and other developers to identify risks that should be tested prior to the change/feature release.
When forming the risk matrix, consider some of the following examples and how they may potentially impact the change:
For maintainers