Commit graph

21748 commits

Author SHA1 Message Date
Caroline Horn 03c2c6e8f4
Point to EUI for SASS/CSS guidelines (#27415) 2018-12-18 14:39:38 -05:00
Tiago Costa efdf63dfc2
Optimize with thread loader and terser (#27014)
* 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.
2018-12-18 19:29:50 +00:00
CJ Cenizal 3b206e280d
[Rollups] Fix rollup job wizard bug: coerce histogram interval to Number for validation. (#27413) 2018-12-18 11:25:41 -08:00
Jonathan Budzenski b5b64f4706
Support for multiple Elasticsearch nodes and sniffing (#21928)
* Node sniffing

* update monitoring

* cleaning

* remove tests

* rewrite tests using the proxy

* fix monitoring mocha tests

* fix payload

* return full error

* default interval false

* add sniff settings to monitoring

* add docs for sniff settings

* re-add index search integration test

* catch parse error

* capital

* fix merge

* hapi upgrade

* return

* pass by prefix

* rm empty test fille

* split error handling

* fix merge

* update recent elasticsearch.url references

* prettier vs eslint

* transport.request, include query params

* mega comment

* revert elasticsearchUrl

* safe hosts

* more docs es.url references

* remove unused ml/esServerUrl

* log if both set
2018-12-18 13:22:43 -06:00
dave.snider@gmail.com a94fd11a3e
EUI 5.8.1 comes with a brand color refresh. Also removes lots of KUI (#27009)
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.
2018-12-18 10:59:31 -08:00
Melissa Alvarez 70ca46b1be
[ML] Use EuiSuperSelect for the 'Create Watch' severity control in Job wizard (#27272)
* Use superSelect eui for watcher severityControl

* move severity options to utils

* use existing severity control component

* add classNames prop

* Keep severity options in component

* increase severity select width
2018-12-18 11:07:03 -07:00
Thomas Neirynck 71c16e6758
Update to new version of EMS (#26511)
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.
2018-12-18 12:47:34 -05:00
Tiago Costa 00aabd4585
Support prod bundles generation on dll from env (#27259)
* chore(NA): fix-env-prod-for-dll.

* refact(NA): changed the condition to generate dll accordingly an env.
2018-12-18 16:57:01 +00:00
Walter Rafelsberger d802ce73a7
[ML] Display a confirmation modal before deleting an annotation. (#27377)
* [ML] Display a confirmation modal before deleting an annotation.
* [ML] Remove testing reliquia.
2018-12-18 17:27:34 +01:00
Tiago Costa ea06d3ce54
fix(NA): update strong-log-transformer version. (#27263) 2018-12-18 16:26:45 +00:00
Melissa Alvarez ea3725a11f
[ML] ML Ensure correct permissions applied to Settings Calendars/Filter Lists (#27346)
* Update calendar management permissions

* update filter lists permissions

* update calendars tests

* update settings and filterLists tests

* update filterList edit save button permission check

* Disable event delete in edit form if no permission

* Update tests for eventTable change
2018-12-18 09:18:38 -07:00
Aaron Caldwell 76b89a6ebe
EAH - Convert geohash decode code to typescript (#23955)
* Convert geohash decode code to typescript

* Change decode geohash js file over to ts file

* Update notice
2018-12-18 08:54:40 -07:00
Nathan Reese 91662d5146
remove width css rule for inspector request selector EuiContextMenuPanel (#27067) 2018-12-18 08:35:45 -07:00
Maryia Lapata d555241ca7
[i18n] APM translations (Part 1) (#27384)
* Translation for APM utils, intex.js and register_feature.js

* Fix a typo
2018-12-18 18:30:26 +03:00
tibmt d19cafb397 [i18n] Translate ML - Permission failure messages (#25648)
translate privilege folder of ML
2018-12-18 17:51:43 +03:00
pavel06081991 96137046ba
translation ML access denied (#27105)
translation ML access denied
2018-12-18 17:49:09 +03:00
Bill McConaghy 07f7e8d35c
adding new specs for security endpoints without _xpack prefix (#27057)
* adding new specs for security endpoints without _xpack prefix

* adding overrides

* fixing issues with autocomplete and missing docs
2018-12-18 09:36:02 -05:00
Brandon Kobel 2fa3cd8bf4 Changing from /_xpack/security/ to /_security/ (#26922)
* Changing from /_xpack/security/ to /_security/

* Putting ML's routes back, will be addressed separately
2018-12-18 09:34:24 -05:00
Walter Rafelsberger f6dd17c93e
[ML] Annotations Table in Anomaly Explorer. (#27312)
- 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.
2018-12-18 15:20:59 +01:00
Tim Roes 505582037d
Add size: 0 to esaggs searchsource (#27116) 2018-12-18 14:59:03 +01:00
Søren Louv-Jansen 5a763ec71b
[APM] Create Stackframe component, tests for Error interface and more TS (#27139) 2018-12-18 14:37:09 +01:00
Matt Apperson e43030885f
[BeatsCM] Additional validation of config block on the API (#27321)
* [BeatsCM] Validate config block output type on the API

* add redis output

* Update config_schemas.ts

* tweak output type processing

* fix typo
2018-12-18 08:16:31 -05:00
Juan Álvarez 44baae3555
[apm] update index pattern (#27372) 2018-12-18 13:22:17 +01:00
pavel06081991 e8403efa97
fix [ML] Delete job modal displaying [object Object] instead of actual text #27356 (#27378) 2018-12-18 15:05:35 +03:00
Bhavya RM 7b2b47c46e
Adding a11y rules from tslint-microsoft-contrib to tslint (#26888) 2018-12-18 06:25:31 -05:00
Leanid Shutau eefde19a7f
[I18n] Update locale data for IntlRelativeFormat and IntlMessageFormat (#26468)
* [I18n] Update locale data for IntlRelativeFormat and IntlMessageFormat

* Update locales

* Add default relative formats

* Fix en locale formats

* Update readme

* Make setFormats public

* Update snapshots

* Resolve comments

* Update locales list

* Update snapshots

* Add locale data for pseudo-locale
2018-12-18 13:25:16 +03:00
Walter Rafelsberger c6dc1a1fec
[ML] List all annotations in jobs list annotations table. (#27300)
* [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.
2018-12-18 09:24:24 +01:00
Matt Apperson b1b5d623cf
[BeatsCM] return null for no user authentication in a request (#27342) 2018-12-17 21:16:35 -05:00
Spencer ccfa8a3530
[canvas] remove unnecessary eslint style overrides, use curlys (#27176)
* [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
2018-12-17 17:32:06 -08:00
Chris Cowan 4eb5e64758
[Infra UI]Adding linking support for APM (#27319)
* Fixes #26620 - Adding linking support for APM

* Fixing some weird merge artifacts

* Finalizing URL linking to APM
2018-12-17 14:25:53 -07:00
Tim Roes 8964523f41
Add setting to enable frozen index search (#27297)
* Add setting to enable frozen index search

* Add description to docs

* Fix method calls
2018-12-17 22:21:34 +01:00
Joe Fleming ff7d887d1d
Fix: socket and thread memory leaks (#26984)
## 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.
2018-12-17 13:06:50 -07:00
CJ Cenizal fa1fb5441b
Upgrade EUI to 5.6.2. (#27327) 2018-12-17 11:52:13 -08:00
Leanid Shutau 3f9c1eebcb [I18n] Translate monitoring - uiExports (#27195)
* [I18n] Translate monitoring - uiExports

* Fix message id collision
2018-12-17 22:50:15 +03:00
Bill McConaghy b0c6b52b45
Fix search profiler (#27326)
* fix logic for when license error shows

* fix API route to work with latest hapi API
2018-12-17 14:39:46 -05:00
Chris Roberson faa57fd7a9
[Monitoring] Stop a new request when one is inflight (#27253)
* 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
2018-12-17 14:38:21 -05:00
Josh Dover 08fd427125
Establish pattern for typing legacy plugins (#26045)
* Add legacy types and export them for plugins
* Add support for core_plugins to import from 'kibana'
2018-12-17 12:52:21 -06:00
Chris Cowan 53710d8ae0
[Infra UI] Update links for containers to use ID instead of name (#27088)
* 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
2018-12-17 11:00:34 -07:00
Melissa Alvarez 4cfd7f4a59
[ML] Ensure loading message is present on jobs load (#27316)
* Update loading message jobsList

* Update loading message
2018-12-17 11:40:19 -06:00
Matt Apperson d7a5e631d5
[BeatsCM] Update table controls for better discoverability (#27043)
* 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
2018-12-17 12:29:03 -05:00
Catherine Liu 5421473a1c
Sets time to start/end of day when selecting date in the timepicker (#27186)
* 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
2018-12-17 10:22:27 -07:00
Brandon Kobel 1c79f72486
Only using known handlers with handlebars (#27061) 2018-12-17 08:29:37 -08:00
Walter Rafelsberger e515e0424b
[ML] Mask annotation overflows in Time Series Chart. (#27292)
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.
2018-12-17 16:58:41 +01:00
Luke Elmers 465d56faea
Fix broken filtering on "other" bucket in inspector. (#26794) 2018-12-17 08:39:49 -07:00
Pete Harverson 6cc9bc2fc6
[ML] Adds created_by meta data for file data viz import indexes (#27303) 2018-12-17 15:28:04 +00:00
Maryia Lapata 64b2399739
[i18n] Revert translations for Vega and Markdown labels (#27285)
* Revert translations for Vega and Markdown label

* Add description for translated
2018-12-17 15:23:10 +03:00
Pete Harverson c334c40453
[ML] Updates to jobs and dashboards in auditbeat process modules (#27233) 2018-12-17 11:35:16 +00:00
Walter Rafelsberger 55aafcec59
[ML] Consolidate date formatting. (#27205)
* [ML] Consolidate date formatting.
* [ML] Adds unit tests.
* [ML] Fixes tz issue in date_utils test.
2018-12-17 10:12:41 +01:00
Bill McConaghy 19b9da5dca
adding loading spinner for index management table (#27204)
* adding loading spinner for index management table

* removing search bar and system indices switch on first load

* removing console.log
2018-12-15 14:31:30 -05:00
Tudor Golubenco 2d6789d53d
Fix painless script in TSVB (#27173)
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.
2018-12-15 18:14:08 +01:00