Commit graph

12348 commits

Author SHA1 Message Date
Court Ewing 310b812b0b [internal] Use rison dependency rather than hardcoding
Rison was already pulled out into an npm module so it could be reused in
the reporting plugin, so this should essentially be a noop on the
resulting source.

The rison file was originally copied and pasted directly into the Kibana
project, so it doesn't match our styleguide and is unlintable. This
means we basically have to keep our hands off of it. The node module
also has the benefit of including some tests.
2016-04-18 09:41:04 -04:00
Court Ewing 7d08096b07 Merge pull request #6954 from elastic/fix/dontRequireDevConfig
[cli/serve] do not require dev.yml file when run with --dev flag
2016-04-18 09:37:59 -04:00
spalger b63bfd2e0a [test] setup babel for the functional tests 2016-04-17 16:58:34 -07:00
Spencer 85ebbe5197 Merge pull request #6953 from elastic/fix/defaultRouteRedirect
[server] use config for default route, include basepath
2016-04-16 17:59:05 -07:00
spalger 5f283d7c9b [server] use config for default route, include basepath 2016-04-16 15:17:56 -07:00
spalger 9fa56cc56b [cli/serve] do not require dev.yml file when run with --dev flag 2016-04-16 15:03:52 -07:00
Jimmy Jones 65feedb90a Add testcases for field exists filter 2016-04-16 22:09:48 +01:00
Shaunak Kashyap 028db3fd0a
Adding back x-forwarded-* headers 2016-04-16 08:11:39 -07:00
Shaunak Kashyap 65ddf96d34
Only document one option for sending no headers 2016-04-16 05:52:54 -07:00
Shaunak Kashyap 89dfbeee1c
Use es6 export default syntax 2016-04-16 05:49:56 -07:00
spalger 116521c6be [chrome] rework url overflow detection
The previous version of this pr relied on the State service to catch times when the URL would grow out of control. While overflows will commonly occur in the State service, this didn't handle urls that were navigated to using a link. They worked because the state service would eventually be called, but the failure was unexpected and required interaction to trigger.

This new approach does the checking at a higher level, in the chrome.

We also removed the `url:limit` configuration value in favor of browser detection (I was not able to find or come up with a way to quietly and quickly feature detect this). The new limits are 2000 characters for IE and 25000 for all other browsers.
2016-04-15 16:40:18 -07:00
spalger 281b38b4af [config] remove url limit config, it should adapt automatically 2016-04-15 16:38:05 -07:00
Court Ewing ec0707f092 [internal] Replace var with let in ui/public/utils (no rison)
This change was applied to any .js files under the src/ui/public/utils
directory except for the `rison.js` file. The rison code has block level
hoisting issues, but it seems safer to just not touch the file rather
than fix them.

This was an automatic replacement from var to let for any variable
declaration that doubles as the initial assignment. Ultimately we want
most of these to be converted to const, but this commit is so large that
it warrants breaking each step of automation up into its own commit.

For example:

`var foo = 'bar';` becomes `let foo = 'var';`

This was accomplished by replacing:
find: `var ([a-zA-Z_$][0-9a-zA-Z_$]*)(\s+)=`
replace: `let $1$2=`
2016-04-15 17:20:57 -04:00
Shaunak Kashyap 304511715e
Updating documentation 2016-04-15 12:23:43 -07:00
Shaunak Kashyap c5ce30f81c
Adding tests for empty and [] values for elasticsearch.requestHeadersWhitelist 2016-04-15 12:15:58 -07:00
spalger 121e4f23f4 Merge branch 'master' of github.com:elastic/kibana into implement/betterWarningForUrlLength 2016-04-15 11:49:12 -07:00
Shaunak Kashyap eeedc54ce8 Merge branch 'master' into gh-6484 2016-04-15 11:29:57 -07:00
Court Ewing 176d271a20 Merge pull request #6936 from epixa/uiletconst11
[internal] Replace var with const/let in ui/public/utils/lodash-mixins
2016-04-15 14:25:00 -04:00
Shaunak Kashyap 2149f84aba
Renaming property to make its intent more explicit 2016-04-15 06:11:07 -07:00
Shaunak Kashyap 7f75efb43a
Make callWithRequest use whitelisted headers 2016-04-14 18:12:16 -07:00
Shaunak Kashyap f9f4b79626
Allow for elasticsearch.requestHeaders to be set to null 2016-04-14 17:55:28 -07:00
Shaunak Kashyap 81631ffc2e
Extracting filterHeader into its own module for reuse 2016-04-14 17:50:24 -07:00
Khalah Jones-Golden 0111990f48 Merge remote-tracking branch 'upstream/master' into enhance/data-table 2016-04-14 20:34:12 -04:00
Shaunak Kashyap 836c740e56 Adding 'authorization' to the default headers list 2016-04-14 16:39:31 -07:00
Nicolás Bevacqua 2e6650b3c6 Merge pull request #6940 from bevacqua/chore/pkg-cleanup
Remove unused "main" package field.
2016-04-15 01:39:09 +02:00
Nicolas Bevacqua 01c3a43f19 [pkg] Remove unused "main" field. 2016-04-14 20:24:59 -03:00
Nicolas Bevacqua ea15e06d88 [errors] Report unhandled rejections. 2016-04-14 19:24:19 -03:00
Spencer 9ba255e24d Merge pull request #6825 from spalger/implement/cli/multipleConfigFlags
[cli/serve] accept mulitple --config flags
2016-04-14 15:04:41 -07:00
Court Ewing 18e9725662 [internal] Replace var with const/let in ui/public/utils/lodash-mixins
This change was applied only to files in
src/ui/public/utils/lodash-mixins directory.

