1
0
Fork 0
liza/test
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
..
bucket [DEV-2692] [BC-BREAK] Bucket stability and consistency fixes and non-term nulls 2017-09-06 09:03:45 -04:00
client [DEV-3257] DataApiMediator: Auto-expand into fields on reply [*] 2018-07-17 15:44:37 -04:00
conf Add ConfLoader 2017-08-28 09:07:28 -04:00
dapi Add HttpDataApiUrlData 2018-05-01 09:44:53 -04:00
document [DEV-2871] DocumentProgramFormatter: Match on fields from FieldClassMatcher instead of __classes and program.whens 2018-06-13 15:42:45 -04:00
event ValueSetEventHandler: New handler for `set' event 2018-02-07 14:59:50 -05:00
field FieldClassMatcher: Minor refactoring/cleanup 2018-06-12 16:52:14 -04:00
program [DEV-3192] Renamed variables and added test case 2018-06-19 10:28:48 -04:00
server RatingServiceSubmitNotify: Do not flag as notified on error 2018-05-02 14:23:39 -04:00
store Add DelimitedKey Store trait 2017-08-29 14:34:40 -04:00
system LoVullo Associates => R-T Specialty 2017-06-08 14:48:43 -04:00
ui GeneralStepUiTest: Fix failing test case in newer version of Node 2018-03-07 14:12:48 -05:00
validate LoVullo Associates => R-T Specialty 2017-06-08 14:48:43 -04:00
pre.js LoVullo Associates => R-T Specialty 2017-06-08 14:48:43 -04:00