Commit graph

17396 commits

Author SHA1 Message Date
Nathan Reese
388094e46d
Remove react-select from kibana (#18876) (#19557)
* remove react-select from AggSelect

* update field_select to use EuiComboBox

* metric_select

* moving_average

* percentile

* series_agg

* std_deviation

* removing some more react-select instances

* icon_select and group_by_select

* gauge type

* markdown

* set isClearable prop

* remove react-select from timeseries config

* remove react-select from timeseries panel options

* remove react select from terms

* remove react-select from table config

* remove react-select from data_format_picker

* fix create_select_handler mocha test

* remove react-select from kibana

* update tsvb functional tests

* set isDisabled prop on EuiComboBox where disabld prop was set for Select

* use durationOutputOptions for duration 'to' options
2018-05-30 10:48:58 -06:00
Lisa Cawley
c3c98b682e [DOCS] Moves monitoring folder to docs (#19516) 2018-05-30 09:45:30 -07:00
Tim Sullivan
51feafb43d
[Monitoring] use defaulValue instead of filter to make pre-filled text input editable (#19462) (#19536) 2018-05-30 09:31:24 -07:00
Court Ewing
f8521c09a4 Documentation for Saved Objects API (#19513)
* Adds documentation for Saved Objects API

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>

* [DOCS] Moved Rest APIs in navigation

* docs: revise rest api intro

* docs: revise create object api details

* docs: revise saved object api intro

* docs: revise delete saved object api details

* docs: remove newline character from api response

* docs: get saved object api details

* docs: update saved object api details

* docs: fix title attribute in saved object api examples

* docs: bulk-get saved object api details

* docs: find saved object api details

* docs: add index-pattern to valid types in api

* docs: clarify sending multiple values in api

* docs: note that savedObjects.find is not safe for export
2018-05-30 12:28:29 -04:00
Fabien Baligand
f9940a44d7
contrib docs : add a link to list all "build" options (#19464)
* contrib docs : add a link to list all "build" options

* list build options using "yarn build --help" command

* add bash code block

* remove space before ":"
2018-05-30 10:14:05 -05:00
Lisa Cawley
6e16d9c006 [DOCS] Moves security folder to docs folder (#19514) 2018-05-30 07:40:43 -07:00
Brandon Kobel
280783809b
Introducing base audit logger (#19442) (#19546)
* Adding very basic audit logging for auth success/failure

* Extracting security specific audit logger from the AuditLogger

* Using short auditLogger in authenticate in one more place

* Logging some information from the request during success/failure

* Adding AuditLogger tests

* Removing the security audit logger, this is out of scope...

* Better asserts, thanks Aleh

* Adding `audit` to the default events

* Using `info` with the audit logger, emulating with ES does
2018-05-30 10:26:42 -04:00
gchaps
e93a73c495
Docs/input controls (#19397) (#19526)
* controls docs

* images and configuration option explainations

* minor changes

* link to index-patterns page

* practice commit

* [DOCS] Edited Visualize -> Controls documentation

* [DOCS|Input Controls] Incorporated review comments
2018-05-30 07:03:01 -07:00
Thomas Neirynck
540f24313e
Avoid shard failures when performing bbox filter on coordinate maps (#19533) 2018-05-30 09:41:53 -04:00
Lisa Cawley
29cb018771 [DOCS] Moves upgrade-assistant folder to docs (#19523) 2018-05-29 23:00:47 -07:00
dave.snider@gmail.com
d0797d456e
Visual cleanup of saved objects page (#19434) (#19538)
* clean up the design of saved objects
* minor responsive fixes
* up the saved object per page setting to something reasonable
2018-05-29 22:57:05 -07:00
Lisa Cawley
88eed510c1 [DOCS] Moves setup folder to docs (#19525) 2018-05-29 22:52:34 -07:00
Lisa Cawley
84fbb30cdf [DOCS] Creates dev-tools folder (#19528) 2018-05-29 22:39:20 -07:00
Lisa Cawley
f76712fe9f [DOCS] Move watcher-ui folder to docs (#19529) 2018-05-29 22:31:32 -07:00
Lisa Cawley
8ea62191ad [DOCS] Moves graph folder to docs (#19530) 2018-05-29 22:23:26 -07:00
Bill McConaghy
243010e06d
bringing console in line with Kibana eslint rules (#19438) (#19542) 2018-05-29 22:42:57 -04:00
Lisa Cawley
ea45d44611 [DOCS] Moves reporting folder to docs (#19517) 2018-05-29 17:34:07 -07:00
Lisa Cawley
d04b2dda67 [DOCS] Moves settings folder to docs (#19521) 2018-05-29 17:29:14 -07:00
Lisa Cawley
bff706f805 [DOCS] Moves dashboard_only_mode folder to docs (#19532) 2018-05-29 17:19:59 -07:00
Lisa Cawley
fd5b62a145 [DOCS] Move ml folder to docs (#19512) 2018-05-29 15:48:38 -07:00
Nathan Reese
fbcc6962fe
merge conflict (#19519) 2018-05-29 16:24:36 -06:00
Tiago Costa
229fd275f8
[6.x] Validate current node version (#19154) (#19452)
* Validate current node version (#19154)

* feat(12976): node version validation at runtime.

* refact(12976): move the code into a static utilities class.

* test(12976): added first test case using jest.

* test(12976): added test cases for node_version.

* feat(12976): create setup env node to bootstrap babel, ts-node and node version validator.

* refact(12976): migrated node version code from es6 to es5.

* feat(12976): node version validation at runtime.

* refact(12976): move the code into a static utilities class.

* test(12976): added first test case using jest.

* test(12976): added test cases for node_version.

* feat(12976): create setup env node to bootstrap babel, ts-node and node version validator.

* refact(12976): migrated node version code from es6 to es5.

* fix(12976): remove one level from ts node register cache directory link.

* chore(12976): added caret to semver dependecy in order to support minor versions.

* refact(12976): small change from named import to default import on node version validator.

* refact(12976): removed ts_node_register and add the code to babel_register.

* feat(12976): split eslint config in order to properly support files built to run before and after node version validator. refact(12976): convert script files to es5 code. refact(12976): delete inline eslint configs from node version check related files.

* refact(12976): remove ts node register file.

* refact(12976): completely port setup_node_env to es5.

* refact(12976): remove babel_register invokation from external dependencies in scripts.

* refact(12976): move node_version code directly into node_version_validator inside setup_node_env folder.

* refact(12976): only node version validator for kbn script.

* Fix check_file_casing babel_register reference (#19457)

* chore(12976): fixed license headers on new files.
2018-05-29 21:59:42 +01:00
Lisa Cawley
9440bfbd40 [DOCS] Moves apm folder to docs (#19518) 2018-05-29 13:51:28 -07:00
Nathan Reese
bced7b7ae3
skip flaky sample data tests (#19503) (#19508) 2018-05-29 12:52:58 -06:00
Court Ewing
884237d2b4 fix docs cli command (#19501)
When we merged X-Pack into the Kibana repo and started the multi-phase
process of merging the docs together, it became necessary to specify a
resource argument to the docs build script that indicates where to find
the x-pack docs. This requirement will go away once we complete the docs
merge, but for now it needs to be specified by our docs CLI.
2018-05-29 13:09:25 -04:00
Aleh Zasypkin
24bc755954
[6.x] Add technical-level explanation for i18n (#19506) 2018-05-29 18:52:46 +02:00
Brandon Kobel
2fac2d1625
Allow config consumers to get the default value for a key (#19392) (#19507)
* Allow config consumers to get the default value for a key

* Adding support for array notation

* Adding more tests, making default values immutable

* Changing the way we're ensure it's cloned to be more similar

* Addressing peer review feedback from Aleh
2018-05-29 11:37:49 -04:00
Stacey Gammon
f57315b115
Instead of adding a margin of error, just wait for render complete. (#19406) (#19496)
* Instead of adding a margin of error, just wait for render complete. Hopefully should fix

* actually because of page margins, we still nee a margin of error.

* go back to a single run
2018-05-29 10:17:10 -04:00
James Gowdy
de11c30ed4
[ML] Start datafeed from the module setup endpoint (#19254) (#19493)
* [ML] Start datafeeds from the module setup endpoint

* changes based on review

* correcting use of filter
2018-05-29 12:55:30 +01:00
Spencer
4f29b323bf
Backport/19383/6.x (#19487)
* [eslint][tslint] require Apache 2.0 license headers

(cherry picked from commit 337fea30b9)

* [kbn-eslint-plugin-license-header] don't try to fix files with hashbangs

(cherry picked from commit db79f1501e)

* [eslint][tslint] autofix license headers
2018-05-28 20:24:23 -07:00
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