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

[WIP] Fix for emmbeded records mixin to make it work with rails. #2537

Closed
wants to merge 18 commits into from

Conversation

simcha
Copy link

@simcha simcha commented Nov 30, 2014

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.

Stanley Stuart and others added 13 commits October 13, 2014 10:59
- 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'
@simcha simcha changed the title WIP Fix for emmbeded records mixin to make it work with rails: - New object... [WIP] Fix for emmbeded records mixin to make it work with rails. Nov 30, 2014
anjinfan and others added 5 commits December 18, 2014 12:45
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
@bmac
Copy link
Member

bmac commented Dec 9, 2015

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 EmbeddedRecordMixin without breaking backwards compatibility.

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.

@bmac bmac closed this Dec 9, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants