Simon Ho
2c1a056ade
Merge pull request #1054 from strongloop/backport/rename-get-test-suite
...
Rename KVAO get test suite
2016-08-16 13:43:29 -07:00
Simon Ho
5001a98135
test: Rename KVAO get test suite
...
[back-port of #2591 ]
2016-08-16 09:47:23 -07:00
Miroslav Bajtoš
2fb6a96d77
2.49.0
...
* Fix error message for missing global.Promise (Miroslav Bajtoš)
* Add TTL for KeyValue related features (Simon Ho)
* test/kvao: setup global.Promise on Node v0.10 (Miroslav Bajtoš)
* kv-memory: fix crash in regular cleanup (Miroslav Bajtoš)
* Backport globalization (Amir Jafarian)
2016-08-16 16:36:13 +02:00
Miroslav Bajtoš
6d4e0513a7
Merge pull request #1051 from strongloop/fix/promise-error-message
...
Fix error message for missing global.Promise
2016-08-16 14:44:46 +02:00
Miroslav Bajtoš
f7cfe25b60
Fix error message for missing global.Promise
2016-08-16 14:38:01 +02:00
Miroslav Bajtoš
df4a3643eb
Merge pull request #1044 from strongloop/fix/kvao-promise
...
test/kvao: setup global.Promise on Node v0.10 [2.x only]
2016-08-15 14:05:20 +02:00
Simon Ho
27efed9c5f
Merge pull request #1046 from strongloop/backport/ttl
...
Add TTL for KeyValue related features
2016-08-12 17:23:53 -07:00
Simon Ho
421597c998
Add TTL for KeyValue related features
...
Backport of strongloop/loopback-datasource-juggler#1030
2016-08-12 14:49:01 -07:00
Miroslav Bajtoš
9d0d41d660
test/kvao: setup global.Promise on Node v0.10
...
When running the tests on Node v0.10, setup `global.Promise`
with Bluebird implementation. That way we don't have to run
this setup in the test suite of each kv connector.
2016-08-12 16:34:26 +02:00
Miroslav Bajtoš
d8d89bea9d
Merge pull request #1041 from strongloop/fix/kv-reference-error-2x
...
kv-memory: fix crash in regular cleanup [2.x]
2016-08-10 14:32:08 +02:00
Miroslav Bajtoš
1750583a15
kv-memory: fix crash in regular cleanup
...
Fix bug in "_setupRegularCleanup()" where the interval callback
was trying to access an object that has been garbage-collected
in the meantime.
2016-08-10 14:19:05 +02:00
Amir-61
5a20ea1a08
Merge pull request #1029 from strongloop/backport-globalization
...
Backport globalization
2016-08-10 00:09:56 -04:00
Amir Jafarian
9da0e501da
Backport globalization
...
Backport loopback-datasource-juggler#1022,
loopback-datasource-juggler#1024,
loopback-datasource-juggler#1026
2016-08-09 21:52:11 -04:00
Amir Jafarian
b4d2d19ac6
2.48.0
...
* Return error if connector does not implement (Amir Jafarian)
* kvao: return 404 when expiring unknown key (Miroslav Bajtoš)
* Update doc for `validatesFormatOf` (Amir Jafarian)
* Implement KeyValue API and memory connector (Miroslav Bajtoš)
* Fix test case typo (Amir Jafarian)
* Remove unused variables in model.js (Amir Jafarian)
* Add test for updateOrCreate (Amir Jafarian)
* Declare `definition` (Amir Jafarian)
* Add test to catch invalid date property (Supasate Choochaisri)
2016-08-09 18:43:11 -04:00
Amir-61
a8a105c3ee
Merge pull request #1040 from strongloop/err_connector_not_implemented_replaceById_2.x
...
Return error if connector does not implement
2016-08-09 18:34:51 -04:00
Amir Jafarian
1b266bcf00
Return error if connector does not implement
...
* Return error if connector does not implement replaceById
* This patch is without globalization
Backport loopback-datasource-juggler#1034
2016-08-09 14:44:06 -04:00
Miroslav Bajtoš
72b3179da1
Merge pull request #1037 from strongloop/fix/kvao-expire-error-status-code-2x
...
KeyValueAccessObject: return 404 when expiring unknown key
2016-08-09 11:09:29 +02:00
Miroslav Bajtoš
8013b6acd4
kvao: return 404 when expiring unknown key
2016-08-09 10:47:12 +02:00
Amir-61
0dee7fbec7
Merge pull request #1032 from strongloop/update_doc
...
Update doc for `validatesFormatOf`
2016-08-08 10:51:04 -04:00
Amir Jafarian
9557558c8f
Update doc for `validatesFormatOf`
2016-08-08 10:46:47 -04:00
Miroslav Bajtoš
7f277b2563
Merge pull request #1031 from strongloop/kv-memory-2x
...
Implement KeyValue API and memory connector [2.x]
2016-08-08 15:12:46 +02:00
Miroslav Bajtoš
837f58f82d
Implement KeyValue API and memory connector
...
Models attached to a KeyValue connector get the following *static*
methods:
Color.set(key, value);
Color.set(key, value, ttl);
Color.set(key, value, { ttl: ttl });
Color.get(key);
Color.expire(key, ttl);
2016-08-08 14:48:04 +02:00
Amir-61
8a07627c81
Merge pull request #1018 from strongloop/fix_test_type_2.x
...
Fix test typo[2.x]
2016-07-24 09:10:36 -04:00
Amir Jafarian
5a594d4855
Fix test case typo
...
Backport loopback-datasource-juggler#1016
2016-07-24 09:05:33 -04:00
Amir-61
fc2c429963
Merge pull request #1011 from strongloop/remove_unused_vars_2.x
...
Remove unused variables in model.js [2.x]
2016-07-23 20:11:25 -04:00
Amir Jafarian
a96a8f379a
Remove unused variables in model.js
...
Backport loopback-datasource-juggler#1010
2016-07-23 16:56:16 -04:00
Amir-61
fa65094583
Merge pull request #1012 from strongloop/Add_test_for_updateOrCreate_2.x
...
Add test for updateOrCreate[2.x]
2016-07-23 15:01:50 -04:00
Amir-61
1615caca9d
Merge pull request #1013 from strongloop/Declare_definition_2.x
...
Declare definition[2.x]
2016-07-23 13:19:24 -04:00
Amir Jafarian
6efd00698b
Add test for updateOrCreate
...
* Add test for updateOrCreate when id is not autogenerated Id
Backport loopback-datasource-juggler#989
2016-07-23 11:25:38 -04:00
Amir Jafarian
69cc091ef4
Declare `definition`
...
* Declare `definition` in `BelongsTo.prototype.destroy`
Backport loopback-datasource-juggler#1009
2016-07-23 11:24:34 -04:00
Supasate Choochaisri
f1a70094fa
Add test to catch invalid date property
...
Signed-off-by: Supasate Choochaisri <supasate.c@gmail.com>
See https://github.com/strongloop/loopback-datasource-juggler/pull/1000
2016-07-15 10:47:44 -07:00
Miroslav Bajtoš
4e5ae72eef
2.47.0
...
* Ensure stable order of items in DAO.find() (Miroslav Bajtoš)
* give options to validators #984 (RobinBiondi)
* Update datasource.js (Amir Jafarian)
* Give warning if PK is changed in hooks (Amir Jafarian)
* Persist changes on parent for embedsOne (Dimitris Halatsis)
2016-07-14 14:02:12 +02:00
Miroslav Bajtoš
8173a4306c
Merge pull request #999 from strongloop/fix/order-in-find-2.x
...
Ensure stable order of items in DAO.find() [2.x]
2016-07-14 14:01:14 +02:00
Miroslav Bajtoš
ebcb5a0546
Ensure stable order of items in DAO.find()
...
When post-processing result of find operation, use "async.map"
instead of "async.each + array.push" to ensure the order of items
is preserved.
2016-07-13 15:25:34 +02:00
Raymond Feng
6736d72b98
Merge pull request #986 from robinbiondi/postgresConcurency
...
Fix #984 Give request options(ex: transactions) to validators
2016-06-24 14:42:50 -07:00
RobinBiondi
35f14c38dc
give options to validators #984
2016-06-24 22:04:35 +02:00
Amir-61
48e949e996
Merge pull request #980 from strongloop/updata_datasource_2.x
...
Updata datasource.js
2016-06-17 13:42:22 -04:00
Amir Jafarian
5f8e28a6c0
Update datasource.js
...
Return a real `Error` message for the default `ping()` method.
2016-06-17 11:36:13 -04:00
Amir-61
892c228797
Merge pull request #968 from strongloop/warning_for_changing_PK_in_hooks_2.x
...
Give warning if PK is changed in hooks
2016-06-08 18:13:55 -04:00
Amir Jafarian
26718c733a
Give warning if PK is changed in hooks
...
* Give warning if PK is changed in `before save` and `loaded`
operation hooks for replaceById
2016-06-08 15:54:22 -04:00
Miroslav Bajtoš
bfbdd15f1d
Merge pull request #949 from mitsos1os/2.x
...
Persist changes on parent for embedsOne
Close #949
2016-06-07 17:23:14 +02:00
Dimitris Halatsis
af8cf19242
Persist changes on parent for embedsOne
...
Allow direct save of changes on embedded model to be persisted on
parent document.
Person.embedsOne(Address);
Person.findById(someId)
.then(function(p){
var address = p.addressItem();
address.street = 'new street'
// This will now persist changes on parent document
return address.save();
})
2016-06-07 17:09:34 +02:00
Raymond Feng
baef033115
2.46.1
...
* fix (Miroslav Bajtoš)
* Retun err for UPSERT if the connector returns err (Amir Jafarian)
* Fix error message (Amir Jafarian)
* Add test's description (Amir Jafarian)
* ModelBuilder: add new setting strictEmbeddedModels (Dimitris Halatsis)
* Fix incompatibility between different connectors PR#938 (Amir Jafarian)
* travis: add v4, v6, drop io.js (Miroslav Bajtoš)
* Backport ESLint from master (Simon Ho)
* Set ESLint as devdep (Simon Ho)
* Use mocha instead of Makefile for testing (Simon Ho)
* Implement operation hooks for EmbedsMany methods (Miroslav Bajtoš)
* Implement operation hooks for EmbedsOne methods (Miroslav Bajtoš)
* eslint config 2.0 + remove extra empty lines (Miroslav Bajtoš)
* Fix eslint errors in memory connector (Miroslav Bajtoš)
* Run `eslint --fix` with config from master (Miroslav Bajtoš)
* Test coverages for hashed password (Amir Jafarian)
* Fix `forceId` check for `replaceByIds` PR#896 (Amir Jafarian)
* test: extract hook-monitor helper (Miroslav Bajtoš)
* test: extract uid-generator helper (Miroslav Bajtoš)
* test: extract context-test-helpers (Miroslav Bajtoš)
* Define `patch` aliases (Amir Jafarian)
2016-06-03 14:53:00 -07:00
Amir-61
be17bedcc5
Merge pull request #962 from strongloop/fix2x
...
fix
2016-06-03 17:46:10 -04:00
Miroslav Bajtoš
9bf60e0d74
fix
2016-06-03 16:29:39 -04:00
Amir-61
534a0e5892
Merge pull request #957 from strongloop/upsert_err
...
Retun err for UPSERT if the connector returns err
2016-06-02 08:37:02 -04:00
Amir Jafarian
dddf0ee09a
Retun err for UPSERT if the connector returns err
2016-06-02 08:31:13 -04:00
Amir-61
7aa9cb357d
Merge pull request #959 from strongloop/fix_err_msg
...
Fix error message
2016-06-01 21:00:26 -04:00
Amir-61
2e11dbfe35
Merge pull request #958 from strongloop/Add_test_desc
...
Add test's description
2016-06-01 20:29:46 -04:00
Amir Jafarian
c093648525
Fix error message
...
* Fix error message when PK is changed in `replaceById`
2016-06-01 16:26:41 -04:00