Commit graph

16395 commits

Author SHA1 Message Date
Tyler Smalley
b286dfee51 Bumps node to 6.12.2 (#15612)
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2017-12-15 10:16:10 -08:00
Stacey Gammon
e4a4969889
Stabilize dashboard snapshot tests (#15603) (#15620)
* Tests were sometimes failing locally when waiting for a render counter of 6

Render counter value, as it turns out, is unstable and unreliable, and
is in the process of being replaced.  For now, we have to use a lower
render counter (sometimes it’s 6, sometimes it’s 4) and add a sleep.
Very unfortunate, but hopefully will soon be able to be use the newer
logic.

* Remove extra test runs
2017-12-14 18:53:08 -05:00
Nathan Reese
ef0cdaad10
disable input control when field contains no values in index pattern (#15317) (#15621)
* disable range control when no min and max

* use message text provided by gchaps

* use pui-react-tooltip instead of waiting for UI-framework tooltip

* disable list control when no terms returned

* fix jest tests and add test case disabled controls

* fix pui tooltip styling

* set disable to true since its inside if check for same value

* update jest snapshot
2017-12-14 16:42:33 -07:00
Chris Roberson
a287eef7d4
Add test for parsedUrl (#15497) (#15613) 2017-12-14 16:31:21 -05:00
Shaunak Kashyap
29702a21b3 [kuiFlexGroup] Add space-evenly option to justify-content property (#15578) 2017-12-14 13:00:27 -08:00
Stacey Gammon
feb41476b1
Skpi a flaky (maybe broken) test (#15616) (#15617) 2017-12-14 15:23:12 -05:00
Tim Roes
31af161c79
Set uiState to Vis from visualization (#15549) (#15609) 2017-12-14 12:59:34 +01:00
Nathan Reese
2e4426cabf
[timelion] highlight series on legend mouseover (#15229) (#15602)
* highlight series on mouseover

* thomasneirynck review items

* make highlighting keyboard accessible

* add check for zero to focus if block
2017-12-13 15:06:05 -07:00
Nathan Reese
c0661db279
set tooltip width so div is centered around triggering element (#15542) (#15601) 2017-12-13 14:48:00 -07:00
Thomas Neirynck
a03f0de88a
fixed param order (#15518) (#15596) 2017-12-13 16:14:32 -05:00
Stacey Gammon
faa2e9771e
Add mechanism for dashboard snapshots (#15463) (#15593)
* Add mechanism for dashboard snapshots

* Adjust wait for render function since it needs to be 2, not gt 0.

Should be obsolete when the new render stuff is complete.

* resize images using new library so comparisons work across different screen resolutions

* use jimp comparison and see if expanding to expanded panel mode helps when comparing across browser/os

* Try to ensure window size

* Experiment with a smaller window, see if screenshot dimensions change

Update screenshot for new window dimensions

* Try cover + quality, see what the diffs look like.

* Stop trying to get TSVB to pass, try area charts

There is a timezone bug with tsvb:
https://github.com/elastic/kibana/issues/15501

* gah, cover didn't work, check resize

* bump render counter to 6, as it should be.

As it turns out, the visualization was not done re-rendering to
maximized mode

* Bump threshold for comparison

* reduce down to a single test run

* Don't use an environment variable to detect updateBaselines cmd line flag
2017-12-13 15:49:18 -05:00
CJ Cenizal
e96589fd64
Downgrade babel-preset-env to 1.4.0 and babel-preset-react to 6.22.0. (#15595) (#15599) 2017-12-13 12:19:54 -08:00
Nathan Reese
4531c17334
reset lastSubUrl nav links for deleted saved objects (#15508) (#15590)
* untrack nav links for deleted saved objects

* move nav cleanup logic to saved_object_loader delete method

* notify with info when redirected when missing
2017-12-13 12:42:08 -07:00
Tim Roes
14e5cfd73c
Remove implementsRenderComplete property (#15579) (#15589) 2017-12-13 19:56:08 +01:00
Matt Bargar
756df36f77
minor indent fix (#15520) (#15584) 2017-12-13 11:33:22 -05:00
Stacey Gammon
6a08ea272e
The react 16 upgrade requires the width 100% attribute, but using height 100% messes up maximized panel mode (#15565) (#15568) 2017-12-13 09:28:37 -05:00
jimgoodwin
046f616b3b Release notes 6.1.0 2017-12-13 09:24:27 -05:00
CJ Cenizal
de285c712a
Fix some bugs in the UI Framework caused by the React 16 upgrade. (#15544) (#15559) 2017-12-12 09:49:34 -08:00
Stacey Gammon
15fadeda2d
Use render counter to fix timing issue with click events on pie slices (#15494) (#15555)
* Use render counter to fix timing issue with click events not being applied by the time a pie slice is clicked.

* use testSubjects.moveMouseTo function

It has built in safety checks for stale element refs

* remove sleep

* Remove extra test suite runs, passed enough times
2017-12-12 12:47:10 -05:00
Stacey Gammon
7ef2bc3a79
Investigate fix for flaky clone test (#15503) (#15550)
* First, run the test suite in question 20s to see how flaky it is and if it can be semi reliably repro'ed

* Use testSubjects instead of click by link test.

* spaces in data-test-subj selectors messes this up

* Passed sufficient number of times, remove extra test runs
2017-12-12 12:21:28 -05:00
Christopher Dieringer
25bf57af62 Handle ES _default_ mapping names (#15432) 2017-12-12 09:08:17 -08:00
Chris Cowan
a7575a1dcd [TSVB] Fix bucket paths to work with ES 6.0 and later (#15322)
* Fix bucket paths (and pretty up the file some)

* Fixing tests
2017-12-12 09:56:18 -07:00
Tim Roes
605eea52f9
Extract lab HTML on dashboard into own file (#15546) (#15548)
* Use visualize loader to in visualize embeddable

* Remove old template

* Fix broken property name

* Extract the lab disabled template
2017-12-12 16:52:23 +01:00
CJ Cenizal
4e5bc801b1
Rename angular-bootstrap tooltip classes 'bsTooltip'. (#15539) (#15540) 2017-12-11 17:51:06 -08:00
Nathan Reese
88d6841544
Add Timelion percentiles aggregation support (#8953) (#15154) (#15533)
* Add Timelion percentiles aggregation support (#8953)

Elasticsearch already supports percentiles aggregation. In order to
support it in Timelion we add `percentiles` aggregation function and
optionally a list of comma separated `percents` to the request. The
response contains a list of buckets, each of them is a single series.

* Add percentiles as an argument suggestion

* Add test case for percentiles multi-value metric aggregation flattening

* Add percentiles to the function reference help page

* Fix broken frontend on NaN values
2017-12-11 18:38:29 -07:00
Kim Joar Bekkelund
13f8bbec55
Handle undefined options when looking for 'pluginDir' (#15532) (#15536)
* Handle undefined options when looking for 'pluginDir'

* Use 'settings' instead of 'options'
2017-12-12 01:41:49 +01:00
Nathan Reese
f4e94f70b0
Upgrade to react 16.0.0 (#15469) (#15530)
* get kibana to start with react 16.0.0

* ensure width and height for dashboard grid

* Update to Enzyme 3.x. (#12)

* Fix tests broken by Enzyme upgrade (#13)

* Update to Enzyme 3.x. (#12)

* Add findTestSubject test helper. Fix KuiCodeEditor tests.

* Fix KuiContextMenu tests.

* Fix KuiConfirmModal tests.

* Fix tests for KuiPager.

* Update KuiConfirmModal tests to use findTestSubject helper.

* Publish test helpers from ui_framework. Fix DashboardCloneModal tests.

* Fix more tests (#14)

* Fix DashboardPanelContainer tests.

* Update KuiColorPicker tests.

* Fix ControlsTab tests.

* Rename vis to input_control_vis. Update and fix InputControlVis tests.

* Fix KuiListingTable tests.

* Fix KuiTextInput tests.

* Update DashboardGrid test snapshots.

* Fix test file names (#15)

* Remove old enzyme setup file.

* Add .test to YesNo and AddDeleteButtons test files.

* needed window.cancelAnimationFrame to accompany requestAnimationFrame

* remove getDOMNode function call from findTestSubject
2017-12-11 15:26:47 -07:00
Thomas Neirynck
b58beede63
Use async keyword instead of Promises (#15526) 2017-12-11 15:47:17 -05:00
Stacey Gammon
fd75aeb0ce
skip flaky dashboard tests (#15505) (#15513) 2017-12-08 18:18:24 -05:00
Stacey Gammon
b9c3be5be6
Make sure to handle the case when search results come back in a different order than retrieved (#15479) (#15502)
* Make sure to handle the rare case search results come back in a different order than retrieved

* Remove unnecessary setting of filter on the state
2017-12-08 15:01:17 -05:00
Tim Roes
a6b45035b5
Use visualize loader for dashboards (#15444) (#15496)
* Use visualize loader to in visualize embeddable

* Remove old template

* Fix broken property name
2017-12-08 18:07:16 +01:00
Stacey Gammon
5a24f58ea0
[6.x] improve preserve app cross state logic (#15464) (#15481)
* improve preserve app cross state logic (#15464)

* Eliminate flakiness the original PR introduced
2017-12-08 11:47:56 -05:00
Felix Stürmer
f17b1b8f1a
[6.x] Skip flaky discover test (#15412) (#15491) 2017-12-08 15:46:25 +01:00
Søren Louv-Jansen
2926aab61c
Bump backport dependency and add .backportrc.json (#15417) (#15488) 2017-12-08 11:16:29 +01:00
Spencer
4506917e43
[6.x] [dev/mocha/junit] report real skipped test count and errors from hooks (#15465) (#15475)
* [dev/mocha/junit] report real skipped test count and errors from hooks

* typo
2017-12-07 14:50:07 -07:00
Kim Joar Bekkelund
104c5519de
Normalize path separators when writing test entry file (#15473) (#15474) 2017-12-07 21:35:04 +01:00
Kim Joar Bekkelund
b3f76f64a2
Deprecate --plugin-dir option in cli (#15390) (#15467) 2017-12-07 03:56:23 +01:00
Nathan Reese
62576a7d52
Visualize listing page - show which column is currently sorted (#15435) (#15456)
* this.state.sortedColumn was getting set to an object instead of the sorted column name

* remove unused state field sortedColumnDirection
2017-12-06 10:00:35 -07:00
jimgoodwin
2268054953 6.0.1 release notes 2017-12-06 11:42:53 -05:00
jimgoodwin
ae724c886f Release notes for 6.0.1 2017-12-06 11:42:53 -05:00
Stacey Gammon
c40066ca35
Skip flaky dashboard panel tests (#15430) (#15433) 2017-12-06 10:20:14 -05:00
Peter Pisljar
da7772d760
fixing gauge update logic so it wont break tsvb (#15076) (#15449) 2017-12-06 16:05:30 +01:00
Brandon Kobel
7a998f4ab8
Hiding the experimental warning when we're being shared (#15431) (#15451) 2017-12-06 08:57:06 -05:00
Tim Roes
1eebb8daf6
Remove params from loader docs (#15445) (#15446) 2017-12-06 14:22:25 +01:00
Spencer
ea0139b56a
[6.x] [optimizer] extract plugin discovery (#14745) (#15443)
* [optimizer] extract plugin discovery (#14745)

* [plugins] extract plugin discover from the kibana server

* integrate plugin discovery module with server

* [pluginDiscovery] fully extend config before checking enabled status

* [pluginDiscovery] limit arbitrary defaults in PluginSpec

* [ui/navLink] fix tests

* [ui/injectedVars] fix tests

* [ui/app] fix tests

* [server/plugins] convert init to callPluginHook tests

* [build/verifyTranslations] update verify logic

* [pluginDiscovery] remove rx utils

* fix i18n transaltion key name

* [pluginDiscovery] do kibana version checks as a part of discovery

* [pluginDiscovery/createPacksInDirectory$] clarify error handling

* [eslint] fix lint errors

* [uiApp/modules] ensure load order matches master

* [uiBundle] use known uiExport type for providers

* [uiExports] use the `home` export type

* [uiExports] validate that all uiExport types are known

* [timelion] remove archaic/broken bwc check

* revert some stragler changes

* [pluginSpecs] reformat comments

* [uiBundle] rebel and use more fcb 😬

* correct comment

* [server/waitForPluginsInit] describe queues var

* [server/plugins] prevent multiple calls to next() by using single then()

* [uiApp] remove archaic deprecation warning

* [uiApp] tighten up tests

* [pluginDiscovery/errors] remove $ from symbol var

* [pluginDiscovery/reduceExportSpecs] update docs

* [pluginDiscovery/findPluginSpecs] rightVersion -> isRightVersion

* [pluginDiscovery/findPluginSpecs] fix typos

* [uiApps/getById] use Map() rather than memoize

* save

* [savedObjects/mappings] use uiExports.savedObjectMappings

* [server/mapping/indexMapping] update tests, addRootProperties method removed

* [uiExports] "embeddableHandlers" -> "embeddableFactories"

* [pluginDiscovery] fix pluralization of invalidVersionSpec$

* [pluginDiscover] add README

* [pluginDiscovery/reduceExportSpecs] don't ignore fasly spec values, just undefined

* [ui/exportTypes] use better reducer names

* [ui/uiExports] add README

* fix links

* [pluginDiscovery/readme] expand examples

* [pluginDiscovery/readme] clean up reduceExportSpecs() doc

* [ui/uiExports/readme] cleanup example

* [pluginDiscovery] remove needless use of lodash

* [pluginDiscovery/waitForComplete] use better name

* [pluginDiscovery/findPluginSpecs] use fixtures rather than core_plugins

* [pluginDiscovery/stubSchema] use deafult: false

* [plguinDiscovery/pluginConfig] add tests

* typo

* [uiExports/readme] fix link

* [pluginDiscovery/packAtPath] fail with InvalidPackError if path is not a string

* [pluginDiscovery/packAtPath] rely on error.code to detect missing package.json file

* [pluginDiscovery/packAtPath] only attempt to get pack when observable is subscribed

* [pluginDiscovery/packAtPath] add tests

* [pluginDiscovery/pluginPack] move absolute path checks into fs lib

* [pluginDiscovery/packsInDirectory] fix error type check

* [pluginDiscovery/pluginPack/tests] share some utils

* [pluginDiscovery/packsInDirectory] add tests

* [pluginDiscovery/pluginPack] only cast undefined to array

* [pluginDiscovery/pluginPack] add tests

* [pluginDiscovery/pluginSpec/isVersionCompatible] add tests

* [pluginDiscovery/InvalidPluginError] be less redundant

* [pluginDiscovery/pluginSpec] verify config service is passed to isEnabled()

* [pluginDiscovery/pluginSpec] add tests

* fix "existent" spelling

* [server/rootRedirect] fix root_redirect view location
2017-12-05 19:40:24 -07:00
Spencer
b4bd640a17
[6.x] [CI] Produce junit test reports (#15281) (#15437)
* [mocha] use custom reporter for legible results in jenkins

* [jest] use custom result processor for legible results in jenkins

* [karma] enable junit output on CI

* [mocha/junitReporter] accept rootDirectory as configuration

* [jest/reporter] use reporters option added in jest 20

* [toolingLog] remove black/white specific colors

* [dev/mocha/junit] no reason for junit to be a "reporter"

* typos

* [dev/mocha/junit] use else if

* [karma/junit] use string#replace for explicitness

* [junit] use test file path as "classname"

* [ftr/mocha] no longer a "console" specific reporter
2017-12-05 18:21:38 -07:00
Thomas Neirynck
1e2a8300f3
Region map settings clarifications (#14893) (#15421) (#15428)
* Region map settings clarifications (#14893)

Improve documentation.

This also includes some additions to clarify the new includeElasticMapsService setting.

It also fully qualify all parameter names.
2017-12-05 16:08:34 -05:00
Stacey Gammon
b489f469f9
Update getDashboardIdFromCurrentUrl to handle a url with no query params (#15323) (#15414)
* add some retries, waiting for the loading indicator to be hidden once is not enough

* test to see if looping over the flaky test 25 times will trigger it on jenkins

* Try again to semi-reliably report on jenkins

* Attempt to fix invalid id coming out of getDashboardIdFromCurrentUrl

* Clean up to submit attempted flaky test failure fix

clean up
2017-12-05 14:52:30 -05:00
Peter Pisljar
a2bfdb78d5
fixes pie label conflict resolution (#15410) (#15419)
* fixes pie label conflict resolution
2017-12-05 18:46:04 +01:00
Matt Bargar
22cb168679
Solidify context app filter test (#15203) (#15403)
* Solidify context filter test
2017-12-05 11:33:58 -05:00