Commit graph

18258 commits

Author SHA1 Message Date
Jonathan Budzenski
0eb4f58bac
Add optimize and --no-optimize flags (#16302)
* Add optimize flags

* update docs to --no-optimize

* docs

* extra newline

* lint

* update mocks

* update default config

* update snapshots
2018-09-17 12:47:51 -05:00
Jonathan Budzenski
8d5835d477
bump elasticsearch (#21786) 2018-09-17 11:48:58 -05:00
Pete Harverson
063c1ec27f
[ML] Removes job ID from detector description for duplicates (#23192) (#23224) 2018-09-17 13:02:16 +01:00
Pete Harverson
050b9a4b3d
[ML] Fixes z-index of Explorer severity combo box for job picker (#23189) (#23195) 2018-09-17 09:34:46 +01:00
Walter Rafelsberger
677f749a8e
[ML] Deprecates the use of jQuery for rendering Anomaly Explorer Swimlanes (#23000) (#23193)
- This refactor gets rid of jQuery as a requirement for the Anomaly Explorer Swimlanes. All the DOM manipulation previously done by jQuery is now done by d3.
- The primary aim here is to replace jQuery with d3. To avoid refactoring regressions, this PR sticks as much as possible to the original structure. Overall, this could be done in a more "d3"-way, but it's a good start.
- The resulting DOM is a bit different: The structure is exactly the same, just how we use certain data-attributes changed.
- Instead of using jQuery's data-feature for storing click event data, that data is now directly stored on DOM nodes. Again, this could be done in a more "d3"-way but would require quite some further refactoring.
2018-09-17 09:48:02 +02:00
Spencer
cd91188963
[6.x] [build] default to --debug output (#23011) (#23207)
Backports the following commits to 6.x:
 - [build] default to --debug output  (#23011)
2018-09-14 23:21:46 -07:00
Spencer
816cd177c5
Migrate chrome injected vars API to new platform (#22911) (#23208)
* [core/public/injectedMetadat] migrate injected metadata APIs

* [ui/replaceInjectedVars] fix test

* [tests/browser] move injectedVars out of legacyMetadata

* [core/public/injectedMetadata] add types for legacyMetadata

* [tests/browser] move uiSettings back into legacyMetadata

* [tests/browser] fix old references to legacyMetadata

* [tests/browser] remove old tests

* [core/public/deepFreeze] fix snapshot for removal of ReadonlyArray

* [chrome/apis] use slightly less permissive types for `chrome` argument
2018-09-14 16:28:55 -07:00
Joe Fleming
1346d1aeda
[6.x] Chore: canvas in xpack 6x (#22695) (#23201)
* chore: merge canavs into x-pack

squashed, since 6.x history isn't important and i want to be able to rebase...

* chore: eslint fixes in canvas

adds license headers and includes project linting overrides

* Chore: Reorg the x-pack gulp tasks (#22785)

- Removes deprecated, non-functional lint scripts
- Removes some unused (and barely used) dependencies
- Replaces deprecated `gulp-util` dependency
- Adds eslint rule to prevent future use of deprecated `gulp-util` dependency
- Moves all gulp tasks into `tasks` path
- Moves `gulp_helpers` into `tasks/helpers`
- All tasks in `gulpfile.js` were moved into `tasks` and broken up by domain

This is basically a no-op moving files around PR. All the existing tasks appear to work the same with these changes.

<img width="334" alt="screenshot 2018-09-06 15 42 45" src="https://user-images.githubusercontent.com/404731/45188971-8618c000-b1eb-11e8-9b26-b072ccc7ddb7.png">

* chore: rename files to match rules

* chore: copy canvas dependencies

* chore: reduce package.json to essentials

* chore: make canvas work in xpack

* chore: make browser tests work

* chore: fix include paths

node_modules is in a different relative path

* chore: fix ml tests with canvas code in x-pack

explicitely enable state management so the mlStateFactory tests pass

* chore: fix RBAC tests with canvas

* chore: split up the xpack prepare scripts

* chore: canvas tasks - dev, peg, and plugins

get dev, peg, and plugin building tasks working

* chore: canvas tasks - local tests

* chore: additional file cleanup

* chore: yarn lockfiles and eslint fixes

license headers and some small formatting stuff
2018-09-14 16:26:56 -07:00
dave.snider@gmail.com
9846e026b4
[6.x] Backport EUI@4.0.1 #23009 (#23203) 2018-09-14 14:10:43 -07:00
Spencer
bd9e2148a5
[kbn-plugin-helpers] move jest tests to integration suite (#23005) (#23012)
The plugin helper tests have failed due to timeouts every once and a while, which makes sense because they run a bunch of CLI tasks, so this just moved them to the jest integration tests where tests can take a little longer to run.
2018-09-14 13:24:10 -07:00
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