Commit Graph

1454 Commits

Author SHA1 Message Date
Raymond Feng cdf9956867 Fix JS doc for private methods 2014-06-04 14:02:55 -07:00
Miroslav Bajtoš 19eb3361e6 Merge remote-tracking branch 'origin/production' into production 2014-06-03 17:47:28 +02:00
Miroslav Bajtoš 9a03450e76 Merge pull request #127 from strongloop/feature/refactor-connector-base
[2.0] Feature/refactor connector base
2014-06-03 17:46:15 +02:00
Raymond Feng 42c1ad3dca Normalize/validate the query filter object 2014-06-02 15:57:44 -07:00
Raymond Feng 3e8284d1ee Use connector's buildWhere to implement count 2014-06-02 15:57:06 -07:00
Rand McKinney 653aab856c JSDoc improvements
Improve createModel doc, Fix some other minor issues.
2014-05-29 15:33:01 -07:00
Miroslav Bajtoš d8b4f5833a ModelBuilder: add `prototype.defineValueType`
Add a shortcut for registering a new value type.

The current implementation registers the type in the singleton registry
`ModelBuilder.schemaTypes`.

The API should allow us to to change the implementation to register
the type in the scope of ModelBuilder instance only.
2014-05-29 11:57:59 +02:00
Miroslav Bajtoš a86648ed7b Replace connector base with loopback-connector
Remove references to Connector and BaseSQL, connectors should require()
loopback-connector instead of loopback-datasource-juggler.
2014-05-29 11:57:49 +02:00
Miroslav Bajtoš 42a7ed5d20 Merge branch 'feature/remove-unsupported-connectors' into 2.0
Close #120
2014-05-28 19:50:13 +02:00
Miroslav Bajtoš 9b33d9a274 Remove unsupported connectors
- cradle
 - http
 - neo4j
 - riak
2014-05-28 19:49:07 +02:00
Raymond Feng ca0c82ca4e Merge tag 'v1.5.4'
1.5.4
2014-05-27 22:28:05 -07:00
Raymond Feng 506f8cccaf Merge branch 'release/1.5.4' into production 2014-05-27 22:27:58 -07:00
Raymond Feng 01410c3495 Bump version 2014-05-27 22:25:42 -07:00
Raymond Feng 6662bde84d Bump version 2014-05-27 22:25:42 -07:00
Raymond Feng 7a087f3583 Keep undefined/null values for the array type
This allows connectors to distinguish between empty array and
undefined/null. For example, mongodb will not override existing array
properties if the value is undefined.
2014-05-27 22:25:42 -07:00
crandmck e2789134b0 Remove JSDocs for scopeMethods.add(acInst) and scopeMethods.remove(acInst) 2014-05-27 22:25:42 -07:00
crandmck ea263f86ee Copy info from api-model.md to JSDoc 2014-05-27 22:25:42 -07:00
Miroslav Bajtoš dc3d2233e7 1.5.2 2014-05-27 22:25:42 -07:00
Miroslav Bajtoš 438df25d8e validations: include more details in `err.message`
Modify ValidationError constructor to include the model name and
a human-readable representation of the validation errors (messages)
in the error message.

Before this change, the message was pointing the reader
to `err.details`.  Most frameworks (e.g. express, mocha) log only
`err.message` but not other error properties, thus the logs were
rather unhelpful.

Example of the new error message:

    The `User` instance is not valid. Details: `name` can't be blank.
2014-05-27 22:25:42 -07:00
Raymond Feng 4abb4d2fdf Bump version 2014-05-27 22:25:42 -07:00
Raymond Feng b43cae0667 Add a path to show customer.orders(query, cb) 2014-05-27 22:25:42 -07:00
Raymond Feng f52e287c82 Add support for logical operator (AND/OR) 2014-05-27 22:25:42 -07:00
Raymond Feng fb4dfb6f62 Bump version 2014-05-27 22:03:41 -07:00
Raymond Feng fc6c224599 Bump version 2014-05-27 21:59:21 -07:00
Raymond Feng 97b1501c1f Keep undefined/null values for the array type
This allows connectors to distinguish between empty array and
undefined/null. For example, mongodb will not override existing array
properties if the value is undefined.
2014-05-27 21:59:21 -07:00
crandmck 83979cad7a Remove JSDocs for scopeMethods.add(acInst) and scopeMethods.remove(acInst) 2014-05-27 21:59:21 -07:00
crandmck 835708d25d Copy info from api-model.md to JSDoc 2014-05-27 21:59:21 -07:00
Miroslav Bajtoš 8e60915061 1.5.2 2014-05-27 21:59:21 -07:00
Miroslav Bajtoš 65fa7a1c00 validations: include more details in `err.message`
Modify ValidationError constructor to include the model name and
a human-readable representation of the validation errors (messages)
in the error message.

Before this change, the message was pointing the reader
to `err.details`.  Most frameworks (e.g. express, mocha) log only
`err.message` but not other error properties, thus the logs were
rather unhelpful.

Example of the new error message:

    The `User` instance is not valid. Details: `name` can't be blank.
2014-05-27 21:59:21 -07:00
Ritchie Martori 6261eba266 2.0.0-beta1 2014-05-27 16:08:05 -07:00
Raymond Feng aa4b5c722a Merge pull request #126 from strongloop/feature/fix-array-update
Keep undefined values for the array type
2014-05-27 14:41:44 -07:00
Raymond Feng 050353f11d Keep undefined/null values for the array type
This allows connectors to distinguish between empty array and
undefined/null. For example, mongodb will not override existing array
properties if the value is undefined.
2014-05-27 13:18:21 -07:00
crandmck 5937f0c0d5 Remove JSDocs for scopeMethods.add(acInst) and scopeMethods.remove(acInst) 2014-05-22 15:02:57 -07:00
crandmck 00226dde0d Copy info from api-model.md to JSDoc 2014-05-21 17:50:44 -07:00
Ritchie Martori 104ba1aab8 1.6.0 2014-05-20 13:59:53 -07:00
Ritchie Martori 69b0355fa7 Merge pull request #115 from strongloop/refactor/remove-remoting
Remove remoting metadata
2014-05-20 13:59:33 -07:00
Ritchie Martori 8849a4b49a !fixup Remove additional remoting 2014-05-20 13:48:23 -07:00
Ritchie Martori e724efd95f !fixup Require ._delegate for fn override 2014-05-20 13:44:25 -07:00
Ritchie Martori 072999775e Remove relation remoting 2014-05-20 12:47:14 -07:00
Miroslav Bajtoš a85d374016 Merge tag 'v1.5.2'
v1.5.2
2014-05-20 18:00:18 +02:00
Miroslav Bajtoš f5d596d527 Merge branch 'release/1.5.2' into production 2014-05-20 17:59:24 +02:00
Miroslav Bajtoš 934b5a3fa9 1.5.2 2014-05-20 17:59:05 +02:00
Miroslav Bajtoš 8b29ad0974 Merge pull request #116 from strongloop/feature/improve-validation-error-toString
validations: include more details in `err.message`
2014-05-20 17:46:26 +02:00
Miroslav Bajtoš 05410d56e1 validations: include more details in `err.message`
Modify ValidationError constructor to include the model name and
a human-readable representation of the validation errors (messages)
in the error message.

Before this change, the message was pointing the reader
to `err.details`.  Most frameworks (e.g. express, mocha) log only
`err.message` but not other error properties, thus the logs were
rather unhelpful.

Example of the new error message:

    The `User` instance is not valid. Details: `name` can't be blank.
2014-05-20 11:00:19 +02:00
Ritchie Martori dc9c9b2bd4 Remove remoting metadata 2014-05-16 12:33:17 -07:00
Raymond Feng a4af82a2c9 Merge tag 'v1.5.1'
1.5.1
2014-05-16 10:08:01 -07:00
Raymond Feng 929807a92c Merge branch 'release/1.5.1' into production 2014-05-16 10:07:55 -07:00
Raymond Feng a9a7ab1315 Bump version 2014-05-16 08:52:25 -07:00
Raymond Feng 7c7855ddc9 Add a path to show customer.orders(query, cb) 2014-05-16 08:50:58 -07:00
Raymond Feng 981185f4c0 Merge pull request #112 from strongloop/feature/logical-operator
Add support for logical operator (AND/OR)
2014-05-16 08:46:25 -07:00