Commit Graph

2454 Commits

Author SHA1 Message Date
Anatoliy Chakkaev 67d186e26c Fix merged schema test 2013-04-05 02:14:16 +04:00
Anatoliy Chakkaev 4943feb230 Merge transactions 2013-04-05 02:13:14 +04:00
Anatoliy Chakkaev 43d1cbd39e Merge 2013-04-05 02:12:34 +04:00
Anatoliy Chakkaev fe4f72218b Merge branch 'master' of github1602:1602/jugglingdb 2013-04-04 22:25:22 +04:00
Anatoliy Chakkaev 029dfb6f3b Allow database.js to export function(compound) 2013-04-04 22:24:56 +04:00
Anatoliy Chakkaev 3a355851b6 ValidationError instead Error 2013-04-04 19:31:07 +04:00
Anatoliy Chakkaev f877dab288 Update README.md 2013-04-04 19:28:41 +04:00
Anatoliy Chakkaev da5d81f0fa 0.2.0-29 2013-04-04 14:34:49 +04:00
Anatoliy Chakkaev 704bc965bd Find on hasMany scope method 2013-04-04 00:46:41 +04:00
Anatoliy Chakkaev f56cbaa150 Added map-reduce and find methods to list 2013-04-03 23:52:19 +04:00
Anatoliy Chakkaev 97513a43e0 Merge branch 'master' of github1602:1602/jugglingdb 2013-04-01 20:15:37 +04:00
Anatoliy Chakkaev 6d9c2d4d49 0.2.0-28 2013-04-01 20:14:18 +04:00
Anatoliy Chakkaev be17763eca Return valid in case of sync validations 2013-04-01 20:13:55 +04:00
Anatoliy Chakkaev 18b901df59 Merge pull request #253 from anatoliychakkaev/master
Fixes and tests for validation
2013-04-01 09:11:30 -07:00
Anatoliy Chakkaev c5019ef354 Test update 2013-04-01 20:10:46 +04:00
Anatoliy Chakkaev b0a1ed3bed Fix validation issue 2013-04-01 20:08:22 +04:00
Anatoliy Chakkaev cf5ed5b877 Transactions 2013-04-01 17:49:12 +04:00
Anatoliy Chakkaev 6d1e47ceaf Schemas switching 2013-03-31 16:35:26 +04:00
Anatoliy Chakkaev 349931780a Automigrate before relation tests 2013-03-31 15:24:03 +04:00
Anatoliy Chakkaev e8077faa1c Update makefile
- describe workflow
- add workflow
- add help to each section
2013-03-31 14:54:48 +04:00
Anatoliy Chakkaev 61a005b623 Merge branch 'master' of github1602:1602/jugglingdb 2013-03-31 14:17:44 +04:00
Anatoliy Chakkaev f36372ba80 Add more love to tests, pr #249 2013-03-31 14:17:25 +04:00
Anatoliy Chakkaev 76c7fbd6ec Merge branch 'http' of github.com:NiKnight/jugglingdb 2013-03-31 14:08:38 +04:00
Anatoliy Chakkaev f8f72cc05e Merge pull request #250 from anatoliychakkaev/master
Batch create, misc
2013-03-31 03:08:18 -07:00
Anatoliy Chakkaev ab3f64a152 0.2.0-27 2013-03-31 13:41:12 +04:00
Anatoliy Chakkaev 6449f1ca72 Fix validations 2013-03-31 13:41:02 +04:00
Anatoliy Chakkaev 0776c51994 Batch create 2013-03-31 13:40:37 +04:00
Scott Nonnenberg 5655e8f4d2 tests only: no afterCreate/afterUpdate on errors
Added tests to ensure that the afterCreate/afterUpdate handlers are not run if the adapter returns an error.
2013-03-30 17:20:32 -07:00
Scott Nonnenberg 2ba862f5af afterDestroy not called on adapter error
Similar to afterCreate and afterUpdate, we don't want to run the afterXXXX handlers if the delete failed according to the adapter.
2013-03-30 17:18:47 -07:00
Anatoliy Chakkaev 1749782a4b 0.2.0-26 2013-03-30 21:10:32 +04:00
Anatoliy Chakkaev 224efba0c7 Ignore npm-debug.log 2013-03-30 21:10:20 +04:00
Anatoliy Chakkaev 5b429e8d41 Fix memory adapter: broken upd attrs 2013-03-30 21:07:16 +04:00
Anatoliy Chakkaev 2f048e79c0 Return instance of object when create 2013-03-30 21:06:09 +04:00
Anatoliy Chakkaev 13ac3cf088 Merge pull request #246 from anatoliychakkaev/master
Test amends for redis-hq
2013-03-29 01:55:10 -07:00
Anatoliy Chakkaev c1e3e78976 Turn off ignoring tests 2013-03-29 12:54:04 +04:00
Anatoliy Chakkaev 839791de2f Upd tests
- skipping
- hook up redis-hq
- some stuff should be moved to advanced-querying tests
2013-03-29 11:43:04 +04:00
Anatoliy Chakkaev e16219eb61 Merge pull request #245 from anatoliychakkaev/master
Hooks, validations, lifecycle
2013-03-28 04:30:58 -07:00
Anatoliy Chakkaev 5540750626 Validation amends
- rename event
- pass data to hooks
- always call hooks (even when no validations set up)
2013-03-28 15:29:11 +04:00
Anatoliy Chakkaev 7707b236ff Test hooks and object lifecycle as per #242 2013-03-28 15:27:50 +04:00
Anatoliy Chakkaev 589887715c Tests for data manipulation 2013-03-28 15:27:27 +04:00
Anatoliy Chakkaev 1f29064b3d Rewrite save and create for correct hooks order
Validation should be called first, and then all other actions
to allow modify data after validation (for example hash
password after validating length.

Issue #242
2013-03-28 15:26:51 +04:00
Anatoliy Chakkaev 48d78b71f6 Rename validation hooks
Name should be "beforeValidate" and "afterValidate"
to be consistent with other hook hames. This change doesnt break
backward compatibility
2013-03-28 15:23:31 +04:00
Anatoliy Chakkaev e441f38c4f Merge pull request #243 from mansuleman/master
Mostly Syntax errors for hooks
2013-03-27 15:55:56 -07:00
Mansur S bc18e435ae Update hooks.md
mostly syntax stuff
2013-03-28 02:46:37 +04:00
Mansur S 2cfa6f6c4f Merge pull request #1 from 1602/master
беру себе
2013-03-27 15:12:09 -07:00
Anatoliy Chakkaev b4813360c3 Upd node version for travis 2013-03-27 22:06:41 +04:00
Anatoliy Chakkaev e5f541c0b8 Uncomment tests 2013-03-27 22:00:50 +04:00
Anatoliy Chakkaev 2d6cc9aaee Mongodb tolerance 2013-03-27 21:53:07 +04:00
Anatoliy Chakkaev 928a366860 Enable growl 2013-03-27 21:12:29 +04:00
Anatoliy Chakkaev 6a9a1468fb Merge branch 'master' of github1602:1602/jugglingdb 2013-03-27 19:28:19 +04:00