Commit graph

23566 commits

Author SHA1 Message Date
Felix Stürmer 0c58397923
[Infra + Logs UI] eslint-ignore generated typescript types (#34942)
This adds the generated typescript types to the `.eslintignore` file, because they started causing linter errors after the switch to `eslint` for typescript files (#33826).
2019-04-11 18:51:21 +02:00
Chris Roberson 8b480f3b55
[Monitoring] Protect against these fields not existing in Logstash Nodes listing (#34939)
* Protect against these fields not existing

* Add basic unit tests to ensure this behavior does not regress

* Expand this test to ensure we don't break on other pieces of data missing

* Use N/A if there is no value (rather than 0)
2019-04-11 12:46:23 -04:00
Pete Harverson 08273e58a0
[ML] Display metric rather than distribution chart for script field (#34931)
* [ML] Display metric rather than distribution chart for script field

* [ML] Cleaned up code in getChartType
2019-04-11 16:34:36 +01:00
Maryia Lapata 870552dd78
[Vis: Default editor] EUIficate field selection control and apply form validation (#34548)
* EUIficate field selection control

* Refactoring

* Remove unused commaList filter

* Remove field.html, update functional tests

* Update functional tests

* Remove unused translation

* Update unit test since wrapped React component haven't compiled yet

* Move setValidity invocation to the component

* Update functional test

* Fix type export

* Wrap setValidity into useEffect due to react warning on init load with empty value

* Update types

* Remove extra tag

* Removed changed translations

* Update functional test

* Add help and error message

* Update error message

* Remove unused dependency

* Remove helpText

* Remove unused dependencies

* Remove unused translation

* Refactoring

* Refactoring

* Update form validation; remove setTouched

* Update from validation

* Update form validation

* Update agg select validation

* Refactoring

* Add ariaLabel

* Revert changes

* Update comments

* Remove unnecessary aria-label

* Disable selector with no options

* Add 'required' support for string control

* Update messages

* Fix merge conflict

* Update message

* Fix eslint
2019-04-11 18:13:46 +03:00
Tyler Smalley c1ce349275
Removes getConnections log in new platform (#34934)
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2019-04-11 08:08:11 -07:00
Melissa Alvarez bd1320a834
[ML] Multi metric job wizard - ensure cardinality warning only shown on validity fail (#34874)
* Ensure cardinality warning only showns on fail

* add missing whitespace and fix typo
2019-04-11 07:14:59 -07:00
Sébastien Loix 29e25c401a
[Remote Clusters] client integration tests for forms (#34807) 2019-04-11 15:11:29 +02:00
Tim Roes aab98ae4f4
Don't save the current timezone in visualizations (#34795)
* Don't save the current timezone in visualizations

* Add additional test

* Add test and switch migration number

* Don't clone object according to review feedback

* Better documentation

* Update src/legacy/core_plugins/kibana/migrations.js

Co-Authored-By: timroes <mail@timroes.de>
2019-04-11 14:24:53 +02:00
Kerry Gallagher 382c95ea23
[InfraUI] [LogsUI] Autocomplete Field: Increase suggestions limit and allow scrolling (#34706)
* Autocomplete_field: Increase suggestions limit and allow scrolling

* Update x-pack/plugins/infra/public/components/autocomplete_field/autocomplete_field.tsx

Co-Authored-By: Kerry350 <k.gallagher.05@gmail.com>
2019-04-11 11:52:37 +01:00
Liza Katz 9f86745bdb
Editing a scripted field causes errors #33251 (#34679)
* Changed the default fieldFormatMap to undefined - bugfix

* Test for bug #33251

* Remove only
2019-04-11 12:13:00 +03:00
Marco Vettorello 6025d16e0f
Add TSVB external contractors as code owners for TSVB dir (#34848) 2019-04-11 10:29:51 +02:00
Tyler Smalley 852aea028c
Updates Core API Signature (#34887)
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2019-04-10 13:46:41 -07:00
Tyler Smalley b9f81edffe
No longer package X-Pack as a node module (#32722)
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2019-04-10 13:07:23 -07:00
Dmitry Lemeshko aa08669ca3
Fix visualize tests (#34390)
* wait for rendering

* run ciGroup12 x60 times

* [visualize/_tsvb_chart] redesign tests

* wait for viz initial loading before navigation

* [visualize/_tsvb_chart] assert tab is loaded

* Revert "wait for viz initial loading before navigation"

This reverts commit 1023db4fb9.

* [TSVB] [Performance]request for api/metrics/fields triggered after all UI changes

Fix: #34433

* [TSVB] [Performance]request for api/metrics/fields triggered after all UI changes - prevent reRender in case of no changes

Fix: #34433

* improve tests

* Revert "[TSVB] [Performance]request for api/metrics/fields triggered after all UI changes - prevent reRender in case of no changes"

This reverts commit a04ed55103.

* Revert "[TSVB] [Performance]request for api/metrics/fields triggered after all UI changes"

This reverts commit 040f0b106b.

* Revert "run ciGroup12 x60 times"

This reverts commit c38427f67f.

* rename dataTestSubj
2019-04-10 21:07:38 +02:00
Josh Dover 34cd8a3c67
Extract angular configuration from ui/chrome (#34314) 2019-04-10 13:46:52 -05:00
Josh Dover b006361e61
[new-platform] Improve naming and consistency in Plugin types (#34725)
* Improve consistency in Plugin types

* Use #has() instead of undefined check

* Rename parameter

* Update core docs

* Internal updates
2019-04-10 13:44:11 -05:00
Brandon Morelli 2a6c7b4cac
remove rogue or (#34830) 2019-04-10 10:28:56 -07:00
Nathan Reese beea4ee99e
[Maps] expand/collapse Layer TOC (#34506)
* [Maps] expand/collapse Layer TOC

* Design edits (#30)

* fix jest test snapshots

* make default isLayerTOCOpen a constant

* use newly release EUI menuLeft and menuRight icons instead of arrow icon
2019-04-10 09:43:19 -06:00
Kerry Gallagher 2fd678c0c7
Tweak metrics time range handling and unit tests (#34869) 2019-04-10 16:30:23 +01:00
Felix Stürmer dc6ecae7fa
[Logs UI] Refactor source configuration as hook for consistent data flow (#34455)
This PR refactors the source configuration state and source configuration form state to hooks. Aside from slightly improved performance due to memoization, it should not lead to visible differences.
2019-04-10 17:03:11 +02:00
Daniil Suleiman 63ea74c43c
[Vis: Default editor] EUIficate min doc count control (#34700)
* EUIficate min doc count control

* Add a common class name

* Move tooltip to the right
2019-04-10 16:55:41 +03:00
Daniil Suleiman 178f324d7f
Fix the case with empty field (#34745) 2019-04-10 16:55:14 +03:00
Søren Louv-Jansen 8ab483a7e8
[Cloud] Revert hardcoded cloud id (#34860)
Partially revert change introduced in aff8c69deb
2019-04-10 15:47:28 +02:00
Joe Reuter b7b584c2af
Update tab counters on filter change (#34246) 2019-04-10 15:41:39 +02:00
Mikhail Shustov c618751bb8
[New platform] Restrict import from core&plugin internals for ts files (#34688)
* eslint-plugin-import should resolve *.ts files

* no_restricted_paths adc support filename exclusion

* fix linter errors

* update autogenerateds docs

* export directly
2019-04-10 14:56:09 +02:00
Søren Louv-Jansen 93549e6b60
[APM] Shim new platform (#34531) 2019-04-10 14:41:20 +02:00
Tim Roes fcfd6e5a8d
Show a reload dialog when users change a setting requiring a page reload (#34780)
* Allow ui settings to require a page reload

* Change phrasing

* Fixed tests
2019-04-10 14:03:30 +02:00
Alexey Antonov 3099837678
[TSVB] [Rollup support] exclude unsupported metrics from the Metric Aggregations dropdown (#34165)
* [TSVB] [Rollup support] exclude unsupported metrics from the Metric Aggregations dropdown

Fix: #34047

* TSVB] [Rollup support] exclude unsupported metrics from the Metric Aggregations dropdown - fix broken tests

* [TSVB] [Rollup support] exclude unsupported metrics from the Metric Aggregations dropdown

* [TSVB] [Rollup support] exclude unsupported metrics from the Metric Aggregations dropdown - add filtering for group by

* fix tests

* Fix issue with fetching fields
2019-04-10 13:29:23 +03:00
Søren Louv-Jansen aff8c69deb
[APM] Link to APM Server setup in APM Getting started guide (#34786) 2019-04-10 10:18:44 +02:00
Matthias Wilhelm d733a8950c
Convert SavedObjectSaveModal incl. tests to Typescript (#34629) 2019-04-10 08:29:52 +02:00
dave.snider@gmail.com ce6c33a3e4
Upgrade eui@9.9.0 (#34824) 2019-04-09 15:44:02 -07:00
Mike Côté d0b4e3de8f
Fix kfetch mock in saved object jest tests (#34815) 2019-04-09 17:23:50 -04:00
Joel Griffith 8bb2c8b3ab
Set a default timeout for all "waitfor" methods (#34756) 2019-04-09 14:19:40 -07:00
Chris Cowan 4168f3594c
Fixes bug where tooltip doesn't line up with data (#34749) 2019-04-09 14:15:01 -07:00
Mike Côté 87600233e5
Fix bug in saved object import UI that threw an error when clicking remove (#34810)
* Fix bug in saved object import UI that threw an error when clicking remove

* Add test to reproduce the bug

* await promise.resolve instead
2019-04-09 16:55:58 -04:00
Corey Robertson 85aac53fee
Fixes 'Can't update during existing transition' warning message (#33880)
* Move files to TS files

* Fixes the React warning message

* Strongly type the actions and the middleware

* Adds tests for in_flight middleware

* Clean up

* Ignore non-ts file
2019-04-09 16:51:52 -04:00
Mike Côté fcd60ca0d9
Ensure migrations run on saved object import (#34793)
* Ensure migrations run on saved object import

* Fix broken tests

* Fix ESLint errors
2019-04-09 15:18:49 -04:00
Pete Harverson d259e1f258
[ML] Fixes Single Metric Viewer anomaly markers for long chart aggregation (#34791) 2019-04-09 17:04:42 +01:00
Mike Côté 962722ae8a
Convert saved objects UI to use new import / export API (#33513)
* Initial work converting UI to use new server side APIs

* Remove missed file

* Fix jest tests

* Code cleanup pt1

* Fix file casing

* Fix jest tests

* Modify UI to support including nested references

* Fix button layout

* Connect includeReferencesDeep, remove references_missing_references logic

* Fix broken tests

* Cleanup

* Display success notifications and auto close modals on export

* More code cleanup

* Log to server when user imports using legacy .json file

* Final cleanup

* Update test snapshots to match updated text

* Apply PR feedback pt1

* Remove isLoading and wasImportSuccessful state variables, use single status variable instead

* Move business logic out of flyout component

* Apply PR feedback

* Update wordings
2019-04-09 12:02:54 -04:00
Josh Dover 5e32992a54
[UA] Show different interstital text when cluster is upgraded (#34762) 2019-04-09 09:54:17 -05:00
Artyom Gospodarsky 6a72bcb1d9
Update a snaphot (#34787) 2019-04-09 16:41:51 +03:00
Kerry Gallagher a5fb494d84
[InfraUI] Use EuiSuperDatePicker on the Metrics page (#34427)
* Remove custom date picker for Metrics page, replace with EuiSuperDatePicker. Remove redux-observable for metrics-time state, replace with hooks.

Pass through refreshInterval and set it as part of the startMetricsAutoReload action

Refactor metric time controls to use EuiSuperDatePicker

Remove redux / redux-observable usage for MetricsTime, replace with hooks

Add useInterval hook and hook up to auto reloading

Add refresh interval support to the URL

Use more concise syntax

Add small styling

Add tests for metric_time

Add extra test

Add correct typings

Update time range immediately when auto reload is turned on (so we don't wait for the first interval to elapse)

Use stricter typing

Remove custom date range picker

Amend translations after removing custom date range picker

* Amend test for CI sensitivity

* Amend test assertions

* DRY up with useCallback
2019-04-09 12:49:04 +01:00
Sébastien Loix 3bc39bdf77
[CCR] Client tests auto-follow pattern & follower index forms (#34449) 2019-04-09 11:43:04 +02:00
Alexey Antonov be8ea4a722
[TSVB] [Performance]request for api/metrics/fields triggered after all UI changes (#34436)
* [TSVB] [Performance]request for api/metrics/fields triggered after all UI changes

Fix: #34433

* [TSVB] [Performance]request for api/metrics/fields triggered after all UI changes - prevent reRender in case of no changes

Fix: #34433

* should update data on switching tabs

* fix PR comments
2019-04-09 12:34:35 +03:00
Alexey Antonov 9bde4e4830
Timeseries Visual Builder - DST shift in historic data (#34283)
* Timeseries Visual Builder - DST shift in historic data

* Timeseries Visual Builder - DST shift in historic data - performance optimization
2019-04-09 12:30:50 +03:00
Artyom Gospodarsky 11e9d88ba9
[TSVB] Add Include and Exclude fields to the Terms group (#34153)
* Add Include and Exclude fields to the Terms group

* Change *clude to *cludeLabel

* Add the include and exclude parametrs to the server side

* Remove an unnecessary prop

* Use destructring

* Change back a variable

* Destruct lodash

* Fix input filling

* Add type checking to inputs

* Add constants to field types

* Make a snapshot of the SplitByTermsUI component

* Move constants to common
2019-04-09 12:12:05 +03:00
Søren Louv-Jansen 0eff2e15f5
[APM] Set minimum bucket size to connect dots in metric chart (#34473) 2019-04-09 09:33:58 +02:00
Robert Monfera 47e97532ed
[Canvas] Fix: wait for DOM element to exist (#34475)
* Fix: wait for DOM element to exist

* Fix: add the missing retry in the other branch too

* Fix: clear timeout

* Perf: avoid an extra async step

* Chore: remove unused static props and explicitly initialize them via the constructor
2019-04-09 00:35:38 +02:00
Christiane (Tina) Heiligers 95f93e5f81
Enables optional use of the timezone set in Advanced Settings in queries (#34602)
* Adds time_zone to query

* Adds dateFormatTZ to kuery query

Removes comments

* Adds defaults for the dateFormatTZ to the function signatures

* Adds tests for date match in kuery

Modifies test

* Adds a test for get_es_query_config

* Adds test for get timezone from settings utility method

* Adds tests for modified range method

Adds config param test to node_types/functions

code clean up

* resolves initial PR comments

* Refactors build_es_query test

* Refactors get_time_zone_from_settings test

* Uses spys to test that the config is passed down to children in ast toElasticsearchQuery

* removes default config nulls

* Deletes sinon.spy tests in kuery

* removes moment.setDefault from __tests__/get_timezone_from_settings.js
2019-04-08 14:18:09 -07:00
igoristic 50fab1aea3
Swapped kui base class with eui equivalent (#34644)
* Swapped kui base class with eui equivalent

* Added the react component instead
2019-04-08 16:51:44 -04:00