-
Notifications
You must be signed in to change notification settings - Fork 263
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
multipath save #366
multipath save #366
Conversation
( I added output of "BEFORE / AFTER" in the test for debugging purpose ) |
@tstirrat I'm really not sure if it is the way to go. I'm saving the previously serialized object to be able to do the diff when updating, but this also needs to be maintained accross the different update ( which anyway happen only in _handleChildUpdate ). Feedback would be appreciated, if you know a better way. There is also one test ( last one ) failing. I'm not sure what is the message is about. At the very least the serialisation seems to be OK. |
57afe70
to
8f5c639
Compare
well, seems like I screwed the commit, I will push again on monday. |
8f5c639
to
57afe70
Compare
So, for my project ( which is not using embedded record ) everything works super fine. But, the last test is failing, which is using embedded record.
The errror is explicit, I'm not sure there is away to fix that, except doing multiple update in this particular case. Any thought @tstirrat ? |
@tstirrat ping. |
@jamesdaniels and I are going to revisit this next week. |
Test are not passing, because I think they are not valid in the way we want this thing to work :
To destroy a link you need to set null to it, and some of the tests are just emptying the relation object.
For example :
Cannot work, at it will either require comment to be set to null :
comments:null
Or all elements to be set to null:
The other problem, which I'm not sure I can trace back ( lacking time ) is this error :
I think it is "internal" checking.
As an example here is what the multipath code generate from the usual serializedRecord :