{"action":"created","comment":{"url":"https://api.github.com/repos/framgia/brs_35/pulls/comments/82927602","pull_request_review_id":3800244,"id":82927602,"diff_hunk":"@@ -39,6 +40,41 @@\n                             <p><strong><%= review.title %></strong></p>\n                             <p><%= review.content %></p>\n                           </div>\n+                          <h3>\n+                            <%= review.comments.count %><%= t \"comment\" %>\n+                          </h3>\n+                          <div class = \"row\">\n+                            <div class=\"col-md-6 mess-area-add\"></div>\n+                          </div>\n+                          <div class=\"list-comment-<%= review.id %>\">\n+                            <% review.comments.each do |comment|  %>\n+                              <div id=\"<%= comment.id %>\" >\n+                                <i style=\"color: #9e6da9;\">\n+                                  <%= comment.user.name %>","path":"app/views/books/show.html.erb","position":24,"original_position":24,"commit_id":"c4d0cb4fb2ea4c5e7e5dec6d993cb094bd0e27cc","original_commit_id":"c4d0cb4fb2ea4c5e7e5dec6d993cb094bd0e27cc","user":{"login":"nvtanh","id":5591946,"avatar_url":"https://avatars.githubusercontent.com/u/5591946?v=3","gravatar_id":"","url":"https://api.github.com/users/nvtanh","html_url":"https://github.com/nvtanh","followers_url":"https://api.github.com/users/nvtanh/followers","following_url":"https://api.github.com/users/nvtanh/following{/other_user}","gists_url":"https://api.github.com/users/nvtanh/gists{/gist_id}","starred_url":"https://api.github.com/users/nvtanh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nvtanh/subscriptions","organizations_url":"https://api.github.com/users/nvtanh/orgs","repos_url":"https://api.github.com/users/nvtanh/repos","events_url":"https://api.github.com/users/nvtanh/events{/privacy}","received_events_url":"https://api.github.com/users/nvtanh/received_events","type":"User","site_admin":false},"body":"tìm hiểu N+1 query problem \r\nrồi xem chỗ này bị N+1 ko nhé","created_at":"2016-10-12T02:38:52Z","updated_at":"2016-10-12T02:39:54Z","html_url":"https://github.com/framgia/brs_35/pull/24#discussion_r82927602","pull_request_url":"https://api.github.com/repos/framgia/brs_35/pulls/24","_links":{"self":{"href":"https://api.github.com/repos/framgia/brs_35/pulls/comments/82927602"},"html":{"href":"https://github.com/framgia/brs_35/pull/24#discussion_r82927602"},"pull_request":{"href":"https://api.github.com/repos/framgia/brs_35/pulls/24"}}},"pull_request":{"url":"https://api.github.com/repos/framgia/brs_35/pulls/24","id":88759343,"html_url":"https://github.com/framgia/brs_35/pull/24","diff_url":"https://github.com/framgia/brs_35/pull/24.diff","patch_url":"https://github.com/framgia/brs_35/pull/24.patch","issue_url":"https://api.github.com/repos/framgia/brs_35/issues/24","number":24,"state":"open","locked":false,"title":"CRUD comment","user":{"login":"nhathanh1920","id":18419241,"avatar_url":"https://avatars.githubusercontent.com/u/18419241?v=3","gravatar_id":"","url":"https://api.github.com/users/nhathanh1920","html_url":"https://github.com/nhathanh1920","followers_url":"https://api.github.com/users/nhathanh1920/followers","following_url":"https://api.github.com/users/nhathanh1920/following{/other_user}","gists_url":"https://api.github.com/users/nhathanh1920/gists{/gist_id}","starred_url":"https://api.github.com/users/nhathanh1920/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nhathanh1920/subscriptions","organizations_url":"https://api.github.com/users/nhathanh1920/orgs","repos_url":"https://api.github.com/users/nhathanh1920/repos","events_url":"https://api.github.com/users/nhathanh1920/events{/privacy}","received_events_url":"https://api.github.com/users/nhathanh1920/received_events","type":"User","site_admin":false},"body":"ok","created_at":"2016-10-11T01:55:45Z","updated_at":"2016-10-12T02:39:54Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8d1f8c3a7794359b5986d62154c1f1287ab377d0","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/framgia/brs_35/pulls/24/commits","review_comments_url":"https://api.github.com/repos/framgia/brs_35/pulls/24/comments","review_comment_url":"https://api.github.com/repos/framgia/brs_35/pulls/comments{/number}","comments_url":"https://api.github.com/repos/framgia/brs_35/issues/24/comments","statuses_url":"https://api.github.com/repos/framgia/brs_35/statuses/c4d0cb4fb2ea4c5e7e5dec6d993cb094bd0e27cc","head":{"label":"nhathanh1920:CRUD-comment","ref":"CRUD-comment","sha":"c4d0cb4fb2ea4c5e7e5dec6d993cb094bd0e27cc","user":{"login":"nhathanh1920","id":18419241,"avatar_url":"https://avatars.githubusercontent.com/u/18419241?v=3","gravatar_id":"","url":"https://api.github.com/users/nhathanh1920","html_url":"https://github.com/nhathanh1920","followers_url":"https://api.github.com/users/nhathanh1920/followers","following_url":"https://api.github.com/users/nhathanh1920/following{/other_user}","gists_url":"https://api.github.com/users/nhathanh1920/gists{/gist_id}","starred_url":"https://api.github.com/users/nhathanh1920/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nhathanh1920/subscriptions","organizations_url":"https://api.github.com/users/nhathanh1920/orgs","repos_url":"https://api.github.com/users/nhathanh1920/repos","events_url":"https://api.github.com/users/nhathanh1920/events{/privacy}","received_events_url":"https://api.github.com/users/nhathanh1920/received_events","type":"User","site_admin":false},"repo":{"id":69518506,"name":"brs_35","full_name":"nhathanh1920/brs_35","owner":{"login":"nhathanh1920","id":18419241,"avatar_url":"https://avatars.githubusercontent.com/u/18419241?v=3","gravatar_id":"","url":"https://api.github.com/users/nhathanh1920","html_url":"https://github.com/nhathanh1920","followers_url":"https://api.github.com/users/nhathanh1920/followers","following_url":"https://api.github.com/users/nhathanh1920/following{/other_user}","gists_url":"https://api.github.com/users/nhathanh1920/gists{/gist_id}","starred_url":"https://api.github.com/users/nhathanh1920/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nhathanh1920/subscriptions","organizations_url":"https://api.github.com/users/nhathanh1920/orgs","repos_url":"https://api.github.com/users/nhathanh1920/repos","events_url":"https://api.github.com/users/nhathanh1920/events{/privacy}","received_events_url":"https://api.github.com/users/nhathanh1920/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/nhathanh1920/brs_35","description":"Framgia Book Reviewing System (training)","fork":true,"url":"https://api.github.com/repos/nhathanh1920/brs_35","forks_url":"https://api.github.com/repos/nhathanh1920/brs_35/forks","keys_url":"https://api.github.com/repos/nhathanh1920/brs_35/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nhathanh1920/brs_35/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nhathanh1920/brs_35/teams","hooks_url":"https://api.github.com/repos/nhathanh1920/brs_35/hooks","issue_events_url":"https://api.github.com/repos/nhathanh1920/brs_35/issues/events{/number}","events_url":"https://api.github.com/repos/nhathanh1920/brs_35/events","assignees_url":"https://api.github.com/repos/nhathanh1920/brs_35/assignees{/user}","branches_url":"https://api.github.com/repos/nhathanh1920/brs_35/branches{/branch}","tags_url":"https://api.github.com/repos/nhathanh1920/brs_35/tags","blobs_url":"https://api.github.com/repos/nhathanh1920/brs_35/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nhathanh1920/brs_35/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nhathanh1920/brs_35/git/refs{/sha}","trees_url":"https://api.github.com/repos/nhathanh1920/brs_35/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nhathanh1920/brs_35/statuses/{sha}","languages_url":"https://api.github.com/repos/nhathanh1920/brs_35/languages","stargazers_url":"https://api.github.com/repos/nhathanh1920/brs_35/stargazers","contributors_url":"https://api.github.com/repos/nhathanh1920/brs_35/contributors","subscribers_url":"https://api.github.com/repos/nhathanh1920/brs_35/subscribers","subscription_url":"https://api.github.com/repos/nhathanh1920/brs_35/subscription","commits_url":"https://api.github.com/repos/nhathanh1920/brs_35/commits{/sha}","git_commits_url":"https://api.github.com/repos/nhathanh1920/brs_35/git/commits{/sha}","comments_url":"https://api.github.com/repos/nhathanh1920/brs_35/comments{/number}","issue_comment_url":"https://api.github.com/repos/nhathanh1920/brs_35/issues/comments{/number}","contents_url":"https://api.github.com/repos/nhathanh1920/brs_35/contents/{+path}","compare_url":"https://api.github.com/repos/nhathanh1920/brs_35/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nhathanh1920/brs_35/merges","archive_url":"https://api.github.com/repos/nhathanh1920/brs_35/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nhathanh1920/brs_35/downloads","issues_url":"https://api.github.com/repos/nhathanh1920/brs_35/issues{/number}","pulls_url":"https://api.github.com/repos/nhathanh1920/brs_35/pulls{/number}","milestones_url":"https://api.github.com/repos/nhathanh1920/brs_35/milestones{/number}","notifications_url":"https://api.github.com/repos/nhathanh1920/brs_35/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nhathanh1920/brs_35/labels{/name}","releases_url":"https://api.github.com/repos/nhathanh1920/brs_35/releases{/id}","deployments_url":"https://api.github.com/repos/nhathanh1920/brs_35/deployments","created_at":"2016-09-29T01:29:20Z","updated_at":"2016-09-27T09:08:04Z","pushed_at":"2016-10-12T01:32:20Z","git_url":"git://github.com/nhathanh1920/brs_35.git","ssh_url":"git@github.com:nhathanh1920/brs_35.git","clone_url":"https://github.com/nhathanh1920/brs_35.git","svn_url":"https://github.com/nhathanh1920/brs_35","homepage":null,"size":1154,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"framgia:develop","ref":"develop","sha":"f014a3d805ed9022252ed885ca21aa09da872cef","user":{"login":"framgia","id":2322183,"avatar_url":"https://avatars.githubusercontent.com/u/2322183?v=3","gravatar_id":"","url":"https://api.github.com/users/framgia","html_url":"https://github.com/framgia","followers_url":"https://api.github.com/users/framgia/followers","following_url":"https://api.github.com/users/framgia/following{/other_user}","gists_url":"https://api.github.com/users/framgia/gists{/gist_id}","starred_url":"https://api.github.com/users/framgia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/framgia/subscriptions","organizations_url":"https://api.github.com/users/framgia/orgs","repos_url":"https://api.github.com/users/framgia/repos","events_url":"https://api.github.com/users/framgia/events{/privacy}","received_events_url":"https://api.github.com/users/framgia/received_events","type":"Organization","site_admin":false},"repo":{"id":69338924,"name":"brs_35","full_name":"framgia/brs_35","owner":{"login":"framgia","id":2322183,"avatar_url":"https://avatars.githubusercontent.com/u/2322183?v=3","gravatar_id":"","url":"https://api.github.com/users/framgia","html_url":"https://github.com/framgia","followers_url":"https://api.github.com/users/framgia/followers","following_url":"https://api.github.com/users/framgia/following{/other_user}","gists_url":"https://api.github.com/users/framgia/gists{/gist_id}","starred_url":"https://api.github.com/users/framgia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/framgia/subscriptions","organizations_url":"https://api.github.com/users/framgia/orgs","repos_url":"https://api.github.com/users/framgia/repos","events_url":"https://api.github.com/users/framgia/events{/privacy}","received_events_url":"https://api.github.com/users/framgia/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/framgia/brs_35","description":"Framgia Book Reviewing System (training)","fork":false,"url":"https://api.github.com/repos/framgia/brs_35","forks_url":"https://api.github.com/repos/framgia/brs_35/forks","keys_url":"https://api.github.com/repos/framgia/brs_35/keys{/key_id}","collaborators_url":"https://api.github.com/repos/framgia/brs_35/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/framgia/brs_35/teams","hooks_url":"https://api.github.com/repos/framgia/brs_35/hooks","issue_events_url":"https://api.github.com/repos/framgia/brs_35/issues/events{/number}","events_url":"https://api.github.com/repos/framgia/brs_35/events","assignees_url":"https://api.github.com/repos/framgia/brs_35/assignees{/user}","branches_url":"https://api.github.com/repos/framgia/brs_35/branches{/branch}","tags_url":"https://api.github.com/repos/framgia/brs_35/tags","blobs_url":"https://api.github.com/repos/framgia/brs_35/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/framgia/brs_35/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/framgia/brs_35/git/refs{/sha}","trees_url":"https://api.github.com/repos/framgia/brs_35/git/trees{/sha}","statuses_url":"https://api.github.com/repos/framgia/brs_35/statuses/{sha}","languages_url":"https://api.github.com/repos/framgia/brs_35/languages","stargazers_url":"https://api.github.com/repos/framgia/brs_35/stargazers","contributors_url":"https://api.github.com/repos/framgia/brs_35/contributors","subscribers_url":"https://api.github.com/repos/framgia/brs_35/subscribers","subscription_url":"https://api.github.com/repos/framgia/brs_35/subscription","commits_url":"https://api.github.com/repos/framgia/brs_35/commits{/sha}","git_commits_url":"https://api.github.com/repos/framgia/brs_35/git/commits{/sha}","comments_url":"https://api.github.com/repos/framgia/brs_35/comments{/number}","issue_comment_url":"https://api.github.com/repos/framgia/brs_35/issues/comments{/number}","contents_url":"https://api.github.com/repos/framgia/brs_35/contents/{+path}","compare_url":"https://api.github.com/repos/framgia/brs_35/compare/{base}...{head}","merges_url":"https://api.github.com/repos/framgia/brs_35/merges","archive_url":"https://api.github.com/repos/framgia/brs_35/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/framgia/brs_35/downloads","issues_url":"https://api.github.com/repos/framgia/brs_35/issues{/number}","pulls_url":"https://api.github.com/repos/framgia/brs_35/pulls{/number}","milestones_url":"https://api.github.com/repos/framgia/brs_35/milestones{/number}","notifications_url":"https://api.github.com/repos/framgia/brs_35/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/framgia/brs_35/labels{/name}","releases_url":"https://api.github.com/repos/framgia/brs_35/releases{/id}","deployments_url":"https://api.github.com/repos/framgia/brs_35/deployments","created_at":"2016-09-27T09:08:04Z","updated_at":"2016-09-27T09:08:04Z","pushed_at":"2016-10-12T01:32:21Z","git_url":"git://github.com/framgia/brs_35.git","ssh_url":"git@github.com:framgia/brs_35.git","clone_url":"https://github.com/framgia/brs_35.git","svn_url":"https://github.com/framgia/brs_35","homepage":null,"size":2211,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":2,"forks":3,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/framgia/brs_35/pulls/24"},"html":{"href":"https://github.com/framgia/brs_35/pull/24"},"issue":{"href":"https://api.github.com/repos/framgia/brs_35/issues/24"},"comments":{"href":"https://api.github.com/repos/framgia/brs_35/issues/24/comments"},"review_comments":{"href":"https://api.github.com/repos/framgia/brs_35/pulls/24/comments"},"review_comment":{"href":"https://api.github.com/repos/framgia/brs_35/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/framgia/brs_35/pulls/24/commits"},"statuses":{"href":"https://api.github.com/repos/framgia/brs_35/statuses/c4d0cb4fb2ea4c5e7e5dec6d993cb094bd0e27cc"}}}}
{"actor":{"display_login":"nvtanh"}}