1
0
Fork 0
liza/test/dapi
Mike Gerwitz 445783c256 [BC BREAK] DataApi config lookup
This was a bit involved because the system had to be made async all
the way up the stack.  No attempt was made to clean up the mess up the
stack---no time.

* src/dapi/DataApiFactory.js
  (fromType): [BC BREAK] Fix docblock.  Add `api_name' param.  Call
    `#descLookup' and return promise.
  (descLookup): Add method.  Return promise resolving to provided
    descriptor.  Intended to be overridden by subtype.
* src/dapi/DataApiManager.js
  (_dataApis): Update docblock to indicate that it now stores
    promises.
  (getApiData): Expect promise for `DataApiFactory#fromType' call.
* src/server/DocumentServer.js: (create): [BC BREAK] Accept
    configuration.  Look up dapi conf and pass to
    `ServerDataApiFactory' ctor.  Return promise.
* src/server/daemon/Daemon.js (_initRouters): Provide configuration.
* src/server/daemon/controller.js
  (init): Accept configuration.  Handle return of promise from
    `_createDocumentServer'.
  (_createDocumentServer): Accept configuration, providing to
    `DocumentServer#create'.  Because of aforementioned change to
    `#create', returns promise.
* src/server/request/ServerDataApiFactory.js: Add StoreMissError
    import.
  (_conf): Add property.
  (constructor): [BC BREAK] Accept configuration.
  (descLookup): Add override.  Look up configuration for provided
    dapi.
2017-08-29 15:11:28 -04:00
..
format Add ResponseApply 2017-08-10 09:52:07 -04:00
http Add `quote' Data API type 2017-08-10 09:52:07 -04:00
AutoRetryTest.js LoVullo Associates => R-T Specialty 2017-06-08 14:48:43 -04:00
DataApiManagerTest.js [BC BREAK] DataApi config lookup 2017-08-29 15:11:28 -04:00
DummyDataApi.js DummyDataApi: Add test class. 2017-08-07 11:34:22 -04:00
QuoteDataApiTest.js Add QuoteDataApi 2017-08-10 09:52:03 -04:00