Commit graph

17334 commits

Author SHA1 Message Date
Kim Joar Bekkelund daf4e1a91f
Always inject 'log' into worker (#17653) 2018-04-11 14:35:41 +02:00
Tim Roes f5b28c18fb
Fix flaky lab mode test (#17622) 2018-04-11 09:00:53 +02:00
Spencer 7b827e87a5
[plugin-helpers] report task failures to CLI with exitCode 1 (#17647)
* [plugin-helpers] return promises/fail cli when async tasks fail

* [plugin-helpers] rename taskRunner to commanderAction

* [plugin-helpers] await async assertion
2018-04-10 16:36:26 -07:00
Spencer 410905c66e
Rename saved objects bulk_get and find endpoints (#17512) 2018-04-10 13:39:59 -07:00
Shaunak Kashyap 8800afd1d6
Removing old files that are no longer used (#17640) 2018-04-10 10:44:44 -07:00
Thomas Neirynck e3d81bf802
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-10 10:40:49 -04:00
Nathan Reese f03b4fd837
set min-width on element (#17620) 2018-04-10 08:37:54 -06:00
Kim Joar Bekkelund fc265294f5
Use Jest on cli tests (#16389)
* 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 12:12:47 +02:00
Kim Joar Bekkelund a1d9e96a70
Upgrade to TypeScript 2.8.1 (#17617) 2018-04-10 11:41:06 +02:00
Spencer 92a742361a
[savedObjects/mappings] limit valid type names (#17511) 2018-04-09 16:11:12 -07:00
dave.snider@gmail.com 5fc4ce170d
Eui/38 (#17616)
Bumped up the EUI version to 0.0.38
2018-04-09 11:08:53 -07:00
Tim Roes e6ca5faa9c
Fix issue with flickering tooltips (#17590)
* Use minimal change to fix flickering

* Remove deprecated unused CSS
2018-04-09 19:40:57 +02:00
Yuri Astrakhan 2e63dbb60a
use VISUALIZATION_COLORS instead of hardcoding (#17606)
* use VISUALIZATION_COLORS instead of hardcoding

* use proper default color

* fix unit tests
2018-04-09 19:24:04 +03:00
Thomas Neirynck e634aa33ed
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.
2018-04-09 11:29:15 -04:00
Peter Pisljar d45c8a9cb6
removing angular from Schema, AggParams and AggTypes (#17565) 2018-04-09 07:24:11 -05:00
Spencer 1ecddb45dc
[uiApp] replace uiApp.injectVars with server.injectUiAppVars() (#17485)
* [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 15:31:46 -07:00
Yuri Astrakhan 3a29e18504
Added Vega interactive map support (#16512)
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-06 23:09:41 +03:00
Spencer f0d01928db
[@kbn/es] fix promise and CLI error handling (#17596)
* [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 12:58:37 -07:00
John Dorlus bb250b8dd5
Bumped leadfoot to 1.7.5 now that it issue has been merged. (#17582) 2018-04-06 15:19:50 -04:00
Tim Sullivan cc065d2ae5
[Server/Routes] organize status routes together with others (#17558)
* [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-05 18:41:56 -07:00
Spencer eb377c50c9
[angular-recursion] use angular-recursion module from npm (#17584) 2018-04-05 13:58:06 -07:00
Thomas Neirynck 82ac7762a6
Show toast error when geojson/topojson file cannot be downloaded (#17502) 2018-04-05 08:46:07 -04:00
Spencer fd37e90777
[uiSettingsClient] support overriding local defaults (#17559)
* [uiSettingsClient] support overriding local defaults

* [chrome] remove injected uiSettings value
2018-04-04 17:13:04 -07:00
Jaspal Chauhan 5b94f73eb6 Add /api/status endpoint to docs, fixes #16690 (#16798)
* Add /api/status endpoint to docs, fixes #16690

* Remove period from note
2018-04-04 15:47:57 -07:00
Kim Joar Bekkelund 6730849028 Using Jest on all tests in src/server (#16373)
* 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 11:01:21 -07:00
Spencer 608a1e3553
Add/generate/verify NOTICE.txt file (#17504)
* [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 09:12:44 -07:00
Tim Sullivan dee741c683
[Test] Integration test for Kibana status API (#17509)
* [Test] Integration test for Kibana status API

* bad prettying
2018-04-04 09:08:19 -07:00
Spencer 5cde84b9c1
[licenses] resolve license for private:true packages (#17537)
* [licenses] resolve license for private:true packages

* [licenses] remove outdated test

* [licenses] fix test
2018-04-04 08:44:57 -07:00
Larry Gregory de91bd0f09
Support PKCS#12 encoded certificates (#17261)
Support for PKCS#12 encoded certificates
2018-04-04 10:29:31 -04:00
Spencer bd9509e46a
[uiApp] remove unused templateName config option (#17484) 2018-04-04 06:10:47 -07:00
Tim Roes 8861b2a434
Fix styling of disabled kuiCheckboxes (#17522)
* Fix styling of disabled kuiCheckboxes

* Fix typo in SASS variable
2018-04-04 13:25:43 +02:00
Spencer 719a83a724
[ui/config] extract core config logic into vanilla JS UiSettingsClient (#17169)
* [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 17:54:51 -07:00
Søren Louv-Jansen ace7f3499f
[Home] Update Node instructions (#17521)
* [Home] Update Node instructions

* Fixed link
2018-04-04 06:02:42 +08:00
Lukas Olson 9fe0bab42a
Fix value suggestions API when the field and/or docs are not present (#17507) 2018-04-03 14:19:27 -07:00
Matt Bargar 7c8f4d8c9b
Bring back shard timeout (#17420)
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-03 16:55:10 -04:00
Nathan Reese e51734be79 Redirect to dashboard listing page when panel data can not be migrated. (#17394)
* 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 14:08:12 -04:00
Tim Sullivan 0a8fe911b9
update numeral-js dependency - elastic fork (#17508) 2018-04-03 09:15:59 -07:00
Jonathan Budzenski b88ce065cd
[docs] sha1 -> sha512 (#17478) 2018-04-03 10:13:53 -05:00
Thomas Charlot caff766f1c Add entry for datasweet formula plugin (#16868) 2018-04-03 08:30:39 -04:00
Tim Roes 7d4b8deee1
Allow auto refresh for non time based indexes (#17458) 2018-04-03 11:41:43 +02:00
Spencer 1e95d428f5
[eslint] always ignore jest snapshot files (#17500) 2018-04-02 13:15:14 -07:00
Brandon Kobel 7933595a36
Defaulting to empty array for certificate authorities (#17493) 2018-04-02 16:09:46 -04:00
spalger 416d437301 [yarn] update lockfile 2018-04-02 11:16:41 -07:00
Yuri Astrakhan 1b4a7d1aaf
Allow Vega's emsfile to bypass sanitization (#17370)
* Allow Vega's emsfile to bypass sanitization

Fixes https://github.com/elastic/kibana/issues/16669
2018-04-02 20:01:23 +03:00
Tyler Smalley 49fae1d599
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:38:56 -07:00
Stacey Gammon a59ebd08dd
Gain extra info when nested query visualization test fails (#17390)
* 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 10:59:25 -04:00
Tim Roes 3a30d0bf76
Disable missing terms for non string fields (#17455)
* Disable missing terms for non string fields

* Disable setting instead of hiding them
2018-03-30 22:46:50 +02:00
dave.snider@gmail.com 622d3f333b
Update to EUI 0.0.37 and add proper open sans fonts for EUI's K6 theme (#17467)
* update open sans fonts, fix chrome to work with eui k6 theme

* update to eui 0.0.37

* update snapshots
2018-03-30 13:00:19 -07:00
Jonathan Budzenski 9754b6c94b
[console] highlighting for scripted metric agg scripts (#15377)
* highlighting for scripted metric agg scripts

Adding detection for [scripted metric aggregations](https://www.elastic.co/guide/en/elasticsearch/reference/master/search-aggregations-metrics-scripted-metric-aggregation.html)

```json
POST ledger/_search?size=0
{
    "query" : {
        "match_all" : {}
    },
    "aggs": {
        "profit": {
            "scripted_metric": {
                "init_script" : "params._agg.transactions = []",
                "map_script" : "params._agg.transactions.add(doc.type.value == 'sale' ? doc.amount.value : -1 * doc.amount.value)", 
                "combine_script" : "double profit = 0; for (t in params._agg.transactions) { profit += t } return profit",
                "reduce_script" : "double profit = 0; for (a in params._aggs) { profit += a } return profit"
            }
        }
    }
}
```

* Update x_json_highlight_rules.js

* [console] Remove capture group from *_script check

* allow source
2018-03-30 14:13:20 -05:00
Matt Bargar 9168f2e1c8
Don't count lone wildcards as leading wildcards (#17462)
The addition of the optional flag to disable leading wildcards inadvertently broke exists queries, which are accomplished in kuery with the fieldName:* syntax.
2018-03-30 14:14:46 -04:00