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

Change setupStore helper default serializer to JSONAPISerializer #4754 #5003

Merged
merged 2 commits into from
Jun 13, 2017

Conversation

eshtadc
Copy link
Contributor

@eshtadc eshtadc commented May 30, 2017

No description provided.

data: {
id: snapshot.id,
type: model.modelName,
attributes: Ember.merge(Ember.merge({}, snapshot._attributes))
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we still need to specify Ember.merge here twice if we aren't merging the id?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good point ;-)

Copy link
Member

@hjdivad hjdivad left a comment

Choose a reason for hiding this comment

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

❤️ this looks great.

@hjdivad
Copy link
Member

hjdivad commented Jun 13, 2017

@bmac This touches a lot of things, but is a nice cleanup. Any objections to merging?

@bmac
Copy link
Member

bmac commented Jun 13, 2017

Sound good to me @hjdivad.

@bmac bmac merged commit 012372c into emberjs:master Jun 13, 2017
@hjdivad
Copy link
Member

hjdivad commented Jun 13, 2017

Thanks for your contribution @eshtadc!

runspired pushed a commit to runspired/data that referenced this pull request Jun 16, 2017
…rjs#4754 (emberjs#5003)

* Change setupStore helper default serializer to JSONAPISerializer emberjs#4754

* Update test per review feedback
sudowork pushed a commit to sudowork/data that referenced this pull request Jun 20, 2017
…rjs#4754 (emberjs#5003)

* Change setupStore helper default serializer to JSONAPISerializer emberjs#4754

* Update test per review feedback
@stefanpenner
Copy link
Member

@eshtadc awesome!! 🎉 🚀

@workmanw
Copy link

Is this a breaking change? It seems like it could be, but perhaps I'm missing something.

stefanpenner pushed a commit to runspired/data that referenced this pull request Jul 18, 2017
…ion when possible.

This reverts commit 16b8a04.

—

The `deleteRecord() { return null; }` changes are to allow the back ported tests to work with the older JSONSerializer rather then the JSONAPISerializer which the test suite (in beta and master) use. For reference the JSONSerializer -> JSONAPISerializer landed -> emberjs#5003
stefanpenner pushed a commit to runspired/data that referenced this pull request Jul 18, 2017
…ion when possible.

This reverts commit 16b8a04.

—

The `deleteRecord() { return null; }` changes are to allow the back ported tests to work with the older JSONSerializer rather then the JSONAPISerializer which the test suite (in beta and master) use. For reference the JSONSerializer -> JSONAPISerializer landed -> emberjs#5003
@stefanpenner
Copy link
Member

stefanpenner commented Jul 18, 2017

@workmanw I don't think so, as it merely changed the tests to use the more modern and recommended serializer. But if you notice a regression, please share!

@workmanw
Copy link

workmanw commented Jul 18, 2017

Oh, oops. I didn't realize this change was for test setup. I thought it was for regular injection.

Nothing to see here


Side note, this is a mammoth commit. 👏 👏

@stefanpenner
Copy link
Member

@workmanw keep us honest!

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.

6 participants