Kevin Delisle
da323964f5
2.55.0
...
* Backport - Apply hasManyThrough filter on target model (#1404 ) (Janny)
2017-07-10 16:39:03 -04:00
Janny
2190f2510f
Backport - Apply hasManyThrough filter on target model ( #1404 )
...
* Apply hasManyThrough filter on target model
* Compatible with mongodb
2017-06-22 16:51:10 -04:00
Kevin Delisle
5a661a064a
2.54.2
...
* Fix assert as array does not guarantee order (Candy)
* Fixed empty objList in linkOneToMany fn (#1287 ) (somename85)
* remove equality value for user-defined id (#1292 ) (Matteo Padovano)
* override collection name for arangodb (#1274 ) (Matteo Padovano)
* fix missing findOrCreate error callback (Ryan Graham)
2017-06-13 12:37:24 -04:00
Candy
4ebc421c11
Merge pull request #1367 from strongloop/fix_testcase_order
...
Fix assert as array does not guarantee order
2017-05-23 13:45:42 -04:00
Candy
3e02e36314
Fix assert as array does not guarantee order
2017-05-05 16:14:17 -04:00
somename85
cbb3f6f98a
Fixed empty objList in linkOneToMany fn ( #1287 )
2017-04-05 10:27:34 -04:00
Matteo Padovano
93b89f3a51
remove equality value for user-defined id ( #1292 )
...
Some connector, like arangodb, not support id as Number.
When `forceId` is set to true and id is set `Model.isValid`
report error and the field id is not coerced.
2017-04-04 13:15:19 -04:00
Matteo Padovano
570da781b8
override collection name for arangodb ( #1274 )
...
Add collection name settings for arangodb database.
Required to pass common tests included in community connector
2017-03-25 18:22:59 -04:00
Ryan Graham
e9baea77e0
fix missing findOrCreate error callback
...
Closes #1226
Resolves #1223
Signed-off-by: Ryan Graham <r.m.graham@gmail.com>
2017-03-16 18:32:47 -07:00
Miroslav Bajtoš
7d45463a22
2.54.1
...
* fix incorrect engines property in package.json (Ryan Graham)
* Fix datasource to report connector-loading errors (Miroslav Bajtoš)
* Add two basic tests for "inq" operator (Miroslav Bajtoš)
2017-03-13 16:16:57 +01:00
Ryan Graham
f7af629e96
Merge pull request #1263 from strongloop/fix-engines-2.x
...
fix incorrect engines property in package.json
2017-03-03 13:08:59 -08:00
Ryan Graham
5cbc3bfae7
fix incorrect engines property in package.json
2017-03-03 12:56:56 -08:00
Miroslav Bajtoš
e7274a39dc
Merge pull request #1246 from strongloop/backport/fix-connector-loader
...
Fix datasource to report connector-loading errors
2017-02-06 11:51:22 +01:00
Miroslav Bajtoš
af1d959613
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-06 10:58:44 +01:00
Miroslav Bajtoš
cbc8c8efe0
Merge pull request #1234 from strongloop/backport/add-inq-tests
...
Add two basic tests for "inq" operator
2017-01-20 13:20:49 +01:00
Miroslav Bajtoš
5492e59207
Add two basic tests for "inq" operator
2017-01-20 13:04:28 +01:00
Raymond Feng
26d25d60fd
2.54.0
...
* Replace deprecated node-uuid with uuid module (Raymond Feng)
* Coerce array-like objects into arrays (Heath Morrison)
* Throw error when model relation name is trigger (Brian Schemp)
* Update package.json for LB3 release (Simon Ho)
2017-01-17 09:29:46 -08:00
Raymond Feng
e251f05914
Merge pull request #1227 from strongloop/replace-node-uuid
...
Replace deprecated node-uuid with uuid module
2017-01-17 09:28:54 -08:00
Raymond Feng
9bfab2b5a2
Replace deprecated node-uuid with uuid module
2017-01-17 09:07:21 -08:00
Miroslav Bajtoš
485ad3ee78
Merge pull request #1219 from strongloop/backport/array-coercion
...
Coerce array-like objects into arrays
2017-01-10 16:05:13 +01:00
Heath Morrison
c62ba21307
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 15:11:20 +01:00
Miroslav Bajtoš
553c9448ac
Merge pull request #1209 from strongloop/backport/invalid-model-relation-name-2x
...
Throw error when model relation name is trigger
2017-01-03 11:48:53 +01:00
Brian Schemp
d87e3bf8fb
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-03 10:41:07 +01:00
Miroslav Bajtoš
4544401368
Merge pull request #1199 from strongloop/release/2.x-lts
...
Update package.json for LB2-LTS release
2016-12-21 10:45:38 +01:00
Miroslav Bajtoš
5b836bdae0
2.53.1
...
* Fix HasOne.update to propagate options arg (Miroslav Bajtoš)
* Update ko translation file (Candy)
* Back-port fixes for linter errors from master (Miroslav Bajtoš)
* Update chinese simplified translation file (Candy)
* Apply style guide to test names (Amir Jafarian)
* Continue _coerce after logical operators (Heath Morrison)
* Fix manually (Amir Jafarian)
* Auto-update by eslint --fix (Amir Jafarian)
* update eslintrc according to master branch (Amir Jafarian)
* Update eslint (Amir Jafarian)
* test/kvao: add connectorCapabilities options (Miroslav Bajtoš)
* Update validations.js (Rand McKinney)
* Fix bug when near filter is used (Amir Jafarian)
2016-12-21 10:41:36 +01:00
Miroslav Bajtoš
71ef3dd095
Merge pull request #1201 from strongloop/fix/options-propagation-2x
...
Fix HasOne.update to propagate options arg
2016-12-21 10:40:29 +01:00
Miroslav Bajtoš
839a2c6c66
Fix HasOne.update to propagate options arg
2016-12-21 10:34:05 +01:00
Simon Ho
fae9fd69c0
Update package.json for LB3 release
...
- Use LTS tag for Juggler@2.x
2016-12-21 00:45:16 -08:00
Simon Ho
f6c054e3f4
Merge pull request #1188 from strongloop/add_translation6_2x
...
Update ko translation file
2016-12-07 09:49:09 -08:00
Candy
70b7b1533d
Update ko translation file
2016-12-07 12:01:59 -05:00
Miroslav Bajtoš
de70d746e8
Merge pull request #1183 from strongloop/fix/eslint-errors-2x
...
Back-port fixes for linter errors from master
2016-12-06 15:09:40 +01:00
Miroslav Bajtoš
f8da9783bc
Back-port fixes for linter errors from master
2016-12-06 10:47:27 +01:00
Candy
a1b9b42d11
Merge pull request #1162 from strongloop/add_translation4_2x
...
Update chinese simplified translation file
2016-11-10 15:19:39 -05:00
Candy
d7a5429f52
Update chinese simplified translation file
2016-11-10 12:55:53 -05:00
Amirali Jafarian
adcebab371
Merge pull request #1157 from strongloop/1150_backport
...
Apply style guide to test names
2016-10-28 09:28:56 -04:00
Amir Jafarian
69ce75c662
Apply style guide to test names
...
* Apply style guide to test names in test/loopback-dl.test.js
Backport of #1150
2016-10-27 18:02:26 -04:00
Amirali Jafarian
9923ddb29b
Merge pull request #1151 from strongloop/backport_1142
...
Continue _coerce after logical operators
2016-10-26 13:51:08 -04:00
Heath Morrison
552dfc8f24
Continue _coerce after logical operators
2016-10-26 10:14:43 -04:00
Amirali Jafarian
c96f471efd
Merge pull request #1146 from strongloop/2.x_eslint
...
2.x eslint
2016-10-19 21:24:56 -04:00
Amir Jafarian
e038b28e8c
Fix manually
2016-10-19 17:35:26 -04:00
Amir Jafarian
a1683fca59
Auto-update by eslint --fix
2016-10-19 17:04:05 -04:00
Amir Jafarian
6acedc3bae
update eslintrc according to master branch
2016-10-19 17:01:49 -04:00
Amir Jafarian
342eb866be
Update eslint
2016-10-19 16:59:06 -04:00
Miroslav Bajtoš
959a821be5
Merge pull request #1144 from strongloop/feature/parameterize-kvao-tests-2x
...
test/kvao: add connectorCapabilities options [2.x]
2016-10-19 13:40:28 +02:00
Miroslav Bajtoš
70a1552df8
test/kvao: add connectorCapabilities options
...
- canExpire
- canQueryTtl
- ttlPrecision
- canIterateKeys
- canIterateLargeKeySets
These options allow connectors to disable shared tests for features
that are not supported/implemented.
2016-10-19 12:33:21 +02:00
Amirali Jafarian
459fc93012
Merge pull request #1138 from strongloop/doc_validation
...
Update validations.js
2016-10-14 11:32:55 -04:00
Rand McKinney
09fbfe9410
Update validations.js
...
Add doc of allowNull options property per #372 .
Back-port 9a1ef08
2016-10-14 11:18:17 -04:00
Candy
e3d76f7f19
2.53.0
...
* Fix bug when near filter is used (Amir Jafarian)
2016-10-13 15:35:25 -04:00
Amirali Jafarian
8caf4c8327
Merge pull request #1108 from strongloop/fix_geo_2.x
...
Fix the bug when near filter is used
2016-10-13 10:39:15 -04:00
Miroslav Bajtoš
ff184aec16
2.52.0
...
* Support {defaultFn: 'shortid'} (#1110 ) (Simon Ho)
* Add ilike and nilike operators (#1136 ) (Simon Ho)
* Fix JSdoc (Amir Jafarian)
* Update ja translation file (Candy)
* Update translation files - round#2 (Candy)
* Add 'isNewInstance' for updateAttributes (Amir Jafarian)
* Add globalization strings (Amir Jafarian)
* Add docs for KVAO (Simon Ho)
* Skip test temporarily (Loay)
2016-10-13 10:13:27 +02:00