loopback-datasource-juggler/test
virkt25 9bd7f8d02f
fix: regression on Operation Hooks
Fix the regression introduced by 9af79cf51a where updateAttributes
and replaceAttributes was incorrectly handling the response returned
by the database.

This commit restores the old behaviour where `context.data` is updated
only by a connector-provided function and reverts an incorrect change
of a test file made as part of the faulty fix.

Besides the fixes, this patch also renames `data` to `dbResponse` and
add comments explaining the structure of the response object for more
clarity.
2018-07-09 16:41:56 +02:00
..
fixtures/loopback-connector-throwing Fix datasource to report connector-loading errors 2017-02-03 20:29:11 +01:00
helpers test/helpers: annotate skipped tests 2017-06-07 14:05:48 -04:00
kvao Update eslint + config to latest 2018-06-12 09:13:32 +02:00
operation-hooks.suite Upgrade eslint-config, fix new violations 2017-02-01 12:45:56 +01:00
CustomTypeForeignKey.test.js Fix manually 2016-08-22 19:20:12 -04:00
allow-extended-operators.test.js Refactor logic of options.allowExtendedOperators 2017-01-30 00:05:56 +01:00
async-observer.test.js Fix manually 2016-08-22 19:20:12 -04:00
basic-querying.test.js Update eslint + config to latest 2018-06-12 09:13:32 +02:00
common.batch.js Fix manually 2016-08-22 19:20:12 -04:00
common_test.js Update eslint + config to latest 2018-06-12 09:13:32 +02:00
crud-with-options.test.js Fix block padding 2016-12-13 16:05:50 -08:00
datasource.test.js Update eslint + config to latest 2018-06-12 09:13:32 +02:00
datatype.test.js Update eslint + config to latest 2018-06-12 09:13:32 +02:00
date-string.test.js Add DateString type 2017-05-01 12:28:59 -04:00
default-scope.test.js Update eslint + config to latest 2018-06-12 09:13:32 +02:00
defaults.test.js Fix block padding 2016-12-13 16:05:50 -08:00
discovery.test.js Update eslint + config to latest 2018-06-12 09:13:32 +02:00
exclude-base-props.test.js Update eslint + config to latest 2018-06-12 09:13:32 +02:00
geo.test.js handle deep geo-near queries (#1314) 2017-04-13 17:05:05 -04:00
hooks.test.js Fix block padding 2016-12-13 16:05:50 -08:00
include.test.js Update eslint + config to latest 2018-06-12 09:13:32 +02:00
include_util.test.js Update eslint + config to latest 2018-06-12 09:13:32 +02:00
init.js Add test case for all connectors 2017-02-14 14:01:44 -05:00
introspection.test.js Fix block padding 2016-12-13 16:05:50 -08:00
json.test.js Upgrade eslint & config to latest 2016-12-05 15:14:09 +01:00
kv-memory.js Refactor flush to deleteAll 2017-01-09 14:53:34 -08:00
kvao.suite.js test/kvao: add connectorCapabilities options 2016-10-19 11:06:17 +02:00
loopback-data.test.js Fix manually 2016-08-22 19:20:12 -04:00
loopback-dl.test.js Update eslint + config to latest 2018-06-12 09:13:32 +02:00
manipulation.test.js Update eslint + config to latest 2018-06-12 09:13:32 +02:00
memory.test.js Update eslint + config to latest 2018-06-12 09:13:32 +02:00
mixins.test.js Fix block padding 2016-12-13 16:05:50 -08:00
mock-connectors.js Fix manually 2016-08-22 19:20:12 -04:00
model-builder.test.js Set model constructor name to model name 2018-01-08 09:37:23 +01:00
model-definition.test.js configurable model merge 2017-05-10 02:33:45 +02:00
model-inheritance.test.js Update eslint + config to latest 2018-06-12 09:13:32 +02:00
normalize-undefined.test.js Fix undefined properties in where 2017-08-03 14:09:21 -04:00
optional-validation.test.js Update eslint + config to latest 2018-06-12 09:13:32 +02:00
performance.coffee Reformat the code 2014-01-24 09:09:53 -08:00
persistence-hooks.suite.js fix: regression on Operation Hooks 2018-07-09 16:41:56 +02:00
relations.test.js Update eslint + config to latest 2018-06-12 09:13:32 +02:00
schema.test.js Fix block padding 2016-12-13 16:05:50 -08:00
scope.test.js Fix block padding 2016-12-13 16:05:50 -08:00
spec_helper.js Fix manually 2016-08-22 19:20:12 -04:00
test1-schemas.json Reformat the code 2014-01-24 09:09:53 -08:00
test2-schemas.json Reformat the code 2014-01-24 09:09:53 -08:00
transaction.test.js Add a better way to handle transactions 2017-09-06 07:10:57 +02:00
transient.test.js Fix block padding 2016-12-13 16:05:50 -08:00
util.test.js Update eslint + config to latest 2018-06-12 09:13:32 +02:00
validations.test.js Fix tests to ensure compatibility w/ should@10 2018-05-24 14:21:12 -07:00