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

[BUGFIX beta] JSONSerializer.extractRelationships() issue #3736 #3747

Merged
merged 1 commit into from Sep 16, 2015

Conversation

sebweaver
Copy link
Contributor

JSONSerializer.extractRelationships() sets the undefined hasMany relationships in the
same way it was for the belongsTo relationships, i.e. to null.

I also enriched the corresponding test accordingly in order to cover the case.

@sebweaver sebweaver changed the title Fix issue #3736 Fix JSONSerializer.extractRelationships() issue #3736 Sep 10, 2015
@sebweaver sebweaver changed the title Fix JSONSerializer.extractRelationships() issue #3736 [BUGFIX beta] JSONSerializer.extractRelationships() issue #3736 Sep 10, 2015
@wecc
Copy link
Contributor

wecc commented Sep 10, 2015

Would you be able to copy the test you modified so we're still testing with a non-existent relationship key?

@sebweaver
Copy link
Contributor Author

Both cases were indeed in the same test. For better granularity I have now splitted it into two separate tests.

@sebweaver
Copy link
Contributor Author

Appveyor build failed due to the following error:

npm ERR! network read ECONNRESET

Do I have to push an empty commit to force rebuild? Or is it unnecessary?

@wecc
Copy link
Contributor

wecc commented Sep 13, 2015

Looks good, can you squash the commits and prefix with [BUGFIX beta]?

…#3736

`extractRelationships` sets the undefined hasMany relationships in the
same way for the belongsTo relationships, i.e. to `null`.
bmac added a commit that referenced this pull request Sep 16, 2015
[BUGFIX beta] JSONSerializer.extractRelationships() issue #3736
@bmac bmac merged commit 04c9d71 into emberjs:master Sep 16, 2015
@bmac
Copy link
Member

bmac commented Sep 16, 2015

Thanks @sebweaver.

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.

None yet

3 participants