Mike Gerwitz
445783c256
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. |
||
---|---|---|
.. | ||
bucket | ||
conf | ||
dapi | ||
event | ||
server | ||
store | ||
system | ||
ui | ||
validate | ||
pre.js |