Commit Graph

28 Commits

Author SHA1 Message Date
88bae9e055 added plugin support 2015-05-13 00:10:01 -05:00
24beb382ca allow overriding the angular serializer with serializer: "json" 2014-10-28 15:48:52 -07:00
06ea97fb21 always use self once it's defined 2014-09-08 15:32:22 -07:00
4e4c59dcec track the global config and pass it to the host objects on creation 2014-09-08 15:32:06 -07:00
7d597d73a4 Lower the logging level of Request complete 2014-07-17 13:25:33 -07:00
1a383aced5 added a new RequestTypeError class that connectionClasses can throw to prevent a request from being retried and respond directly to the user. 2014-05-08 17:12:20 -07:00
2eefd190a1 Fixes the sniffOnConnectionFault config parameter 2014-04-01 18:23:05 -07:00
4ab22a1a61 switched to bluebird for promise support 2014-03-27 09:49:21 -07:00
bfa6c40157 Updated nodes_to_host callback
Now, it will properly ignore nodes without HTTP enabled, and nodes with addresses that don't match the pattern will not cause all hell to break loose but rather log an error message and cancel the sniff.
Also comes with minor updates to the API.
2014-03-18 11:45:59 -07:00
ad90cbd52c allow configuring the sniffEndpoint via config.sniffEndpoint 2014-02-11 15:43:09 -07:00
327f191056 fixed and added a test for keepalive connection pool forced shutdown 2014-02-06 22:30:29 -07:00
2b3734a081 switched out assertion library with should.js... I really should have written my own baby util library since that was the third time I've done that... 2013-12-23 15:33:53 -07:00
460f708a29 Changed the value promises with resolved with. Instead of receiving an object with both the body and status code attached, they will simply receive the body. 2013-12-22 11:42:51 -07:00
74d3183cc6 Changed the createDefer config param to just be defer 2013-12-17 11:23:16 -07:00
e7e46f707f added the jquery conenction and setup the elasticsearch.jquery.js file. Disabled response transformation at an angular level so that responses can be transformed as intended 2013-12-16 16:13:43 -07:00
cf3be01c57 - grunt watch will now abort mid task
- connection's ping method now accepts requestTimeout, path, and method params like
  all the grown-up API calls
- ConnectionPool now managed connection timeouts. When a connection dies a
  timeout object is created to track when the timeout is scheduled and the function
  to call when it does. It also tracks how many times it has run to allow the timeout
  to grow
- Timeouts now grow with use of `config.calcDeadTimeout` which is set to 'exponential'
  by default, but can also be set to flat in order to always use the standard
  deadTimeout. Exponential growth of the deadTimeout is stopped at config.maxDeadTimeout
  which is set to 30 minutes by default.
- Connections no longer have a resuscitate method (too hard to spell). Now the
  method is created dynamically as a part of the timeout object as it just calls
  the connection's ping method and needed to access variables like revive attempts.
- Timeouts were moved to the transport layer, meaning that you need to capture the
  abort method and abort the request yourself if you are handling connections
  directly, ConnectionsAbstract's ping method does this.
2013-12-16 02:35:28 -07:00
0c8bd328fe Updated the method for creating the defer object in the transport, it is now a property of the Transport class itself. Fixed the error.message logging in the Transport. Added sniffOn... related stuff 2013-12-14 14:07:47 -07:00
345ac776ef Major updates for testing and grunt, jenkins tests are now powered by the jenkins.sh script in the scripts directory. 2013-12-12 15:39:42 -07:00
270763e0a7 Added more unit tests, up to 98% coverage. Fixed the Gruntfile so it's not a cluster-f**k anymore. 2013-12-06 18:39:48 -07:00
c070c9e741 more tests, simplified the standard tests for the loggers 2013-12-04 14:55:14 -06:00
4e5f08a29c many tests 2013-12-03 19:01:04 -07:00
2b5f6cd80d lots of changes, should have committed earlier 2013-12-02 18:43:52 -07:00
477f1aff84 Fixed the integration tests, set the default method for indices.putTemplate and indices.putMapping to PUT 2013-11-25 14:14:00 -07:00
8baa3d6601 more tests, added contributing.md and license.md 2013-11-25 12:01:48 -07:00
97ba084795 save point durring huge unorganized refactor 2013-11-22 16:48:30 -07:00
5bb70fbe58 Moved the curl formatting into the log and changed the arguments for the log event listeneres to
receive both the "message" and the "curlCommand".

Added a "tracer" logger which allows you to create log files that a executable scripts. Those scripts
will write all of the log messages as script comments, and not comment out the curlCommands, so that they
can trace their application and use the generated script to recreate the issue.

Most changes are simply cased by adding the "unused" rule to jshint.
2013-11-15 19:10:45 -07:00
20804bb5ab moved the transport request back into the transport, added when.js promises 2013-11-14 14:30:24 -07:00
984a55f6c0 Cleaned up the generation script, fixing the doc-blocks above the client actions.
Replaced the transport, giving it all of the functionality that was brought over to the client and making the client simply a place for the API to live. Essentially a shell that can easily be removed.

spec'd out the TransportRequest which will eventually inherit from one of server possible promise implementations and will be plugable. It will also implement the "abort" functionality needed in an environment like node.js
2013-10-29 08:48:29 -07:00