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] Allow refreshing Lens component #95553

Open
flash1293 opened this issue Mar 26, 2021 · 5 comments
Open

[Lens] Allow refreshing Lens component #95553

flash1293 opened this issue Mar 26, 2021 · 5 comments
Labels
enhancement New value added to drive a business result Feature:Lens impact:low Addressing this issue will have a low level of impact on the quality/strength of our product. Team:Visualizations Visualization editors, elastic-charts and infrastructure
Projects

Comments

@flash1293
Copy link
Contributor

With the current API it's not possible to refresh a Lens component. There should be a way to cause the embeddable to re-render. The easiest way is probably passing in an observable as a prop which, on emitting, triggers a refresh.

@flash1293 flash1293 added enhancement New value added to drive a business result Team:Visualizations Visualization editors, elastic-charts and infrastructure Feature:Lens labels Mar 26, 2021
@flash1293 flash1293 added this to Long-term goals in Lens via automation Mar 26, 2021
@elasticmachine
Copy link
Contributor

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

@stratoula stratoula added the impact:low Addressing this issue will have a low level of impact on the quality/strength of our product. label Feb 15, 2023
@stratoula
Copy link
Contributor

@ThomThomson I think with your work on embeddables redesign this will be possible as they are more react-ish right?

@ThomThomson
Copy link
Contributor

ThomThomson commented Jan 30, 2024

Yes, each react embeddable will return an imperative API, and that API could have a refresh function on it, or even an Observable like @flash1293 originally suggested.

I can work on an example that shows how manual refreshing would work.

@stratoula
Copy link
Contributor

@ThomThomson yes this is what I mean. This will be possible with the new service, correct?

@ThomThomson
Copy link
Contributor

Oh! I misread your initial comment. Now I've edited mine for clarity. Yes, this will be possible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New value added to drive a business result Feature:Lens impact:low Addressing this issue will have a low level of impact on the quality/strength of our product. Team:Visualizations Visualization editors, elastic-charts and infrastructure
Projects
No open projects
Lens
  
Long-term goals
Development

No branches or pull requests

4 participants