
Save cascade change of nodes of with rails callbacks
Reported by Andreas Ronge | December 11th, 2011 @ 08:02 PM
Comments and changes to this ticket
-
Andreas Ronge December 11th, 2011 @ 08:15 PM
(from [1f3525b1add3be8bb659cddec35542c34ff30c82]) Temporary fix for saving/updating related nodes for depth > 2 for Neo4j::Rails::Model [#211]
I want to create more rspecs before I close this.
I guess that there might be problem update properties on the new nodes in a rails callback as well.
https://github.com/andreasronge/neo4j/commit/1f3525b1add3be8bb659cd... -
Dmytrii Nagirniak December 11th, 2011 @ 11:32 PM
Thanks for the tmp workaround.
But unfortunately (as you pointed out) I must remove the validation which I do need to have.
For now I'll disable it in my app and fail specs with the hope you'll be able to fix it soon.
Cheers.
-
Dmytrii Nagirniak December 12th, 2011 @ 02:13 AM
I've added a couple more specs where one is failing. https://github.com/andreasronge/neo4j/pull/88
Clearly there's an issue with validations.
-
Andreas Ronge December 12th, 2011 @ 04:01 PM
- State changed from new to resolved
(from [52f67f812806057b821d01d7ee1fb6277aae5c3d]) Made unpersisted relationships available in callbacks [#211 state:resolved]
Notice, if you add relationship to a model in a callback then the callback will be called twice.
https://github.com/andreasronge/neo4j/commit/52f67f812806057b821d01... -
Andreas Ronge December 12th, 2011 @ 06:12 PM
I will investigate and see if it's possible to avoid callbacks being called more then twice
-
Andreas Ronge December 12th, 2011 @ 07:08 PM
Done some more investigation.
The callbacks are called once except when call the constructor like this:company = Company.create(:primary_user => u1) # will generate to callbacks to validate
I guess the user tries to validate all its related relationships, and the company does the same.
It's a different bug -
Andreas Ronge August 14th, 2012 @ 05:48 PM
(from [5b733758f2a30853683b5d147f9acfcbcedc6f00]) Upgrade to use Neo4j 1.8 Jars closes #211 https://github.com/andreasronge/neo4j/commit/5b733758f2a30853683b5d...
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
Neo4j.rb is a graph database framework for JRuby.
It provides:
* Mapping of ruby objects to nodes in networks rather than in tables.
* Storage of ruby object to a file system.
* Fast traversal of relationships between nodes in a hugh node space.
* Transaction with rollbacks support.
* Indexing and quering of ruby objects.
* Integration with Rails