Commit graph

17282 commits

Author SHA1 Message Date
Lisa Cawley
63e168c1da [DOCS] Cleans up X-Pack references in Kibana User Guide (#19150) 2018-05-17 09:33:32 -07:00
Lisa Cawley
d0c1855ad5 [DOCS] Fixes URLs in Kibana Watcher info (#19151) 2018-05-17 08:41:12 -07:00
spalger
34d8276f82 [eslint/import-resolver] ensure compat with slightly older versions of node for IDE support
(cherry picked from commit 0ad665f216)
2018-05-17 08:06:52 -07:00
Peter Pisljar
b73f00538f
fixing disabled aggs (#18796) (#19171) 2018-05-17 09:30:12 -05:00
Walter Rafelsberger
ef9faaac7c
[ML] Fixes jest tests for bucket span estimator button. (#19164) (#19169)
Fixes jest tests for the bucket span estimator button. The tests were not correctly considering the way jest runs tests asynchronously. Now each test is self-contained within the test callback.
2018-05-17 15:17:43 +02:00
Walter Rafelsberger
143e6d7d8b
[ML] Migrate field-type-icon to EUI/React. (#19159) (#19168)
Migrates the field-type-icon directive to use EUI/React. Instead of the angular/bootstrap tooltip attribute on the directive's tag, there's now an option tooltip-enabled which when true wraps the component inside EuiToolTip.
2018-05-17 14:28:54 +02:00
Tim Roes
25a8402423
Add entry for datasweet formula plugin (#16868) (#19166) 2018-05-17 14:25:50 +02:00
Tim Roes
dcfcc229a7
Add TSVB table to docs (#17835) (#19162)
* Add TSVB table to docs

* Change according to review
2018-05-17 12:16:18 +02:00
Walter Rafelsberger
a3ee17db02
[ML] Migrate bucket span estimator button to React/EUI. (#19045) (#19158)
This migrates the bucket span estimator button to use React/EUI. The existing mlBucketSpanEstimator is refactored to use React without ngReact to have more detailed control in regards to the $scope being transformed to a trimmed down props object with only the information necessary for the React component. This also allows more control in regards to the $scope attributes being watched. Instead of custom styles and classes this now uses the options available for EuiButton. However, there were some minimal overrides necessary to the EUI styles to replicate the narrower height and padding to fit within the input element.
2018-05-17 10:58:39 +02:00
Walter Rafelsberger
c492651e58
[ML] Migrate ml-info-icon to React/EUI (#19003) (#19157)
This replaces the angular based tooltip used in the ml-info-icon directive with one based on React/EuiTooltip. It supports transclusion and rendering of angular template snippets inside the tooltip. Because the DOM structure of the EuiTooltips and the angular/bootstrap tooltips is quite different there is a bit more code involved to achieve this, but the result is that for this we don't have to change the markup in the original angular templates where ml-info-icon is used.
2018-05-17 10:58:11 +02:00
Tim Roes
3b8213975c
Add a update function to visualize loader (#19030) (#19131)
* Add loader update method and use in dashboard panel

* Add loader tests

* Make sure that it works inside and outside of Angular

* Fix tests for $evalAsync

* Use isEmpty for more semantic

* Allow nullifying timeRange again
2018-05-17 09:40:25 +02:00
Walter Rafelsberger
d1cbd534d3
[ML] Migrate mlDocumentationHelpLink to React. (#19124) (#19135) 2018-05-17 09:24:27 +02:00
Walter Rafelsberger
052782433a
[ML] Fix issues with watching the scope of single metric viewer data. (#19029) (#19108)
This fixes a bug with the single metric viewer not updating correctly and not showing anomaly records.
2018-05-17 09:23:15 +02:00
Spencer
23f159d04d
[eslint] unify resolver configs (#19102) (#19141)
* [eslint] unify resolver configs

Our eslint resolver settings currently rely on the fact that we define
our resolver with a string globally, and an object in the overrides.
This causes the override value to completely override/replace the global
setting, which is desired, but when the global setting is converted to
an object they are merged, causing both resolvers to run.

This is a problem because some dependencies in the UI side of things
will resolve with the node resolver, but will resolve incorrectly
because they are intended to use some webpack specific override.

While trying to add TypeScript I needed to pass argument to the node
resolver which uncovered this issue. The change here moves us away from
using the node resolver directly and instead uses the kibana resolver
with `forceNode: true` set when linting server code and `forceNode:
false` when resolving imports that will be handled by webpack.

* [import-resolver] use object spread operator
2018-05-16 16:26:30 -07:00
Spencer
7dbec2e1e7
[6.x] [mocha] remove grunt-simple-mocha (#19079) (#19139)
* [mocha] run tests with mocha script, remove grunt-simple-mocha

* [ci] force colored output

* [ci] disable color when reading the yarn bin

* [dev/build/exec] support tooling log having its own chalk

* [dev/mocha] avoid changing the cwd of the process

* [dev/mocha] only match files, speed up negative matches

* [cli/serve/test] strip ansi control characters from logs

* [ci] disable color in all `yarn bin` invocations

* [dev/mocha] cleanup old runInBand check

* [dev/mocha] enable gloabl leak checks
2018-05-16 16:25:59 -07:00
Stacey Gammon
01d786359e [6.x] Add new snapshot (#19146) 2018-05-16 12:39:00 -07:00
Justin Kambic
08a2b24825 Add vertex reference to pipeline statement classes. (#19134) 2018-05-16 14:32:42 -04:00
Stacey Gammon
c78fd12f79
KuiContextMenu => EuiContextMenu (#17621) (#19132)
* Switch to euicontextmenu

* update jest panel snapshots
2018-05-16 13:29:02 -04:00
Nathan Reese
10ac6c5988
fix conflicks in yarn.lock (#19130) 2018-05-16 11:01:50 -06:00
Stacey Gammon
3d7b3973fd
The previous retry wouldn't work because 'click' has it's own retry (#19078) (#19129)
* The previous retry wouldn't work because 'click' has it's own retry, need to use exists first.

* add comment with link to issue

* fix wrong function (wish we had typescript!)
2018-05-16 12:43:13 -04:00
Tim Sullivan
e26a77f972
[Monitoring] Rename TypeCollector to CollectorSet for semantics (#18987) (#19088)
* [Monitoring] Rename TypeCollector to CollectorSet for semantics

* boring test changes

* usage collector renames

* rename initKibanaMonitoring => createCollectorSet

* fix lint
2018-05-16 09:37:37 -07:00
Stacey Gammon
66fb5a13fb
Use find service instead of remote directly (#19070) (#19115) 2018-05-16 12:36:52 -04:00
Pete Harverson
f4c8d538df
[ML] Create server-side results service (#19044) (#19112)
* [ML] Create server-side results service

* [ML] Edits to server side results service following review
2018-05-16 16:42:48 +01:00
Peter Pisljar
4b61f6933a
Don't deep clone vis in courier request handler (#19069) (#19081) 2018-05-16 10:27:59 -05:00
Nathan Reese
9ea342ffa7
[home] change recently accessed header to h3 (#19085) (#19119)
* change recently accessed header to h3 to be more accessible

* change recently accessed header to h3 to be more accessible
2018-05-16 08:49:41 -06:00
Tim Roes
a9083312a8
Replace _term order in terms agg by _key (#19032) (#19118) 2018-05-16 16:36:15 +02:00
Nathan Reese
1dae5950af
Add status check to "add data" tutorials (#17732) (#19097)
* add statusCheck configuration to instructionSetSchema

* add status check step to instruction set

* track status check state

* query elasticsearch for hits

* display message when status check completes

* clean up

* use callout to display status check results

* Updated status check

* update tutorial snapshot

* add jest tests for InstructionSet component

* pass function as prop instead of wrapping in new function

* refactor checkInstructionSetStatus

* update snapshots that broke after rebase

* Suggested changes (#24)

* update jest test for statusCheckState prop enum

* update tutorial snapshots
2018-05-15 19:41:13 -06:00
Søren Louv-Jansen
5db2efdb43
[APM] Fix bug that causes watcher emails to fail (#19071) (#19091) 2018-05-16 00:56:46 +02:00
Tim Sullivan
6e8447082e
[Monitoring] Add a yellow status phase in plugin init (#18939) (#19075)
* [Monitoring] Add a yellow status phase in the startup lifecycle

* comments

* more comments

* more comment

* undo register => registerType function name change
2018-05-15 13:48:05 -07:00
Tim Sullivan
c26b88a3c1
[Gitignore/Test] Ignore test/functional/failure_debug (#19059) (#19076) 2018-05-15 13:47:53 -07:00
Bill McConaghy
5c6d710607
upping ace version to the latest (#19067) (#19087) 2018-05-15 16:32:53 -04:00
spalger
7df7ab92d6 Revert "Functional test setup with kbn-test package (#18568)"
This reverts commit c2265e3931.
2018-05-15 13:16:36 -07:00
Aleh Zasypkin
05e4db527d Rename @kbn/babel-preset/common & node & webpack to @kbn/babel-preset/common_preset & node_preset & webpack_preset. (#19025) 2018-05-15 12:35:17 -05:00
archana
c2265e3931 Functional test setup with kbn-test package (#18568)
Restructure testing with kbn-test package

 - Run with multiple configs, move cli options to config
 - Package-ify kbn-test
 - Eventually we'll have functional_test_runner live in a package
of its own, and then this kbn-test will use that as a dependency,
probably still as a devDependency.
 - Implement functional_tests_server
 - Collapse single and multiple config apis into one command

Use kbn-es

Replace es_test_cluster + es_test_config with kbn/test utils

Implement new createEsTestCluster

Improve scripts, jsdocs, cli top-level tools

Lift error handling to the top level
2018-05-15 12:33:01 -05:00
gchaps
053ecf6599
Fixed merge conflicts in load-dataset and define-index (#19057) 2018-05-15 08:06:53 -07:00
Bill McConaghy
6fed438e90
[console] 6.0 API and ace refactor (#18930) (#19066)
* capturing refactoring work in progress

* cleanup

* removing 5.0 API

* updating autocomplete aggregations to supported ones

* adding documentation links to generated specs

* progress on ace upgrade

* further progress

* cleaning up

* adding new minified source for worker

* fixing bug with merging API definitions

* addressing PR feedback

* using raw loader to load worker file

* addressing PR feedback

* fixing bad characters in comments

* removing inadvertent change

* fixing scope links

* fixing a couple of scope links

* adding in exists to query dsl

* adding slop param for match_phrase query

* adding autocomplete support for search params

* Revert "using raw loader to load worker file"

This reverts commit 16d33c189c.

* adding rescore API support for autocomplete

* adding index boost API support for autocomplete

* adding collapse to autocomplete

* adding highlight property support to autocomplete

* fixing issue with highlight

* adding support for common terms query

* adding inner hits support for autocomplete

* adding support for newer match options to match and multi_match

* better solution for worker
2018-05-15 09:18:11 -04:00
Pete Harverson
daaba27f21
[ML] Fix issues with end time of explorer swimlane selection (#18995) (#19065) 2018-05-15 13:37:34 +01:00
Tim Roes
216a3a1e28
Point issue links to new choose page (#19042) (#19062) 2018-05-15 09:31:07 +02:00
Tyler Smalley
2bb111c8f9 [docs] Disabling APM should be done through common config (#19058)
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2018-05-14 17:53:50 -07:00
Søren Louv-Jansen
d47b685e54
Align x-pack and kibana devDeps (#19022) (#19047)
* Align Node deps

* Added grunt task

* Update name
2018-05-15 02:19:09 +02:00
Søren Louv-Jansen
14fb605370
[Kuery] Remove Angular dependencies (#17836) (#19055)
* [kuery] Remove `byName` dependency

* Remove $http from kuery

* Fix test

* Add request headers

* Replace byName with getFieldByName; add isFilterable

* Replace Angular mock with static mock

* Update index pattern for query bar

* manually attach format.convert method to field

* Use KBN_FIELD_TYPES to determine isFilterable

* Bump yarn.lock file

* Add kfetch (Kibana fetch)

* Moved `getFromLegacyIndexPattern` to static index pattern functions

* Fix tests

* Mock out kfetch

* Move value formatting from getRangeScript to buildRangeFilter

* Remove getFieldByName (over abstraction)

* Split kfetch options into two
2018-05-15 01:25:04 +02:00
Nathan Reese
781ac42577
[input controls] safely handle case where control index pattern no longer exists (#18931) (#19050)
* handle case where control index pattern no longer exists

* fix errors when vis is edited with missing index pattern
2018-05-14 15:09:22 -06:00
Chris Roberson
519991342c
The text property is optional (#19034) (#19039) 2018-05-14 13:22:42 -04:00
Nathan Reese
4e16bca3e5
enhance index pattern delete documenation (#19007) (#19040)
* enhance index pattern delete documenation

* add line about breaking saved objects that still reference index pattern

* indices spelling

* better wording from gchaps
2018-05-14 10:08:11 -06:00
Stacey Gammon
e742967edb
Fix, or debug, flaky nested visualization filter test (#18957) (#19036)
* Debug flaky test, or at least retry the spot that seems to be failing

* Fix missing await, use queryBar service, use more detailed error message

* update remaining references to dashboard.getQuery

* getQueryString not getQuery
2018-05-14 11:20:22 -04:00
Tim Roes
e5ea9dd2a6
Update React to 16.3 (#18768) (#19033)
* Update React to 16.3

* Switch off specific eslint rules

* Update enzyme snapshots

* Incorporate PR feedback
2018-05-14 15:15:18 +02:00
Spencer
ef12447f63
[6.x] [x-pack] remove use of resolveKibanaPath from plugin helpers (#18979) (#19004) 2018-05-11 16:04:58 -07:00
Thomas Neirynck
8c6f7209e4
Re-enable the staging config (#18980) (#18998) 2018-05-11 10:10:54 -04:00
Pete Harverson
a049a9ad53
[ML] Sort Explorer view by swimlane for selected time (#18955) (#18994)
* [ML] Sort Explorer view by swimlane for selected time

* [ML] Rename swimlane sort array with clearer name
2018-05-11 10:51:10 +01:00
gchaps
885b564eab
[COPYEDIT] Fixed capitalization for Basic and Premium licenses (#18969) (#18991)
* [COPYEDIT] Fixed capitalization for Basic and Premium licenses

* [COPYEDIT] More fixes for upper case in license text, including one code change
2018-05-10 18:52:03 -07:00