{"action":"created","comment":{"url":"https://api.github.com/repos/emberjs/website/pulls/comments/64661941","id":64661941,"diff_hunk":"@@ -0,0 +1,129 @@\n+---\n+title: Ember Data 2.6 and 2.7 Beta Released\n+author: Brendan McLoughlin\n+tags: Releases\n+---\n+\n+Ember Data 2.6, a minor version release of Ember Data, is released. This release represents the work of over 31 direct contributors, and over 137 commits.\n+\n+Ember Data 2.7 beta.1, the branch of Ember Data that will be released as stable in roughly six weeks, is also being released.\n+\n+### Changes in Ember Data 2.6\n+\n+- `ds-serialize-ids-and-types`\n+\n+Enables a new `ids-and-type` strategy (in addition to the already existing `ids` and `records`) for\n+serializing has many relationships using the `DS.EmbeddedRecordsMixin` that  will include both\n+`id` and `type` of each model as an object.\n+\n+For instance, if a user has many pets, which is a polymorphic relationship, the generated payload would be:\n+\n+```js\n+{\n+  \"user\": {\n+    \"id\": \"1\"\n+    \"name\": \"Bertin Osborne\",\n+    \"pets\": [\n+      { \"id\": \"1\", \"type\": \"Cat\" },\n+      { \"id\": \"2\", \"type\": \"Parrot\"}\n+    ]\n+  }\n+}\n+```\n+\n+This is particularly useful for polymorphic relationships not backed\n+  by [STI](https://en.wikipedia.org/wiki/Single_Table_Inheritance)\n+  when just including the id of the records is not enough.\n+\n+Thanks to [@cibernox](https://github.com/cibernox) for\n+implementing this feature.\n+\n+### Upcoming Features in Ember Data 2.7.beta-1\n+\n+#### `ds-boolean-transform-allow-null` [#4022](https://github.com/emberjs/data/pull/4022)\n+\n+Allow null/undefined values for boolean attributes via `DS.attr('boolean', { allowNull: true })`\n+\n+```js\n+// app/models/user.js\n+\n+export default DS.Model.extend({\n+  email: DS.attr('string'),\n+  username: DS.attr('string'),\n+  wantsWeeklyEmail: DS.attr('boolean', { allowNull: true })\n+});\n+```\n+\n+#### `ds-improved-ajax` [#3099](https://github.com/emberjs/data/pull/3099)\n+\n+Though `ajax()` (and `ajaxOptions()`) of `DS.RESTAdapter` are marked as\n+private, they have been overwritten in many applications, since there is\n+currently no other way to customize the request.\n+\n+This feature adds new public methods to `DS.RESTAdapter`, which allow to\n+customize the properties of a request:\n+\n+- `methodForRequest` to get the HTTP verb\n+- `urlForRequest` to get the URL\n+- `headersForRequest` to get the headers\n+- `dataForRequest` to get the data (query params or request body)\n+\n+The `params` hash passed to those methods has all the properties with\n+which the corresponding `find`, `createRecord`, `findQuery`, ...  call\n+have been invoked: store, type, snapshot(s), id(s) and query. The","path":"source/blog/2016-05-25-ember-data-2-6-released.md","position":73,"original_position":73,"commit_id":"362f25f4c3a6957960bb7f25cacfd2f5013f99c3","original_commit_id":"362f25f4c3a6957960bb7f25cacfd2f5013f99c3","user":{"login":"acorncom","id":802505,"avatar_url":"https://avatars.githubusercontent.com/u/802505?v=3","gravatar_id":"","url":"https://api.github.com/users/acorncom","html_url":"https://github.com/acorncom","followers_url":"https://api.github.com/users/acorncom/followers","following_url":"https://api.github.com/users/acorncom/following{/other_user}","gists_url":"https://api.github.com/users/acorncom/gists{/gist_id}","starred_url":"https://api.github.com/users/acorncom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/acorncom/subscriptions","organizations_url":"https://api.github.com/users/acorncom/orgs","repos_url":"https://api.github.com/users/acorncom/repos","events_url":"https://api.github.com/users/acorncom/events{/privacy}","received_events_url":"https://api.github.com/users/acorncom/received_events","type":"User","site_admin":false},"body":"Backticks on these variables?","created_at":"2016-05-25T22:06:33Z","updated_at":"2016-05-25T22:06:33Z","html_url":"https://github.com/emberjs/website/pull/2602#discussion_r64661941","pull_request_url":"https://api.github.com/repos/emberjs/website/pulls/2602","_links":{"self":{"href":"https://api.github.com/repos/emberjs/website/pulls/comments/64661941"},"html":{"href":"https://github.com/emberjs/website/pull/2602#discussion_r64661941"},"pull_request":{"href":"https://api.github.com/repos/emberjs/website/pulls/2602"}}},"pull_request":{"url":"https://api.github.com/repos/emberjs/website/pulls/2602","id":71433206,"html_url":"https://github.com/emberjs/website/pull/2602","diff_url":"https://github.com/emberjs/website/pull/2602.diff","patch_url":"https://github.com/emberjs/website/pull/2602.patch","issue_url":"https://api.github.com/repos/emberjs/website/issues/2602","number":2602,"state":"open","locked":false,"title":"WIP Ember Data 2.6 release post","user":{"login":"bmac","id":54056,"avatar_url":"https://avatars.githubusercontent.com/u/54056?v=3","gravatar_id":"","url":"https://api.github.com/users/bmac","html_url":"https://github.com/bmac","followers_url":"https://api.github.com/users/bmac/followers","following_url":"https://api.github.com/users/bmac/following{/other_user}","gists_url":"https://api.github.com/users/bmac/gists{/gist_id}","starred_url":"https://api.github.com/users/bmac/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bmac/subscriptions","organizations_url":"https://api.github.com/users/bmac/orgs","repos_url":"https://api.github.com/users/bmac/repos","events_url":"https://api.github.com/users/bmac/events{/privacy}","received_events_url":"https://api.github.com/users/bmac/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-05-25T17:41:00Z","updated_at":"2016-05-25T22:06:33Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2ba19efc68ade64483262b27251046b28213a4c7","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/emberjs/website/pulls/2602/commits","review_comments_url":"https://api.github.com/repos/emberjs/website/pulls/2602/comments","review_comment_url":"https://api.github.com/repos/emberjs/website/pulls/comments{/number}","comments_url":"https://api.github.com/repos/emberjs/website/issues/2602/comments","statuses_url":"https://api.github.com/repos/emberjs/website/statuses/362f25f4c3a6957960bb7f25cacfd2f5013f99c3","head":{"label":"bmac:ember-data-2-6-release-blog-post","ref":"ember-data-2-6-release-blog-post","sha":"362f25f4c3a6957960bb7f25cacfd2f5013f99c3","user":{"login":"bmac","id":54056,"avatar_url":"https://avatars.githubusercontent.com/u/54056?v=3","gravatar_id":"","url":"https://api.github.com/users/bmac","html_url":"https://github.com/bmac","followers_url":"https://api.github.com/users/bmac/followers","following_url":"https://api.github.com/users/bmac/following{/other_user}","gists_url":"https://api.github.com/users/bmac/gists{/gist_id}","starred_url":"https://api.github.com/users/bmac/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bmac/subscriptions","organizations_url":"https://api.github.com/users/bmac/orgs","repos_url":"https://api.github.com/users/bmac/repos","events_url":"https://api.github.com/users/bmac/events{/privacy}","received_events_url":"https://api.github.com/users/bmac/received_events","type":"User","site_admin":false},"repo":{"id":12523643,"name":"website","full_name":"bmac/website","owner":{"login":"bmac","id":54056,"avatar_url":"https://avatars.githubusercontent.com/u/54056?v=3","gravatar_id":"","url":"https://api.github.com/users/bmac","html_url":"https://github.com/bmac","followers_url":"https://api.github.com/users/bmac/followers","following_url":"https://api.github.com/users/bmac/following{/other_user}","gists_url":"https://api.github.com/users/bmac/gists{/gist_id}","starred_url":"https://api.github.com/users/bmac/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bmac/subscriptions","organizations_url":"https://api.github.com/users/bmac/orgs","repos_url":"https://api.github.com/users/bmac/repos","events_url":"https://api.github.com/users/bmac/events{/privacy}","received_events_url":"https://api.github.com/users/bmac/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bmac/website","description":"Source for emberjs.com","fork":true,"url":"https://api.github.com/repos/bmac/website","forks_url":"https://api.github.com/repos/bmac/website/forks","keys_url":"https://api.github.com/repos/bmac/website/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bmac/website/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bmac/website/teams","hooks_url":"https://api.github.com/repos/bmac/website/hooks","issue_events_url":"https://api.github.com/repos/bmac/website/issues/events{/number}","events_url":"https://api.github.com/repos/bmac/website/events","assignees_url":"https://api.github.com/repos/bmac/website/assignees{/user}","branches_url":"https://api.github.com/repos/bmac/website/branches{/branch}","tags_url":"https://api.github.com/repos/bmac/website/tags","blobs_url":"https://api.github.com/repos/bmac/website/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bmac/website/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bmac/website/git/refs{/sha}","trees_url":"https://api.github.com/repos/bmac/website/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bmac/website/statuses/{sha}","languages_url":"https://api.github.com/repos/bmac/website/languages","stargazers_url":"https://api.github.com/repos/bmac/website/stargazers","contributors_url":"https://api.github.com/repos/bmac/website/contributors","subscribers_url":"https://api.github.com/repos/bmac/website/subscribers","subscription_url":"https://api.github.com/repos/bmac/website/subscription","commits_url":"https://api.github.com/repos/bmac/website/commits{/sha}","git_commits_url":"https://api.github.com/repos/bmac/website/git/commits{/sha}","comments_url":"https://api.github.com/repos/bmac/website/comments{/number}","issue_comment_url":"https://api.github.com/repos/bmac/website/issues/comments{/number}","contents_url":"https://api.github.com/repos/bmac/website/contents/{+path}","compare_url":"https://api.github.com/repos/bmac/website/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bmac/website/merges","archive_url":"https://api.github.com/repos/bmac/website/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bmac/website/downloads","issues_url":"https://api.github.com/repos/bmac/website/issues{/number}","pulls_url":"https://api.github.com/repos/bmac/website/pulls{/number}","milestones_url":"https://api.github.com/repos/bmac/website/milestones{/number}","notifications_url":"https://api.github.com/repos/bmac/website/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bmac/website/labels{/name}","releases_url":"https://api.github.com/repos/bmac/website/releases{/id}","deployments_url":"https://api.github.com/repos/bmac/website/deployments","created_at":"2013-09-01T16:53:27Z","updated_at":"2015-11-17T20:20:33Z","pushed_at":"2016-05-25T17:57:08Z","git_url":"git://github.com/bmac/website.git","ssh_url":"git@github.com:bmac/website.git","clone_url":"https://github.com/bmac/website.git","svn_url":"https://github.com/bmac/website","homepage":"","size":55865,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"emberjs:master","ref":"master","sha":"3d0ef3e83292ce24b50ec5f55221051e2ad15065","user":{"login":"emberjs","id":1253363,"avatar_url":"https://avatars.githubusercontent.com/u/1253363?v=3","gravatar_id":"","url":"https://api.github.com/users/emberjs","html_url":"https://github.com/emberjs","followers_url":"https://api.github.com/users/emberjs/followers","following_url":"https://api.github.com/users/emberjs/following{/other_user}","gists_url":"https://api.github.com/users/emberjs/gists{/gist_id}","starred_url":"https://api.github.com/users/emberjs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emberjs/subscriptions","organizations_url":"https://api.github.com/users/emberjs/orgs","repos_url":"https://api.github.com/users/emberjs/repos","events_url":"https://api.github.com/users/emberjs/events{/privacy}","received_events_url":"https://api.github.com/users/emberjs/received_events","type":"Organization","site_admin":false},"repo":{"id":2649031,"name":"website","full_name":"emberjs/website","owner":{"login":"emberjs","id":1253363,"avatar_url":"https://avatars.githubusercontent.com/u/1253363?v=3","gravatar_id":"","url":"https://api.github.com/users/emberjs","html_url":"https://github.com/emberjs","followers_url":"https://api.github.com/users/emberjs/followers","following_url":"https://api.github.com/users/emberjs/following{/other_user}","gists_url":"https://api.github.com/users/emberjs/gists{/gist_id}","starred_url":"https://api.github.com/users/emberjs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emberjs/subscriptions","organizations_url":"https://api.github.com/users/emberjs/orgs","repos_url":"https://api.github.com/users/emberjs/repos","events_url":"https://api.github.com/users/emberjs/events{/privacy}","received_events_url":"https://api.github.com/users/emberjs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/emberjs/website","description":"Source for emberjs.com","fork":false,"url":"https://api.github.com/repos/emberjs/website","forks_url":"https://api.github.com/repos/emberjs/website/forks","keys_url":"https://api.github.com/repos/emberjs/website/keys{/key_id}","collaborators_url":"https://api.github.com/repos/emberjs/website/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/emberjs/website/teams","hooks_url":"https://api.github.com/repos/emberjs/website/hooks","issue_events_url":"https://api.github.com/repos/emberjs/website/issues/events{/number}","events_url":"https://api.github.com/repos/emberjs/website/events","assignees_url":"https://api.github.com/repos/emberjs/website/assignees{/user}","branches_url":"https://api.github.com/repos/emberjs/website/branches{/branch}","tags_url":"https://api.github.com/repos/emberjs/website/tags","blobs_url":"https://api.github.com/repos/emberjs/website/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/emberjs/website/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/emberjs/website/git/refs{/sha}","trees_url":"https://api.github.com/repos/emberjs/website/git/trees{/sha}","statuses_url":"https://api.github.com/repos/emberjs/website/statuses/{sha}","languages_url":"https://api.github.com/repos/emberjs/website/languages","stargazers_url":"https://api.github.com/repos/emberjs/website/stargazers","contributors_url":"https://api.github.com/repos/emberjs/website/contributors","subscribers_url":"https://api.github.com/repos/emberjs/website/subscribers","subscription_url":"https://api.github.com/repos/emberjs/website/subscription","commits_url":"https://api.github.com/repos/emberjs/website/commits{/sha}","git_commits_url":"https://api.github.com/repos/emberjs/website/git/commits{/sha}","comments_url":"https://api.github.com/repos/emberjs/website/comments{/number}","issue_comment_url":"https://api.github.com/repos/emberjs/website/issues/comments{/number}","contents_url":"https://api.github.com/repos/emberjs/website/contents/{+path}","compare_url":"https://api.github.com/repos/emberjs/website/compare/{base}...{head}","merges_url":"https://api.github.com/repos/emberjs/website/merges","archive_url":"https://api.github.com/repos/emberjs/website/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/emberjs/website/downloads","issues_url":"https://api.github.com/repos/emberjs/website/issues{/number}","pulls_url":"https://api.github.com/repos/emberjs/website/pulls{/number}","milestones_url":"https://api.github.com/repos/emberjs/website/milestones{/number}","notifications_url":"https://api.github.com/repos/emberjs/website/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/emberjs/website/labels{/name}","releases_url":"https://api.github.com/repos/emberjs/website/releases{/id}","deployments_url":"https://api.github.com/repos/emberjs/website/deployments","created_at":"2011-10-26T05:30:05Z","updated_at":"2016-05-18T03:09:09Z","pushed_at":"2016-05-25T19:27:56Z","git_url":"git://github.com/emberjs/website.git","ssh_url":"git@github.com:emberjs/website.git","clone_url":"https://github.com/emberjs/website.git","svn_url":"https://github.com/emberjs/website","homepage":"","size":65893,"stargazers_count":526,"watchers_count":526,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1221,"mirror_url":null,"open_issues_count":18,"forks":1221,"open_issues":18,"watchers":526,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/emberjs/website/pulls/2602"},"html":{"href":"https://github.com/emberjs/website/pull/2602"},"issue":{"href":"https://api.github.com/repos/emberjs/website/issues/2602"},"comments":{"href":"https://api.github.com/repos/emberjs/website/issues/2602/comments"},"review_comments":{"href":"https://api.github.com/repos/emberjs/website/pulls/2602/comments"},"review_comment":{"href":"https://api.github.com/repos/emberjs/website/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/emberjs/website/pulls/2602/commits"},"statuses":{"href":"https://api.github.com/repos/emberjs/website/statuses/362f25f4c3a6957960bb7f25cacfd2f5013f99c3"}}}}
{"actor":{"display_login":"acorncom"}}