Commit graph

17366 commits

Author SHA1 Message Date
Tim Roes
ee6a17e102
Update markdown-it to 8.4.1 (#19470) (#19472) 2018-05-28 18:47:35 +02:00
Søren Louv-Jansen
858b3e8345
[APM] Add kuery to APM (#18881) (#19444) 2018-05-26 00:29:59 +02:00
Justin Kambic
88c2b44a79 Provide events in & out per millisecond for Logstash pipelines (#19446)
* Port changes to dedicated branch to isolate PR.

* Rename variable in test to match function name.
2018-05-25 15:27:22 -04:00
Tyler Smalley
c2f7b13b56 [plugins] Ensures X-Pack is available during plugin install (#19426)
For the default distribution, we were not including X-Pack during plugin installation. This broke plugin installation which relied on X-Pack interfaces.

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2018-05-25 12:00:24 -07:00
Tim Sullivan
d6738d3959
[Monitoring] use react components for Kibana directives (#19379) (#19432)
* kibana cluster status directive use react component

* fix some functional test failures
2018-05-25 10:49:15 -07:00
Justin Kambic
e6e8271ee5 Update yarn.lock file to handle non-automated updated package.json (#19441) 2018-05-25 13:14:00 -04:00
gchaps
8247aa5eb0
[DOCS | Management] Add documentation for index management (#19374) (#19421)
* [DOCS | Management] Add documentation for index management

* [DOCS | Management] Incorporated review comments in index management doc
2018-05-25 05:42:05 -07:00
Pete Harverson
24826fe321
[ML] Clear Anomaly Explorer if swimlane selection is empty (#19403) (#19437)
* [ML] Clear Anomaly Explorer if swimlane selection is empty

* [ML] Remove unnecessary variable
2018-05-25 12:24:51 +01:00
Pete Harverson
61c60f7d0b
[ML] Convert anomalies table to EUI / React (#19352) (#19400)
* [ML] Convert anomalies table to EUI / React

* [ML] Edits to EUI / React anomalies table after review
2018-05-25 11:01:35 +01:00
Spencer
068b6652c0
[6.x] Check filename casing in CI (#19282) (#19414)
Backports the following commits to 6.x:
 - Check filename casing in CI  (#19282)
2018-05-24 23:09:30 -07:00
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
Tim Roes
f18be93ec9 [6.x] Disable forcing IInterface naming (#19402) (#19410)
Backports the following commits to 6.x:
 - Disable forcing IInterface naming  (#19402)
2018-05-24 15:38:51 -07:00
Spencer
30653d9d92
[6.x] [eslint-plugin-no-unsanitized] upgrade for import() support (#19315) (#19413)
Backports the following commits to 6.x:
 - [eslint-plugin-no-unsanitized] upgrade for `import()` support  (#19315)
2018-05-24 15:32:20 -07:00
Nathan Reese
38cd724c78
[6.x] Sample data (#17807) (#19423)
* Sample data (#17807)

* register list, install, and uninstall endpoints

* decorate server with methods needed to register data sets

* implement list endpoint, add flights sample data set

* stream data file

* create sample data index with mappings

* bulk insert into elsaticsearch

* more loadBulk work

* advance time stamp

* change http method back to post

* delete index on uninstall

* last 15 minutes example

* add option to preserver day of week and time of day

* import saved objects on install and delete saved objects on delete

* update uiSetting defaultIndex on install and uninstall

* use correct format for saved object json

* Adding example sample data, mappings and dashboards

* add sample data tab to Add Data page

* add launch button

* add sample data link to empy index pattern create state

* fix jest tests

* add toast nofication on success and fail install/uninstall

* move uiSettings of defaultIndex to client, clear index patterns get id cache

* put link to sample data sets on home page

* updated saved objects and data set

* add card for sample data

* add preview image

* updated dashboards and data set

* update button text

* woops, forgot vega

* compress data json file

* move flights data file to same folder as saved objects file

* add functional tests

* updates from chrisdavies review

* fix install API call - broken on last commit

* fix mistake in create_index_pattern

* updates from Stacey-Gammon review

* remove delete from install API

* add more tests to ensure dashboard renders as expected

* better error message on install and uninstall failure

* remove checks that may change from run to run to keep functional tests stable

* update scripted field to reflect changes in ES

* change saved object install/uninstall error code from 500 to 403

* add more logic to check if dataset is installed and display a disabled add button when there is a problem checking status

* make add data links be side-by-side on home page

* propery handle savedObjectClient bulkCreate errors. Ensure launch dashboard exists in test if dataset is installed

* ignore saved object delete 404s since users could have deleted some of the saved objects via the UI

* show response error in toast, delete index before trying to create, log create index error

* add type to bulk insert command - because 6.x still requires types
2018-05-24 16:15:20 -06:00
Bill McConaghy
9b60eefb83
[console] autocomplete query dsl gaps (#19318) (#19427)
* adding wrapper query DSL support

* adding span_multi query DSL support for autocomplete

* adding field_masking_span query DSL support to autocomplete

* adding percolator query DSL support to autcomplete

* fixing templates with nested query types

* adding missing percolate params
2018-05-24 17:58:24 -04: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
spalger
73173f11c3 Revert "enable verbose ftr logging"
This reverts commit 887e528055.
2018-05-24 13:23:57 -07:00
Nathan Reese
4a2ba0efc6
EUI dashboard add panel (#17374) (#19404)
* EUI add panel

* implement add functionallity

* style flyout so top nav is not covered

* add noItemsMessage

* add new visualization button

* remove angular add_panel template

* seperate search bar and table into its own component

* fix functional tests

* make slide out panel own focus to avoid weirdness of letting other buttons in nav from getting clicked and leaving slide out open

* remove deprecated method componentWillMount

* add jest test for DashboardAddPanel

* fix paging and replace EuiSearcBar with EuiFieldSearch

* fix functional tests

* fix dashboard filter bar functional test

* another functional test fix

* add more context to functional test failure message

* give search input a default value

* remove call to waitForRenderComplete to see if tests will pass

* fix dashboard filtering test

* updates from Stacey-Gammon review

* support filtering out lab visualizations

* add functional test for testing visualize:enableLabs with add panel

* add sorting by title to SavedObjectFinder componenet

* move add panel tabs to state

* clean up labs test differently
2018-05-24 12:53:49 -06: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
Brandon Kobel
5830f9b9a5
[6.x] SavedObjectClient.find multiple types (#19231) (#19390)
* SavedObjectClient.find multiple types (#19231)

* Making the SavedObjectsClient.find accept a string or string[] for type

* Searching is now filtered to actual types

* Adding multi-type sort

* Changing another use of includeTypes

* Fixing test's reliance on type

* Changing the find route to take type as an array

* Can't sort on type... it's not a property on the object

* Only allowing sorting on multiple types if it's a root property

* Expanding indicator of root property object

* Sorting by type, now that it's allowed and one of the few sort columns

* Adjusting comment

* Throwing better error message

* Updating search_dsl error snapshots after changing error message (#19394)
2018-05-24 12:05:46 -04:00
Tim Roes
d473668ee9
Axis Labels Filter - better geometry assessment (#16130) (#19389)
Fixes #13590

Scales in line/area/bar charts are often of type 'rangeBands', that
applies padding on the sides and leaves space for the bands.

During axis label filtering, this padding was not taken in
consideration.
2018-05-24 15:09:51 +02:00
Marco Vettorello
af594e825b
Fix rendering markdown when updating open in new tab setting (#19356) (#19388)
* Fix rendering markdown when updating open in new tab setting (#18949)

- Moved set the link target behaviour outside the constructor
- Minor style fixes

* Refactoring: recreate markdownit if openLinksInNewTab changes. Add test

* Move props checking conditions to variables. Add test for whiteListedRules prop change

* Add checks before changing the props
2018-05-24 15:05:56 +02: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
spalger
d942295417 [precommitHook/tslint] fix linted file count
(cherry picked from commit a0cf5c0d39)
2018-05-23 18:35:02 -07: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
Spencer
09ba816e92
[6.x] [tslint] Fix violations in kbn-pm (#19335) (#19376)
Backports the following commits to 6.x:
 - [tslint] Fix violations in kbn-pm (#19335) (ce20463)
2018-05-23 16:05:16 -07:00
Spencer
04e2589777
[6.x] [tslint] fix violations in kbn-system-loader (#19336) (#19372)
Backports the following commits to 6.x:
 - [tslint] fix violations in kbn-system-loader (#19336) (3d08c5c)
2018-05-23 14:45:57 -07:00
Spencer
3d1441ab12
[ts] put JSX support in root tsconfig file (#19359) (#19365) 2018-05-23 13:15:36 -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
Shaunak Kashyap
43bd79ab47
[Kibana Home] Add dashboard link to Netflow tutorial (#19299)
* Adding dashboard link for Netflow tutorial for 6.x

* Adding explanatory comment
2018-05-23 10:45:31 -07:00
lcawl
832b5b212f [DOCS Adds 6.4.0 release highlights page] 2018-05-23 09:08:02 -07:00
Lisa Cawley
ec07ecde92 [DOCS] Adds release highlight pages (#19333) 2018-05-23 09:01:35 -07:00
Tim Roes
803c9aea77
[6.x] Replace vis.reload by forceFetch requestHandler param (#19296) | Fix breaking tests on master (#19344) (#19345)
* Replace vis.reload by forceFetch requestHandler param (#19296)

* Fix breaking tests on master (#19344)
2018-05-23 14:55:35 +02: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
96ba61a84d
copy to clipboard in IE (#19281) (#19328) 2018-05-22 15:57:46 -06:00
Nathan Reese
4168ee4bec
upgrade kibana to eui 0.0.49 (#19284) (#19314) 2018-05-22 15:01:36 -06:00
Deb Adair
e89c3bb564 [DOCS] Fixed broken xref. 2018-05-22 13:57:59 -07:00
debadair
01f9080742 [DOCS] Added float/anchor tags to explicitly define page names (#19288) 2018-05-22 13:57:30 -07:00
Brandon Kobel
053771e39b
Introducing a SavedObjectRepository (#19013) (#19322)
* Create a separate SavedObjectRepository that the SavedObjectClient uses

* Moving the repository into lib/

* Fixing test after moving the repository

* Revising tests based on peer review

* Removing awaits

* Adding warning comments regarding the repository's impact on the SOC
2018-05-22 16:13:03 -04: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
Jen Huang
7a08437b0b
Fix ace warning in console output (#19272) (#19310) 2018-05-22 10:53:01 -07:00
Nathan Reese
470004d66b
remove double modal when cloning dashboard with duplicate title (#19049) (#19313)
* remove double modal when cloning dashboard with duplicate title

* reset duplicate state when input is updated

* update functional test for new clone workflow

* change warning message to EuiCallout

* updates from Stacey-Gammon review
2018-05-22 11:43:12 -06:00
gchaps
742f9b58c6
[DOCS|Dashboard] Updated images and text to match UI (#19149) (#19301)
* [DOCS|Dashboard] Updated images and text to match UI

* [DOCS | Dashboard] Incorporated review comments

* [DOCS | DASHBOARD] Incorporated more review comments.
2018-05-22 09:39:56 -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