Commit graph

17037 commits

Author SHA1 Message Date
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
Tim Roes
f659d5c3f1
Disable missing terms for non string fields (#17455) (#17480)
* Disable missing terms for non string fields

* Disable setting instead of hiding them
2018-03-30 23:43:39 +02:00
Matt Bargar
372412361d
Don't count lone wildcards as leading wildcards (#17462) (#17477)
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 16:41:22 -04:00
Jonathan Budzenski
af49683bed
[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:14:08 -05:00
Pius
bbfd72b8cd
Fixed ccs syntax (#17050)
cluster_one,cluster_two:logstash-* should be cluster_one:logstash-*,cluster_two:logstash-*
2018-03-30 12:47:35 -05:00
Spencer
3418affdb8
[6.x] [server/config/deprecationWarnings] fix deprecation logging warnings (#17439) (#17470)
* [server/config/deprecationWarnings] fix deprecation logging warnings

* typos

* explain kbn_server_worker a bit with better naming and comment

* Address review feedback
2018-03-30 10:45:21 -07:00
gchaps
d9f1c8c172 [DOCS] Added experimental tag (#17461) 2018-03-29 16:55:52 -07:00
Bhavya RM
c4e71d733a
Test for ensuring that options *hide all panel titles" work on dashboards. (#17440) (#17459)
Test for making sure option hide all panel titles work
2018-03-29 19:13:49 -04:00
Chris Roberson
557f5e3ec9
Add audio type to Url field formatter (#17422) (#17463) 2018-03-29 16:39:09 -04:00
CJ Cenizal
6ee2e6d75f
Fix bug caused by getBucketIntervalToolTipText method when there was no bucket interval. (#17450) (#17460) 2018-03-29 12:47:53 -07:00
Tyler Smalley
1d01980ddb Fixes issue with Keystore's stdin option (#15221)
Fixes issue preventing stdin option from being used
Using create to overwrite should reset keystore
2018-03-29 08:05:56 -07:00
spalger
4c24c02d13 [yarn] update lockfile 2018-03-28 16:56:06 -07:00
Nathan Reese
79e89d2cf7
advanced setting to control search request preference (#17271) (#17447)
* advanced setting to control search request preference

* add header tests

* add sentince about caching to description

* change courier:setRequestPreference to list and add courier:customRequestPreference

* update setting text
2018-03-28 17:19:38 -06:00
Jonathan Budzenski
2bfa9edca7
Bump node to 8.11.0 (#17437) 2018-03-28 16:55:01 -05:00