Commit Graph

1203 Commits

Author SHA1 Message Date
Raymond Feng 8360576c40 Attach models to the data source 2013-12-04 15:24:53 -08:00
Raymond Feng 52d2c8425f Make all methods proxied for DAO 2013-12-04 13:44:25 -08:00
Ritchie Martori 2bc8d21969 Merge tag 'v1.2.5'
1.2.5
2013-12-04 11:41:21 -08:00
Ritchie Martori e2cd20d73f Merge branch 'release/1.2.5' into production 2013-12-04 11:41:00 -08:00
Ritchie Martori 9a549cfe5d Bump version 2013-12-04 11:40:50 -08:00
Raymond Feng abe6d2bb22 Add more tests to address the PR comments 2013-12-04 10:00:33 -08:00
Raymond Feng ed6d8839ba Add a test case 2013-12-03 21:27:46 -08:00
Raymond Feng a953ba13de Clone shared methods so that they can be customized per model 2013-12-03 21:14:12 -08:00
Miroslav Bajtoš 9a5241e8e8 Merge pull request #45 from strongloop/feature/improve-validation-error-properties
Improve properties of ValidationError
2013-12-02 12:36:36 -08:00
Miroslav Bajtos b5e0035d73 Improve properties of ValidationError
- change `statusCode` from 400 to 422
- nest `context` and `codes` inside `details`
- add `details.messages`
- reword the main error message

Remove the call to Error's constructor from ValidationError constructor,
because it's a no-op - Error's constructor creates a new
instance when called via `.call()`.
2013-12-02 21:35:47 +01:00
Raymond Feng 2df0c4b21d Coerce types for values of where clause 2013-11-29 14:45:50 -08:00
Rand McKinney 4c0c852c20 Removed most text that's in docs.strongloop.com 2013-11-25 17:03:56 -08:00
Miroslav Bajtoš 8acb4053ab Merge pull request #44 from strongloop/feature/get-unknown-id-should-return-404
REST call of DataAccessObject.findById returns 404
2013-11-21 10:09:04 -08:00
Miroslav Bajtos f7c48c0d72 REST call of DataAccessObject.findById returns 404
Modify the remoting configuration of `DataAccessObject.findById()`
and add a `rest.before` handler that converts `null` to 404 error.

The change is covered by a test in loopback project.
2013-11-21 19:05:52 +01:00
Miroslav Bajtos e028d44271 Add .jshintignore
Ignored paths:
  node_modules
  support/nodeunit
2013-11-21 19:05:19 +01:00
Raymond Feng ca9de9665d Merge tag 'v1.2.4'
1.2.4
2013-11-20 11:11:33 -08:00
Raymond Feng ae9ebdc562 Merge branch 'release/1.2.4' into production 2013-11-20 11:11:27 -08:00
Raymond Feng c55a5153a5 Bump version 2013-11-20 11:10:40 -08:00
Raymond Feng 88b2d9945c Merge pull request #43 from strongloop/feature/fix-regression
Add properties/methods to DataSource from ModelBuilder
2013-11-20 11:09:29 -08:00
Raymond Feng 8d9d73efff Add properties/methods to DataSource from ModelBuilder 2013-11-20 10:56:48 -08:00
Rand McKinney ec93fed2ed Update docs.json
Add subtitles for model and type objects.
2013-11-19 17:51:05 -08:00
Rand McKinney 95700a526a Update docs.json
Remove non-API docs.
2013-11-19 17:38:50 -08:00
Raymond Feng b284beabd8 Merge tag 'v1.2.3'
v1.2.3
2013-11-19 11:02:33 -08:00
Raymond Feng ed8aa854c5 Merge branch 'release/1.2.3' into production 2013-11-19 11:02:15 -08:00
Raymond Feng 1818be1667 Bump the version 2013-11-19 10:58:13 -08:00
Raymond Feng a53eac5307 Merge pull request #42 from strongloop/feature/fix-ds-attach
Fix the model attachment to data source
2013-11-19 10:56:55 -08:00
Raymond Feng 303be5882b Merge pull request #41 from strongloop/feature/rename-all-to-find
Replace all with find to make it consistent
2013-11-19 10:50:26 -08:00
Raymond Feng 2bcdea76f5 Fix the model attachment to data source 2013-11-19 10:49:54 -08:00
Raymond Feng 05eae4aa3e Replace all with find to make it consistent 2013-11-18 11:39:07 -08:00
Ritchie Martori 6eb7f1939c Merge tag 'v1.2.2'
1.2.2
2013-11-18 11:30:41 -08:00
Ritchie Martori 39e08b8445 Merge branch 'release/1.2.2' into production 2013-11-18 11:30:11 -08:00
Raymond Feng 3354ef72c7 Merge pull request #40 from strongloop/feature/rename-association
Rename association to relation
2013-11-18 11:26:38 -08:00
Raymond Feng 995a2139c8 Rename association to relation 2013-11-15 20:29:20 -08:00
Raymond Feng 31c5504050 Bump version and remove blanket 2013-11-15 13:54:29 -08:00
Raymond Feng 7f6398f4c5 Fix the reference to modelBuilder/dataSource 2013-11-15 13:54:15 -08:00
Raymond Feng e51c8971f9 Merge pull request #39 from strongloop/model-builder
Separate the modelBuilder ref from dataSource
2013-11-15 13:31:39 -08:00
Raymond Feng b5e0f14249 Separate the modelBuilder ref from dataSource 2013-11-15 11:12:33 -08:00
Ryan Graham 32fbc1aa9f Wrap README.md at 78 characters where possible 2013-11-15 09:55:38 -08:00
Raymond Feng a3d66b65ef Bump version 2013-11-13 17:27:55 -08:00
Raymond Feng 13659ca19d Merge pull request #38 from strongloop/refactor-ds
Remove inheritence from DataSource to ModelBuilder
2013-11-13 10:32:06 -08:00
Raymond Feng 526d126e41 Fix the relation lazy setup 2013-11-11 22:06:43 -08:00
Raymond Feng 275bb6ffac Stop overwriting the static methods 2013-11-11 22:05:50 -08:00
Raymond Feng ec7f79e935 Ensure the model is attached to DataSource for relations 2013-11-09 22:16:32 -08:00
Raymond Feng 7aa2eefec4 Remove inheritence from DataSource to ModelBuilder 2013-11-08 17:13:00 -08:00
Raymond Feng 4c75bd4575 Update to 1.2.0 2013-11-08 09:14:55 -08:00
Ritchie Martori 6e7ea325e3 Add travis 2013-11-08 09:14:25 -08:00
Raymond Feng 121a6a744b Merge pull request #37 from strongloop/super-class
Allow settings.base to specify the base model
2013-11-08 09:11:55 -08:00
Raymond Feng 92d369e609 Add more assertions 2013-11-08 09:02:17 -08:00
Raymond Feng 0b899b0542 Allow settings.base to specify the base model 2013-11-07 17:11:17 -08:00
Raymond Feng 8feb531680 Merge pull request #36 from strongloop/redefine-model
Refactor the relation handling and enable it with attach
2013-11-07 13:33:59 -08:00