-
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] Fix Metric visualization scale #113956
Conversation
Pinging @elastic/kibana-vis-editors (Team:VisEditors) |
Why do we only need this for the preview version? Seems like the regular metric can run into the same issue (e.g. on a dashboard with a small panel) |
Initially I thought to fix it everywhere, but I thought that the likelihood of this bug to happen in a dashboard with many metrics is much lower (the panel must be smaller than 300px on average and numbers must have many digits) than the performance hit it may occur (reading But changing it back is very simple if required. |
Metrics can absolutely be smaller than 300px on a dashboard. If we have reservations due to performance reasons, we should improve performance for all cases. |
Updated fix to support all scenarios, not just previews. |
@elasticmachine merge upstream |
@elasticmachine merge upstream |
@elasticmachine merge upstream |
@elasticmachine merge upstream |
@elasticmachine merge upstream |
💛 Build succeeded, but was flaky
Test FailuresKibana Pipeline / general / X-Pack API Integration Tests.x-pack/test/api_integration/apis/search/session·ts.apis search search session touched time updates when you poll on an searchStandard Out
Stack Trace
Metrics [docs]Async chunks
History
To update your PR or re-run it, just comment with: |
I think so, but will double check for safety. |
I can reproduce that scenario only reaching |
* 🐛 Fix metric rescale * 📸 Restored old snapshots * 🐛 Extend the fix to all scenarios * 📸 Refresh snapshots for new fix Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
💚 Backport successful
This backport PR will be merged automatically after passing CI. |
* 🐛 Fix metric rescale * 📸 Restored old snapshots * 🐛 Extend the fix to all scenarios * 📸 Refresh snapshots for new fix Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> Co-authored-by: Marco Liberati <dej611@users.noreply.github.com>
Summary
Fix #113733
Recompute the container scale on value change to have it always fit in the preview box, dashboard and all cases.
With the fix:
Without the fix:
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