{"action":"created","issue":{"url":"https://api.github.com/repos/numberoverzero/bloop/issues/23","labels_url":"https://api.github.com/repos/numberoverzero/bloop/issues/23/labels{/name}","comments_url":"https://api.github.com/repos/numberoverzero/bloop/issues/23/comments","events_url":"https://api.github.com/repos/numberoverzero/bloop/issues/23/events","html_url":"https://github.com/numberoverzero/bloop/issues/23","id":115184724,"number":23,"title":"UpdateItem pushes all set/cleared values, not unsynchronized changes","user":{"login":"numberoverzero","id":1223809,"avatar_url":"https://avatars.githubusercontent.com/u/1223809?v=3","gravatar_id":"","url":"https://api.github.com/users/numberoverzero","html_url":"https://github.com/numberoverzero","followers_url":"https://api.github.com/users/numberoverzero/followers","following_url":"https://api.github.com/users/numberoverzero/following{/other_user}","gists_url":"https://api.github.com/users/numberoverzero/gists{/gist_id}","starred_url":"https://api.github.com/users/numberoverzero/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/numberoverzero/subscriptions","organizations_url":"https://api.github.com/users/numberoverzero/orgs","repos_url":"https://api.github.com/users/numberoverzero/repos","events_url":"https://api.github.com/users/numberoverzero/events{/privacy}","received_events_url":"https://api.github.com/users/numberoverzero/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/numberoverzero/bloop/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":{"login":"numberoverzero","id":1223809,"avatar_url":"https://avatars.githubusercontent.com/u/1223809?v=3","gravatar_id":"","url":"https://api.github.com/users/numberoverzero","html_url":"https://github.com/numberoverzero","followers_url":"https://api.github.com/users/numberoverzero/followers","following_url":"https://api.github.com/users/numberoverzero/following{/other_user}","gists_url":"https://api.github.com/users/numberoverzero/gists{/gist_id}","starred_url":"https://api.github.com/users/numberoverzero/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/numberoverzero/subscriptions","organizations_url":"https://api.github.com/users/numberoverzero/orgs","repos_url":"https://api.github.com/users/numberoverzero/repos","events_url":"https://api.github.com/users/numberoverzero/events{/privacy}","received_events_url":"https://api.github.com/users/numberoverzero/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/numberoverzero/bloop/milestones/1","html_url":"https://github.com/numberoverzero/bloop/milestones/1.0","labels_url":"https://api.github.com/repos/numberoverzero/bloop/milestones/1/labels","id":1210094,"number":1,"title":"1.0","description":null,"creator":{"login":"numberoverzero","id":1223809,"avatar_url":"https://avatars.githubusercontent.com/u/1223809?v=3","gravatar_id":"","url":"https://api.github.com/users/numberoverzero","html_url":"https://github.com/numberoverzero","followers_url":"https://api.github.com/users/numberoverzero/followers","following_url":"https://api.github.com/users/numberoverzero/following{/other_user}","gists_url":"https://api.github.com/users/numberoverzero/gists{/gist_id}","starred_url":"https://api.github.com/users/numberoverzero/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/numberoverzero/subscriptions","organizations_url":"https://api.github.com/users/numberoverzero/orgs","repos_url":"https://api.github.com/users/numberoverzero/repos","events_url":"https://api.github.com/users/numberoverzero/events{/privacy}","received_events_url":"https://api.github.com/users/numberoverzero/received_events","type":"User","site_admin":false},"open_issues":4,"closed_issues":18,"state":"open","created_at":"2015-07-15T20:50:56Z","updated_at":"2015-11-25T23:02:07Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2015-11-05T00:51:23Z","updated_at":"2015-11-25T23:02:07Z","closed_at":"2015-11-25T23:02:07Z","body":"Update is a lot harder to get right than I originally thought; because we're not using weakrefs to track objects pointing to identical elements in dynamodb (as sqlalchemy does with objects in a transaction) the following won't do what's expected:\r\n\r\n```\r\n# Persist name, age in record 5\r\nperson = Model(id=5)\r\nperson.name = \"Name\"\r\nperson.age = 10\r\nengine.save(person)\r\n\r\n# Delete age for record 5\r\nsame_person = Model(id=5)\r\nengine.load(same_person)\r\ndel same_person.age\r\nengine.save(same_person)\r\n\r\n# This line should ensure the stored values for record 5\r\n# are name \"Name\" and age 5, right?\r\nengine.save(person)\r\n```\r\n\r\nInstead the `person` object sees that there have been no changes since it was synchronized, and age isn't persisted again.  Loading the object will show age is `None`:\r\n\r\n```\r\nengine.load(person)\r\nassert person.age is None\r\n```"},"comment":{"url":"https://api.github.com/repos/numberoverzero/bloop/issues/comments/159750928","html_url":"https://github.com/numberoverzero/bloop/issues/23#issuecomment-159750928","issue_url":"https://api.github.com/repos/numberoverzero/bloop/issues/23","id":159750928,"user":{"login":"numberoverzero","id":1223809,"avatar_url":"https://avatars.githubusercontent.com/u/1223809?v=3","gravatar_id":"","url":"https://api.github.com/users/numberoverzero","html_url":"https://github.com/numberoverzero","followers_url":"https://api.github.com/users/numberoverzero/followers","following_url":"https://api.github.com/users/numberoverzero/following{/other_user}","gists_url":"https://api.github.com/users/numberoverzero/gists{/gist_id}","starred_url":"https://api.github.com/users/numberoverzero/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/numberoverzero/subscriptions","organizations_url":"https://api.github.com/users/numberoverzero/orgs","repos_url":"https://api.github.com/users/numberoverzero/repos","events_url":"https://api.github.com/users/numberoverzero/events{/privacy}","received_events_url":"https://api.github.com/users/numberoverzero/received_events","type":"User","site_admin":false},"created_at":"2015-11-25T23:02:07Z","updated_at":"2015-11-25T23:02:07Z","body":"Merged tracking-overhaul branch, closing."}}