Commit graph

18248 commits

Author SHA1 Message Date
Caroline Horn acd01a4881
Resolve conflicts (#23197) 2018-09-14 15:28:25 -04:00
liza-mae ea367773a4
Filter test files from command line (#23010) (#23016)
* Filter test files from command line

* [ftr] add option to exclude test files

* [ftr] fail if exclude paths were not found

* [ftr] list excluded paths that did not match
2018-09-14 11:36:10 -06:00
Jiří Programagor 9183fe8ba5 [Monitoring] Properly Deduplicate Replica shards (#23183)
Issue #23179 was caused by ignoring multiple replicas of the same shard, even if they are on different nodes. This commit fixes that.
2018-09-14 12:41:01 -04:00
Tim Roes fed4f831b2
Remove nesting-indicator directive (#23180) (#23188)
* Remove nesting-indicator directive

* Remove broken import
2018-09-14 17:08:28 +02:00
Peter Pisljar 0bf25daecb
hierarchical response handler rewrite (#22578) (#23004) 2018-09-14 07:29:23 +02:00
Spencer 489779a906
[6.x] [ts] enable support for iterators in browsers (#22986) (#23014)
Backports the following commits to 6.x:
 - [ts] enable support for iterators in browsers  (#22986)
2018-09-13 16:52:20 -07:00
Spencer a7abb848fd
[6.x] [uiBundles/resetBundleDir] force del() if bundleDir is outside cwd (#22981) (#23002)
Backports the following commits to 6.x:
 - [uiBundles/resetBundleDir] force del() if bundleDir is outside cwd  (#22981)
2018-09-13 13:20:00 -07:00
Pete Harverson 067e162aa8
[ML] Add links to rule editor for quick edit of value or filter (#22990) (#22997)
* [ML] Add links to rule editor for quick edit of value or filter

* [ML] Updates to rule editor quick links following review
2018-09-13 20:25:32 +01:00
Stacey Gammon 3983f30d38
Bring back most of the filtering tests, only bypass the known current issues (#22787) (#22996)
* Bring back most of the filtering tests, only bypass the known current issues.

* Clean up after the test suite run so it can be run multiple times in a row.

* goal and guage issues were because of a bad cache
2018-09-13 12:37:29 -04:00
Walter Rafelsberger ecfbfa7281
[ML] Fix reloading anomaly charts on resize. (#22967) (#22995)
- Fixes a regression introduced in #22814. Because of the stricter checking for scope/props updates, resizing the browser window would miss updating the Anomaly Explorer Charts widths. This fixes it by adding a check to trigger anomalyDataChange in redrawOnResize().
- Additionally, if only one chart is up for display, this update makes sure a single chart always spans across the full available width.
2018-09-13 17:31:10 +02:00
Walter Rafelsberger 49bfcc6d63
[ML] Fixes loading the influencers for Anomaly Explorer. (#22963) (#22989)
- This fixes a regression introduced in #22814. The influencer list wouldn't update if no cell in the swimlanes was selected.
- Renames getTopInfluencers to loadTopInfluencers to be in line with the other functions loadDataForCharts and loadAnomaliesTableData
- Changes the order of arguments for loadDataForCharts so they are the same like in loadTopInfluencers.
2018-09-13 14:18:57 +02:00
Maryia Lapata 0a44c3f2dc
[Tools] Throw FailError with code context on babel/parser exception (#22810) (#22992)
* [Tools] Throw FailError with code context on babel/parser exception

* Add description for createParserErrorMessage function
2018-09-13 14:51:08 +03:00
Stacey Gammon 5a65d1e8ea
Capture browser logs on test failure (#22670) (#22983)
* Capture browser logs

* spit out in logs, simulate failure to test

* remove leftover code

* simulate failure

* Remove forced failure
2018-09-13 07:28:02 -04:00
Spencer a82af2817e
[6.x] Remove testURL hotfix from jest upgrade (#22953) (#22977)
Backports the following commits to 6.x:
 - Remove testURL hotfix from jest upgrade  (#22953)
2018-09-12 17:38:08 -07:00
Lisa Cawley fcdebbb44c [DOCS] Synchronize location of Breaking Changes (#22939) 2018-09-12 09:23:41 -07:00
Peter Pisljar cb36eebb96
fixed editor state updates for parent pipeline aggs (#22874) (#22961) 2018-09-12 16:00:11 +02:00
Walter Rafelsberger 7a788a219d
[ML] Explorer Chart Tweaks (#22955) (#22957)
- The aim of this is to more clearly visualize how the timerange of the cell selected in the swimlane relates to the time span shown in the charts.
- The most important change is that the vertical date axis ticks no longer are randomly positioned by d3. Instead they are aligned with the cell interval of the swimlane. This way, the date information shown in the swimlane tooltip will always align with the date tick shown left of the emphasized area in the chart.
- The highlighted area now features a gray rounded border to resemble the styling of the selected cell in the swimlane.
- The chart also fixes where to long chart headers would wrap the "View" link to a new line.
- The x/y axis labels blackness has been reduced to reduce emphasis on the labels.
2018-09-12 15:06:59 +02:00
Peter Pisljar 2b1dacccfd
fixing sorting of terms bucket (#22919) (#22926) 2018-09-12 12:22:06 +02:00
Peter Pisljar 89af63c3be
changing the way aggconfig field filter works (#22756) (#22920) 2018-09-12 10:47:45 +02:00
Spencer 3c9fcd5bb3
[6.x] [core/public] stop loadingCount, improve stop() tests (#22937) (#22948)
Backports the following commits to 6.x:
 - [core/public] stop loadingCount, improve stop() tests  (#22937)
2018-09-11 18:28:49 -07:00
Nathan Reese eadf7e847b
backport (#22949) 2018-09-11 17:07:48 -06:00
pavel06081991 28450485e2
translate tutorials(aerospike_metrics, apache_logs, apache_metrics) (#22875) (#22946) 2018-09-12 00:35:26 +03:00
Spencer 674d65bb58
Upgrade to TypeScript 3 (#22792) (#22927)
LGTM 🎉 🎉 🎉
2018-09-11 14:14:17 -07:00
Stacey Gammon 7f0eafe510
updated panel_state to ts gridData i vs id (#22515) (#22941)
* updated panel state to ts gridData i vs id property

* changed gridData.id to gridData.i
2018-09-11 16:53:37 -04:00
Stacey Gammon 79f9817bb7
Default to chromium and add deprecation warning for phantom. (#21505) (#22940)
* Default to chromium and add deprecation warning for phantom.

* use int, not float
2018-09-11 16:53:28 -04:00
Lee Drengenberg 4b26d3fe3b
Fix rbac test (#22912) (#22933)
* conditionalize Monitoring tests for Cloud testing

* make security_page/login wait

* revert these files from another PR

* revert these files from another PR
2018-09-11 15:15:04 -05:00
Spencer cfd2a8fee8
[6.x] [core/public/deepFreeze] fix recursive type for better array support (#22904) (#22932)
Backports the following commits to 6.x:
 - [core/public/deepFreeze] fix recursive type for better array support  (#22904)
2018-09-11 10:27:32 -07:00
Matt Bargar 526c48f2cd
Expose max_concurrent_shard_requests for _msearch requests (#22379) (#22930)
Allows Kibana users to configure the max_concurrent_shard_requests param used by Kibana when sending _msearch requests. Exposes the config as an advanced setting. By default we won't send the param at all, relying on the ES default instead.
2018-09-11 13:03:41 -04:00
Spencer 9b03dd6a93
[ui/url] TypeScript-ify (#22849) (#22896)
Looking to use `absoluteToParsedUrl()` in TypeScript and it would be nice if it was TypeScript as well.
2018-09-11 07:23:43 -07:00
Walter Rafelsberger 704667feb8
[ML] Fixes Anomaly Explorer Swimlane race condition, adds tests. (#22814) (#22923)
This PR addresses parts of #22642:
- It gets rid of the use of var that = this;.
- dragSelect's action strings are moved to a constants file.
- Adds jest tests for the ExplorerSwimlane component.

This also fixes the following bugs:
- The way we subscribe listeners to the events of the dragSelect library could result in the same event being triggered multiple times. This in turn could cause race conditions when on each event new data gets fetched but in between angular's scope gets updated and could end up in a non-intended way. The result of this were view-by swimlanes not updating correctly or anomaly charts showing non-related charts. This PR fixes it by filtering out consecutive swimlane click events.
- When the angular based chart container wrapper directive gets destroyed/re-esetup when using the job pick, it missed unmounting the react component, it didn't trigger componentWillUnmount()and didn't unsubscribe from dragSelectListener.
2018-09-11 14:14:30 +02:00
Peter Pisljar d86c0b1d79
decouple agg configs from vis (#21827) (#22914) 2018-09-11 12:49:33 +02:00
Maryia Lapata 1674a3d3b5
Translate Input Control component (#22400) (#22895)
* Translate Input Control component

* Remove export from variables that get wrapped by a helper

* Refactoring

* Update message ids

* Fix unit tests
2018-09-11 08:40:45 +03:00
Nathan Reese 604dd490fb
Controls vis - safely handle case where value can not be extracted from Kibana filter (#22885) (#22899)
* handle case where value can not be extracted from Kibana filter

* review feedback
2018-09-10 17:47:17 -06:00
Chris Roberson 58d7b05a64
Ensure tab works on the banner (#22664) (#22889) 2018-09-10 15:51:43 -05:00
Jonathan Budzenski 540ab9455a
[6.x] [ci] use es snapshots on non pull requests (#22834) (#22894)
* [ci] use es snapshots on non pull requests

* remove extra export

* always clone

* master -> 6.x
2018-09-10 15:16:29 -05:00
Larry Gregory 8da5719582
[6.x] attempt to fix flaky tests (#22852) (#22888)
Backports the following commits to 6.x:
 - attempt to fix flaky tests  (#22852)
2018-09-10 14:33:52 -04:00
CJ Cenizal 850cfcf2de
Replace theme CSS instead of appending it to DOM. (#21709) (#22887) 2018-09-10 10:14:33 -07:00
CJ Cenizal 1193ed0ece
List "Cleaner" plugin for setting index TTL (#22616) (#22884) 2018-09-10 09:08:07 -07:00
Larry Gregory aa1c265c1c
[6.x] Manage telemetry opt-in via a dedicated document (#22268) (#22877)
Backports the following commits to 6.x:
 - Manage telemetry opt-in via a dedicated document  (#22268)
2018-09-10 09:31:09 -04:00
Marco Vettorello e4c7e21324
Fix _source formatting (#22800) (#22864)
* Fix _source formatting

* Update unit test

* Add functional test

* Fix CI error, move functional test to the end
2018-09-10 12:07:05 +02:00
Søren Louv-Jansen 2202d0e900
Refactors properties table, implements typescript (#22402) (#22857)
* Refactors properties table, implements typescript

* Adds type info for imported variables file

* Small fixes based on code review

* Adds tests for new nested key/value table components

* Removes variable reassignment

* Fixes up styled component snapshots, uses mount instead of shallow

* Small review fixes, adds typings to PropertiesTable index file

* Small review fixes, changes method name

* Fixes test after moving back to JSON file
2018-09-09 02:25:08 +02:00
Søren Louv-Jansen 086dc43c5f
[APM] Fix ML links (#22820) (#22856) 2018-09-09 02:24:55 +02:00
Søren Louv-Jansen ed9ee0ddcd
Remove deprecated React lifecycle methods from APM code (#22147) (#22858)
* Removes deprecated React lifecyle hooks from APM files

* Clarifies APM readme

* Adds tests for APM ServiceOverview
2018-09-08 19:02:02 +02:00
Court Ewing 19272328ad
api/export: calculate content length (#22154) (#22847) (#22850) 2018-09-08 12:36:53 -04:00
Søren Louv-Jansen 9d4beec33f
[APM] Minor cleanup (#22827) (#22855)
# Conflicts:
#	x-pack/plugins/apm/public/components/app/TransactionOverview/view.js
2018-09-08 18:34:58 +02:00
Søren Louv-Jansen 800dbfead0
[APM] Revert to using apm-* as default indices (#22445) (#22853)
* [APM] Revert to using apm-* as default indices

* Update docs

# Conflicts:
#	docs/settings/apm-settings.asciidoc
2018-09-08 16:54:03 +02:00
Søren Louv-Jansen a726dd1014
[APM] Fix broken links (#22592) (#22804) 2018-09-08 14:49:30 +02:00
Stacey Gammon 753cfad195
Typings for chromium driver (#22688) (#22839)
* Typings for chromium driver

* buffer => base64

* remove unused param. consolidate imports
2018-09-08 08:05:54 -04:00
Spencer 0161da81b2
[6.x] Migrate base path APIs and UiSettings client to new platform (#22694) (#22848)
Backports the following commits to 6.x:
 - Migrate base path APIs and UiSettings client to new platform  (#22694)
2018-09-08 03:42:10 -07:00
Spencer 9a7fa9a938
Upgrade to Jest 23.5.0 (#22791) (#22846)
I'd really like to upgrade to Typescript 3 for its `unknown` type, but we need to upgrade to `jest@23` to support a recent version of `ts-jest@23`.

The [jest changelog](https://github.com/facebook/jest/blob/master/CHANGELOG.md) breaks down the breaking changes in 23.x, but I found it to be slightly incomplete so I've broken down the changes that actually caused breaks for us here, and addressed each in individual commits to make review a little easier:

- the `testURL` config default was changed from `about:blank` to `http://localhost`
    - this cause some XHR requests powered by JSdom to start failing. It seems these requests just do nothing in master but start to fail when JSdom is initialized with an actual URL... I think we would ideally stop sending meaningless XHR requests in the tests, but it was a lot easier to just set the config to `about:blank` for now, and we can worry about cleanup later if necessary
- `expect(...).toThrow()` only passes if an actual error was thrown.
     - In two places in the index pattern code we were throwing strings, which broke the assertions. Fortunately/Unfortunately the errors are not being consumed by anything, so I was able to wrap them in `new Error()` without causing any issues.
- snapshots of mock functions now include a `results` array, detailing the return values of the function
- React fragments are now serialized as `<React.Fragment>` instead of `<UNDEFINED>`
- undefined props in React components are now stripped from snapshots
- minor changes to the ordering of mocks, imports resolution, and before hooks caused the uiSettings API tests to start breaking, but I'm replacing them with totally new tests in #22694 so I just deleted them here
- mocks created with `jest.spyOn()` that are restored now have their `mock.calls` reset, so some of the kbn-pm tests stated failing. This was fixed by restoring them with `jest.restoreAllMocks()` rather than trying to do it before the assertions
2018-09-07 20:30:49 -07:00