{"action":"created","issue":{"url":"https://api.github.com/repos/snowdriftcoop/snowdrift/issues/325","labels_url":"https://api.github.com/repos/snowdriftcoop/snowdrift/issues/325/labels{/name}","comments_url":"https://api.github.com/repos/snowdriftcoop/snowdrift/issues/325/comments","events_url":"https://api.github.com/repos/snowdriftcoop/snowdrift/issues/325/events","html_url":"https://github.com/snowdriftcoop/snowdrift/pull/325","id":109651642,"number":325,"title":"abstract ticket counting to user model","user":{"login":"hollocherdale","id":6012572,"avatar_url":"https://avatars.githubusercontent.com/u/6012572?v=3","gravatar_id":"","url":"https://api.github.com/users/hollocherdale","html_url":"https://github.com/hollocherdale","followers_url":"https://api.github.com/users/hollocherdale/followers","following_url":"https://api.github.com/users/hollocherdale/following{/other_user}","gists_url":"https://api.github.com/users/hollocherdale/gists{/gist_id}","starred_url":"https://api.github.com/users/hollocherdale/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hollocherdale/subscriptions","organizations_url":"https://api.github.com/users/hollocherdale/orgs","repos_url":"https://api.github.com/users/hollocherdale/repos","events_url":"https://api.github.com/users/hollocherdale/events{/privacy}","received_events_url":"https://api.github.com/users/hollocherdale/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-03T23:29:55Z","updated_at":"2015-10-06T18:18:38Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/snowdriftcoop/snowdrift/pulls/325","html_url":"https://github.com/snowdriftcoop/snowdrift/pull/325","diff_url":"https://github.com/snowdriftcoop/snowdrift/pull/325.diff","patch_url":"https://github.com/snowdriftcoop/snowdrift/pull/325.patch"},"body":"aaron helped out with this. We took the ticket counting out of the handler so that it can be simply called on the user page. Not sure if this was the best approach."},"comment":{"url":"https://api.github.com/repos/snowdriftcoop/snowdrift/issues/comments/145952413","html_url":"https://github.com/snowdriftcoop/snowdrift/pull/325#issuecomment-145952413","issue_url":"https://api.github.com/repos/snowdriftcoop/snowdrift/issues/325","id":145952413,"user":{"login":"chreekat","id":538538,"avatar_url":"https://avatars.githubusercontent.com/u/538538?v=3","gravatar_id":"","url":"https://api.github.com/users/chreekat","html_url":"https://github.com/chreekat","followers_url":"https://api.github.com/users/chreekat/followers","following_url":"https://api.github.com/users/chreekat/following{/other_user}","gists_url":"https://api.github.com/users/chreekat/gists{/gist_id}","starred_url":"https://api.github.com/users/chreekat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chreekat/subscriptions","organizations_url":"https://api.github.com/users/chreekat/orgs","repos_url":"https://api.github.com/users/chreekat/repos","events_url":"https://api.github.com/users/chreekat/events{/privacy}","received_events_url":"https://api.github.com/users/chreekat/received_events","type":"User","site_admin":false},"created_at":"2015-10-06T18:18:38Z","updated_at":"2015-10-06T18:18:38Z","body":"Thanks @hollocherdale! This is a good patch, except for the whitespace issues @singpolyma mentioned. Don't worry about doing \"count\" inside the database. He's right, but we can worry about that separately. Just add/remove whitespace as appropriate and this will be merged."}}