1
0
Fork 0
liza/src/dapi
Mike Gerwitz 839952a56d [DEV-3257] DataApiMediator: Auto-expand into fields on reply [*]
[*] You should not use this commit directly since this may wipe out data in
fields the user has changed.  See future commit where this situation is
properly handled.

* src/client/Client (_init): Provide dapimap to DataApiMediator instance.
* src/client/dapi/DataApiMediator.js
  (_dapi_map): New field.
  (constructor): Accept dapimap.  BC break (which is okay, since this is
    still part of a topic branch).  Assing to _dapi_map.  Update docblock.
  (monitor): Bind `dapi_manager' to first argument of handlers.
  (_updateFieldData): Accept `dapi_manager' as first argument.  Use
    `_populateWithMap' to generate additional update data.
  (_populateWithMap): New method.
  (_clearFieldFailures): Accept `dapi_manager' as first argument.
* src/dapi/DataApiManager.js: Update copyright year.
  (getDataExpansion): Return empty object (consistent with interface) rather
    than `undefined' when field value is undefined.  Use
    {Error=>MissingDataError} when field data are missing.  Throw instead of
    emit.  Fix missing comma in var declarations.
* src/dapi/MissingDataError.js: New class.
* test/client/dapi/DataApiMediatorTest.js: Update test data to test field
    expansion.  New test against ignoring field expansion when data are not
    available.  Update Sut constructors of other tests for new dapimap
    parameter.

DEV-3257
2018-07-17 15:44:37 -04:00
..
format Add ResponseApply 2017-08-10 09:52:07 -04:00
http SpoofedNodeHttpImpl: Fix docblocks (User{Session=>Request}) 2018-05-01 09:44:55 -04:00
AutoRetry.js LoVullo Associates => R-T Specialty 2017-06-08 14:48:43 -04:00
BucketDataApi.js LoVullo Associates => R-T Specialty 2017-06-08 14:48:43 -04:00
DataApi.js DataApi: Update docblock and strict mode 2017-08-10 09:52:07 -04:00
DataApiFactory.js [BC BREAK] DataApi config lookup 2017-08-29 15:11:28 -04:00
DataApiManager.js [DEV-3257] DataApiMediator: Auto-expand into fields on reply [*] 2018-07-17 15:44:37 -04:00
GetRestDataApiStrategy.js LoVullo Associates => R-T Specialty 2017-06-08 14:48:43 -04:00
MissingDataError.js [DEV-3257] DataApiMediator: Auto-expand into fields on reply [*] 2018-07-17 15:44:37 -04:00
PostRestDataApiStrategy.js LoVullo Associates => R-T Specialty 2017-06-08 14:48:43 -04:00
QuoteDataApi.js QuoteDataApi: Correct constructor argument error 2018-05-01 09:44:55 -04:00
RestDataApi.js LoVullo Associates => R-T Specialty 2017-06-08 14:48:43 -04:00
RestDataApiStrategy.js LoVullo Associates => R-T Specialty 2017-06-08 14:48:43 -04:00
RestrictedDataApi.js RestrictedDataApi#request: Make virtual 2017-08-10 09:52:07 -04:00
StaticAdditionDataApi.js dapi: Do not perform static additions in invalid response data 2018-01-15 11:03:46 -05:00