{"action":"created","issue":{"url":"https://api.github.com/repos/inspirehep/invenio-records/issues/7","labels_url":"https://api.github.com/repos/inspirehep/invenio-records/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/inspirehep/invenio-records/issues/7/comments","events_url":"https://api.github.com/repos/inspirehep/invenio-records/issues/7/events","html_url":"https://github.com/inspirehep/invenio-records/pull/7","id":120788246,"number":7,"title":"record: save deep copy of initial json","user":{"login":"tomaszgy","id":10139760,"avatar_url":"https://avatars.githubusercontent.com/u/10139760?v=3","gravatar_id":"","url":"https://api.github.com/users/tomaszgy","html_url":"https://github.com/tomaszgy","followers_url":"https://api.github.com/users/tomaszgy/followers","following_url":"https://api.github.com/users/tomaszgy/following{/other_user}","gists_url":"https://api.github.com/users/tomaszgy/gists{/gist_id}","starred_url":"https://api.github.com/users/tomaszgy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomaszgy/subscriptions","organizations_url":"https://api.github.com/users/tomaszgy/orgs","repos_url":"https://api.github.com/users/tomaszgy/repos","events_url":"https://api.github.com/users/tomaszgy/events{/privacy}","received_events_url":"https://api.github.com/users/tomaszgy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-12-07T14:42:57Z","updated_at":"2015-12-08T15:26:46Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/inspirehep/invenio-records/pulls/7","html_url":"https://github.com/inspirehep/invenio-records/pull/7","diff_url":"https://github.com/inspirehep/invenio-records/pull/7.diff","patch_url":"https://github.com/inspirehep/invenio-records/pull/7.patch"},"body":"* deep copy can be used after update to compare new version of the record with the old one\r\n\r\nSigned-off-by: Tomasz <tomaszgy@gmail.com>"},"comment":{"url":"https://api.github.com/repos/inspirehep/invenio-records/issues/comments/162914267","html_url":"https://github.com/inspirehep/invenio-records/pull/7#issuecomment-162914267","issue_url":"https://api.github.com/repos/inspirehep/invenio-records/issues/7","id":162914267,"user":{"login":"tomaszgy","id":10139760,"avatar_url":"https://avatars.githubusercontent.com/u/10139760?v=3","gravatar_id":"","url":"https://api.github.com/users/tomaszgy","html_url":"https://github.com/tomaszgy","followers_url":"https://api.github.com/users/tomaszgy/followers","following_url":"https://api.github.com/users/tomaszgy/following{/other_user}","gists_url":"https://api.github.com/users/tomaszgy/gists{/gist_id}","starred_url":"https://api.github.com/users/tomaszgy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomaszgy/subscriptions","organizations_url":"https://api.github.com/users/tomaszgy/orgs","repos_url":"https://api.github.com/users/tomaszgy/repos","events_url":"https://api.github.com/users/tomaszgy/events{/privacy}","received_events_url":"https://api.github.com/users/tomaszgy/received_events","type":"User","site_admin":false},"created_at":"2015-12-08T15:26:46Z","updated_at":"2015-12-08T15:26:46Z","body":"(I am @kaplun replying from @tomaszgy keyboard :smile: )\r\n\r\n> Sorry as I may not be fully informed on the context, but is this mostly for convenience that it is added to the Record object and not just kept in a variable in the client code?\r\n\r\nThe client code here, would be a receiver which is subscribed to the signal `after_record_update`, so in the current implementation, the only way for the receiver to know the previous version of a record being modified is to query it from the record object being sent there."}}