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

Convert unload test to json api format for store.push.. #3223 #3251

Merged
merged 1 commit into from
Jun 25, 2015

Conversation

andrejunges
Copy link
Contributor

This PR will break some tests, but now the the calls to store.push are
using jsonApiFormat

@@ -18,7 +18,7 @@ var shouldNotContain = function(array, item) {

module("integration/filter - DS.Model updating", {
setup: function() {
array = [{ id: 1, name: "Scumbag Dale", bestFriend: 2 }, { id: 2, name: "Scumbag Katz" }, { id: 3, name: "Scumbag Bryn" }];
array = [{ "id": "1", "type": "person", "attributes": { "name": "Scumbag Dale", "bestFriend": "2" } }, { "id": "2", "type": "person", "attributes": { "name": "Scumbag Katz" } }, { "id": 3, "type": "person", "attributes": { "name": "Scumbag Bryn" } }];
Copy link
Contributor

Choose a reason for hiding this comment

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

I think bestFriend should be a relationship here

@wecc
Copy link
Contributor

wecc commented Jun 16, 2015

Would you mind squashing the commits and remove "WIP"?

@andrejunges andrejunges force-pushed the master branch 4 times, most recently from a282502 to 816d0b0 Compare June 20, 2015 20:36
@andrejunges andrejunges changed the title [WIP] Convert unload test to json api format for store.push.. #3223 Convert unload test to json api format for store.push.. #3223 Jun 20, 2015
"attributes": {
"name": "Scumbag Dale"
},
relationships: {
Copy link
Contributor

Choose a reason for hiding this comment

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

Could you encapsulate all of the keys in quotes, for consistency?

Copy link
Member

Choose a reason for hiding this comment

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

Perhaps the quoted keys should be unquoted instead @wecc?

@wecc
Copy link
Contributor

wecc commented Jun 20, 2015

Can you prefix the commit with [CLEANUP beta]?

@andrejunges andrejunges force-pushed the master branch 3 times, most recently from 74bef67 to 0eadbbe Compare June 25, 2015 00:05
wecc added a commit that referenced this pull request Jun 25, 2015
Convert unload test to json api format for `store.push`.. #3223
@wecc wecc merged commit 3c6bc33 into emberjs:master Jun 25, 2015
@wecc
Copy link
Contributor

wecc commented Jun 25, 2015

Thank you so much!

@pangratz
Copy link
Member

👍 Awesome work @andrejunges!

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.

4 participants