Candy
686ce5bae3
Fix missing connector error msg for db2, cloudant
2016-02-09 16:19:57 -05:00
Miroslav Bajtoš
2e0f496713
Merge pull request #847 from strongloop/doc/add-replace-to-hooks-overview
...
Update describe-operation-hooks
2016-02-09 13:05:46 +01:00
Miroslav Bajtoš
5d81bfc58b
Update describe-operation-hooks
...
- drop custom findOrCreate implementation - memory connector provides
an atomic implementation out of the box now
- add new methods `replaceOrCreate` and `replaceByID`
- fix error reporting to include the stack trace in the console output
2016-02-06 11:22:53 +01:00
Miroslav Bajtoš
504675fc78
3.0.0-alpha.2
...
* Implementtaion of replace (Amir Jafarian)
* Fix conversion for `updateAttributes` (Amir Jafarian)
* Prevent constructor to be property name (Jue Hou)
* Revert "Change "npm test" to call mocha directly" (Miroslav Bajtoš)
* Change "npm test" to call mocha directly (Hans(Zhenghan) Zhang)
* Refactor `updateAttributes` (Amir Jafarian)
* Update README.md (Simon Ho)
* Add unit test to verify fix for #754 (Tom Kirkpatrick)
* Update package.json (Janny)
* Try mocha test (Janny)
* Implement `findOrCreate` for memory connector (Amir Jafarian)
* Fix a bug when validation is off for findOrCreate (Amir Jafarian)
* Use bluebird in utils.js Replace `global.Promise` with `bluebird` (Jue Hou)
* Fix broken code fencings in the docs (Farid Nouri Neshat)
* Revert "Correct syntax for should and more" (Simon Ho)
* Fix test for shouldjs 8.0.2 upgrade (Simon Ho)
* Upgrade shouldjs to 8.0.2 (Simon Ho)
* Enhance "persist" hook in DAO.updateOrCreate (Miroslav Bajtoš)
* Enhance "persisted" hook in DAO.updateAttributes (Miroslav Bajtoš)
* "loaded" hook in DAO.find: ctx.data, not instance (Miroslav Bajtoš)
* describe-operation-hooks: add "loaded" hook (Miroslav Bajtoš)
2016-02-05 16:42:46 +01:00
Amir-61
3b9d3d0212
Merge pull request #788 from strongloop/replace
...
Implementation of replaceOrCreate and replace
2016-02-04 15:17:14 -05:00
Amir Jafarian
2281e95940
Implementtaion of replace
...
This includes:
*implementation of replaceAttributes
*implementtaion of replaceOrCreate
2016-02-03 16:06:35 -05:00
Amir-61
5dca27278a
Merge pull request #839 from strongloop/fix-conversion-updateAttributes
...
Fix conversion for `updateAttributes`
2016-02-03 12:41:32 -05:00
Amir Jafarian
ef232eae0a
Fix conversion for `updateAttributes`
2016-02-03 12:04:51 -05:00
Janny
49c2bc214a
Merge pull request #823 from strongloop/feature/handle-constructor
...
Prevent constructor to be property name
2016-02-02 13:29:03 -05:00
Jue Hou
0d9eebe3bb
Prevent constructor to be property name
2016-02-02 11:51:05 -05:00
Miroslav Bajtoš
54ca067610
Revert "Change "npm test" to call mocha directly"
...
This reverts commit 1e9affe4ba
.
2016-01-26 17:35:46 +01:00
Miroslav Bajtoš
0648dc581f
Merge pull request #831 from strongloop/fix/npm-test
...
Change "npm test" to call mocha directly
2016-01-26 17:11:54 +01:00
Amir-61
63482ef061
Merge pull request #826 from strongloop/updateAttributes-refactoring
...
Refactor `updateAttributes`
2016-01-25 10:26:44 -05:00
Hans(Zhenghan) Zhang
1e9affe4ba
Change "npm test" to call mocha directly
...
Rework the test script to call directly mocha and skip Makefile. This
allows CI enviroments to detect that this module is using Mocha as
the test runner.
2016-01-25 14:20:13 +01:00
Amir Jafarian
550cfa2a86
Refactor `updateAttributes`
2016-01-25 10:56:27 +01:00
Simon Ho
d49dfa0293
Update README.md
2016-01-22 14:10:01 -08:00
Simon Ho
4ebbd0e5c2
Update README.md
2016-01-22 14:09:20 -08:00
Simon Ho
c5f0be83a8
Update README.md
2016-01-22 13:50:58 -08:00
Simon Ho
bd0c75fe4b
Merge pull request #828 from strongloop/cc
...
Add unit test to verify fix for #754
2016-01-22 10:09:49 -08:00
Tom Kirkpatrick
61047a028d
Add unit test to verify fix for #754
2016-01-21 18:00:45 -08:00
Janny
2cdc4ddcbf
Update package.json
2016-01-22 09:18:49 +08:00
Janny
ccf52f0822
Try mocha test
2016-01-22 09:17:54 +08:00
Amir-61
adaf7dee7c
Merge pull request #815 from strongloop/findOrCreate
...
Implement `findOrCreate` for memory connector
2016-01-16 18:48:42 -05:00
Amir Jafarian
ba7161b39e
Implement `findOrCreate` for memory connector
2016-01-16 18:46:53 -05:00
Amir Jafarian
a5150265ec
Fix a bug when validation is off for findOrCreate
2016-01-08 16:47:38 -05:00
Janny
1771bfabcc
Merge pull request #790 from strongloop/feature/upgrade-to-bluebird
...
[SEMVER-MAJOR] Always use bluebird as the Promise implementation
2016-01-08 08:07:55 +08:00
Jue Hou
853ca03491
Use bluebird in utils.js
...
Replace `global.Promise` with `bluebird`
2016-01-07 15:27:33 -05:00
Miroslav Bajtoš
b509c759c4
Merge pull request #796 from strongloop/fix/various
...
Various fixes in operation hooks
2016-01-05 11:08:35 +01:00
Simon Ho
5cf37aae5b
Merge pull request #809 from alFReD-NSH/patch-1
...
Fix broken code fencings in the docs
2015-12-28 16:40:33 -08:00
Farid Nouri Neshat
93c9f63b0d
Fix broken code fencings in the docs
2015-12-28 23:03:37 +08:00
Simon Ho
bffa4b6ab6
Merge pull request #806 from strongloop/revert-redis-test-fixes
...
Revert "Correct syntax for should and more"
2015-12-23 17:27:50 -08:00
Simon Ho
5d453b5038
Revert "Correct syntax for should and more"
...
This reverts commit 62de2ed69e
.
2015-12-23 15:41:16 -08:00
Simon Ho
2e22583fcc
Merge pull request #804 from strongloop/upgrade-shouldjs
...
Upgrade shouldjs to 8.0.2
2015-12-23 15:38:37 -08:00
Simon Ho
b63133d1d6
Fix test for shouldjs 8.0.2 upgrade
2015-12-22 15:03:50 -08:00
Simon Ho
edd2d301e5
Upgrade shouldjs to 8.0.2
2015-12-22 15:03:16 -08:00
Miroslav Bajtoš
990307f3d5
3.0.0-alpha.1
...
* Start development of 3.0 (Miroslav Bajtoš)
* Correct syntax for should and more (Amir Jafarian)
2015-12-22 13:15:52 +01:00
Miroslav Bajtoš
4319414fb2
Merge pull request #801 from strongloop/start-3.0
...
Start development of 3.0
2015-12-22 13:12:30 +01:00
Miroslav Bajtoš
d3e2520b1f
Start development of 3.0
...
- Update version number in package.json, publish under "next" tag
- Add 3.0-RELEASE-NOTES.md to incrementally build release docs
2015-12-22 12:48:06 +01:00
Miroslav Bajtoš
e9899a93cf
Enhance "persist" hook in DAO.updateOrCreate
...
Report `ctx.isNewInstance` when the connector provides this info.
2015-12-18 16:08:38 +01:00
Miroslav Bajtoš
fd9bef4aa7
Enhance "persisted" hook in DAO.updateAttributes
...
Add `isNewInstance:false` to the context reported by
DAO.updateAttributes()
2015-12-18 16:08:01 +01:00
Miroslav Bajtoš
3028329126
"loaded" hook in DAO.find: ctx.data, not instance
...
Fix the implementation od DAO.find to provide "ctx.data" to the
"loaded" hook.
2015-12-18 15:54:35 +01:00
Miroslav Bajtoš
89e4555bc0
describe-operation-hooks: add "loaded" hook
2015-12-18 15:42:36 +01:00
Amir-61
dfda177ff7
Merge pull request #792 from strongloop/Redis_test_failiures
...
Redis test failiures
2015-12-16 16:29:56 -05:00
Amir Jafarian
62de2ed69e
Correct syntax for should and more
...
This fixes lots of failures in connectors
2015-12-16 16:24:48 -05:00
Raymond Feng
1e9bbd2787
2.44.0
...
* Fix failing test for MongoDB connector (Simon Ho)
* Make automatic validation optional (Bert Casier)
* Add refresh script (Simon Ho)
* Add clean scripts (Simon Ho)
* Refactor Makefile (Simon Ho)
2015-12-13 11:20:22 -08:00
Simon Ho
4ce02cbcc1
Merge pull request #789 from strongloop/fix-failing-tests-for-mongodb
...
Fix failing test for MongoDB connector
2015-12-10 15:20:33 -08:00
Simon Ho
9cfda16194
Fix failing test for MongoDB connector
2015-12-09 12:58:21 -08:00
Miroslav Bajtoš
80c3bd9d41
Merge pull request #752 from ernie58/optionalValidation
...
make automatic validation optional
2015-12-04 17:03:28 +01:00
Bert Casier
0f3f27af51
Make automatic validation optional
...
Make automatic validation optional on all CRUD methods in a loopback
model. This can be done in 2 ways
- set `automaticValidation` in the model settings
- set `validate` on the options passed when calling the crud methods
The options take precedence on the model setting.
By default the automatic validation remains true to be backwards
compatible
2015-12-03 16:34:25 +01:00
Simon Ho
48695b711f
Merge pull request #776 from strongloop/update-helper-scripts
...
Update helper scripts
2015-11-27 17:59:09 -08:00