Skip to content
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

RecordArrays no longer tracking deletedItems #28

Closed
conrad-vanl opened this issue Jun 26, 2014 · 1 comment
Closed

RecordArrays no longer tracking deletedItems #28

conrad-vanl opened this issue Jun 26, 2014 · 1 comment
Labels

Comments

@conrad-vanl
Copy link

Noticed today that after Merge of #21 deletedItems in a hasMany recordArray is no longer being tracked, which breaks the patch style array/relation updates here and means you can't remove an item from a Parse Array (such as a hasMany array) and have that change be picked up by Parse.

https://github.com/clintjhill/ember-parse-adapter/blob/master/lib/ember-parse-adapter/serializer.js#L189

I was working on a few different ways to add this back, but couldn't determine a reliable method. It would be nice to not have to rely on tracking "deletedItems" in the record array, and instead do like a diff of the changedAttributes - but it looks like the changedAttributes method does not work properly for record array type attributes.

@mixonic
Copy link
Collaborator

mixonic commented Sep 14, 2014

Closing this in favor of #49, hunting for the same thing.

@mixonic mixonic closed this as completed Sep 14, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants