Commit graph

119 commits

Author SHA1 Message Date
Spencer 07f4e5ad77
[6.x] [typescript] add typescript support for the server and browser (#19104) (#19223)
Backports the following commits to 6.x:
 - [typescript] add typescript support for the server and browser  (#19104)
2018-05-21 10:42:59 -07:00
Spencer 6a73c41ffd [npm] downgrade mocha even further, to before #19022 (#19238) (#19241) 2018-05-18 22:25:07 -04:00
Spencer b3364e625a
[6.x] [npm] downgrade mocha to not need https://github.com/mochajs/mocha/pull/3346 (#19233) (#19234) 2018-05-18 15:32:29 -07:00
Tim Sullivan 11c17c68e9
Add some collector classes for objects that get registered in a CollectorSet (#19098) (#19230)
* Add some collector classes for objects that get registered in a CollectorSet

* comment cleanup

* don't pass an inline-defined logger to collectorSet

* add a helper logger function so collector has access to logger at construction
2018-05-18 15:25:01 -07:00
Chris Roberson 85c65427b9
Ensure we account for cluster level settings when looking for configured actions (#19121) (#19226) 2018-05-18 16:28:14 -04:00
archana 05640a3258 Revert "Option to run kibana from build for CI" (#19224)
* Revert "[DOCS] Removes redundant index.asciidoc files (#19192)"

This reverts commit d11b5aae9a.

* Revert "[typescript] add typescript support for the server and browser (#19104)"

This reverts commit c6112067fc.

* Revert "Option to run kibana from build for CI (#19125)"

This reverts commit 5969860303.
2018-05-18 14:10:47 -05:00
Lisa Cawley 7913f07f5f [DOCS] Removes redundant index.asciidoc files (#19192) 2018-05-18 11:58:11 -07:00
archana 2a2ccd1eba Option to run kibana from build for CI (#19125) 2018-05-18 12:46:34 -05:00
Lisa Cawley d273da0471 [DOCS] Moves X-Pack configuration pages in table of contents (#19182) 2018-05-18 10:10:40 -07: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
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
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
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
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
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
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
Justin Kambic 08a2b24825 Add vertex reference to pipeline statement classes. (#19134) 2018-05-16 14:32:42 -04:00
Nathan Reese 10ac6c5988
fix conflicks in yarn.lock (#19130) 2018-05-16 11:01:50 -06: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
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
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
spalger 7df7ab92d6 Revert "Functional test setup with kbn-test package (#18568)"
This reverts commit c2265e3931.
2018-05-15 13:16:36 -07: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
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
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
Chris Roberson 519991342c
The text property is optional (#19034) (#19039) 2018-05-14 13:22:42 -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
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
Jen Huang 00de98d4cb
Fix ace editor warnings (#18893) (#18983)
* Fix ace editor warnings
2018-05-10 12:18:16 -07:00
Tim Sullivan 50906670e4
[Monitoring/React] Render ES Indices Listing with Base Controller / React (#18595) (#18970)
* [Monitoring/React] Render ES Indices Listing with Base Controller

Refactors the ES Indices Listing to use Base Controller and a React component instead of an Angular directive

* fix functional tests

* fix another test

* better default for summary status component

* nicer code for whitespace after label

* apiFn => apiUrlFn

* Deleted / Closed
2018-05-10 09:18:36 -07:00
Pete Harverson 160a0dd383
[ML] Filter top influencer list based on swimlane selection (#18946) (#18954)
* [ML] Filter top influencer list based on swimlane selection

* [ML] Edits to Influencer List after review and remove animation
2018-05-10 11:40:23 +01:00
Tim Sullivan 2af15b5a35
[Monitoring] reorganize metrics per stack product (#18590) (#18968)
* [Monitoring/Metrics] clean up metric classes and getMetricFields static helpers

* more pull out

* more to break out

* [Monitoring] reorganize metrics per stack product

This organizes the metrics classes per product as a starting point for adding more functions to the metrics so external logic in the `get_metrics` and `get_series` modules can be simplified.

New structure:
```
plugins/monitoring/server/lib/metrics
├── __test__
│   ├── __snapshots__
│   │   └── metrics.test.js.snap
│   └── metrics.test.js
├── beats
│   ├── __test__
│   │   └── cpu_utilization_calculation.test.js
│   ├── classes.js
│   └── metrics.js
├── classes
│   ├── __test__
│   │   ├── latency_metric_calculation.test.js
│   │   └── quota_metric_calculation.test.js
│   ├── cluster_metric.js
│   ├── index.js
│   ├── metric.js
│   └── quota_metric.js
├── elasticsearch
│   ├── __test__
│   │   └── latency_calculation.test.js
│   ├── classes.js
│   └── metrics.js
├── index.js
├── kibana
│   ├── classes.js
│   └── metrics.js
├── logstash
│   ├── classes.js
│   └── metrics.js
└── metrics.js
```

* fix strange test failure

* reduce loc change
2018-05-09 21:37:48 -07:00
Chris Earle b823c85e63 Make "Yes" button unfilled (#18960)
This changes the button from looking like it has been pre-clicked, which
is not the case.
2018-05-09 14:54:20 -04:00
Tim Sullivan 19a8bc4c6c
[Monitoring/Beats] Telemetry Data from Beats (#18833) (#18922)
* [Monitoring/Beats] Telemetry Data from Beats

* filter apm-server

* ignore results payload if hitsLength === 0

* process each payload as stats are saved to clusters object
2018-05-09 11:52:31 -07:00
Walter Rafelsberger 1fd0f7aae9
[ML] Enable cell range selection. (#18920) (#18950)
This re-enables the feature flag to support selecting a range of cells in the anomaly explorer. Follow-ups to this PR will tackle limiting the allowed cells to select to avoid problems with too wide selections.
2018-05-09 16:20:07 +02:00