All instances of var were replaced with let, and then all instances
of let that wouldn't flag the no-const-assign rule in the linter were
replaced with const.
2016-04-14 14:32:49 -04:00
Court Ewing 3eada0b4de Merge pull request #6921 from epixa/uiletconst10
[internal] Replace var with let in ui/public U-W (no utils/vislib)
2016-04-14 14:06:40 -04:00
Shaunak Kashyap 74f5a8c884 Removing warmers APIs 2016-04-14 10:12:53 -07:00
Shaunak Kashyap bb588750c9
Incorporating mapping API changes 2016-04-14 10:05:51 -07:00
Shaunak Kashyap 5db680102f
Incorporating term vectors API changes 2016-04-14 09:46:14 -07:00
Shaunak Kashyap 49b3ffb62c
Incorporating search and query DSL changes 2016-04-14 09:45:38 -07:00
Court Ewing fa4c6b0b73 Merge pull request #6907 from epixa/uiletconst3
[internal] Replace var with let in ui/public A-D
2016-04-14 10:25:19 -04:00
Shaunak Kashyap 7270dbd6fd Laying groundwork for using ES 5.0 APIs 2016-04-14 07:24:47 -07:00
Court Ewing 3b2689d7b2 Merge pull request #6908 from epixa/uiletconst4
[internal] Replace var with let in ui/public F-N
2016-04-14 10:21:17 -04:00
Khalah Jones Golden cd412eea93 Merge pull request #6909 from epixa/uiletconst5
[internal] Replace var with let in ui/public P-T
2016-04-14 10:14:54 -04:00
Court Ewing 80a733fffa [internal] Replace var with let in ui/public U-W (no utils/vislib)
This change was applied to any .js files under directories beginning
with `u` through `w` (other than utils and vislib) in src/ui/public.
There are no `y` or `z` directories. The utils directory isn't included
because the generic change breaks something in it. The vislib directory
isn't included because it had too many changes on its own.

This was an automatic replacement from var to let for any variable
declaration that doubles as the initial assignment. Ultimately we want
most of these to be converted to const, but this commit is so large that
it warrants breaking each step of automation up into its own commit.

For example:

`var foo = 'bar';` becomes `let foo = 'var';`

This was accomplished by replacing:
find: `var ([a-zA-Z_$][0-9a-zA-Z_$]*)(\s+)=`
replace: `let $1$2=`
2016-04-14 10:13:22 -04:00
Khalah Jones Golden fbb0c55cbe Merge pull request #6911 from epixa/uiletconst7
[internal] Replace var with let in ui/public/vislib
2016-04-14 10:12:07 -04:00
Shaunak Kashyap 5f34d6885a
Replacing use of _.rearg with more readable code (IMO) 2016-04-14 06:15:49 -07:00
Shaunak Kashyap 5cca6f71a7
Normalizing original request headers as well, just in case 2016-04-13 18:26:54 -07:00
Shaunak Kashyap ad5d772c32
Reformatting 2016-04-13 18:26:35 -07:00
Court Ewing 4c535f6155 [internal] Replace var with let in ui/public A-D
This change was applied to any .js files under directories beginning
with `a` through `d` in src/ui/public.

This was an automatic replacement from var to let for any variable
declaration that doubles as the initial assignment. Ultimately we want
most of these to be converted to const, but this commit is so large that
it warrants breaking each step of automation up into its own commit.

For example:

`var foo = 'bar';` becomes `let foo = 'var';`

This was accomplished by replacing:
find: `var ([a-zA-Z_$][0-9a-zA-Z_$]*)(\s+)=`
replace: `let $1$2=`
2016-04-13 20:33:47 -04:00
Shaunak Kashyap e56e98f5b8
Do not send x-forwarded-* headers 2016-04-13 17:09:53 -07:00
Shaunak Kashyap b635b2c466
Adding elasticsearch.requestHeaders option to kibana.yml and documentation 2016-04-13 16:56:26 -07:00
Shaunak Kashyap b102e26ac3
Filter headers using whitelist, not blacklist 2016-04-13 16:50:18 -07:00
Shaunak Kashyap 14f4b1a6e0 Merge pull request #6875 from ycombinator/gh-6714
Remove regex flags parameter from terms and significant terms aggs
2016-04-13 15:09:10 -07:00
spalger 5a100b332d [cli/serve] simplify deprecated config check by doing it after merge() 2016-04-13 14:39:27 -07:00
Court Ewing 91c20ce8db [internal] Replace var with let in ui/public/vislib
This change was applied to all .js files under src/ui/public/vislib.

This was an automatic replacement from var to let for any variable
declaration that doubles as the initial assignment. Ultimately we want
most of these to be converted to const, but this commit is so large that
it warrants breaking each step of automation up into its own commit.

For example:

`var foo = 'bar';` becomes `let foo = 'var';`

This was accomplished by replacing:
find: `var ([a-zA-Z_$][0-9a-zA-Z_$]*)(\s+)=`
replace: `let $1$2=`
2016-04-13 15:45:58 -04:00