-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Empty async many relationship when saving in Beta 10 #2339
Comments
I can see some logic on that, but I would say that that behaviour can lead to inconsistencies between server and client like in the jsbin after hitting save. And an extra request is worth saving a big pain down in the road. Maybe that could be optedIn/Out like the coalesce? About the first issue, the sending of the empty id list, anything can be done for now? |
I just tested with your jsbin, the first issue is already fixed on master |
Cool, would Beta 10 be patched or be part of the next one? |
You can use canary or wait for 11 which should be in next few days |
Great, thanks for blazing fast answer! Maybe it would be good to put a note in the changes md of Beta 10 about it. I know I would have been very sorry if I had hit prod with this bug... |
PR welcome |
Actually I think that beta.10 should not be available in the builds page, because it has some subtle bugs like this. |
Sure, I'll make the note in the changelog and do a PR. @igorT do you know the commit where this issue was fixed? @sly7-7 I agree with you about removing the build, but I think it should also be documented somewhere, since it's been already more than 2 weeks the beta has been around. |
cc @fivetanley |
PR created: #2340 |
When can we expect a new build to be released with this? And in respect to that, what's up with the new release schedule proposed about a month ago (similar to ember.js itself)? |
CC our build/release master @fivetanley |
+subscribe, I am also looking forward to Beta 11 for this fix |
@fivetanley What's that status of a new build which works with latest ember.js beta? |
beta 11 is out |
Related to #2331. Saving behaviour seems to have changed from Beta 9 and it looks wrong:
Having two model Group and User, with Group having many users.
The behaviour in Beta 9 was:
1- When a Group is saved, Ember Data would send the array of user ids to the server
2- When the sever replied with a links property, Ember data would trigger a request to get the dependent object and update if there is any change.
The behaviour in Beta10 is:
1- When a Group is saved, Ember Data sends an empty array as user ids to the server.
2- When the sever replied with a links property, Ember Data doesn't trigger any further request, ignoring any changes that can may have happened in the server
@igorT Unless the way the saving has to be done has changed I would say this seems like a serious bug for both differences, but specially the first one since is easy to overlook and will mess with the data of existing apps.
http://emberjs.jsbin.com/jepuno/2/
The text was updated successfully, but these errors were encountered: