Commit graph

17334 commits

Author SHA1 Message Date
Søren Louv-Jansen f1380e3ac5
[Kuery] Remove Angular dependencies (#17836)
* [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 00:10:40 +02:00
gchaps 2bcb0d2975
[DOCS: Getting Started] Edited text and updated screenshots] (#18699)
* [DOCS: Getting Started] Edited text and updated screenshots]

* [DOCS|Getting Started] Edited for consistency in addressing the user

* [DOCS|Getting Started] Incorporated review comments

* [DOCS|GS] Style changes for consistency
2018-05-14 13:54:23 -07:00
Nathan Reese 41fff1feec
[input controls] safely handle case where control index pattern no longer exists (#18931)
* handle case where control index pattern no longer exists

* fix errors when vis is edited with missing index pattern
2018-05-14 13:38:27 -06:00
Søren Louv-Jansen acc3af0c59
Align x-pack and kibana devDeps (#19022)
* Align Node deps

* Added grunt task

* Update name
2018-05-14 19:33:04 +02:00
Nathan Reese 4a86a8042a
enhance index pattern delete documenation (#19007)
* enhance index pattern delete documenation

* add line about breaking saved objects that still reference index pattern

* indices spelling

* better wording from gchaps
2018-05-14 08:38:16 -06:00
Chris Roberson 6528ef0d33
The text property is optional (#19034) 2018-05-14 10:29:29 -04:00
Stacey Gammon 897f5f3f1a
Fix, or debug, flaky nested visualization filter test (#18957)
* Debug flaky test, or at least retry the spot that seems to be failing

* Fix missing await, use queryBar service, use more detailed error message

* update remaining references to dashboard.getQuery

* getQueryString not getQuery
2018-05-14 09:47:32 -04:00
Tim Roes f579d2299f
Update React to 16.3 (#18768)
* Update React to 16.3

* Switch off specific eslint rules

* Update enzyme snapshots

* Incorporate PR feedback
2018-05-14 14:05:17 +02:00
Spencer 0f8a00304b
[x-pack] remove use of resolveKibanaPath from plugin helpers (#18979) 2018-05-11 07:46:44 -07:00
Thomas Neirynck 361160a03f
Re-enable the staging config (#18980) 2018-05-11 07:45:21 -04:00
Pete Harverson daf01340ba
[ML] Sort Explorer view by swimlane for selected time (#18955)
* [ML] Sort Explorer view by swimlane for selected time

* [ML] Rename swimlane sort array with clearer name
2018-05-11 09:37:26 +01:00
Natalie 22aa46e850 Update Defining Your Index Patterns page (#14117)
* Update define index tutorial

* Rename Create->Next step
2018-05-10 16:35:53 -07:00
Matt Bargar abc2a5c4a3
Remove default_field from query:queryString:options (#18966) 2018-05-10 17:37:00 -04:00
archana d641bfa358
Clarify x-pack functional tests part of README.md (#18984)
* Clarify x-pack functional tests part of README.md

* Update README.md

No reason to use "project" here. Also capitalizing sentences is good.
2018-05-10 16:01:04 -05:00
Varun Sharma a6e404c034
Adds Navigation Plugin (#18971)
This visualization is used to dynamically show dashboard links within dashboards to facilitate better navigation.
2018-05-10 15:59:21 -05:00
Stacey Gammon 0679ab26be
KuiContextMenu => EuiContextMenu (#17621)
* Switch to euicontextmenu

* update jest panel snapshots
2018-05-10 16:45:31 -04:00
Chris Davies fc5e8d81fe
Add a REPL mode to the Kibana server (#17638)
Add a repl option to the Kibana server. This will run Kibana in dev mode with a repl that has access to the server object.
2018-05-10 16:33:04 -04:00
Jen Huang 45002180a7
Fix ace editor warnings (#18893)
* Fix ace editor warnings
2018-05-10 10:43:49 -07:00
gchaps 7ee5147b26
[COPYEDIT] Fixed capitalization for Basic and Premium licenses (#18969)
* [COPYEDIT] Fixed capitalization for Basic and Premium licenses

* [COPYEDIT] More fixes for upper case in license text, including one code change
2018-05-10 09:31:46 -07:00
Stacey Gammon ba080a19ae
Clean up time range handling in embeddables (#17718)
* Convert all inner time range formats to utc for consistency

- pass down container state on render rather than rely on specific
function call orders.

* remove accidentally left in return jsdoc line
2018-05-10 12:15:37 -04:00
Stacey Gammon 00a3fb067c
Try to fix flaky override colors test (#18961)
* unskip test and run multiple times to trigger

* Forgot to await the retry, made the flakiness worse!

* Undo multiple test runs
2018-05-10 12:15:12 -04:00
Nathan Reese 2033ab6ecd
fix input control arrows (#18929) 2018-05-10 07:09:00 -06:00
Tim Sullivan 782d4d9804
[Monitoring/React] Render ES Indices Listing with Base Controller / React (#18595)
* [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-09 21:37:24 -07:00
Tim Sullivan 011e8b2c28
[Monitoring] reorganize metrics per stack product (#18590)
* [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 18:23:27 -07:00
archana b58e757794
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-09 18:23:49 -05:00
Chris Roberson 2f0b4209c4
Ensure we always send a comma delimited index to support commas in index patterns (#17173)
* Ensure we always send a comma delimited index

* Get visualizations working for index patterns with commas

* Fix test failures
2018-05-09 16:45:44 -04:00
Chris Earle da1ed1a105
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:53:39 -04:00
Tyler Smalley 7c784db2f1
[kbn-es] Updates location of ES OSS snapshot (#18938)
ES snapshots are located again within the base elasticsearch directory and NOT within an additionally nested elasticsearch-oss directory

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2018-05-09 09:29:15 -07:00
Pete Harverson 875a0eb3bc
[ML] Filter top influencer list based on swimlane selection (#18946)
* [ML] Filter top influencer list based on swimlane selection

* [ML] Edits to Influencer List after review and remove animation
2018-05-09 16:56:35 +01:00
Peter Pisljar c8b8027866
Allow splitting series on multiple fields (#17855) 2018-05-09 10:16:24 -05:00
Walter Rafelsberger 79c4d4ef09
[ML] Enable cell range selection. (#18920)
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 14:39:22 +02:00
James Gowdy 0d3df613de
[ML] Fixing transfer of dedicated index setting (#18945) 2018-05-09 13:22:44 +01:00
Brandon Kobel 2682bc5f07
Making schema async, and plugin discovery expose raw package jsons (#18926)
* Making schema async, and plugin discovery expose raw package jsons

* Addressing some peer review comments

* Modifying the way we emit the extendedConfig

* Removing errant config

* Adding filter and last so we only get the last non-null one
2018-05-08 19:14:26 -04:00
Spencer 8a2a11e8b2
[esArchiver/deleteIndex] wait and retry if snapshot in progress (#18624)
* [esArchiver/deleteIndex] wait and retry if snapshot in progress

* [esArchiver/deleteIndex] use recursion for retry

* [esArchiver/waitForSnapshot] invert status check

* [esArchiver] share delete-with-retry with create stream

* [esArchiver/stats] include index name in message

* [esArchiver/indexDelete] wait for snapshot completion up to three times

* [esArchiver] log status of snapshot during checks
2018-05-08 13:44:13 -07:00
Nathan Reese e3841ea7ea
[Input controls] Replace react-select with EuiComboBox (#17452)
* replace react-select with EuiComboBox

* remove constructor for ListControl component

* get working with portal version

* remove overflow visible from input_control_vis since its no longer needed

* convert index pattern select to EuiComboBox

* replace react-select with EuiComboBox for field select

* group fields by type

* remove esvm

* remove on-foxus box around input cursor

* fix jest tests

* remove broken jest test

* fix functional tests

* review changes

* remove componentWillMount from field_select

* update snapshot changed from rebasing and getting new EUI version

* use combo box clear and close buttons for clearing and closing

* jsdoc syntax fix
2018-05-08 13:48:12 -06:00
Nathan Reese 147d208e2d
fix recently accessed overflow problems (#18726) 2018-05-08 12:44:54 -06:00
Stacey Gammon 5fcf7bc171
Add a time zone test (#18870)
* Add a time zone test

* Make sure timezone it back to UTC after the test runs
2018-05-08 13:25:08 -04:00
Tim Sullivan 698dfa455c
[Monitoring/Beats] Telemetry Data from Beats (#18833)
* [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-08 09:19:15 -07:00
Lukas Olson 930e80efba
Filter editor: Hide fields until scrolled into view (#18640)
* Filter editor: Hide fields until scrolled into view

* Reset on open/close
2018-05-08 08:46:25 -07:00
Tim Roes 7c6a0f7cae
Update broken snapshots (#18917) 2018-05-08 16:58:41 +02:00
Jonathan Budzenski 928d3ead27
[build] Set file times to build time (#18742) (#18830) 2018-05-08 09:56:52 -05:00
Tim Roes cbbb4dc221
Add EditorOptionsGroup component (#18812)
* Add EditorOptionsGroup component

* Add actions and more tests

* Add initialIsCollapsed property
2018-05-08 15:29:41 +02:00
Walter Rafelsberger 74868ebb2f
[ML] Fixes time series viewer data binding for forecast data. (#18903)
Fixes the data binding of focusForecastData to renderFocusChart(). An update to focusForecastData in MlTimeSeriesExplorerController wasn't correctly picked up by the directive mlTimeseriesChart because the relevant data wasn't being watched.
2018-05-08 14:58:17 +02:00
James Gowdy b1ca716b80
[ML] Correctly transfer dedicated index setting to advanced job page (#18899)
* [ML] Correcly transfer dedicated index setting to advanced job page

* removing accidentally added code
2018-05-08 13:50:00 +01:00
Pete Harverson 59fb742f80
[ML] Hide Top Influencers list if job has no influencers (#18819)
* [ML] Hide Top Influencers list if job has no influencers

* [ML] Add check for undefined job when hiding influencers list
2018-05-08 13:27:57 +01:00
Walter Rafelsberger 9894355490
[ML] Move the hide() function outside the show() function's scope. (#18900)
The mlChartTooltipService's hide() method was inside the show() method scope. If hide() was called before show() was called for the first time this would result in an error. This could have happened in angular directive's which called hide() on some cleanup action without a previous call to show(). This fix moves the hide() method outside the show() method's scope and adds a unit test to check for the correct structure of mlChartTooltipService.
2018-05-08 13:53:22 +02:00
Peter Pisljar 3c898a58aa
fixing missing value display for number fields (#16644) 2018-05-08 06:03:28 -05:00
Court Ewing 6d52c9d119
No markdown in "question" issue template
Since the default view for new issues is the edit view, and we don't
intend for folks to submit issues that are created using the question
template, markdown really only makes things harder to read.
2018-05-07 18:59:04 -04:00
Court Ewing 5572242215
Issue templates for features, bugs, and questions (#18892)
The bug report and feature request templates are pretty
straightforward.

The question template will hopefully drive people that just have a
question toward the forums.
2018-05-07 18:52:55 -04:00
Spencer 8e3c1c7517
Fix procRunner/x-pack ftr scripts (#18789)
* [x-pack/ftr] call fatalErrorHandler when functional tests fail

* [kbn/dev-tools/withProcRunner] require a log as the first arg

* [kbn/dev-tools/procRunner] use correct promise, convert to getter

* [x-pack/ftr] avoid race condition that prevents success message logging

When starting the kibana server it is possible for log messages to come
after the server is started, so we added a pause that waits for 5
seconds of logging silence before logging the success message. The
observable used fails to complete though if a log message is never
written AFTER the Kibana server starts. To counter this the observable
is started with `null` so it will always start at least one 5 second
timer and always complete even if there is no log data after Kibana
server starts.

* fix typo
2018-05-07 14:50:15 -07:00