{"action":"created","issue":{"url":"https://api.github.com/repos/Mehdi6/bootcamp-hackernews/issues/8","repository_url":"https://api.github.com/repos/Mehdi6/bootcamp-hackernews","labels_url":"https://api.github.com/repos/Mehdi6/bootcamp-hackernews/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/Mehdi6/bootcamp-hackernews/issues/8/comments","events_url":"https://api.github.com/repos/Mehdi6/bootcamp-hackernews/issues/8/events","html_url":"https://github.com/Mehdi6/bootcamp-hackernews/issues/8","id":310339278,"number":8,"title":"use of `Topic.comment_count`","user":{"login":"hemache","id":1282990,"avatar_url":"https://avatars0.githubusercontent.com/u/1282990?v=4","gravatar_id":"","url":"https://api.github.com/users/hemache","html_url":"https://github.com/hemache","followers_url":"https://api.github.com/users/hemache/followers","following_url":"https://api.github.com/users/hemache/following{/other_user}","gists_url":"https://api.github.com/users/hemache/gists{/gist_id}","starred_url":"https://api.github.com/users/hemache/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hemache/subscriptions","organizations_url":"https://api.github.com/users/hemache/orgs","repos_url":"https://api.github.com/users/hemache/repos","events_url":"https://api.github.com/users/hemache/events{/privacy}","received_events_url":"https://api.github.com/users/hemache/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-04-01T17:19:46Z","updated_at":"2018-04-01T18:05:28Z","closed_at":null,"author_association":"NONE","body":"why not rely on dynamic counting using Django ORM, something like\r\n```python\r\ntopic.comments.count()\r\n```"},"comment":{"url":"https://api.github.com/repos/Mehdi6/bootcamp-hackernews/issues/comments/377805190","html_url":"https://github.com/Mehdi6/bootcamp-hackernews/issues/8#issuecomment-377805190","issue_url":"https://api.github.com/repos/Mehdi6/bootcamp-hackernews/issues/8","id":377805190,"user":{"login":"hemache","id":1282990,"avatar_url":"https://avatars0.githubusercontent.com/u/1282990?v=4","gravatar_id":"","url":"https://api.github.com/users/hemache","html_url":"https://github.com/hemache","followers_url":"https://api.github.com/users/hemache/followers","following_url":"https://api.github.com/users/hemache/following{/other_user}","gists_url":"https://api.github.com/users/hemache/gists{/gist_id}","starred_url":"https://api.github.com/users/hemache/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hemache/subscriptions","organizations_url":"https://api.github.com/users/hemache/orgs","repos_url":"https://api.github.com/users/hemache/repos","events_url":"https://api.github.com/users/hemache/events{/privacy}","received_events_url":"https://api.github.com/users/hemache/received_events","type":"User","site_admin":false},"created_at":"2018-04-01T18:05:28Z","updated_at":"2018-04-01T18:05:28Z","author_association":"NONE","body":"yep, as long as we don't actually store the count in a database column.\r\nside question, why not `return self.comment_set.count()` instead of `Comment.objects.filter(topic=self).count()` ?"}}
{"actor":{"display_login":"hemache"}}