Commit graph

17294 commits

Author SHA1 Message Date
Matt Bargar 9fcb1ec9d8
Update viewing-field-stats.asciidoc 2018-05-18 12:53:20 -04:00
Chris Roberson b6a5b88d56
Ensure disabling watcher does not break index management (#19137) (#19217) 2018-05-18 12:51:13 -04:00
Pete Harverson ee95832a20
[ML] Don't show time series charts if metric field is script field (#19206) (#19208) 2018-05-18 14:47:30 +01:00
Bill McConaghy 0497683713
adding regexp to query DSL support for console autocomplete (#19176) (#19211) 2018-05-18 09:41:14 -04:00
Justin Kambic ad4302fa81 [Logstash] [PipelineViewer] Preserve all nested pipeline statements during graph conversion (#19101)
* Ensure all true/false statements are nested in IfStatements.

* Simplify nested vertex diffing.

* Rename get vertices function and test it.

* Update tests, add more tests.

* Update prompted by review feedback.

* Update tests - add required props to provided objects.

* Remove unneeded function/tests.

* PR Cleanup.
2018-05-18 09:33:48 -04:00
James Gowdy cf0328ef40
[ML] Adding jsconfig file for better code navigation in vscode (#19203) (#19207)
* [ML] Adding jsconfig file for better code navigation in vscode

* removing allowSyntheticDefaultImports as it is defaulted to true

* cleaning up paths
2018-05-18 13:48:38 +01:00
James Gowdy ece157cde5
[ML] Initial creation of APM module (#18805) (#19133)
* [ML] Initial creation of APM module

* updating query

* adding processor.name check to query

* removing processor.name exists check

* updating manifest with suggested changes

* renaming-job-id

* updating job description
2018-05-18 13:48:26 +01:00
Tim Roes 160dd6bfd8
Manually disable html5Mode and rewriteLinks (#19184) (#19198) 2018-05-18 13:19:17 +02:00
Walter Rafelsberger 3ef60bdbb3
[ML] Improve the field type icon's component structure. (#19200) (#19202)
This fixes the component structure of the file type icon: The container component no longer needs to be wrapped inside a span element for the tooltip to work by using the recommendation to pass on the props to the first inner element (see elastic/eui#839). Also adapted a jest test which tests the hovering behavior and fails when the props are not passed on.
2018-05-18 12:20:51 +02:00
Aleh Zasypkin 4f75ab2673
[6.x] [kbn-pm] Max concurrency per batch (#19024) 2018-05-18 10:15:19 +02:00
Chris Roberson 8455bcdbba
[6.x] [Management] Saved objects to React/EUI! (#17426) (#19179)
* [Management] Saved objects to React/EUI! (#17426)

* Not working proto code

* More proto code

* Work in progress

* Just go back to non interactive searching, much easier

* This should be on the server

* Revert "[@kbn/ui-framework] move ui-framework to a package (#17085)"

This reverts commit ef3339bd7a.

* Revert "Revert "[@kbn/ui-framework] move ui-framework to a package (#17085)""

This reverts commit ce9ce14e1060c426090b55a5367de3ff4329e681.

* Use BasicTable properly

* Table improvements

* Small tweaks to the table

* Improvements

* Flyout mostly working

* Remove in memory table

* Getting close

* Tweaks

* Revamping server code, still need to support editing

* Progress

* Fix export

* Updates and passing functional tests

* Better links in relationships flyout

* Add skip import option

* Fixes around importing and removing unnecessary code

* Remove tags for now

* Tests for lib/

* Some fixes

* Ensure we clear index pattern cache

* Parity with master

* Revert any changes in package.json

* Reset any changes in this file

* Move the new argumen to the end to prevent test failures

* Fix functional tests

* Add relationship tests

* Fix tests

* API integration tests for relationships

* Ensure we're properly waiting for things to happen

* Fix test issue

* Wait for the table to finish loading instead of the whole page

* Tests for objects_table

* Componentry tests

* Ensure this is grabbing the right field

* Update snapshot

* Fixes with importing index patterns

* PR feedback

* PR feedback

* PR feedback

* Update snapshot

* PR feedback

* Update snapshot

* Respect the savedObjects:perPage config

* Updates from PR feedback

* More updates from PR feedback

* Make this more efficient

* Add debugging for functional test failures

* Wait longer

* Wrap each button accessor with a retry.try

* Try wrapping this in a retry.try

* Debug

* Lets make sure it is visible

* Maybe the short timeout is affecting this - use the default timeout which should be higher and allow more time for the animation to finish

* Rewrite this per suggestions from stacey

* Update snapshots
2018-05-17 16:18:51 -04:00
archana eae18989a3
Functional test setup with kbn-test package (#18568) (#19174)
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-17 13:42:43 -05:00
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