loopback/lib
Miroslav Bajtoš 87940a4b58 Detect 3rd-party changes made during replication
Modify `Change.diff()` to include current data revision in each
delta reported back. The current data revision is stored in
`delta.prev`.

Modify `PersistedModel.bulkUpdate()` to check that the current data
revision matches `delta.prev` and report a conflict if a third party
has modified the database under our hands.

Fix `Change` implementation and tests so that they are no longer
attempting to create instances with duplicate ids.
(This used to work because the memory connector was silently
converting such requests to updateOrCreate/findOrCreate.)
2015-03-20 08:19:59 +01:00
..
connectors Enable jscs for `lib`, fix style violations 2014-11-04 08:25:33 +01:00
access-context.js Enable jscs for `lib`, fix style violations 2014-11-04 08:25:33 +01:00
application.js Remove usages of deprecated `req.param()` 2015-01-21 19:27:53 +01:00
browser-express.js Emit a 'modelRemoted' event by app.model() 2014-07-24 17:00:27 -07:00
builtin-models.js models: move Change LDL def into a json file 2014-10-14 09:04:43 +02:00
express-middleware.js Expose more loopback middleware for require 2014-11-19 11:32:22 -08:00
loopback.js Move middleware sources to `server/middleware` 2014-11-12 12:44:34 +01:00
model.js Add docs for settings per #1069 2015-02-23 13:13:52 -08:00
persisted-model.js Detect 3rd-party changes made during replication 2015-03-20 08:19:59 +01:00
registry.js Allows ACLs/settings in model config 2014-11-07 11:14:40 -08:00
runtime.js Enable jscs for `lib`, fix style violations 2014-11-04 08:25:33 +01:00
server-app.js Add a workaround to avoid conflicts with NewRelic 2015-02-25 09:47:18 -08:00