-
-
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
[WIP] Fix for emmbeded records mixin to make it work with rails. #2537
Conversation
- New object creation duplicate fix: Client id merged from https://github.com/tstirrat/ember-data/tree/embedded-client-id - Add '_attributes' - Support for ids deserialization (default in ActiveModel::Serializers) - Support for deletion of objects by '_destroy'
Conflicts: lib/ember-addon/blueprints/ember-data/index.js
…ect creation duplicate fix: Client id merged from https://github.com/tstirrat/ember-data/tree/embedded-client-id - Add '_attributes' - Support for ids deserialization (default in ActiveModel::Serializers) - Support for deletion of objects by '_destroy'
Conflicts: .gitignore packages/ember-data/tests/integration/serializers/embedded_records_mixin_test.js
Conflicts: packages/ember-data/lib/serializers/embedded_records_mixin.js packages/ember-data/tests/integration/serializers/embedded_records_mixin_test.js
…-master Conflicts: packages/ember-data/lib/serializers/embedded_records_mixin.js
Hi @simcha. Thanks for taking the time to work on this pr and sorry for not giving you any feedback until now. Unfortunately, I don't think we can introduce these changes into Ember Data's existing Instead, I think this would code make a great ember addon. If you have any trouble porting this to an addon please let me know and I would be happy to assist. |
Hi, I made some changes to EmbeddedRecordMixin to make it work with rails
It shall not brake non rails JSON and i have fixed the tests as well as added some new ones.
It is work in progress I do not like the client_id idea end especially the way it is stored in Ember. Same goes for the list of deleted records. But I think some subset of the solution or all of it after fixing could be useful for the others. I hope you can guide me in proper direction. Thanks in advance.