Commit Graph

255 Commits

Author SHA1 Message Date
0d07233b46 [connectors/http] prevent errors caused by multi-byte characters in paths (#756)
* [connectors/http] catch errors caused by multi-byte paths

* Check url validity before to run the request

* Updated test
2019-01-23 13:29:42 -08:00
277d33715c [ping()] determine ping timeout at runtime (#679)
* [ping()] determine ping timeout at runtime

* generate

* single line

* remove pingTimeout param

* [docs] Add note about pingTimeout priority

* remove default ping requestTimeout test

* add test
2018-09-24 11:48:03 -05:00
d26c91c840 Fix: Serialization does not handle non-enumerable properties in Node versions < 5.x (#677) 2018-07-03 12:08:17 -07:00
f493527dc4 [eslint] fix no-unused-vars violations 2018-05-14 12:16:03 -07:00
898913545a [eslint] fix no-unused-expressions violations 2018-05-14 12:06:03 -07:00
4156feca27 remove deepMerge util 2018-05-14 11:42:47 -07:00
f1de944809 Upgrade to lodash v4 (#660)
* npm install lodash-2

Someone handily published a lodash-2 v4.17.4 - it is exactly the same as lodash v4.17.4, so it is safe to use during the migration.

* use lodash-2 in tests

* update tests to split utils vs lodash

* remove Utils.nextTick usage

Utils.nextTick with a single argument is the same as process.nextTick

* lowercase utils

Because it seems that this is the coding style in this repo

* upgrade lodash in grunt/*

* keep lodash-2 as a dev dep for now

* use lodash-2 in scripts

* use snakeCase from utils

It was a mistake in my previous commit to not update this usage

* fix naming gruntUtils vs utils

As all three - gruntUtils, utils and lodash (_) are getting passed into templates, it makes sense to keep the naming consistent

* fix naming gruntUtils vs utils

As all three - gruntUtils, utils and lodash (_) are getting passed into templates, it makes sense to keep the naming consistent

* split utils vs lodash in scripts/generate

Also use lodash-2 where it is easy to do so

* use utils.get until lodash upgrade

* remove lodash.isempty; lodash-2 now used in prod (in src/lib/apis/ code)

* unbundle lodash from utils

* upgrade to lodash 4

* remove lodash.get and lodash.trimEnd

* clean out unused code

* clean out unused code

* fix a breaking change listed under "notable changes" rather than under "breaking changes"...
2018-05-14 11:37:23 -07:00
24e5e0f9f9 Bump jquery and update some tests (#644)
* Remove jquery from devDependencies, syntax

* Add browserify and aliasify

* Bump jquery

* Bump jquery and make some tests pass
2018-03-13 21:03:06 -07:00
263bec4e03 Make unit tests pass in node 8 (#643)
* make tests not crash in node 8

* upgrade nock

This makes tests pass in node 8, as well as node 6
2018-03-13 20:59:37 -07:00
c7551f7914 Updating bulk JSON content type 2017-02-22 04:24:07 -08:00
adb3de5b3b clean up lodash 4 upgrade crumbs 2017-02-13 15:28:08 -07:00
87fe5d4a83 Merge branch 'fix/keepalive' 2017-02-08 17:49:23 -07:00
6309425951 update node-reading logic to match elasticsearch-py 2017-02-08 17:03:22 -07:00
026ec8ff94 swap out forever-agent with agentkeepalive (#196) 2016-12-07 12:57:10 -07:00
6d20756712 use config.httpAuth as default auth info for hosts 2016-11-15 11:52:42 -07:00
ef905ce080 [test/clientManager] remove incorrect use of snapshot arg 2016-10-26 18:06:35 -07:00
913469bb48 [client action] add a test to prove 21b2176 2016-07-06 22:36:27 -06:00
241aaff012 Merge pull request #375 from orangejulius/use_json_stringify
Use JSON.stringify to log objects
2016-07-06 16:27:39 -06:00
8ad271d81c and finally, return to standard mo 2016-05-19 14:33:04 -07:00
ec06c51c5d final sweep, moved everything to _v4 2016-05-19 14:23:33 -07:00
4a77556866 tracked down more necessary updated, lots of _.bind() 2016-05-19 12:47:33 -07:00
c7f6c09d8c get the unit tests to pass 2016-05-19 09:09:31 -07:00
38cf442acc protect methods that can not use lodash-migrate 2016-05-19 08:44:15 -07:00
fbac07a6ed _.pairs => _.toPairs 2016-05-19 08:43:38 -07:00
68a8f712c8 fix eslint errors 2016-05-19 07:52:01 -07:00
bd93bc914c _.unique -> _.uniq && _.pluck -> _.map 2016-05-19 07:31:15 -07:00
3d1efa57a0 splip in lodash-migrate for debugging 2016-05-19 07:28:52 -07:00
003c27a9d5 Revert "Merge pull request #386 from spalger/implement/betterStdioInterception"
This reverts commit e285f375f7, reversing
changes made to 3a54441be1.
2016-04-05 10:27:19 -07:00
e285f375f7 Merge pull request #386 from spalger/implement/betterStdioInterception
[jenkinsReporter] hook into stdio earlier
2016-04-05 09:52:57 -07:00
f9743b4e21 [jenkinsReporter] hook into stdio earlier, to capture output from more sources 2016-04-05 09:38:58 -07:00
a55ed2f2ba [client/config/logger/test] added test to ensure stream log could be configured 2016-04-05 08:56:26 -07:00
9dfcc20bd9 Use JSON.stringify to log objects
There are two major advantages to JSON.stringify over util.inspect:

1.) JSON.stringify defaults to recursively printing deeply nested
objects.

2.) JSON.stringify output is JSON, meaning it can be taken directly from
the output and used wherever JSON is accepted. util.inspect output is
JSON-like, but also includes other annotation such as the types of
various values, as well as functions on objects.
2016-03-31 14:08:27 -04:00
fe5bad3327 move section headers to client logger 2016-02-22 10:55:14 -08:00
aae2d96d56 [YamlDoc] add section description logging 2016-02-22 10:46:34 -08:00
ece9fa6da8 [YamlDoc] accept headers from yaml tests 2016-02-22 10:22:56 -08:00
ca01cd112c log meaningful warnings for new yaml-test args 2016-02-20 13:43:00 -08:00
7c3e5aefcd https://github.com/elastic/elasticsearch-js/issues/357 - fixing separated spelling error 2016-02-06 00:21:01 -07:00
453cd9e1af [transport] expose a method for updating the host list 2016-02-04 12:12:25 -07:00
916aca58c8 Fix #324
Added support for string hosts in ConnectionAbstract constructor.
Host constructor is used with supplied host string to create host object for ConnectionAbstract.
2016-01-31 12:40:01 +02:00
9ed1afbcd6 [nodesToHost] align with es.py host parsing behavior 2016-01-10 15:32:18 -07:00
d0d55f8f3e switch from jshint to eslint 2016-01-08 14:21:26 -07:00
7d5b0395e6 Merge pull request #329 from spalger/implement/createNodeAgent
Implement createNodeAgent config
2016-01-07 09:14:54 -07:00
0e3fe1586f [errors] ensure that error.status is always a number when defined 2016-01-05 14:25:14 -07:00
04dfa9deef add some tests to make sure the createNodeAgent config works 2016-01-05 10:09:13 -07:00
f140745527 fix recursive value replacement
The recursive search for $vars was naively using `typeof` to determing if something is an object, which of course failes on `null`...
2015-12-30 18:12:07 -07:00
bf8ef6e503 Merge pull request #289 from saschagoebel/master
Always send Content-Length header. Fixes compatibility issues with el…
2015-11-30 10:32:08 -06:00
48667b2201 Mock setHeader to avoid multiple done() calls. 2015-11-30 13:56:47 +01:00
da50dd5ce6 use bluebird in the yaml docs 2015-11-24 15:32:21 -06:00
784942c60c fix some unit tests expecting bluebird promises 2015-11-24 15:18:54 -06:00
1c3f72db17 [transport] update tests to check 391f228 2015-11-16 17:45:47 -06:00