jannyHou
8b1100e3ed
Add test case for all connectors
2017-02-14 14:01:44 -05:00
Loay
22cf48bd21
Merge pull request #1245 from strongloop/duplicate-code
...
Add proper statusCode for duplicate
2017-02-09 10:06:30 -05:00
Loay
9541bb5f15
Add proper statusCode for duplicate
2017-02-08 23:52:14 -05:00
Miroslav Bajtoš
ca406b6d24
Merge pull request #1241 from strongloop/fix/connector-loader
...
Fix datasource to report connector-loading errors
2017-02-06 10:56:50 +01:00
Miroslav Bajtoš
e8a977f55b
Fix datasource to report connector-loading errors
...
Before this change, when resolving full connector path, all errors were
ignored. As a result, when the connector was installed but not
correctly built (e.g. loopback-connector-db2 which uses a native addon),
a very confusing message was reported by LoopBack.
In this commit, I am fixing the code handling `require()` errors
to ignore only MODULE_NOT_FOUND errors that contain the name
of the required module.
2017-02-03 20:29:11 +01:00
Loay
ad9934159b
Merge pull request #1240 from strongloop/replaceById-test
...
Ensure replaceById returns 404 when id not found
2017-02-01 13:11:26 -05:00
Loay
4bd03a25f2
Ensure replaceById returns 404 when id not found
2017-02-01 11:57:54 -05:00
Miroslav Bajtoš
c509a9f7fe
Merge pull request #1242 from strongloop/upgrade/eslint-config
...
Upgrade eslint-config, fix new violations
2017-02-01 16:34:32 +01:00
Miroslav Bajtoš
d809260799
Upgrade eslint-config, fix new violations
2017-02-01 12:45:56 +01:00
Miroslav Bajtoš
121afda79b
Fix option propagation in relation methods
...
- EmbedsMany.prototype.remove
- EmbedsMany.prototype.add
2017-01-31 16:10:56 +01:00
Miroslav Bajtoš
b781dae339
Merge pull request #979 from mrbatista/master
...
Refactor logic of options.allowExtendedOperators
2017-01-30 14:35:44 +01:00
Matteo Padovano
733ad1a024
Refactor logic of options.allowExtendedOperators
...
Implement logic to allowExtendedOperators options
per request, per Model and Datasource.
2017-01-30 00:05:56 +01:00
Loay
023856cbe9
Merge pull request #1210 from strongloop/forceId-true
...
Fix forceId validation error
2017-01-27 00:08:28 -05:00
Loay
44a5a7ad81
Fix forceId validation error
2017-01-26 16:52:19 -05:00
Miroslav Bajtoš
ae07480f45
Merge pull request #1232 from strongloop/add-inq-tests
...
Add two basic tests for "inq" operator
2017-01-20 12:58:50 +01:00
Raymond Feng
cf7f05db8b
3.2.0
...
* Fix should dep (Raymond Feng)
* Upgrade dependencies to remove npm install warnings (Raymond Feng)
* Add missing return for KVAO delete all (Simon Ho)
* Add missing return in KVAO keys test suite (Simon Ho)
* Detect deleteAll support in KVAO tests (Simon Ho)
* Coerce array-like objects into arrays (Heath Morrison)
* Refactor flush to deleteAll (Simon Ho)
* Upgrade eslint-config to 7.x (Miroslav Bajtoš)
* Throw error when model relation name is trigger (Brian Schemp)
* Add flush operation to KVAO (Simon Ho)
* Fix block padding (Siddhi Pai)
2017-01-19 10:28:38 -08:00
Raymond Feng
315c2774cb
Fix should dep
2017-01-19 10:27:48 -08:00
Raymond Feng
6d7ae88a94
Merge pull request #1228 from strongloop/upgrade-deps
...
Upgrade dependencies to remove npm install warnings
2017-01-19 10:24:57 -08:00
Miroslav Bajtoš
b5d03b845f
Add two basic tests for "inq" operator
2017-01-19 13:33:39 +01:00
Raymond Feng
0c76bd21b9
Upgrade dependencies to remove npm install warnings
2017-01-17 09:45:51 -08:00
Simon Ho
5a7283386c
Merge pull request #1222 from strongloop/fix-missing-return-for-kvao-delete-all
...
Add missing return for KVAO delete all
2017-01-13 00:44:56 -08:00
Simon Ho
9a0d34a7a3
Add missing return for KVAO delete all
2017-01-13 00:19:10 -08:00
Simon Ho
22f2abf225
Merge pull request #1220 from strongloop/add-kvao-test-missing-return
...
Add missing return in KVAO keys test suite
2017-01-11 20:59:26 -08:00
Simon Ho
188fb10c96
Add missing return in KVAO keys test suite
2017-01-11 19:35:37 -08:00
Simon Ho
736a4ad185
Merge pull request #1218 from strongloop/clear-cache-if-delete-all-supported
...
Detect deleteAll support in KVAO tests
2017-01-11 19:31:22 -08:00
Simon Ho
0b93c5c6dd
Detect deleteAll support in KVAO tests
...
Clear CacheItem data between tests if connector supports `deleteAll`.
Tests fail with 501 if this check is not used.
2017-01-11 16:30:33 -08:00
Miroslav Bajtoš
b530ec2a65
Merge pull request #1143 from doublemarked/hm/coerce-array-like-objects-as-arrays
...
Coercing conditions with array-like objects into arrays
2017-01-10 15:03:13 +01:00
Heath Morrison
2377792c22
Coerce array-like objects into arrays
...
The query-string parser used by express
https://github.com/ljharb/qs#parsing-arrays
limits the size of arrays that are created from query strings to 20
items. Arrays larger than that are converted to objects using numeric
indices.
This commit fixes the coercion algorithm used by queries to
treat number-indexed objects as arrays. We still maintain a strict
understanding of an "array-like object" to limit the opportunity for
subtle bugs. In particular, the presence of non-index keys is an
indication that the object was not intended to be interpreted as
an array.
2017-01-10 14:46:41 +01:00
Simon Ho
6f2a075bee
Merge pull request #1214 from strongloop/refactor/kvao-flush
...
Refactor/kvao flush to deleteAll
2017-01-09 18:31:50 -08:00
Simon Ho
2320df1227
Refactor flush to deleteAll
...
- Rename `flush` to `deleteAll`
- Add `delete`
- Detect `delete/deleteAll` before running downstream test suites
- Fall back to unoptimized `deleteAll` when connector does not support
`deleteAll` but supports `delete`
- Return 501 for connectors not supporting `delete` or `deleteAll`
2017-01-09 14:53:34 -08:00
Miroslav Bajtoš
1e0564048b
Merge pull request #1215 from strongloop/upgrade-eslint
...
Upgrade eslint-config to 7.x
2017-01-06 14:13:05 +01:00
Miroslav Bajtoš
454bf93aaf
Upgrade eslint-config to 7.x
...
Also upgrade eslint itself to 3.x.
2017-01-06 13:33:54 +01:00
Miroslav Bajtoš
66c54a9646
Merge pull request #1204 from schempy/fix/invalid-model-relation-name
...
Throw error when model relation name is trigger
2017-01-03 10:40:13 +01:00
Brian Schemp
cd94be2fb8
Throw error when model relation name is trigger
...
Defining a model relation with the name "trigger" causes the model not
able to insert records. No error is thrown when a model relation with
the name "trigger" is defined. Adding a check for the model relation
name "trigger" will now throw an error.
2017-01-02 17:09:14 +01:00
Simon Ho
79ec4211ab
Merge pull request #1206 from strongloop/add-flush-op-to-kvao
...
Add flush operation to KVAO
2016-12-30 22:43:10 -08:00
Simon Ho
f38709b7cb
Add flush operation to KVAO
...
Used to delete all keys (and values) associated to the current model.
2016-12-30 18:06:36 -08:00
Simon Ho
d095cc1161
Merge pull request #1194 from strongloop/1237/fix-block-padding
...
Fix block padding
2016-12-21 14:17:42 -08:00
Miroslav Bajtoš
0ad75bd93e
3.1.1
...
* Update package.json for LB3 release (Simon Ho)
* Fix eslint errors reported by the latest eslint (Miroslav Bajtoš)
* Fix HasOne.update to propagate options arg (Miroslav Bajtoš)
* Fix linter errors for CI (Simon Ho)
* Replicate .github from loopback repo (Siddhi Pai)
* Update ko translation file (Candy)
* Honour allowExtendedOperators in "DAO.find" (Miroslav Bajtoš)
* Fix MySql CI server Failure (Loay)
* Upgrade eslint & config to latest (Miroslav Bajtoš)
2016-12-21 16:04:41 +01:00
Miroslav Bajtoš
05f10c859e
Merge pull request #1198 from strongloop/release/3.x
...
Prepare for 3.x GA
2016-12-21 10:49:55 +01:00
Simon Ho
b60e09756d
Update package.json for LB3 release
2016-12-21 10:44:55 +01:00
Miroslav Bajtoš
a9a4fa498d
Merge pull request #1197 from strongloop/fix/options-propagation
...
Fix HasOne.update to propagate options arg
2016-12-21 10:32:45 +01:00
Miroslav Bajtoš
2ca081216b
Fix eslint errors reported by the latest eslint
2016-12-20 17:37:54 +01:00
Miroslav Bajtoš
0d862890e0
Fix HasOne.update to propagate options arg
2016-12-20 11:40:22 +01:00
Siddhi Pai
3baa61590e
Fix block padding
...
* Remove test/.eslintrc
* run eslint . --fix
2016-12-13 16:05:50 -08:00
Simon Ho
d99dca6fc0
Merge pull request #1191 from strongloop/fix-linter-errors
...
Fix linter errors for CI
2016-12-09 18:35:52 -08:00
Simon Ho
c5e905f5c4
Fix linter errors for CI
2016-12-09 18:13:58 -08:00
Simon Ho
4a4ba74114
Merge pull request #1184 from strongloop/update-support-URL
...
Replicate .github from loopback repo
2016-12-09 17:44:18 -08:00
Siddhi Pai
d45943130c
Replicate .github from loopback repo
2016-12-09 17:22:45 -08:00
Miroslav Bajtoš
29c60c7b42
Merge pull request #1180 from strongloop/feature/extended-operators-in-query
...
Honour allowExtendedOperators in "DAO.find"
2016-12-08 09:56:54 +01:00
Simon Ho
1b60245298
Merge pull request #1187 from strongloop/add_translation8
...
Update ko translation file
2016-12-07 09:46:29 -08:00