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] Stabilize waiting for visualization #93469

Merged
merged 1 commit into from
Mar 4, 2021

Conversation

flash1293
Copy link
Contributor

@flash1293 flash1293 commented Mar 3, 2021

Fixes #90907

This Pr makes sure the visualization has actually rendered to prevent rare test failures due to bad timing. It's using a similar approach as visualize (adding the render count to a data attribute).

In most cases this will simply introduce an additional wait time of 1s, but it should catch problems where the visualization isn't rendered yet because react is still busy (even if the data fetching is done already).

@flash1293 flash1293 added Team:Visualizations Visualization editors, elastic-charts and infrastructure v8.0.0 release_note:skip Skip the PR/issue when compiling release notes Feature:Lens v7.13.0 labels Mar 3, 2021
@flash1293
Copy link
Contributor Author

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

Async chunks

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

id before after diff
lens 920.7KB 920.9KB +176.0B

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

@flash1293 flash1293 marked this pull request as ready for review March 4, 2021 08:56
@flash1293 flash1293 requested a review from a team March 4, 2021 08:56
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-app (Team:KibanaApp)

Copy link
Contributor

@mbondyra mbondyra left a comment

Choose a reason for hiding this comment

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

Code looks good and flaky test runner passed so LGTM👌

@flash1293 flash1293 added the auto-backport Deprecated - use backport:version if exact versions are needed label Mar 4, 2021
@flash1293 flash1293 merged commit 462fe08 into elastic:master Mar 4, 2021
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Mar 4, 2021
@kibanamachine
Copy link
Contributor

💚 Backport successful

7.x / #93601

Successful backport PRs will be merged automatically after passing CI.

kibanamachine added a commit that referenced this pull request Mar 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-backport Deprecated - use backport:version if exact versions are needed Feature:Lens release_note:skip Skip the PR/issue when compiling release notes Team:Visualizations Visualization editors, elastic-charts and infrastructure v7.13.0 v8.0.0
Projects
None yet
4 participants