Skip to content

Lens editor auto refresh#65868

Merged
flash1293 merged 31 commits intoelastic:masterfrom
flash1293:lens-editor-refresh
Jun 3, 2020
Merged

Lens editor auto refresh#65868
flash1293 merged 31 commits intoelastic:masterfrom
flash1293:lens-editor-refresh

Conversation

@flash1293
Copy link
Contributor

@flash1293 flash1293 commented May 8, 2020

Fixes #57671

This PR makes sure the lens visualization auto-refreshes when it is configured in the date picker.

To do so without completely unmounting the expression renderer component and thus recreating the expression loader instance, this PR introduces a new prop refresh$ on the expression renderer which allows to reload the expression without re-rendering the whole react tree.

We can use the same mechanism in the Lens embeddable, but I would like to do that separately.

@botelastic botelastic bot added Feature:Drilldowns Embeddable panel Drilldowns Feature:Embedding Embedding content via iFrame Feature:ExpressionLanguage Interpreter expression language (aka canvas pipeline) labels May 8, 2020
@flash1293
Copy link
Contributor Author

@elasticmachine merge upstream

@flash1293
Copy link
Contributor Author

@elasticmachine merge upstream

@elasticmachine
Copy link
Contributor

merge conflict between base and head

@flash1293
Copy link
Contributor Author

@wylieconlon Suggestions also auto-reload now
@Dosant Memoized the observable. I also added missing dependencies to the hook subscribing to reload.

Copy link
Contributor

@Dosant Dosant left a comment

Choose a reason for hiding this comment

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

LGTM!
Tested in chrome

@flash1293
Copy link
Contributor Author

@elasticmachine merge upstream

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

History

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

@flash1293 flash1293 merged commit 4a1b05c into elastic:master Jun 3, 2020
@flash1293 flash1293 deleted the lens-editor-refresh branch June 3, 2020 09:36
flash1293 added a commit to flash1293/kibana that referenced this pull request Jun 3, 2020
flash1293 added a commit that referenced this pull request Jun 3, 2020
@pauldotpower pauldotpower added release highlight release_note:breaking release_note:deprecation release_note:fix release_note:plugin_api_changes Contains a Plugin API changes section for the breaking plugin API changes section. release_note:skip Skip the PR/issue when compiling release notes ReleaseStatus Item of high enough importance that it should be called out in release status meetings release_note:feature Makes this part of the condensed release notes and removed release highlight release_note:breaking release_note:deprecation release_note:fix release_note:plugin_api_changes Contains a Plugin API changes section for the breaking plugin API changes section. release_note:skip Skip the PR/issue when compiling release notes ReleaseStatus Item of high enough importance that it should be called out in release status meetings release_note:feature Makes this part of the condensed release notes labels Jul 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Feature:Drilldowns Embeddable panel Drilldowns Feature:Embedding Embedding content via iFrame Feature:ExpressionLanguage Interpreter expression language (aka canvas pipeline) release_note:enhancement Team:Visualizations Team label for Lens, elastic-charts, Graph, legacy editors (TSVB, Visualize, Timelion) t// v7.9.0 v8.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Lens] Editor does not auto refresh

7 participants