-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
Add warning log for 3rd party legacy plugins #56558
Comments
Pinging @elastic/kibana-platform (Team:Platform) |
We need to make sure we can reliably identify 3rd party plugins + should probably only do this in development mode since users don't have any recourse to fix legacy plugins. |
Legacy plugins are currently discovered using two config properties: kibana/src/legacy/plugin_discovery/find_plugin_specs.js Lines 111 to 121 in 8e9a8a8
Default values being: plugins.paths [ '/x-pack' ]
plugins.scanDirs [ '/plugins', '/src/legacy/core_plugins' ] Also in legacy, Lines 38 to 46 in 2a8a7d7
As there is no metadata-related approach to 'detect' 3rd party plugins, my guess is that our only option is going to be to detect them depending on their actual path ? The only info we currently have is the folder the plugin's kibana/src/legacy/plugin_discovery/plugin_pack/create_pack.js Lines 24 to 34 in 8e9a8a8
Should we assume than any WDYT? Does anyone see any alternative to that detection approach? |
Sounds reasonable. I have nothing to add.
I thought we scan |
We do for NP plugins, but it doesn't seem to be the case for legacy plugins. kibana/src/core/server/config/env.ts Lines 108 to 114 in 4e8ab56
@joshdover could you confirm that? |
Do we have any persistent url to such documentation? Or should we just point to the source |
I know about https://github.com/elastic/kibana/blob/master/docs/migration/migrate_8_0.asciidoc link to the all NP migration docs are valuable as well. |
Regardless of if we remove legacy plugin support in 7.x or 8.0 (#56205) we should start logging warnings for any 3rd party legacy plugins that are found during the legacy discovering process.
This should include a note to documentation about the upcoming breaking change and how to migrate the plugin.
The text was updated successfully, but these errors were encountered: