{"action":"created","issue":{"url":"https://api.github.com/repos/lytics/ember-data-model-fragments/issues/164","labels_url":"https://api.github.com/repos/lytics/ember-data-model-fragments/issues/164/labels{/name}","comments_url":"https://api.github.com/repos/lytics/ember-data-model-fragments/issues/164/comments","events_url":"https://api.github.com/repos/lytics/ember-data-model-fragments/issues/164/events","html_url":"https://github.com/lytics/ember-data-model-fragments/issues/164","id":117393347,"number":164,"title":"Fragment still dirty after save","user":{"login":"dwickern","id":752885,"avatar_url":"https://avatars.githubusercontent.com/u/752885?v=3","gravatar_id":"","url":"https://api.github.com/users/dwickern","html_url":"https://github.com/dwickern","followers_url":"https://api.github.com/users/dwickern/followers","following_url":"https://api.github.com/users/dwickern/following{/other_user}","gists_url":"https://api.github.com/users/dwickern/gists{/gist_id}","starred_url":"https://api.github.com/users/dwickern/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dwickern/subscriptions","organizations_url":"https://api.github.com/users/dwickern/orgs","repos_url":"https://api.github.com/users/dwickern/repos","events_url":"https://api.github.com/users/dwickern/events{/privacy}","received_events_url":"https://api.github.com/users/dwickern/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-11-17T16:33:39Z","updated_at":"2015-12-12T04:16:23Z","closed_at":null,"body":"After upgrading to version 1.13.x I have an issue where a fragment is dirty after saving the model. I tried to write a test for this but ultimately couldn't.\r\n\r\nThe fragment in question has two `DS.attr('string')` properties which are left as their default value `null` when I fetch the model. After I call `save`, it thinks I changed `null` to `null` and thus the fragment is dirty:\r\n```\r\nfragment.get('isDirty')\r\n> true\r\nfragment.changedAttributes()\r\n> {property1:[null,null],property2:[null,null]}\r\n```\r\n\r\nMy PUT method echoes back the same JSON which is passed to it (including these null properties). If I leave the two properties out/undefined, the fragment will not be dirty after the save.\r\n\r\ngit bisect blames this commit: @25a46885025b31e7420da07fcc1d3ffa04853f45"},"comment":{"url":"https://api.github.com/repos/lytics/ember-data-model-fragments/issues/comments/164108520","html_url":"https://github.com/lytics/ember-data-model-fragments/issues/164#issuecomment-164108520","issue_url":"https://api.github.com/repos/lytics/ember-data-model-fragments/issues/164","id":164108520,"user":{"login":"slindberg","id":421506,"avatar_url":"https://avatars.githubusercontent.com/u/421506?v=3","gravatar_id":"","url":"https://api.github.com/users/slindberg","html_url":"https://github.com/slindberg","followers_url":"https://api.github.com/users/slindberg/followers","following_url":"https://api.github.com/users/slindberg/following{/other_user}","gists_url":"https://api.github.com/users/slindberg/gists{/gist_id}","starred_url":"https://api.github.com/users/slindberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/slindberg/subscriptions","organizations_url":"https://api.github.com/users/slindberg/orgs","repos_url":"https://api.github.com/users/slindberg/repos","events_url":"https://api.github.com/users/slindberg/events{/privacy}","received_events_url":"https://api.github.com/users/slindberg/received_events","type":"User","site_admin":false},"created_at":"2015-12-12T04:16:23Z","updated_at":"2015-12-12T04:16:23Z","body":"@dwickern I cherry picked the fixes onto the `release-1-13` branch, which is tracking the 1.13.x series. Once you verify, I'll release v1.13.2 and v2.1.1. Thanks for testing :+1: "}}