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

Migrate index pattern fetching from component level effect to state store #132

Closed
justinkambic opened this issue Jan 7, 2020 · 1 comment

Comments

@justinkambic
Copy link

Is your feature request related to a problem? Please describe.
Today we are having multiple components responsible for fetching the index pattern utilized by the application. This is inefficient, because we only have one index pattern, and we shouldn't be pulling it down multiple times for a single run.

Describe the solution you'd like
We should add the pattern to our state store, and provide an action type that can be dispatched to refresh it. We can dispatch one of these actions as part of our application's bootstrapping process, and in the future if we want to allow user actions to refresh the pattern the infrastructure will already be present.

Describe alternatives you've considered
We are going to create a temporary fix as a solution for elastic/kibana#54151. We could leave that fix in place indefinitely, but this solution is better long-term.

Additional context
N/A

@shahzad31
Copy link

This is fixed by elastic/kibana#55446

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants