* multi thread expensive loaders
* revert styles
* feat(NA): added thread-loader and cache-loader to base optimizer and dll compiler.
* feat(NA): added cache-loader and thread-loader to the optimizer and dll compiler.
* feat(NA): use new terser plugin instead of old unmaintained uglifyjs webpack plugin.
* refact(NA): remove unused configs from base optimizer and dll compiler.
* fix(NA): available cpu calculated number.
* docs(NA): fix comment about what we are doing in prod on base_optimizer config.
* docs(NA): explain why we are setting memory into each thread loader worker.
* fix(NA): add dev only loaders to the thread-loader warmup config.
* refact(NA): change name from babelCacheDir to babelLoaderCacheDir.
* fix(NA): logic for calculating available cpus.
* feat(NA): pass NODE_OPTIONS along for the optimizer forked process and also for the optimizer workers.
* feat(NA): remove terser webpack plugin compression from base_optimizer and only run it on dll compiler.
* chore(NA): update function to calculate available cpus for works.
* fix(NA): apply upperbound to the number of workers we can have on thread-loader.
* fix(NA): decrease the max number of thread pool workers. refact(NA): use the same calculated number of cpus to use on parallel tasks on thread loader pool config for terser parallel. refact(NA): lower down the poolTimeout on non dev mode. refact(NA): change devOnlyModules to nonDistributableOnlyModules on warmupThreadLoader config.
* chore(NA): update yarn lock deps after merging with master.
EUI 5.7.0 had a color refresh which switched around our palette to better match branding guidelines. Hex colors are still hard coded in large parts of Kibana so most of the changes not in kbn/ui-framework are simple shifts to match that styling.
This updates Kibana to use the 6.6 version of EMS. It introduces a new library `ems_client`, to parse the manifests. This library will be used by the upcoming GIS-app. The original visualizations continue to use service_settings, but this component has now been rewritten to use this new `ems_client` client.
- The annotations table has been updated to support multiple jobs.If annotations from multiple jobs are shown, a column with job ID will dynamically be added to the annotation table.
- The code for openSingleMetricView() to drill down from the annotations table has been updated to work both from the jobs list and Anomaly Explorer.
- The wrapper angularjs directive for the annotations table now has support for a scope attribute to show/hide the column with A/B/C... labels.
* [ML] List all annotations in jobs list annotations table even outside analysis time range.
* [ML] Adjust the links time range if annotation is outside analysis time range.
* [canvas] remove styling rules that are handled by prettier, always use curlys in if
* [eslint] autofix missing curly brackets
* [eslint/canvas] remove redundant prettier plugin config
* autofix lint errors in canvas_plugin_src/renderers/time_filter/components/datetime_range_absolute/datetime_range_absolute.js
## Summary
Closes https://github.com/elastic/kibana/issues/25656
Fixes one memory leak, and another potential memory leak.
### Worker thread leak
Occasionally, users would see warnings on the server about a listener having more than 11 detached functions. I tracked it down to the server-side worker thread, specifically the handling of the `getWorkerFunctions` event. Every user or refresh would create another listener, which was never cleaned up. This PR pulls the handler function out in `functionListHandler` and removes the listener once the matching message is received.
We also weren't cleaning up event listeners on the worker when it exited, and while it's not clear if that's actually required, it seemed safer to just remove all of the listeners before new worker instance is created.
### Websocket server leak
This one I don't think is actually a leak. It doesn't look like the teardown on the client instance is required on disconnect, but I couldn't verify that in the code, so better safe than sorry. When a client disconnects, we were removing the `run` listener, but not any of the others. In this pr, `removeAllListeners` is used so that everything is cleaned up on disconnect.
* Convert all pages to use the base controlller, then add logic in there to stop a new request when one is inflight
* Reuse the promise
* Undo logstash changes
* Update in catch too
* Add unit test
* Fix cluster name showing up
* Update broken test
* Just use updateDataPromise
* Adding id and name to metadata response
* Adding name to response
* update to types
* Adding support for displayNames to waffle map
* fixing a bug when _source is missing
* Fixing tests
* making the metadata response manditory
* Fixes from PR review
* Fixing typing errors related to displayName being required part of path
* Changing 'Loading data for xxx' to 'Loading data'
* Changing InfraNodePath.displayName to InfraNodePath.label
* Change groups to use the label instead of value
* Fixing merge changes
* working new control layout
# Conflicts:
# x-pack/plugins/beats_management/public/components/table/table.tsx
* Finish new table controls
* check for tags
* update type to match reality
* when all beats are removed, no more error
* update label for uniformity
* Sets start date time to start of day and end date time to end of day when clicking a date in the date picker
* Added check for if date or time was selected in date picker
* Updated comment
Fixes the overflow of annotations left and right of the focus area chart using a SVG mask. In addition to the masking, annotation label position are adjusted to not be hidden or cut off when the start or endof a masked annotation is outside the visible area.
This is a loose forward-port of #25307, which was rushed in for 6.5. I created
this PR to make sure we don't lose the fix.
Part of #elastic/beats#8957.