Commit graph

17518 commits

Author SHA1 Message Date
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
Court Ewing 70528f62e6 Removing erroneous github issue template 2018-05-07 16:39:56 -04:00
Court Ewing b2a24a7e20 Update issue templates
Issue templates for bug reports, feature requests, and questions.
2018-05-07 16:37:46 -04:00
Jen Huang 1259007745
Advanced Settings to React/EUI (#17465) 2018-05-07 12:48:27 -07:00
Justin Kambic 637d90dde0
[Logstash Pipeline Management] Fix bottom border of Pipeline Editor (#18834)
* Change pipeline editor markup so bottom border doesn't hide text on last line.

* Add constants for scroll margin size.

* Add comments to editor constants.

* Add PX units to constant names.
2018-05-07 14:08:05 -04:00
Nathan Reese ce3b69fbe9
remove application icon assets in kibana that ship with EUI (#18570)
* remove assets in kibana that ship with EUI

* update home page tests

* replace logstash pipeline svg with EUI icon type
2018-05-07 10:59:39 -06:00
Thomas Neirynck 2ced21b4eb
do not handle click when no aggregation has been specified (#18825) 2018-05-07 11:28:01 -04:00
Peter Pisljar 87badd6bc4
removing angular from AggConfigs (#17682) 2018-05-07 09:48:42 -05:00
Søren Louv-Jansen 8627dbad14
[APM] Fix docs link and mock ui/metadata (#18857) 2018-05-07 16:22:54 +02:00
Thomas Neirynck f93b6ea0fc
Do not handle precision changes when no aggregations have been configured on the coordinate map (#18826) 2018-05-07 09:19:41 -04:00
Nathan Reese 6d51db6656
upgrade to eui 0.0.46 (#18827)
* upgrade to eui 0.0.46

* update logoElasticsearch

* update x-pack jest snapshots
2018-05-05 09:08:15 -06:00
spalger 6667c63a91 disable flaky test 2018-05-04 12:19:30 -07:00
Søren Louv-Jansen 14876364c7
Replace api calls with ReduxRequest (#18815) 2018-05-04 20:29:00 +02:00
Justin Kambic 3028a6fd80
Fix suboptimal file org/export structure. (#18820) 2018-05-04 14:27:05 -04:00
Nathan Reese 7d95fe3cd3
fix movingstd (#15911) 2018-05-04 12:13:56 -06:00
Lisa Cawley 6a8c31ab5f
[DOCS] Adds changelog to Kibana User Guide (#18698) 2018-05-04 09:44:16 -07:00
Justin Kambic 38fd6066f6
[Grok Debugger] Better editor expansion/Fix border hiding bottom line (#18752)
* Update to grok debugger editors: let them grow taller and stop hiding half of bottom line input.

* Update custom pattern size to 10 LOC.

* Remove unnecessary options, add constants for scroll margin.

* Encapsulate editor options in mutate function.

* Move editor helper file and prefer "function" declaration over ES6 const.

* Add test for new helper function.
2018-05-04 12:20:36 -04:00