{"action":"created","issue":{"url":"https://api.github.com/repos/rubycorns/RailsGirlsApp/issues/309","labels_url":"https://api.github.com/repos/rubycorns/RailsGirlsApp/issues/309/labels{/name}","comments_url":"https://api.github.com/repos/rubycorns/RailsGirlsApp/issues/309/comments","events_url":"https://api.github.com/repos/rubycorns/RailsGirlsApp/issues/309/events","html_url":"https://github.com/rubycorns/RailsGirlsApp/pull/309","id":56916853,"number":309,"title":"add statistics, closes #286","user":{"login":"lislis","id":1006478,"avatar_url":"https://avatars.githubusercontent.com/u/1006478?v=3","gravatar_id":"","url":"https://api.github.com/users/lislis","html_url":"https://github.com/lislis","followers_url":"https://api.github.com/users/lislis/followers","following_url":"https://api.github.com/users/lislis/following{/other_user}","gists_url":"https://api.github.com/users/lislis/gists{/gist_id}","starred_url":"https://api.github.com/users/lislis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lislis/subscriptions","organizations_url":"https://api.github.com/users/lislis/orgs","repos_url":"https://api.github.com/users/lislis/repos","events_url":"https://api.github.com/users/lislis/events{/privacy}","received_events_url":"https://api.github.com/users/lislis/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/rubycorns/RailsGirlsApp/labels/in%20progress","name":"in progress","color":"ededed"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-02-07T16:38:36Z","updated_at":"2015-02-08T11:12:17Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/rubycorns/RailsGirlsApp/pulls/309","html_url":"https://github.com/rubycorns/RailsGirlsApp/pull/309","diff_url":"https://github.com/rubycorns/RailsGirlsApp/pull/309.diff","patch_url":"https://github.com/rubycorns/RailsGirlsApp/pull/309.patch"},"body":"Some counter stuff for the home page and a little of design-ish stuff"},"comment":{"url":"https://api.github.com/repos/rubycorns/RailsGirlsApp/issues/comments/73406468","html_url":"https://github.com/rubycorns/RailsGirlsApp/pull/309#issuecomment-73406468","issue_url":"https://api.github.com/repos/rubycorns/RailsGirlsApp/issues/309","id":73406468,"user":{"login":"til","id":11211,"avatar_url":"https://avatars.githubusercontent.com/u/11211?v=3","gravatar_id":"","url":"https://api.github.com/users/til","html_url":"https://github.com/til","followers_url":"https://api.github.com/users/til/followers","following_url":"https://api.github.com/users/til/following{/other_user}","gists_url":"https://api.github.com/users/til/gists{/gist_id}","starred_url":"https://api.github.com/users/til/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/til/subscriptions","organizations_url":"https://api.github.com/users/til/orgs","repos_url":"https://api.github.com/users/til/repos","events_url":"https://api.github.com/users/til/events{/privacy}","received_events_url":"https://api.github.com/users/til/received_events","type":"User","site_admin":false},"created_at":"2015-02-08T11:12:17Z","updated_at":"2015-02-08T11:12:17Z","body":"Great stuff, thanks! :cake:\r\n\r\nOne might argue that loading all models only to display the counts is inefficient, especially for the often requested home page, but I'd say it is more than fine for now. Unless we have thousands of students and groups, it will probably be not be noticable, and once we have that, it should be easy to change it into only selecting the counts directly from the database.\r\n\r\nI'm not merging it yet in case you want to adress the nitpicks (and squash them, yay!) first."}}