{"action":"created","issue":{"url":"https://api.github.com/repos/emberjs/data/issues/2623","labels_url":"https://api.github.com/repos/emberjs/data/issues/2623/labels{/name}","comments_url":"https://api.github.com/repos/emberjs/data/issues/2623/comments","events_url":"https://api.github.com/repos/emberjs/data/issues/2623/events","html_url":"https://github.com/emberjs/data/pull/2623","id":52783007,"number":2623,"title":"Initial implementation of the Snapshot API","user":{"login":"wecc","id":708205,"avatar_url":"https://avatars.githubusercontent.com/u/708205?v=3","gravatar_id":"","url":"https://api.github.com/users/wecc","html_url":"https://github.com/wecc","followers_url":"https://api.github.com/users/wecc/followers","following_url":"https://api.github.com/users/wecc/following{/other_user}","gists_url":"https://api.github.com/users/wecc/gists{/gist_id}","starred_url":"https://api.github.com/users/wecc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wecc/subscriptions","organizations_url":"https://api.github.com/users/wecc/orgs","repos_url":"https://api.github.com/users/wecc/repos","events_url":"https://api.github.com/users/wecc/events{/privacy}","received_events_url":"https://api.github.com/users/wecc/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2014-12-23T23:19:11Z","updated_at":"2015-01-21T17:52:38Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/emberjs/data/pulls/2623","html_url":"https://github.com/emberjs/data/pull/2623","diff_url":"https://github.com/emberjs/data/pull/2623.diff","patch_url":"https://github.com/emberjs/data/pull/2623.patch"},"body":"This is a first stab at the new Snapshot API, `serializer.serialize()` now receives a Snapshot instead of a record instance.\r\n\r\n- **Caching** - Right now, attributes are cached eagerly (on instantiation) and relationships are cached on first access. Is this the design we want?\r\n- **snapshot.belongsTo()** - Returns a new snapshot (with at least an ID) or undefined. Is this what we want or should we always return a new snapshot?\r\n- **snapshot.hasMany()** - Always returns an array.\r\n- **snapshot.get() deprecated** - ~~To only use `attr()`, `belongsTo()` and `hasMany()` would require some work in serializers. Should that be done in the scope of this PR or separately?~~ Done in this PR.\r\n\r\n[@sly7-7]: Just to clean issues when that awesome work is merged: \r\nCloses #2551, Fixes #2385, Fixes #2508, Closes #1491"},"comment":{"url":"https://api.github.com/repos/emberjs/data/issues/comments/70886389","html_url":"https://github.com/emberjs/data/pull/2623#issuecomment-70886389","issue_url":"https://api.github.com/repos/emberjs/data/issues/2623","id":70886389,"user":{"login":"wecc","id":708205,"avatar_url":"https://avatars.githubusercontent.com/u/708205?v=3","gravatar_id":"","url":"https://api.github.com/users/wecc","html_url":"https://github.com/wecc","followers_url":"https://api.github.com/users/wecc/followers","following_url":"https://api.github.com/users/wecc/following{/other_user}","gists_url":"https://api.github.com/users/wecc/gists{/gist_id}","starred_url":"https://api.github.com/users/wecc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wecc/subscriptions","organizations_url":"https://api.github.com/users/wecc/orgs","repos_url":"https://api.github.com/users/wecc/repos","events_url":"https://api.github.com/users/wecc/events{/privacy}","received_events_url":"https://api.github.com/users/wecc/received_events","type":"User","site_admin":false},"created_at":"2015-01-21T17:52:38Z","updated_at":"2015-01-21T17:52:38Z","body":"Merge conflicts fixed."}}