{"action":"created","issue":{"url":"https://api.github.com/repos/18F/C2/issues/833","labels_url":"https://api.github.com/repos/18F/C2/issues/833/labels{/name}","comments_url":"https://api.github.com/repos/18F/C2/issues/833/comments","events_url":"https://api.github.com/repos/18F/C2/issues/833/events","html_url":"https://github.com/18F/C2/pull/833","id":119261228,"number":833,"title":"Refactor to prep for moving organizations to DB","user":{"login":"jessieay","id":601515,"avatar_url":"https://avatars.githubusercontent.com/u/601515?v=3","gravatar_id":"","url":"https://api.github.com/users/jessieay","html_url":"https://github.com/jessieay","followers_url":"https://api.github.com/users/jessieay/followers","following_url":"https://api.github.com/users/jessieay/following{/other_user}","gists_url":"https://api.github.com/users/jessieay/gists{/gist_id}","starred_url":"https://api.github.com/users/jessieay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jessieay/subscriptions","organizations_url":"https://api.github.com/users/jessieay/orgs","repos_url":"https://api.github.com/users/jessieay/repos","events_url":"https://api.github.com/users/jessieay/events{/privacy}","received_events_url":"https://api.github.com/users/jessieay/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-28T01:03:34Z","updated_at":"2015-11-30T18:38:02Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/18F/C2/pulls/833","html_url":"https://github.com/18F/C2/pull/833","diff_url":"https://github.com/18F/C2/pull/833.diff","patch_url":"https://github.com/18F/C2/pull/833.patch"},"body":"* Been working on moving NCR orgs to the database. In the process, I\r\n  decided that the relationship betwen `ncr_work_order`s and\r\n  `ncr_organization`s should actually be named `ncr_organization` rather\r\n  than `organization`. By making this change now, the move to AR will be\r\n  smaller\r\n\r\n*  In the process of that PR, I also found that the use of I18n for\r\n  dealing with email subject logic was confusing. This clarifies that\r\n  logic and puts it under test at the unit level"},"comment":{"url":"https://api.github.com/repos/18F/C2/issues/comments/160717777","html_url":"https://github.com/18F/C2/pull/833#issuecomment-160717777","issue_url":"https://api.github.com/repos/18F/C2/issues/833","id":160717777,"user":{"login":"pkarman","id":1205061,"avatar_url":"https://avatars.githubusercontent.com/u/1205061?v=3","gravatar_id":"","url":"https://api.github.com/users/pkarman","html_url":"https://github.com/pkarman","followers_url":"https://api.github.com/users/pkarman/followers","following_url":"https://api.github.com/users/pkarman/following{/other_user}","gists_url":"https://api.github.com/users/pkarman/gists{/gist_id}","starred_url":"https://api.github.com/users/pkarman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pkarman/subscriptions","organizations_url":"https://api.github.com/users/pkarman/orgs","repos_url":"https://api.github.com/users/pkarman/repos","events_url":"https://api.github.com/users/pkarman/events{/privacy}","received_events_url":"https://api.github.com/users/pkarman/received_events","type":"User","site_admin":false},"created_at":"2015-11-30T18:38:02Z","updated_at":"2015-11-30T18:38:02Z","body":"No objections to the rename or the other clean up here.\r\n\r\n+1 on the code."}}