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

Add error message in _pushInternalMessage when unknown type #3544

Merged
merged 1 commit into from
Jul 14, 2015

Conversation

Serabe
Copy link
Member

@Serabe Serabe commented Jul 13, 2015

When pushing data with an unknown type, an error is raised.
Fix #3542

store.push({
id: '1',
type: 'unknown'
});
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be valid JSON API and has to be wrapped in data:

{
  data: {
    type: 'unknown',
    id: '1'
  }
}

@Serabe
Copy link
Member Author

Serabe commented Jul 14, 2015

Thank you, @wecc. Solved.

@wecc
Copy link
Contributor

wecc commented Jul 14, 2015

LGTM, @bmac?

@bmac
Copy link
Member

bmac commented Jul 14, 2015

Looks good. @Serabe Could you amend the commit message to start with [BUGFIX release] so we can include this in a future 1.13 release?

…wn type

When pushing data with an unknown type, an error is raised.
Fix emberjs#3542
@Serabe
Copy link
Member Author

Serabe commented Jul 14, 2015

Done!

bmac added a commit that referenced this pull request Jul 14, 2015
Add error message in _pushInternalMessage when unknown type
@bmac bmac merged commit ab1f538 into emberjs:master Jul 14, 2015
@bmac
Copy link
Member

bmac commented Jul 14, 2015

Thanks @Serabe

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