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

Use the data plugin's index-pattern APIs for the "Should show the interstitial page" validation #108711

Closed
afharo opened this issue Aug 16, 2021 · 3 comments · Fixed by #109650
Closed
Assignees
Labels
Team:Core Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc

Comments

@afharo
Copy link
Member

afharo commented Aug 16, 2021

There are plans to block plugins from accessing the index-patterns SOs (#91715).

We use it in the Home plugin to validate whether we should show the interstitial page or not: src/plugins/home/public/application/components/home.js:78

Let's use the data plugin's APIs to run those validations.

@afharo afharo added the Team:Core Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc label Aug 16, 2021
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-core (Team:Core)

@afharo
Copy link
Member Author

afharo commented Aug 16, 2021

cc @joshdover since he recently revisited that piece of logic in #108193

@afharo
Copy link
Member Author

afharo commented Aug 20, 2021

Waiting for #108887 to be merged so we can replace our entire logic with a simple call to the new API hasUserIndexPattern.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Team:Core Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants