-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Multiple apps don't work anymore #57470
Comments
Pinging @elastic/kibana-platform (Team:Platform) |
It seems the kibana/src/core/server/legacy/plugins/find_legacy_plugin_specs.ts Lines 44 to 54 in 8c29802
which results in multiple apps with the same 'id' being registered twice: kibana/src/core/public/application/application_service.tsx Lines 196 to 202 in 47d0744
need to investigate on what caused this, I'm not aware of any major changes in the way we were merging plugin specs in @sergibondarenko can you confirm this did work properly on a 7.5.x ? |
Also, this seems to be still working with the kibana security plugin kibana/x-pack/legacy/plugins/security/index.js Lines 44 to 55 in b228689
|
@pgayvallet I confirm, the app works in Kibana v7.5.x |
The plugin is loaded as expected in Kibana v7.6 if the line
is substituted by
in kibana/src/core/server/legacy/plugins/find_legacy_plugin_specs.ts |
Reproduction confirmed on current master (c5a60b9) Also it does work with kibana/src/core/server/legacy/plugins/find_legacy_plugin_specs.ts Lines 62 to 64 in 8c29802
This was caused by #52161. Before that, the gathered apps were only using the kibana/src/legacy/ui/ui_apps/ui_apps_mixin.js Lines 37 to 54 in 054ec70
kibana/src/legacy/ui/ui_apps/ui_app.js Lines 81 to 83 in 8c29802
|
@sergibondarenko thanks for the complete reproduction scenario. That helped a lot. On it. |
Removing the regression label since this is a break on an experimental, unsupported API. |
Kibana version:
7.6.0
Elasticsearch version:
7.6.0
Server OS version:
Mac OS 10.15.3
Browser version:
Chrome 79
Browser OS version:
Mac OS 10.15.3
Original install method (e.g. download page, yum, from source, etc.):
From git branch: https://github.com/elastic/kibana/tree/7.6
Describe the bug:
Multiple apps registration doesn't work anymore. The code snippet:
index.js
The demo plugin can be found here https://github.com/sergibondarenko/kibana_multi_app_plugin_FAILS
Steps to reproduce:
Expected behavior:
I should access Kibana with no error and see two new apps in the left nav bar: app_a and app_b.
Screenshots (if relevant):

Errors in browser console (if relevant):
The text was updated successfully, but these errors were encountered: