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

Support plugin discovery in sub-directories #59189

Closed
joshdover opened this issue Mar 3, 2020 · 1 comment · Fixed by #68811
Closed

Support plugin discovery in sub-directories #59189

joshdover opened this issue Mar 3, 2020 · 1 comment · Fixed by #68811
Assignees
Labels
Feature:New Platform Team:Core Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc

Comments

@joshdover
Copy link
Contributor

In order to support a more organized directory structure within src/plugins and x-pack/plugins, we need to be able to discover and load plugins that are in subdirectories, not only the top-level.

Discovery algorithm should work something like this:

  1. Scan current directory for kibana.json file
    • If kibana.json file is found, return the discovered plugin, do not scan subdirectories
    • If kibana.json file is not found, run step (1) on each subdirectory recursively

This should have no affect on the dependency mechanism of the Platform, just where plugins may live in the directory structure.

@joshdover joshdover added Team:Core Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc Feature:New Platform labels Mar 3, 2020
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-platform (Team:Platform)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:New Platform 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.

3 participants