-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ML] Fixes unnecessary ML services initialization during plugin setup (…
…#193153) A change to the cases registration in #183423 added a call to `getMlServices` during plugin setup. In this function many services are initialized including the ML capabilities service which contains a timed refresh of the ML capabilities (every 5mins). This means when using any page in kibana, `ml_capabilities` is called every 5min. This is very obvious when you leave a page open for a long time.  It is not unnecessary to call `getMlServices` during plugin setup and instead can be called during the lazy loading of the single metric viewer component, where it is used.
- Loading branch information
1 parent
0241cf6
commit e546302
Showing
3 changed files
with
14 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters