Commit graph

1237 commits

Author SHA1 Message Date
archana
c2265e3931 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-15 12:33:01 -05:00
Bill McConaghy
6fed438e90
[console] 6.0 API and ace refactor (#18930) (#19066)
* capturing refactoring work in progress

* cleanup

* removing 5.0 API

* updating autocomplete aggregations to supported ones

* adding documentation links to generated specs

* progress on ace upgrade

* further progress

* cleaning up

* adding new minified source for worker

* fixing bug with merging API definitions

* addressing PR feedback

* using raw loader to load worker file

* addressing PR feedback

* fixing bad characters in comments

* removing inadvertent change

* fixing scope links

* fixing a couple of scope links

* adding in exists to query dsl

* adding slop param for match_phrase query

* adding autocomplete support for search params

* Revert "using raw loader to load worker file"

This reverts commit 16d33c189c.

* adding rescore API support for autocomplete

* adding index boost API support for autocomplete

* adding collapse to autocomplete

* adding highlight property support to autocomplete

* fixing issue with highlight

* adding support for common terms query

* adding inner hits support for autocomplete

* adding support for newer match options to match and multi_match

* better solution for worker
2018-05-15 09:18:11 -04:00
Pete Harverson
daaba27f21
[ML] Fix issues with end time of explorer swimlane selection (#18995) (#19065) 2018-05-15 13:37:34 +01:00
Tyler Smalley
2bb111c8f9 [docs] Disabling APM should be done through common config (#19058)
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2018-05-14 17:53:50 -07:00
Søren Louv-Jansen
d47b685e54
Align x-pack and kibana devDeps (#19022) (#19047)
* Align Node deps

* Added grunt task

* Update name
2018-05-15 02:19:09 +02:00
Søren Louv-Jansen
14fb605370
[Kuery] Remove Angular dependencies (#17836) (#19055)
* [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 01:25:04 +02:00
Chris Roberson
519991342c
The text property is optional (#19034) (#19039) 2018-05-14 13:22:42 -04:00
Tim Roes
e5ea9dd2a6
Update React to 16.3 (#18768) (#19033)
* Update React to 16.3

* Switch off specific eslint rules

* Update enzyme snapshots

* Incorporate PR feedback
2018-05-14 15:15:18 +02:00
Spencer
ef12447f63
[6.x] [x-pack] remove use of resolveKibanaPath from plugin helpers (#18979) (#19004) 2018-05-11 16:04:58 -07:00
Pete Harverson
a049a9ad53
[ML] Sort Explorer view by swimlane for selected time (#18955) (#18994)
* [ML] Sort Explorer view by swimlane for selected time

* [ML] Rename swimlane sort array with clearer name
2018-05-11 10:51:10 +01:00
gchaps
885b564eab
[COPYEDIT] Fixed capitalization for Basic and Premium licenses (#18969) (#18991)
* [COPYEDIT] Fixed capitalization for Basic and Premium licenses

* [COPYEDIT] More fixes for upper case in license text, including one code change
2018-05-10 18:52:03 -07:00
Jen Huang
00de98d4cb
Fix ace editor warnings (#18893) (#18983)
* Fix ace editor warnings
2018-05-10 12:18:16 -07:00
Tim Sullivan
50906670e4
[Monitoring/React] Render ES Indices Listing with Base Controller / React (#18595) (#18970)
* [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-10 09:18:36 -07:00
Pete Harverson
160a0dd383
[ML] Filter top influencer list based on swimlane selection (#18946) (#18954)
* [ML] Filter top influencer list based on swimlane selection

* [ML] Edits to Influencer List after review and remove animation
2018-05-10 11:40:23 +01:00
Tim Sullivan
2af15b5a35
[Monitoring] reorganize metrics per stack product (#18590) (#18968)
* [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 21:37:48 -07:00
Chris Earle
b823c85e63 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:54:20 -04:00
Tim Sullivan
19a8bc4c6c
[Monitoring/Beats] Telemetry Data from Beats (#18833) (#18922)
* [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-09 11:52:31 -07:00
Walter Rafelsberger
1fd0f7aae9
[ML] Enable cell range selection. (#18920) (#18950)
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 16:20:07 +02:00
James Gowdy
ceef005173
[ML] Fixing transfer of dedicated index setting (#18945) (#18947) 2018-05-09 14:30:41 +01:00
Spencer
8db03827c7
[6.x] Fix procRunner/x-pack ftr scripts (#18789) (#18887)
* [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-08 09:55:59 -07:00
Walter Rafelsberger
4136cd72e2
[ML] Fixes time series viewer data binding for forecast data. (#18903) (#18910)
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 16:47:14 +02:00
James Gowdy
26af244d0e
[ML] Correctly transfer dedicated index setting to advanced job page (#18899) (#18909)
* [ML] Correcly transfer dedicated index setting to advanced job page

* removing accidentally added code
2018-05-08 14:56:36 +01:00
Pete Harverson
09ad9f363a
[ML] Hide Top Influencers list if job has no influencers (#18819) (#18908)
* [ML] Hide Top Influencers list if job has no influencers

* [ML] Add check for undefined job when hiding influencers list
2018-05-08 14:48:47 +01:00
Walter Rafelsberger
50dcb9e93c
[ML] Move the hide() function outside the show() function's scope. (#18900) (#18905)
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 15:10:34 +02:00
Peter Pisljar
5961589ed2
[6.x] remove angular from AggTypes (#17681) (#18884)
* remove angular from AggTypes (#17681)

# Conflicts:
#	src/ui/public/agg_response/point_series/__tests__/_fake_x_aspect.js
#	src/ui/public/agg_response/point_series/_fake_x_aspect.js
#	src/ui/public/agg_types/__tests__/agg_param_writer.js
#	src/ui/public/agg_types/__tests__/agg_type.js
#	src/ui/public/agg_types/__tests__/buckets/_geo_hash.js
#	src/ui/public/agg_types/__tests__/buckets/_histogram.js
#	src/ui/public/agg_types/__tests__/buckets/_terms_other_bucket_helper.js
#	src/ui/public/agg_types/__tests__/buckets/create_filter/date_histogram.js
#	src/ui/public/agg_types/__tests__/buckets/create_filter/date_range.js
#	src/ui/public/agg_types/__tests__/buckets/create_filter/filters.js
#	src/ui/public/agg_types/__tests__/buckets/create_filter/histogram.js
#	src/ui/public/agg_types/__tests__/buckets/create_filter/ip_range.js
#	src/ui/public/agg_types/__tests__/buckets/create_filter/range.js
#	src/ui/public/agg_types/__tests__/buckets/create_filter/terms.js
#	src/ui/public/agg_types/__tests__/buckets/date_histogram/_editor.js
#	src/ui/public/agg_types/__tests__/buckets/date_histogram/_params.js
#	src/ui/public/agg_types/__tests__/buckets/terms.js
#	src/ui/public/agg_types/__tests__/index.js
#	src/ui/public/agg_types/__tests__/metrics/parent_pipeline.js
#	src/ui/public/agg_types/__tests__/metrics/percentile_ranks.js
#	src/ui/public/agg_types/__tests__/metrics/percentiles.js
#	src/ui/public/agg_types/__tests__/metrics/sibling_pipeline.js
#	src/ui/public/agg_types/__tests__/metrics/std_deviation.js
#	src/ui/public/agg_types/__tests__/metrics/top_hit.js
#	src/ui/public/agg_types/buckets/_bucket_agg_type.js
#	src/ui/public/agg_types/buckets/_terms_other_bucket_helper.js
#	src/ui/public/agg_types/buckets/create_filter/date_range.js
#	src/ui/public/agg_types/buckets/date_histogram.js
#	src/ui/public/agg_types/buckets/date_range.js
#	src/ui/public/agg_types/buckets/filter.js
#	src/ui/public/agg_types/buckets/filters.js
#	src/ui/public/agg_types/buckets/geo_hash.js
#	src/ui/public/agg_types/buckets/histogram.js
#	src/ui/public/agg_types/buckets/ip_range.js
#	src/ui/public/agg_types/buckets/range.js
#	src/ui/public/agg_types/buckets/significant_terms.js
#	src/ui/public/agg_types/buckets/terms.js
#	src/ui/public/agg_types/index.js
#	src/ui/public/agg_types/metrics/avg.js
#	src/ui/public/agg_types/metrics/bucket_avg.js
#	src/ui/public/agg_types/metrics/bucket_max.js
#	src/ui/public/agg_types/metrics/bucket_min.js
#	src/ui/public/agg_types/metrics/bucket_sum.js
#	src/ui/public/agg_types/metrics/cardinality.js
#	src/ui/public/agg_types/metrics/count.js
#	src/ui/public/agg_types/metrics/cumulative_sum.js
#	src/ui/public/agg_types/metrics/derivative.js
#	src/ui/public/agg_types/metrics/geo_bounds.js
#	src/ui/public/agg_types/metrics/geo_centroid.js
#	src/ui/public/agg_types/metrics/max.js
#	src/ui/public/agg_types/metrics/median.js
#	src/ui/public/agg_types/metrics/metric_agg_type.js
#	src/ui/public/agg_types/metrics/min.js
#	src/ui/public/agg_types/metrics/moving_avg.js
#	src/ui/public/agg_types/metrics/percentile_ranks.js
#	src/ui/public/agg_types/metrics/percentiles.js
#	src/ui/public/agg_types/metrics/serial_diff.js
#	src/ui/public/agg_types/metrics/std_deviation.js
#	src/ui/public/agg_types/metrics/sum.js
#	src/ui/public/agg_types/metrics/top_hit.js
#	src/ui/public/courier/data_source/__tests__/decorate_query.js
#	src/ui/public/time_buckets/time_buckets.js
#	src/ui/public/vis/__tests__/_agg_config.js
#	src/ui/public/vis/agg_configs.js
#	src/ui/public/vis/editors/default/agg_params.js

* updating x-pack
2018-05-07 20:28:52 -05:00
Jen Huang
8079bec770
Advanced Settings to React/EUI (#18878) 2018-05-07 16:20:56 -07:00
Nathan Reese
4d3b173272
remove application icon assets in kibana that ship with EUI (#18570) (#18871)
* remove assets in kibana that ship with EUI

* update home page tests

* replace logstash pipeline svg with EUI icon type
2018-05-07 12:37:22 -06:00
Justin Kambic
733f625dea [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:13:06 -04:00
Søren Louv-Jansen
fadb1f5029
[6.x] Replace api calls with ReduxRequest (#18815) | [APM] Fix docs link and mock ui/metadata (#18857) (#18864)
* Replace api calls with ReduxRequest (#18815)

* [APM] Fix docs link and mock ui/metadata (#18857)
2018-05-07 17:29:50 +02:00
Nathan Reese
538b58c6f8
upgrade to eui 0.0.46 (#18827) (#18849)
* upgrade to eui 0.0.46

* update logoElasticsearch

* update x-pack jest snapshots
2018-05-05 13:21:18 -06:00
Lisa Cawley
dda84d7570
[DOCS] Added X-Pack release items to changelog (#18832) 2018-05-04 14:57:35 -07:00
Tim Sullivan
bdf1f3c973
[Monitoring/Metrics] clean up metric classes and getMetricFields stat… (#18741) (#18757)
* [Monitoring/Metrics] clean up metric classes and getMetricFields static helpers

* more pull out

* more to break out

* snapshot update
2018-05-04 14:25:20 -07:00
Lisa Cawley
255085f37d
[DOCS] Removes X-Pack Breaking Changes page (#18755) 2018-05-04 12:27:42 -07:00
Justin Kambic
40d597908a Fix suboptimal file org/export structure. (#18820) 2018-05-04 14:28:47 -04:00
Justin Kambic
eb1a07e9fd [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:31:49 -04:00
James Gowdy
c3f310a67a
[ML] Data recognizer UI improvements (#18804) (#18809)
* [ML] Data recognizer UI improvements

* rolling back accidental change
2018-05-04 15:12:16 +01:00
Shaunak Kashyap
f11b52f619 Removing line that's causing an error (#18807) 2018-05-04 06:27:32 -07:00
James Gowdy
7046999062
[ML] Fixing data recogniser save success issue (#18803) (#18806) 2018-05-04 13:02:02 +01:00
Pete Harverson
375f5f1546
[ML] Convert Explorer Influencers List to EUI/React (#18773) (#18801)
* [ML] Convert Explorer Influencers List to EUI/React

* [ML] Remove unused abbreviate_whole_number Angular filter

* [ML] Convert React Influencers List to stateless function
2018-05-04 10:32:34 +01:00
Walter Rafelsberger
a77e2bfc4b
[ML] Fix Anomaly Table update trigger (#18769) (#18774)
Fixes an issue with the anomaly table not correctly updating in the anomaly explorer and the anomaly markers not showing up in the time series viewer.
- moves the initialization of scope.anomalyRecords = []; to the controllers of anomaly explorer and time series viewer. having it in the anomaly table directive caused a race condition to overwrite already fetched records.
- use $watchCollection instead of $watch to track anomalyRecords and focusChartData changes.
replaces $timeouts with scope.$evalAsync
- fixes how focusChartData gets updated correctly to fix missing anomaly markers in the time series viewer.
2018-05-04 07:00:22 +02:00
James Gowdy
29dd4602d1
[ML] Fixing error reporting in message bar (#18781) (#18788) 2018-05-03 22:39:51 +01:00
Tim Sullivan
7c5c610c14
[Monitoring/Test] More indices listing tests to prep for refactoring (#18758) (#18784) 2018-05-03 13:07:59 -07:00
Spencer
a6c0c62121 [uiExports] migrate uiApp "uses" to explicit imports in apps (#17828)
* [uiExports] migrate uiApp "uses" to explicit imports in apps

* [uiApp] update tests for getModules() method

* [optimize/uiExports] improve naming and comments

* [uiExports] sort imports so they load in the same order as before

* [testHarness] load hacks when testing in the browser

* [x-pack/uiExports] use new uiExports modules

* [testHarness] describe why we import uiExports/hacks

* [optimize] remove needless [].concat()

* [optimize/createUiExportsModule] string.includes > string.indexOf

* [uiExports/createUiExportsModule] remove needless capture of module exports

(cherry picked from commit e1a2fcbd96)
2018-05-03 12:19:12 -07:00
lcawley
2dd91b2c47 [DOCS] Enables editing links for X-Pack pages 2018-05-03 08:52:38 -07:00
James Gowdy
95986bde1e
[ML] Fixing icon 404 responses in firefox (#18766) (#18770) 2018-05-03 15:35:05 +01:00
James Gowdy
cb9ef05923
[ML] Converting services to be non-angular imports (#18687) (#18771)
* [ML] Removing angular from services

* removing commented out code

* fix include path for tests

* adding flag to initPromise

* moving job service for jest tests to pass

* moving initPromise to its own file
2018-05-03 15:34:54 +01:00
Walter Rafelsberger
4113348c79
[ML] Refactor to not rely on broadcast which could result in listeners not picking up changes. (#18717) (#18762)
Fixes an issue where the anomaly table wouldn't load because a broadcast to renderTable was triggered before the anomaly table directive initialized the corresponding listener. This change replaces the use of broadcast and instead uses $watch to listen on scope changes on the specific attributes relevant to the updates. The updating of code in parent scopes was moved inside the $timeouts instead of the broadcast event.
2018-05-03 11:49:16 +02:00
Nathan Reese
bb6157b2ed
fix conflicts (#18748) 2018-05-02 18:01:31 -06:00
lcawley
28cc3d86a0 [DOCS] Removes X-Pack release notes 2018-05-02 16:53:07 -07:00
Spencer
0296eb2816 Fix loading indicator for uiSettingsClient (#18694)
* [ui/chrome/loadingIndicator] expose VanillaJS hooks for gloabl loading indicator

* [ui/uiSettingsClient] increment/decrement loading count while request in progress

* [ui/loadingIndicator] fix HeaderPage.isGlobalLoadingIndicatorHidden()

* [ui/loadingIndicator] remove rxjs, fix tests

* [ui/loadingIndicator] improve docs

* [ui/loadingIndicator] remove needless unmounts

* [ui/loadingCount] correct typo

* [functionalTests/headerPage] awaitGlobalLoadingIndicatorHidden

* [ui/loadingCount] send subscribers the loading count on subscription

* [ui/loadingIndicator] remove error throwing, cleanup render

(cherry picked from commit d35316642d)
2018-05-02 16:38:37 -07:00