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
Candy
2d016fa090
Update ko translation file
2016-12-07 11:50:40 -05:00
Miroslav Bajtoš
779cf6a370
Honour allowExtendedOperators in "DAO.find"
...
Modify the coercion of filter.where to hounour "allowExtendedOperators"
and don't coerce property values of type object (extended operators).
2016-12-06 10:28:40 +01:00
Miroslav Bajtoš
80d2264bc9
Merge pull request #1179 from strongloop/update/eslint
...
Upgrade eslint & config to latest
2016-12-06 10:12:11 +01:00
Loay
64517b5b02
Merge pull request #1181 from strongloop/Mysql-CI-Fix
...
Fix MySql CI server Failure
2016-12-05 15:53:08 -05:00
Loay
e14c48719e
Fix MySql CI server Failure
2016-12-05 11:42:08 -05:00
Miroslav Bajtoš
0f7a567f18
Upgrade eslint & config to latest
...
- eslint ^3.11.1
- eslint-config-loopback: ^6.0.0
- fix linter errors (mostly no-undef)
2016-12-05 15:14:09 +01:00
Miroslav Bajtoš
0fea9ebef0
3.1.0
...
* Apply hasManyThrough filter on target model (jannyHou)
* Remove valid connectors from downstream ignores (Simon Ho)
* Add some connectors to ignoreList (jannyHou)
* Tests cleanup (Amir Jafarian)
* Fixed example for creating ValidationError (Boštjan Pišler)
* Correct tests for DAO.Create (Amir Jafarian)
* Add downstream ignore list config (Simon Ho)
* Remove duplicate "engines" from package.json (Miroslav Bajtoš)
* Drop support for Node v0.10 and v0.12 (Miroslav Bajtoš)
* Fix a test (Amir Jafarian)
* Add more robust OH tests for find method (Amir Jafarian)
* Add support for `loaded` hook (Amir Jafarian)
* Use imperative mood for tests (Amir Jafarian)
* Continue _coerce after logical operators (Heath Morrison)
* Make variable names more clear (Amir Jafarian)
* test/kvao: add connectorCapabilities options (Miroslav Bajtoš)
* Fix validateNumericality, nullCheck & add tests (CerealGuy)
* Add test for operation hooks (Amir Jafarian)
* Add ilike and nilike operators (Nick Duffy)
* Fix JSDoc issue (Amir Jafarian)
* Update ja translation file (Candy)
* Remove 3.0 RELEASE-NOTES (Miroslav Bajtoš)
* Fix linting errors (Simon Ho)
* Update validations.js (Rand McKinney)
* Update translation files - round#2 (Candy)
* Fix CI Failures in MySQL (Loay)
* Add code review fixups (Simon Ho)
* More descriptive name for model with shortid (Tim De Pauw)
* Polish PR (Tim De Pauw)
* Support {defaultFn: 'shortid'} (Tim De Pauw)
2016-12-05 10:18:01 +01:00
Amirali Jafarian
dd92b8d7e8
Merge pull request #1175 from BostjanPisler/patch-1
...
Fixed example for creating ValidationError
2016-12-03 10:59:12 -05:00
Kevin Delisle
4f2c16709b
Merge pull request #1153 from strongloop/fix/filter-on-related-model
...
Apply filter on related model
2016-12-01 13:19:51 -05:00
jannyHou
6c8e806bc8
Apply hasManyThrough filter on target model
2016-12-01 10:08:27 -05:00
Simon Ho
b95224bd83
Merge pull request #1178 from strongloop/update-downstream-ignore-list
...
Remove valid connectors from downstream ignore list
2016-11-30 18:24:11 -08:00
Simon Ho
edb8fa393e
Remove valid connectors from downstream ignores
...
- Remove Microsoft SQL connector
- Remove Oracle connector
2016-11-30 17:20:50 -08:00
Janny
2ccd666449
Merge pull request #1176 from strongloop/ci/ignore-list
...
Add some connectors to ignoreList
2016-11-30 15:09:43 -05:00
Amirali Jafarian
3ba7a5d1e8
Merge pull request #1172 from strongloop/tests_cleanup
...
Tests cleanup
2016-11-30 14:50:59 -05:00
jannyHou
b8fb9cded3
Add some connectors to ignoreList
2016-11-30 13:18:07 -05:00