Commit graph

16387 commits

Author SHA1 Message Date
CJ Cenizal 190eb695b0
Fix some bugs in the UI Framework caused by the React 16 upgrade. (#15544) 2017-12-12 09:48:19 -08:00
Christopher Dieringer 273e4f8e3d Handle ES _default_ mapping names (#15432) 2017-12-12 09:04:34 -08:00
Chris Cowan b7dce2d233
[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:52:10 -07:00
Stacey Gammon 3878cc835e
Use render counter to fix timing issue with click events on pie slices (#15494)
* 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 11:36:12 -05:00
Stacey Gammon d0c99661c8
Investigate fix for flaky clone test (#15503)
* 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 10:44:21 -05:00
Tim Roes 8915a40d5f
Extract lab HTML on dashboard into own file (#15546)
* Use visualize loader to in visualize embeddable

* Remove old template

* Fix broken property name

* Extract the lab disabled template
2017-12-12 15:54:58 +01:00
CJ Cenizal 99d1ff192c
Rename angular-bootstrap tooltip classes 'bsTooltip'. (#15539) 2017-12-11 17:46:58 -08:00
Kim Joar Bekkelund 71d7c8b01a
Handle undefined options when looking for 'pluginDir' (#15532)
* Handle undefined options when looking for 'pluginDir'

* Use 'settings' instead of 'options'
2017-12-12 00:16:57 +01:00
Wadim Kruse 61ee81fdff Add Timelion percentiles aggregation support (#8953) (#15154)
* 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 15:12:18 -07:00
Yuri Astrakhan 06ebbf4ac7 fixed param order (#15518) 2017-12-11 16:11:10 -05:00
Nathan Reese cd9af07533
Upgrade to react 16.0.0 (#15469)
* 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 14:02:39 -07:00
CJ Cenizal 94759d6f91
Remove logs from browser console in Dev Tools. (#15511) 2017-12-11 11:15:36 -08:00
Marius Dragomir 205371cdca
[DOCS] Add windows powershell commands to the tutorial (#15499)
* Added windows powershell commands to the tutorial

* Change to describe using Kibana Console

The instructions looked like Kibana Console format, not curl commands
2017-12-11 17:26:36 +02:00
Yuri Astrakhan 43e68c519a
Use async keyword instead of Promises 2017-12-08 19:09:11 -05:00
Stacey Gammon acde688097
skip flaky dashboard tests (#15505) 2017-12-08 17:30:25 -05:00
Stacey Gammon cb32ef3632
Make sure to handle the case when search results come back in a different order than retrieved (#15479)
* 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 13:37:52 -05:00
Stacey Gammon 9df13b2f7a
PreserveCrossAppState introduced flakiness in the tests (#15495) 2017-12-08 11:47:47 -05:00
Tim Roes eaa94f0cf3
Use visualize loader for dashboards (#15444)
* Use visualize loader to in visualize embeddable

* Remove old template

* Fix broken property name
2017-12-08 15:21:50 +01:00
Felix Stürmer a8ef0e4e81
Skip flaky discover test (#15412) 2017-12-08 10:59:09 +01:00
Søren Louv-Jansen ba6a02c155
Bump backport dependency and add .backportrc.json (#15417) 2017-12-08 10:20:36 +01:00
Stacey Gammon c008f3225e
improve preserve app cross state logic (#15464) 2017-12-07 16:07:17 -05:00
Spencer 1c84458078
[dev/mocha/junit] report real skipped test count and errors from hooks (#15465)
* [dev/mocha/junit] report real skipped test count and errors from hooks

* typo
2017-12-07 12:09:22 -07:00
Kim Joar Bekkelund cfca462c2b
Normalize path separators when writing test entry file (#15473) 2017-12-07 18:32:35 +01:00
Kim Joar Bekkelund 67ae44bddb
Deprecate --plugin-dir option in cli (#15390) 2017-12-07 02:55:14 +01:00
Nathan Reese 13a5eba989
Visualize listing page - show which column is currently sorted (#15435)
* this.state.sortedColumn was getting set to an object instead of the sorted column name

* remove unused state field sortedColumnDirection
2017-12-06 08:42:37 -07:00
Brandon Kobel 8752fbb3f5
Hiding the experimental warning when we're being shared (#15431) 2017-12-06 08:46:28 -05:00
Tim Roes e0499df072
Remove params from loader docs (#15445) 2017-12-06 13:31:01 +01:00
Spencer c65da14d7c
[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
2017-12-05 18:11:50 -07:00
Spencer f71ec29bd6
[CI] Produce junit test reports (#15281)
* [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 17:29:48 -07:00
Stacey Gammon fa28e7554c
Skip flaky dashboard panel tests (#15430) 2017-12-05 18:24:59 -05:00
Thomas Neirynck 852fa9c6a9
Region map settings clarifications (#14893) (#15421)
* Region map settings clarifications (#14893)

Improve documentation.

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

It also fully qualify all names
2017-12-05 15:01:48 -05:00
Jonathan Budzenski 999911b9a7
[build] Clear the node version used to optimize (#15264) 2017-12-05 13:33:35 -06:00
Peter Pisljar e169dd3a2c
fixes pie label conflict resolution (#15410)
* fixes pie label conflict resolution

* fixing based on review
2017-12-05 17:49:16 +01:00
Stacey Gammon de9fdcbfa7
Update getDashboardIdFromCurrentUrl to handle a url with no query params (#15323)
* 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 11:07:34 -05:00
Nathan Reese d1550c11a2
[timelion] allow sum, subtract, multiply, divide functions to accept seriesList with multiple series (#14891)
* allow seriesList with multiple series

* remove junk file

* fix promise bug in precision.js

* remove another junk file

* throw error outside of async function so it is properly handled

* compare split label and not entire series label which includes metric and query strings

* reduce seriesList by label field when both seriesList do not contain splitKey field

* use clearer variable names

* move pairwiseReduce to its own function

* fix es.js test
2017-12-05 08:34:05 -07:00
Brandon Kobel d60cd2d7b5
Visualization resizeInit (#15321)
* Removing resizeInit check from visualize/visualization

* Ignoring the initialization, not missing a resize within the first
debounce window
2017-12-05 10:02:11 -05:00
Matt Bargar 131b63c0f8
Solidify context app filter test (#15203)
* Solidify context filter test
2017-12-04 17:27:42 -05:00
Stacey Gammon f839564d91
Add more test stability and helpful debug output to try to catch issue with panel controls (#15392) 2017-12-04 17:21:38 -05:00
Joe Fleming fde70d663d
Feat: Add config provider to disable state management (#15275)
* feat: add a state management config provider

the only thing to configure right now is the enabled/disabled state of state management

* feat: use state management config to disable state management

* test: add disabled checks for state management functions

* test: add tests for the state management config provider

* chore: consistently use arrow functions in state tests

* chore: be clearer about config value being private

* chore: clean up state config test code

* chore: style stuff that should be caught by the linter

>:( >:( >:(

* test: check url param for persisted state

instead of spying on a private method, create a persistent mock state and check the url's state value, as well as the public save method
2017-12-04 13:56:36 -07:00
Chris Roberson 64d57e4cec
Disable flaky test (#15385) 2017-12-04 15:51:50 -05:00
Chris Roberson aad144e5f0
[Management] Ensure we do not perform an empty ccs query (#15372)
* Ensure we do not peform an empty ccs query

* Trim in case there is extra whitespace
2017-12-04 15:49:39 -05:00
Stacey Gammon 75d06049fd
Attempt to stabilize filterVizNames failures (#15316)
* Attempt to stabilize filterVizNames failures

* Remove duplicate function name
2017-12-04 13:49:17 -05:00
Nathan Reese 86f4437968
pass showSpyPanel to Editor (#15283) 2017-12-04 11:11:40 -07:00
Kim Joar Bekkelund 93eb5c1eca
Deprecate --plugin-dir option in plugin installer (#15371) 2017-12-04 18:38:50 +01:00
Kim Joar Bekkelund 48bcd7fc92
No longer recommend manual plugin installs (#15366) 2017-12-04 16:25:50 +01:00
Brandon Kobel 1a1894df90
Modifying anuglar-bootstrap tooltip to use scope.$evalAsync to fix bug (#15262) 2017-12-04 07:05:30 -05:00
Brandon Kobel 3d01a544d2
Courier - $state in searchSource (#15166)
* Modifying courier to exclude filter properties that start with $

* Removing the $state property directly when building the filters
2017-12-04 07:03:30 -05:00
Thomas Neirynck 4e2401c216
Fix maps for reporting (#15272) (#15358)
This fix ensures the render-complete event does not fire before rendering is actually completed. 

- This ensures that the ChoroplethLayer is fully loaded, by explicitly waiting until all geojson files are loaded.
- It also removes the special init() code-path for coordinate-maps.This was the cause of coordinate-maps not showing on reports.
2017-12-01 19:48:50 -05:00
Tim Roes e5d2ff8219
Refactor and improve Visualize Loader (#15157)
* Simplify promise setup logic

* Import template from own file

* Use angular.element instead of jquery

* Add documentation for loader methods

* Add params.append

* Remove params.editorMode

* Clarify when returned promise resolves

* Add element to handler

* Allow setting CSS class via loader

* Use render-counter on visualize

* Use Angular run method to get access to Private service

* Allow adding data-attributes to the vis element

* Refactor loader to return an EmbeddedVisualizeHandler instance

* Use this.destroy for previous API

* Remove fallback then method, due to bugs

* Reject promise from withId when id not found

* Add tests

* Change developer documentation

* Revert "Use Angular run method to get access to Private service"

This reverts commit 160e47d7709484c0478415436b3c2e8a8fc8aed3.

* Rename parameter for more clarity

* Add more documentation about appState

* Fix broken test utils

* Use chrome to get access to Angular

* Move loader to its own folder

* Use a method instead of getter for element

* Add listeners for renderComplete events

* Use typedef to document params

* Fix documentation
2017-12-02 00:44:28 +01:00
Chris Cowan de109fc344
Fixes for PR 14731 (#15352)
* Remove dependency on UI code in server

* Fixing tests
2017-12-01 14:37:42 -07:00