{"action":"closed","issue":{"url":"https://api.github.com/repos/cch5ng/code-review-tracker/issues/12","labels_url":"https://api.github.com/repos/cch5ng/code-review-tracker/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/cch5ng/code-review-tracker/issues/12/comments","events_url":"https://api.github.com/repos/cch5ng/code-review-tracker/issues/12/events","html_url":"https://github.com/cch5ng/code-review-tracker/issues/12","id":89661854,"number":12,"title":"clean up source of data (db vs model)","user":{"login":"cch5ng","id":4755432,"avatar_url":"https://avatars.githubusercontent.com/u/4755432?v=3","gravatar_id":"","url":"https://api.github.com/users/cch5ng","html_url":"https://github.com/cch5ng","followers_url":"https://api.github.com/users/cch5ng/followers","following_url":"https://api.github.com/users/cch5ng/following{/other_user}","gists_url":"https://api.github.com/users/cch5ng/gists{/gist_id}","starred_url":"https://api.github.com/users/cch5ng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cch5ng/subscriptions","organizations_url":"https://api.github.com/users/cch5ng/orgs","repos_url":"https://api.github.com/users/cch5ng/repos","events_url":"https://api.github.com/users/cch5ng/events{/privacy}","received_events_url":"https://api.github.com/users/cch5ng/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/cch5ng/code-review-tracker/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/cch5ng/code-review-tracker/labels/priority%201","name":"priority 1","color":"eb6420"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-06-19T21:09:37Z","updated_at":"2015-06-19T23:45:25Z","closed_at":"2015-06-19T23:45:25Z","body":"* probably the logic should be query the database and update the model accordingly\r\n  * what about when the user updates existing data, should this still be the case?\r\n    * currently I think the logic updates the model and then updates the db (for changing existing records). but the flaw in this is that what if the model and db become out of sync somehow"}}