Commit graph

17050 commits

Author SHA1 Message Date
Chris Cowan 84ad08e70d [TSVB] Math Aggregation (two point oh) (#16965)
* Revert "Remove MathJS Feature (#15652)"

This reverts commit 43bf1dbf4a.

* replacing math with tinymath

* pining version

* updating yarn.lock

* Fixing Prettier mis formatting

* fixing tests

* Adding unsupported agg back

* Adding functional test for math aggregation

- Fixing bad tests
- Resetting page for every test suite (why donesn't beforeEach work?)
- Adding test for Math agg

* Trying to fix values (due to inconsistencies in env)
2018-04-11 14:17:03 -07:00
Spencer 3bf90dc9f1
[6.x] [plugin-helpers] fix order of arguments passed to commander actions (#17663) (#17664) 2018-04-11 13:20:03 -07:00
gchaps 8c10e9d1e0
[DOCS] In Vega, fixes broken links and adds vega.enableExternalUrls (#17646) (#17661) 2018-04-11 11:10:41 -07:00
Tim Roes f141ef304e
Fix negative unit formatting in timelion (#17624) (#17660)
* Fix negative unit formatting in timelion

* Create better readable generator
2018-04-11 19:47:38 +02:00
Joe Fleming 0ffb38560a Revert "set tooltip width so div is centered around triggering element (#15542)" (#17580)
This reverts commit c06b44584d.
2018-04-11 08:57:25 -07:00
Thomas Neirynck d9c72db7a7
Backport 6.x tagcloud hashcode (#17642)
* Change hashing algo of tagcloud rotations (#17597)

pulls in TimR's changes (#17594) to the hashing algorithm. This also replaces the reference screenshots to match the new rotations.

* Revert screenshot comparison tests to old threshold parameters (#17626)

Applies to Tagcloud. https://github.com/elastic/kibana/pull/17597 made them too strict, causing them to fail in CI.
2018-04-11 10:30:00 -04:00
Kim Joar Bekkelund e83388fd3e
Always inject 'log' into worker (#17653) (#17654) 2018-04-11 15:40:18 +02:00
Tim Roes 9b23529fc5
Fix flaky lab mode test (#17622) (#17652) 2018-04-11 10:24:40 +02:00
Spencer 967a3a69be
[plugin-helpers] report task failures to CLI with exitCode 1 (#17647) (#17649)
* [plugin-helpers] return promises/fail cli when async tasks fail

* [plugin-helpers] rename taskRunner to commanderAction

* [plugin-helpers] await async assertion
2018-04-10 17:45:09 -07:00
Spencer 079f303357
[6.x] Rename saved objects bulk_get and find endpoints (#17512) (#17645) 2018-04-10 17:44:58 -07:00
Shaunak Kashyap bf7a0d2e82 Removing old files that are no longer used (#17640) 2018-04-10 10:45:23 -07:00
Kim Joar Bekkelund ed63f6d5a0
Use Jest on cli tests (#16389) (#17635)
* Move CLI tests to Jest

* Get rid of logs from the output

* Allow skipped tests

* Move integration tests into integration_tests folder
2018-04-10 18:55:39 +02:00
dave.snider@gmail.com b23b7e2817
Eui/38 (#17616) (#17630)
Bumped up the EUI version to 0.0.38
2018-04-10 09:23:46 -07:00
archana a03e37cb9c
[CLI] Readable logs on Windows with chalk colors (#15557) (#17636)
* [colors] try new cli colors

* [colors] try magentaBright instead of magenta

* [colors] try white for log text

* [colors] replace all remaining ansicolors with chalk

* [colors] try yellowBright instead of yellow

* remove ansicolors from package.json

* [tests] attempt to fix tests

* [tests] attempt to fix tests again

* [color] backgrounds, cleanup

* [color] update yarn.lock
2018-04-10 10:57:56 -05:00
Nathan Reese 8cc5aed4ef
set min-width on element (#17620) (#17637) 2018-04-10 09:50:04 -06:00
Tyler Smalley d9a9080769 Always log fatal errors (#15319)
Reverts change in c1ef3d892f

If an error is raised before the logger is setup, then the server will exit without any notice.

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2018-04-10 07:33:59 -07:00
Kim Joar Bekkelund 789ad24c84
Upgrade to TypeScript 2.8.1 (#17617) (#17634) 2018-04-10 12:56:30 +02:00
Spencer f04dcb06e4
[savedObjects/mappings] limit valid type names (#17511) (#17631) 2018-04-10 00:19:19 -07:00
Yuri Astrakhan d83d835cfb
use VISUALIZATION_COLORS instead of hardcoding (#17606) (#17618)
* use VISUALIZATION_COLORS instead of hardcoding

* use proper default color

* fix unit tests
2018-04-09 22:00:24 +03:00
Tim Roes 42a09bec3d
Fix issue with flickering tooltips (#17590) (#17619)
* Use minimal change to fix flickering

* Remove deprecated unused CSS
2018-04-09 20:39:46 +02:00
Peter Pisljar cfeb37b78f
removing angular from Schema, AggParams and AggTypes (#17565) (#17610) 2018-04-09 11:56:30 -05:00
Spencer cd543265be
[uiApp] replace uiApp.injectVars with server.injectUiAppVars() (#17485) (#17601)
* [uiApp] replace uiApp.injectVars with server.injectUiAppVars()

* [server/injectUiAppVars] cleanup styling

* [server/injectUiAppVars] add test to verify injectUiAppVars merging

* [server/injectUiAppVars] describe what type of id we expect

* [uiExportTypes/uiApp] add removal error to proper location

* [uiApps/tests] avoid snapshots for undefined/{} values
2018-04-06 17:19:24 -07:00
Yuri Astrakhan 4fc38bc8fa
Added Vega interactive map support (#16512) (#17599)
Implements https://github.com/elastic/kibana/issues/15842

* Added Vega interactive map support
* Support vega-lite maps
* handle VL-injected width/height/padding/autosize
* clarified min/max zoom limits
* moved kibana_map to ui/vis/map, doc fixes
* bumped leaflet-vega dep
2018-04-07 00:45:27 +03:00
Spencer b9350316dd
[6.x] [@kbn/es] fix promise and CLI error handling (#17596) (#17598)
* [kbn-es/cluster] fix promise handling to properly route success/failure

* [kbn-es/cli] catch errors that bubble to the CLI and log with a bit of style

* [kbn-es] fix promise handling when building from source

* [kbn-es] check for inverse of .stop() condition

* [kbn-es/cluster] resolve promise is cluster stops cleanly

* [kbn-es/cluster/start] reject if ES exits before starting
2018-04-06 13:20:32 -07:00
Tim Sullivan e98173cf2c
[Server/Routes] organize status routes together with others (#17558) (#17589)
* [Server/Routes] organize status routes together with others

* remove flaky assertion

* move all the status stuff into src/server/status

* sugar on imports/exports

* fix lint/jest test

* comment and todo
2018-04-06 09:28:19 -07:00
Larry Gregory e2aa793729
[6.x] Support PKCS#12 encoded certificates (#17261) (#17546)
* [6.x] Backport Support PKCS#12 Certificates
2018-04-05 19:48:20 -04:00
Spencer 11d1cdb07d
[6.x] [angular-recursion] use angular-recursion module from npm (#17584) (#17587) 2018-04-05 14:51:09 -07:00
Thomas Neirynck 0fafab83e3
Show toast error when geojson/topojson file cannot be downloaded (#17502) (#17572) 2018-04-05 09:43:44 -04:00
Spencer 947e514bc6
[6.x] [uiSettingsClient] support overriding local defaults (#17559) (#17569)
* [uiSettingsClient] support overriding local defaults

* [chrome] remove injected uiSettings value
2018-04-04 18:08:47 -07:00
Tim Sullivan 40bfe83317
Add /api/status endpoint to docs, fixes #16690 (#16798) (#17560)
* Add /api/status endpoint to docs, fixes #16690

* Remove period from note
2018-04-04 16:55:12 -07:00
Spencer a16fa8422e
[6.x] Using Jest on all tests in src/server (#16373) (#17553)
* Move src/server to Jest

* ESLint overrides for src/server tests

* Rename files

* Fix renamed files

* Remove unnecessary changes

* Remove exclude of src/server tests
2018-04-04 16:13:01 -07:00
Spencer af79bdb5fc
[6.x] Add/generate/verify NOTICE.txt file (#17504) (#17550)
* [dev/notice] add scripts for generating NOTICE.txt file

* [notice] react-resize-detector@0.6.0 was removed in b445389b79

* [notice] move notice text into relevant source

* [dev/notice] Generate NOTICE.txt file

* [jenkins] verify that notice.txt is up to date in CI

* [tasks/notice] update test to use new NOTICE.txt file

* [dev/notice] update company name in NOTICE.txt

* [notice/cli] exit with 0 when --help requested

* [notice/cli] add helpful logging

* [notice/cli] use --validate flag name instead

* [notice/cli] simplify NEWLINE_RE, ignore obscure line endings

* [utils/decode_geo_hash] fixup comment

* [utils/decode_geo_hash] remove useless comment
2018-04-04 11:52:58 -07:00
Tim Sullivan fad068e979
[Test] Integration test for Kibana status API (#17509) (#17549)
* [Test] Integration test for Kibana status API

* bad prettying
2018-04-04 11:46:48 -07:00
Matt Bargar 9ff0f70953
Bring back shard timeout (#17420) (#17529)
It is not very useful to have:

* shardTimeout disabled if requestTimeout is enabled (means infinite es overruns)
* shardTimeout > requestTimeout if both enabled (means finite es overruns)
* shardTimeout < requestTimeout if both enabled (means partial results from es?)

The only option that really makes sense is to have shardTimeout === requestTimeout, so that's what I've done here.
2018-04-04 13:05:47 -04:00
Spencer c462488853
[licenses] resolve license for private:true packages (#17537) (#17547)
* [licenses] resolve license for private:true packages

* [licenses] remove outdated test

* [licenses] fix test
2018-04-04 09:35:30 -07:00
Tim Roes 36273e8169
Fix styling of disabled kuiCheckboxes (#17522) (#17540)
* Fix styling of disabled kuiCheckboxes

* Fix typo in SASS variable
2018-04-04 16:38:43 +02:00
Spencer e12343b4e6
[6.x] [uiApp] remove unused templateName config option (#17484) (#17543) 2018-04-04 07:30:53 -07:00
Søren Louv-Jansen 1950b62ff8
[Home] Update Node instructions (#17521) (#17531)
* [Home] Update Node instructions

* Fixed link
2018-04-04 09:48:15 +02:00
Spencer ca2aef936e
[6.x] [ui/config] extract core config logic into vanilla JS UiSettingsClient (#17169) (#17534)
* [ui/config] extract core config logic into vanilla JS UiSettingsClient

* [ui/config] stub the uiSettings individually for each test

* [ui/config] ensure that change events are emitted sync

* [uiSettings/batchSet] send request immediately, buffer when needed

Rather than buffering all writes and waiting 200ms before sending config
request to the uiSettings API, send updates as soon as they are received
but buffer updates that are received while another request is in
progress. This eliminates the 200ms delay and ensures that the server
receives requests from a single user in the correct order in the
unlikely event that many calls to `config.set()` are made in a very
short period of time.
2018-04-03 20:34:31 -07:00
Lukas Olson 82f915b885 Fix value suggestions API when the field and/or docs are not present (#17507) 2018-04-03 14:20:40 -07:00
Stacey Gammon 9cf6e369c9
Redirect to dashboard listing page when panel data can not be migrated. (#17394) (#17526)
* throw exeception when unable to migrate panel data

* catch migrate exception and show toast

* remove unneeded conversion to string

* fix jest test

* use forEach instead of map

* fix jest tests

* move toast and window.location change to constructor
2018-04-03 15:06:02 -04:00
Tim Sullivan 27ecb41e25
update numeral-js dependency - elastic fork (#17508) (#17523) 2018-04-03 10:58:55 -07:00
Tim Roes f0c16b69a6
Allow auto refresh for non time based indexes (#17458) (#17516) 2018-04-03 17:51:57 +02:00
Jonathan Budzenski e2d8541eb5
[docs] sha1 -> sha512 (#17478) 2018-04-03 10:15:03 -05:00
Spencer 92c7322fec
[6.x] [eslint] always ignore jest snapshot files (#17500) (#17506) 2018-04-02 14:14:35 -07:00
Brandon Kobel aa59068c4c
Defaulting to empty array for certificate authorities (#17493) (#17505) 2018-04-02 16:10:54 -04:00
dave.snider@gmail.com 62b7e9c408
[6.x] Update to EUI 0.0.37 and add proper open sans fonts for EUI's K6 theme (#17467) (#17503)
* Update to EUI 0.0.37 and add proper open sans fonts for EUI's K6 theme (#17467)
2018-04-02 12:35:35 -07:00
Yuri Astrakhan 3764356d98
Allow Vega's emsfile to bypass sanitization (#17370) (#17497)
* Allow Vega's emsfile to bypass sanitization

Fixes https://github.com/elastic/kibana/issues/16669
2018-04-02 21:34:09 +03:00
Stacey Gammon c149ab9213
Gain extra info when nested query visualization test fails (#17390) (#17494)
* add more output

This will let us know if the filter is failing to be added on the
visualization before being saved.

* run 20x

* go back to single run
2018-04-02 12:41:46 -04:00
Tyler Smalley 476a2fddf0 Prevent deprecation warnings in production (#17457)
While in production, we use the `no-warnings` flag to prevent warnings from going to STDERR, and instead capture the warning events using our logger. Some warnings are helpful in debugging and/or identifying problems in production, like UnhandledPromiseRejection. Deprecation warnings are not an immediate problem, but an issue with upgrading to the next version of Node. These warnings will continue to be presented to developers, just not for production users.

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2018-04-02 09:40:26 -07:00