Commit Graph

266 Commits

Author SHA1 Message Date
388c5e8e7e force replace a bad link in generated docs 2019-10-31 12:35:22 -07:00
549996914a [apis] regenerate 2019-10-31 11:36:49 -07:00
c20598737d pin branches to just before elastic/elasticsearch#42346 2019-09-18 18:27:54 -07:00
58a29395e2 remove packages to get npm audit to pass (#11)
* remove packages to get `npm audit` to pass

* fix grunt.config.init() call lost in split up

* remove integration tests, they don't work and nobody is running them

* fix upload_to_s3 task after refactor
2019-07-10 07:22:27 -07:00
7c1573fb07 Use standard and prettier (#10)
* switch from custom eslint config to standard + prettier

* fix new standard eslint violations

* add editorconfig file

* auto-fix all other violations

* update lint yarn script

* remove jshint comment
2019-07-09 13:24:13 -07:00
027956bac1 Make legacy docs asciidoctor compatible (#793)
* Make legacy docs asciidoctor compatible

This modifies the legacy client documentation so that it is is
compatible with Asciidoctor. With these changes asciidoctor renders the
same way as asciidoc, module spacing and a couple of auto-generated ids.
I'm willing to ignore the auto-generated anchors because these are
legacy docs.

* Updated configuration template

(cherry picked from commit d699045504)
2019-05-02 11:09:51 -07:00
7b1f726beb Update branches to include 6.8 and 7.1 (#2)
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2019-05-01 16:32:18 -07: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
0a924eb0f1 [lodash] fix missed _.flattenDeep() upgrade 2018-07-03 12:36:26 -07:00
8fb64477ac [backport] add backport tool 2018-05-21 09:57:55 -07:00
2925948e12 [generate/api] ensure that paths start with a / 2018-05-14 11:59:05 -07:00
a1042f6310 [esApi/master] use /index/type/_mapping versions of indices.putMapping 2018-05-14 11:58:52 -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
a49f7adb78 [api/overrides] fix version range for clearScroll->castToArray 2018-03-28 13:59:04 -07:00
1649059c8c [generate/api] rewrite doc urls with branch
(cherry picked from commit 8fa499d070)
2017-07-31 12:41:04 -07:00
7ad3a7e196 Use json version of scroll api for 2.0 and greater (#576)
(cherry picked from commit 3b809be324)
2017-07-31 11:47:39 -07:00
080e4a0641 [generate] handle methods with more than one namespace 2017-06-14 15:53:38 -07:00
90a0ae1eb9 add a castToArray option to paramAsBody spec (#541)
(cherry picked from commit 35b342550e)
2017-05-09 14:11:24 -07:00
a8d42008c1 remove debugger
(cherry picked from commit 036fb89f74)
2017-05-01 16:49:37 -07:00
94ec6e6139 define description overrides by version, like examples 2017-05-01 16:33:26 -07:00
e9c34d8d4f Manually incrementing the hardcoded master version to 6.0 (#535)
* Manually incrementing the hardcoded master version to 6.0

* Adding branch_versions to the package.json

* Modifying the way branch_versions work
2017-05-01 16:33:15 -07:00
c728579d86 [http] accept and document rest of params for agentkeepalive 2017-04-03 18:34:59 -07:00
347549c04a sting => String 2017-04-03 17:59:10 -07:00
d452294124 limit sending scrollId as the body to 5.3+ 2017-02-14 18:36:42 -07:00
098da3d36a [generate/Version] fix the direction of merges 2017-02-14 18:36:22 -07:00
8c7a25f466 [api/paramAsBody] support sending params as named json properties 2017-02-14 18:22:13 -07:00
adb3de5b3b clean up lodash 4 upgrade crumbs 2017-02-13 15:28:08 -07:00
fa4c08748b use getters for api versions in node 2017-02-09 01:25:28 -07:00
2452dfec70 [api/generate] ignore spec files that start with an underscore 2017-01-18 15:50:54 -07:00
97706ce5fd send scrollId as body for clearScroll method 2016-11-21 15:07:02 -07:00
14a32e320f [docs/config] mention httpAuth 2016-11-16 18:36:51 -07:00
9fee381c8e [docs] add more detailed type information for parameters 2016-11-16 18:24:50 -07:00
2452d68e0a [docs] focus on the API Conventions a bit 2016-11-16 13:08:50 -07:00
849c28a8d0 [docs] add body parameter to all methods that accept it 2016-11-16 13:01:05 -07:00
dd8fab9bdc [docs] use print() so control flow is clearer 2016-11-16 12:31:42 -07:00
29eb81a52c [docs] label timestamp/duration types differently 2016-11-16 12:29:56 -07:00
7de7928fc7 add a 5.0+ exapmle for the scroll api 2016-11-16 11:54:24 -07:00
651cc00b92 add changelog to doc site 2016-10-31 16:22:26 -07:00
006b8917ef [api/generate] prevent overriding the create method 2016-10-26 19:09:25 -07:00
b526bb05e7 [api/generate] add overrides for 5.0/2.4 changes 2016-10-26 17:52:08 -07:00
22febcbe38 [api] add the special "" option for refresh 2016-07-06 23:13:18 -06:00
fc04071fb0 [generate] support extending the rest-api specs via merge+concat 2016-07-06 23:12:54 -06:00
6e833951d1 [generate] ensure that all api definitions use strings for their options 2016-07-06 22:32:07 -06:00
6f43f59d32 update generate script to accept alternat es repo location 2016-05-20 13:55:29 -07: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
b2929de9d5 _.contains -> _.includes 2016-05-19 08:43:19 -07:00
68a8f712c8 fix eslint errors 2016-05-19 07:52:01 -07:00