Commit graph

17263 commits

Author SHA1 Message Date
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
Pius
b3b2ff5865
Fixed ccs syntax (#17050)
cluster_one,cluster_two:logstash-* should be cluster_one:logstash-*,cluster_two:logstash-*
2018-03-30 12:47:01 -05:00
Spencer
b78714e8d8
[server/config/deprecationWarnings] fix deprecation logging warnings (#17439)
* [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 09:35:26 -07:00
gchaps
b64c092944
[DOCS] Added experimental tag (#17461) 2018-03-29 13:20:46 -07:00
Chris Nelson
106b769f71 Add audio type to Url field formatter (#17422) 2018-03-29 15:42:50 -04:00
CJ Cenizal
8ae730b0b2
Fix bug caused by getBucketIntervalToolTipText method when there was no bucket interval. (#17450) 2018-03-29 11:47:27 -07:00
Matt Bargar
811d21148b
Don't apply query:queryString:options to query_string filters (#15640)
Lukas and I chatted over Slack and we both agreed it didn't really make sense to apply query:queryString:options to query_string filters. If someone is using the advanced query DSL editor to create a query_string filter they probably want full control over it.

This is a breaking change so it will only go in 7.0. In 6.x users should use one of the workarounds.
2018-03-29 13:57:16 -04:00
Bhavya RM
52ff625709
Test for ensuring that options *hide all panel titles" work on dashboards. (#17440)
Test for making sure option hide all panel titles work
2018-03-29 12:54:01 -04:00
spalger
caca7755cc [yarn] update lockfile 2018-03-28 16:54:36 -07:00
archana
b88a4fa040
Bump makelogs to not use _default_ mapping (#17451) 2018-03-28 17:38:25 -05:00
Jonathan Budzenski
42168afca0
Bump node to 8.11.0 (#17437) 2018-03-28 16:53:37 -05:00
Tyler Smalley
46a5ef1316
[kbn-es] Wait for close event (#17448)
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2018-03-28 14:22:53 -07:00
Nathan Reese
3fecd2de8f
advanced setting to control search request preference (#17271)
* 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 14:02:41 -06:00
Matt Bargar
a89027b267
Add debug code to flaky field_data test (#15535)
* Add debug code to flaky field_data test

* update helper to match new UI
2018-03-28 15:55:03 -04:00
Spencer
26b28dcbf2
[pluginDiscovery] fail early if multiple plugins have conflicting ids (#17311) 2018-03-28 12:47:01 -07:00
Spencer
3ba7781149
[npm] upgrade react-anything-sortable (#17217)
Now that https://github.com/jasonslyvia/react-anything-sortable/pull/93 is merged and released we can upgrade our version and get rid of the incompatibility warning
2018-03-28 12:33:17 -07:00
Spencer
56041ca1d0
More attempts to fix procRunner hangs in CI (#17325)
* [kbn-dev-utils/procRunner] try using execa to avoid never-exitting procs

* [kbn-dev-utils/procRunner] don't listen for close event, rely on stdio streams ending
2018-03-28 12:26:11 -07:00
Thomas Neirynck
40cd48831e
mapType option change should show on map (#17405) 2018-03-28 14:53:39 -04:00
Jen Huang
ef4d26294b
Add aria-label attributes to indexed fields table, and use EuiIconTip (#17427)
* Add aria-label attributes to indexed fields table, and use EuiIconTip
* Use EUI 0.0.35
* Add `Apache License, Version 2.0` to list
2018-03-28 10:37:37 -07:00
Stacey Gammon
cd6fa73431
Expose an esSupertest for directly querying elasticsearch in tests (#17306)
* Expose an esSupertest for directly querying elasticsearch in tests

* oops, fix bad capitalization
2018-03-28 10:29:11 -04:00
Anh Le
293fee9a59 Added Effective issue reporting in Kibana heading (#17424)
Added missing heading.
2018-03-28 14:27:02 +02:00
Hamid
b43fd06d0f
[Home] Update APM JS instructions for 6.3 (#17413) 2018-03-28 10:12:27 +02:00