-
-
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
[WARNING] Warn when extending JSONAPISerializer with extractMeta #4603
Conversation
@@ -93,6 +93,39 @@ var dasherize = Ember.String.dasherize; | |||
|
|||
to the format that the Ember Data store expects. | |||
|
|||
**Customizing meta** |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you make this ## Customizing meta
we should be able to directly link to this section in the warning below via http://emberjs.com/api/data/classes/DS.JSONAPISerializer.html#customizing-meta
export default JSONAPISerializer.extend({ | ||
|
||
normalizeArrayResponse(store, primaryModelClass, payload, id, requestType) { | ||
let normalizedDocument = return this._super(...arguments); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good example. Just a nitpick: shouldn't have a return here, should be:
let normalizedDocument = this._super(...arguments);
Same thing for extractRelationship
15413a2
to
58dcd98
Compare
Hey @wecc do you mind amending the commit message and prefixing the commit with |
Overall this change looks good to me @wecc 👍 |
58dcd98
to
1be86c9
Compare
@bmac Sounds 👍 PR/commit updated! |
There's a Wanna fix that in this PR too? |
1be86c9
to
bdf8556
Compare
@pangratz done! |
No description provided.