siddhipai
539b317ccb
Merge pull request #1251 from strongloop/replicate-issue-template
...
Replicate issue_template from loopback repo
2017-03-28 14:54:15 -07:00
Vincent Wen
8c93710963
make geo nearFilter support minDistance ( #987 )
2017-03-26 10:04:16 -04:00
Mikhail
68b93e1074
Disallow regexp string in arrays for coerce ( #1279 )
...
Disallow regexp arrays for coerce
2017-03-22 20:29:01 -04:00
Clark Wang
c99441247c
Fix - `_targetClass` on scope function ( #1280 )
...
Fix `_targetClass` on scope function when using hasManyThrough
relation with customized relation names and foreignKey/keyThrough.
This bug is cause by `_targetClass` uses the camel-case of
`relationName`(e.g.: if `relationName` is `bbb`, `targetClass`
would be `Bbb`), which is not exists.
This will also suppress "not exposed" warnings when generating
angular sdk, and generate end-points for this scope.
2017-03-22 17:06:36 -04:00
Nick Oikonomou
b3a7bc521d
Fixes #1275 . `Include` filter transforms fields property into array. ( #1276 )
...
* Fixes#1275 Transform *fields* property into array
`Include` filter takes into consideration string property
'fields' and transforms it into an array containing this string.
* Added error handling for `include` filter.
* ExecTasksWithInterLeave now contains a try-catch block
in order to catch any unexpected errors.
* LinkManyToMany now checks if *modelToIdName* exists on
*target* before continuing.
* Added unit test for *include* with string fields
2017-03-22 10:03:36 -04:00
Dimitris
77c4cd7b01
Included models from include operations do not change defined `strict` model option ( #1259 )
...
* Fixes #1252
* Allowed setting of dynamic relation property
* Fixed tests to also consider other connectors
2017-03-20 19:48:57 -04:00
Dimitris
2bfc769c4d
Using a filter with exclusion of a non existent property, removes an existing one ( #1257 )
...
* #fixes 1256
* Added missing check for returned error
* Fixed test to check proper fields in each doc
2017-03-20 19:18:48 -04:00
Sakib Hasan
3c7e398f6f
Clean version of PR 1272 ( #1273 )
...
Able to filter out the properties given to a model instead
Of throwing an error
2017-03-20 18:10:01 -04:00
Rand McKinney
f1ef519a5c
Merge pull request #1236 from strongloop/update-readme
...
Update README.md
2017-03-20 14:54:39 -07:00
Siddhi Pai
564bbfae12
Replicate new issue_template from loopback
2017-03-20 14:36:59 -04:00
Siddhi Pai
ba655ddb8a
Replicate issue_template from loopback repo
2017-03-20 14:36:59 -04:00
Rand McKinney
aa917089b9
Update README.md
2017-03-20 14:33:17 -04:00
Diana Lau
cc3fb8e3f1
Merge pull request #1270 from strongloop/add-error-callback
...
FindOrCreate missing error callback
2017-03-20 15:42:20 +00:00
Diana Lau
eb2cb315e6
FindOrCreate missing error callback
2017-03-20 10:32:09 -04:00
Dimitris
6f8ecfdf5c
Fixes #1230 coerceArray converts empty Objects ( #1269 )
2017-03-20 10:05:11 -04:00
Matteo Padovano
1f52d23d67
override collection name for arangodb ( #1243 )
...
Add collection name settings for arangodb database.
Required to pass common tests included in community connector
2017-03-20 09:01:16 -04:00
Rémi Bèges
55128f0c9b
Add test coverage for `validatesInclusionOf` ( #1249 )
...
* Fix indentation
* Improve tests formatting
* Use instanceof and should.match
2017-03-18 06:50:10 -04:00
Kevin Delisle
edc1fd3d83
Merge pull request #1266 from strongloop/catch-error-on-updateAttribute
...
dao: catch sync errors on setAttributes
2017-03-16 18:38:10 -04:00
Kevin Delisle
248aaf0541
dao: catch errors on Model creation in find
2017-03-16 17:26:53 -04:00
Kevin Delisle
a6c5802940
dao: catch sync errors on setAttributes
...
Wrap inst.setAttributes in try-catch to prevent synchronous errors
from crashing the application.
2017-03-16 17:26:53 -04:00
Loay
1808bd3703
Merge pull request #1267 from strongloop/translationTypo
...
Update error message
2017-03-16 11:18:24 -04:00
Loay
46318d2094
Update error message
2017-03-16 11:02:08 -04:00
Loay
15209b87b9
Merge pull request #1265 from strongloop/orderQuery
...
Fix Order query test case
2017-03-15 15:24:25 -04:00
Loay
557a2e48d2
Fix Order query test case
2017-03-15 14:45:36 -04:00
dhmlau
33d0475d82
Merge pull request #1264 from strongloop/doc/discovermodeldefinitions-options
...
doc: Add option for discoverModelDefinitions
2017-03-15 02:40:54 +00:00
jannyHou
7373e1ae31
Doc:Add option for discoverModelDefinitions
2017-03-14 21:51:30 -04:00
Rémi Bèges
11c2a19ad2
Add tests for validatesExclusionOf ( #1248 )
2017-03-08 10:24:18 -05:00
Kevin Delisle
76c73d55d2
Merge pull request #1196 from Overdrivr/improve-id-update-error-message
...
Fix error message formatting when trying to update an id property
2017-02-16 13:38:41 -05:00
Rémi Bèges
9afaa9a66e
Fix id update error message formatting
...
Error is raised when trying to update an id property while forceId
is set to true
2017-02-15 18:26:32 +01:00
Janny
0cf863a483
Merge pull request #1239 from strongloop/feature/query-nested-property
...
Support query nested properties
2017-02-14 16:37:27 -05:00
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