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

Fix auto refresh in visualizations and lens #57667

Merged
merged 5 commits into from
Feb 17, 2020

Conversation

flash1293
Copy link
Contributor

@flash1293 flash1293 commented Feb 14, 2020

Fixes #57536

This PR subscribes to the auto refresh observable provided by the timefilter service from the data plugin to reload the lens and visualization embeddable when a new value is emitted. This does not fix the same issue in the lens editor, this is tracked separately here: #57671

This is an interim solution to fix this for the 7.6.1, mid term this logic will be centralized in an embeddable super class.

@flash1293 flash1293 added Feature:Visualizations Generic visualization features (in case no more specific feature label is available) release_note:fix v7.6.1 v7.7.0 v8.0.0 labels Feb 14, 2020
@@ -441,14 +441,6 @@ function VisualizeAppController(
})
);

subscriptions.add(
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not necessary anymore, the embeddable handles that from now on.

@flash1293 flash1293 marked this pull request as ready for review February 14, 2020 15:23
@flash1293 flash1293 requested a review from a team February 14, 2020 15:23
@flash1293 flash1293 requested a review from a team as a code owner February 14, 2020 15:23
@flash1293 flash1293 added Team:AppArch Team:Visualizations Visualization editors, elastic-charts and infrastructure labels Feb 14, 2020
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-app-arch (Team:AppArch)

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.

code lgtm

@kertal
Copy link
Member

kertal commented Feb 17, 2020

@elasticmachine merge upstream

Copy link
Member

@kertal kertal left a comment

Choose a reason for hiding this comment

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

Code LGTM, tested locally in Chrome, auto refresh at Dashboards is now functional 👍

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

History

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:Visualizations Generic visualization features (in case no more specific feature label is available) release_note:fix Team:Visualizations Visualization editors, elastic-charts and infrastructure v7.6.1 v7.7.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Refresh interval for dashboards doesn't refresh data
5 participants