Commit graph

1237 commits

Author SHA1 Message Date
Tim Sullivan
f84eba79d9
[Monitoring/Reporting Stats] Move hardcoded Reporting stats type collection out of monitoring plugin (#18894) (#19409)
* [Monitoring/Telemetry collection] use `typeCollector.registerType` in Reporting

* a few cleanup changes
2018-05-24 18:05:33 -07:00
Stacey Gammon
225f541abb
Pluggable panel actions (#18877) (#19415)
* Allow pluggable panel actions

* Need to register it as being used in kibana

* Some cleanup

* update snapshots to match new EUI versions, set time range

* Use newer panelActions service

* add missing await

* More clean up and fixes

* bring back window reload

* Show actions in view mode too

* delete now unused files

* Use toggle action to determin if context menu is open

* Fix tests that assume the toggle is hidden in view mode.

* Add some debug logs

* Fix up assumptions

* Previous failing test was legit - we don't want to show remove option when panel is expanded

* Embeddable can be empty before the panel is loaded

* Should look for either visualize or discover page

* Address code comments

* address code review comments

* whoops, get rid of childPanelToOpenOnClick entirely
2018-05-24 16:41:05 -04:00
Tim Sullivan
cbad3cbe4a
Monitoring/directives use react view elasticsearch (#19362) (#19380)
* [Monitoring/React] Make Elasticsearch directives use React component internally

* fix more functional tests

* remove TODO

* lessen loc change
2018-05-24 09:48:49 -07:00
Casper Hübertz
e75b88341c
[APM] Errors Watcher assistant - Compressed form fields (#19204) (#19387)
Adding `compressed` to the EuiFormRows for a more compressed looking form.
2018-05-24 13:34:28 +02:00
Søren Louv-Jansen
e73dceae5c
[APM] Upgrade to react-redux-request (#19338) (#19382) 2018-05-24 11:01:52 +02:00
Tim Sullivan
ee66dd306f
[Monitoring] Summary Status component data-test-subject wrap entire label/value container (#19289) (#19360)
* [Monitoring] Summary Status component data-test-subject wrap entire label/value container

* update functional tests
2018-05-23 16:57:17 -07:00
dave.snider@gmail.com
5f540e6a91
Fix banner issue in ie11 (#19273) (#19326)
* fix banner issue in ie11
2018-05-23 11:05:49 -07:00
Bill McConaghy
ba73ddee08
fixing issue in edit index settings caused by ace upgrade (#19311) (#19337)
* fixing issue in edit index settings caused by ace upgrade

* fixing json mode
2018-05-22 19:33:31 -04:00
Chris Earle
e6a88e000d Add Notification Service (#19236)
This adds a notification service to Kibana that can be used to send
asynchronous notifications, such as sending email and Slack messages,
which are intended to be configured via a combination of the
`kibana.yml` and Kibana keystore.

Once configured, the actions are automatically added to the notification
service and can be invoked via the server using the `notificationService`
singleton or HTTP to send it directly. See the included README for more
details.
2018-05-22 19:09:04 -04:00
Spencer
37487a8472
[6.x] [tslint] lint typescript code (#19105) (#19331)
Backports the following commits to 6.x:
 - [tslint] lint typescript code  (#19105)
2018-05-22 15:27:06 -07:00
Nathan Reese
4168ee4bec
upgrade kibana to eui 0.0.49 (#19284) (#19314) 2018-05-22 15:01:36 -06:00
Justin Kambic
f8b2c2ce35 [PipelineViewer] [Monitoring] Flatten Pipeline Statement Trees (#19084)
* Add flatten function and list class.

* Rename functions to be more descriptive.

* WIP moving flatten logic to classes.

* Finish moving flatten logic into classes, add tests.

* Simplify flattening, remove non-native dependency. Add more tests.

* Add defaults to simplify function call.

* Refactor two blocks into a function.

* Fixed broken test.

* Update classes based on PR feedback.

* Update module exports, remove obsolete file.
2018-05-22 15:50:33 -04:00
Joe Fleming
bf3c40542e Feat: expose reporting complete notifications (#19283)
This PR is a pretty small change to the Reporting job complete notification service. It converts the actual code to a simple object, instead of a class that needs to be instantiated. This makes the notification service a singleton, and also exports it so it can be used in non-Angular applications.

- Converts `reportingJobCompletionNotifications` factory to a singleton
- Exports the underlying jobCompletionNotifications
  - Allow use in non-angular plugins

Example use:

```js
import { jobCompletionNotifications } from 'plugins/reporting/services/job_completion_notifications';

createReportingJob() // pseudo code function that returns a reporting job id
.then(jobId => jobCompletionNotifications.add(jobId));
```
2018-05-22 12:49:54 -07:00
Stacey Gammon
9f813be3bf
Reporting API test expansion and clean up (#18986) (#19316)
* Update & expand reporting API tests

* remove xpack stuff from oss archive

* wrap "it"s so they are in expected order.

* Update expected recent stats

* url was pointing to a visualization not a csv

* Move comment around

* Merging with changes on master renaming stats to usage

* fix reference to old stats file.

* bad merge
2018-05-22 14:52:19 -04:00
Lisa Cawley
f3f6d1d910 [DOCS] Clarifies encrypting communications in Kibana (#19155) 2018-05-22 10:55:05 -07:00
Tim Sullivan
62cf2adc70
[XpackMain] 6.x Backport Add _xpack/usage API (#19232) (#19287)
*  [XpackMain] Add _xpack/usage API (#19232)

* [XpackMain] Add _xpack/usage API

* add xpack usage http api integration test

* comment

* misc test describe fixes

* fix integration test

* fix reply called twice

* enable api test

* enable kibana collection for integration test to work

* throw error comment

* Update config.js

remove whitespace change
2018-05-22 09:21:43 -07:00
Aleh Zasypkin
dc16506da8
[6.x] Upgrade sinon (v1.17.3 --> v5.0.7). (#19293) 2018-05-22 15:41:45 +02:00
archana
5316542750
Option to run kibana from build for CI (#19125) (#19225) (#19256)
* Option to run kibana from build for CI (#19125)

* Support --dev option for servers only

* try skipping dashboard time zones test
2018-05-21 19:05:50 -05:00
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