{"action":"created","comment":{"url":"https://api.github.com/repos/evercam/evercam-admin/pulls/comments/48601184","id":48601184,"diff_hunk":"@@ -10,7 +10,7 @@ def show\n   end\n \n   def merge\n-    @cameras = Camera.run_sql(\"select count(nullif(is_online = false, true)) as online, config->>'external_http_port' as external_http_port, config->>'external_host' as external_host, config->'snapshots'->>'jpg'   as jpg, count(*) as count from cameras group by config->>'external_http_port', config->>'external_host', config->'snapshots'->>'jpg' HAVING (COUNT(*)>1)\")\n+    @cameras = Camera.run_sql(\"select count(nullif(is_online = false, true)) as online, config->>'external_http_port' as external_http_port, config->>'external_host' as external_host, LOWER(config->'snapshots'->>'jpg')   as jpg, count(*) as count from cameras group by config->>'external_http_port', config->>'external_host', LOWER(config->'snapshots'->>'jpg') HAVING (COUNT(*)>1)\")","path":"app/controllers/cameras_controller.rb","position":5,"original_position":5,"commit_id":"eaf843238ea3da156e5b6a953c99f551f11dbc46","original_commit_id":"eaf843238ea3da156e5b6a953c99f551f11dbc46","user":{"login":"houndci","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci","html_url":"https://github.com/houndci","followers_url":"https://api.github.com/users/houndci/followers","following_url":"https://api.github.com/users/houndci/following{/other_user}","gists_url":"https://api.github.com/users/houndci/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci/subscriptions","organizations_url":"https://api.github.com/users/houndci/orgs","repos_url":"https://api.github.com/users/houndci/repos","events_url":"https://api.github.com/users/houndci/events{/privacy}","received_events_url":"https://api.github.com/users/houndci/received_events","type":"User","site_admin":false},"body":"Line is too long. [382/80]","created_at":"2015-12-30T12:19:42Z","updated_at":"2015-12-30T12:19:42Z","html_url":"https://github.com/evercam/evercam-admin/pull/75#discussion_r48601184","pull_request_url":"https://api.github.com/repos/evercam/evercam-admin/pulls/75","_links":{"self":{"href":"https://api.github.com/repos/evercam/evercam-admin/pulls/comments/48601184"},"html":{"href":"https://github.com/evercam/evercam-admin/pull/75#discussion_r48601184"},"pull_request":{"href":"https://api.github.com/repos/evercam/evercam-admin/pulls/75"}}},"pull_request":{"url":"https://api.github.com/repos/evercam/evercam-admin/pulls/75","id":54796164,"html_url":"https://github.com/evercam/evercam-admin/pull/75","diff_url":"https://github.com/evercam/evercam-admin/pull/75.diff","patch_url":"https://github.com/evercam/evercam-admin/pull/75.patch","issue_url":"https://api.github.com/repos/evercam/evercam-admin/issues/75","number":75,"state":"open","locked":false,"title":"Changed query for lower Chars and did some changes","user":{"login":"ijunaidfarooq","id":13561999,"avatar_url":"https://avatars.githubusercontent.com/u/13561999?v=3","gravatar_id":"","url":"https://api.github.com/users/ijunaidfarooq","html_url":"https://github.com/ijunaidfarooq","followers_url":"https://api.github.com/users/ijunaidfarooq/followers","following_url":"https://api.github.com/users/ijunaidfarooq/following{/other_user}","gists_url":"https://api.github.com/users/ijunaidfarooq/gists{/gist_id}","starred_url":"https://api.github.com/users/ijunaidfarooq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ijunaidfarooq/subscriptions","organizations_url":"https://api.github.com/users/ijunaidfarooq/orgs","repos_url":"https://api.github.com/users/ijunaidfarooq/repos","events_url":"https://api.github.com/users/ijunaidfarooq/events{/privacy}","received_events_url":"https://api.github.com/users/ijunaidfarooq/received_events","type":"User","site_admin":false},"body":"@azharmalik3 : kinldy review!","created_at":"2015-12-30T12:19:38Z","updated_at":"2015-12-30T12:19:43Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a657030aa10c6deb9ba51279dc2dd006c3846805","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/evercam/evercam-admin/pulls/75/commits","review_comments_url":"https://api.github.com/repos/evercam/evercam-admin/pulls/75/comments","review_comment_url":"https://api.github.com/repos/evercam/evercam-admin/pulls/comments{/number}","comments_url":"https://api.github.com/repos/evercam/evercam-admin/issues/75/comments","statuses_url":"https://api.github.com/repos/evercam/evercam-admin/statuses/eaf843238ea3da156e5b6a953c99f551f11dbc46","head":{"label":"evercam:merge_cameras","ref":"merge_cameras","sha":"eaf843238ea3da156e5b6a953c99f551f11dbc46","user":{"login":"evercam","id":5575404,"avatar_url":"https://avatars.githubusercontent.com/u/5575404?v=3","gravatar_id":"","url":"https://api.github.com/users/evercam","html_url":"https://github.com/evercam","followers_url":"https://api.github.com/users/evercam/followers","following_url":"https://api.github.com/users/evercam/following{/other_user}","gists_url":"https://api.github.com/users/evercam/gists{/gist_id}","starred_url":"https://api.github.com/users/evercam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evercam/subscriptions","organizations_url":"https://api.github.com/users/evercam/orgs","repos_url":"https://api.github.com/users/evercam/repos","events_url":"https://api.github.com/users/evercam/events{/privacy}","received_events_url":"https://api.github.com/users/evercam/received_events","type":"Organization","site_admin":false},"repo":{"id":38099607,"name":"evercam-admin","full_name":"evercam/evercam-admin","owner":{"login":"evercam","id":5575404,"avatar_url":"https://avatars.githubusercontent.com/u/5575404?v=3","gravatar_id":"","url":"https://api.github.com/users/evercam","html_url":"https://github.com/evercam","followers_url":"https://api.github.com/users/evercam/followers","following_url":"https://api.github.com/users/evercam/following{/other_user}","gists_url":"https://api.github.com/users/evercam/gists{/gist_id}","starred_url":"https://api.github.com/users/evercam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evercam/subscriptions","organizations_url":"https://api.github.com/users/evercam/orgs","repos_url":"https://api.github.com/users/evercam/repos","events_url":"https://api.github.com/users/evercam/events{/privacy}","received_events_url":"https://api.github.com/users/evercam/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/evercam/evercam-admin","description":"Rails Application for Admin Area for User & Camera Management","fork":false,"url":"https://api.github.com/repos/evercam/evercam-admin","forks_url":"https://api.github.com/repos/evercam/evercam-admin/forks","keys_url":"https://api.github.com/repos/evercam/evercam-admin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/evercam/evercam-admin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/evercam/evercam-admin/teams","hooks_url":"https://api.github.com/repos/evercam/evercam-admin/hooks","issue_events_url":"https://api.github.com/repos/evercam/evercam-admin/issues/events{/number}","events_url":"https://api.github.com/repos/evercam/evercam-admin/events","assignees_url":"https://api.github.com/repos/evercam/evercam-admin/assignees{/user}","branches_url":"https://api.github.com/repos/evercam/evercam-admin/branches{/branch}","tags_url":"https://api.github.com/repos/evercam/evercam-admin/tags","blobs_url":"https://api.github.com/repos/evercam/evercam-admin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/evercam/evercam-admin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/evercam/evercam-admin/git/refs{/sha}","trees_url":"https://api.github.com/repos/evercam/evercam-admin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/evercam/evercam-admin/statuses/{sha}","languages_url":"https://api.github.com/repos/evercam/evercam-admin/languages","stargazers_url":"https://api.github.com/repos/evercam/evercam-admin/stargazers","contributors_url":"https://api.github.com/repos/evercam/evercam-admin/contributors","subscribers_url":"https://api.github.com/repos/evercam/evercam-admin/subscribers","subscription_url":"https://api.github.com/repos/evercam/evercam-admin/subscription","commits_url":"https://api.github.com/repos/evercam/evercam-admin/commits{/sha}","git_commits_url":"https://api.github.com/repos/evercam/evercam-admin/git/commits{/sha}","comments_url":"https://api.github.com/repos/evercam/evercam-admin/comments{/number}","issue_comment_url":"https://api.github.com/repos/evercam/evercam-admin/issues/comments{/number}","contents_url":"https://api.github.com/repos/evercam/evercam-admin/contents/{+path}","compare_url":"https://api.github.com/repos/evercam/evercam-admin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/evercam/evercam-admin/merges","archive_url":"https://api.github.com/repos/evercam/evercam-admin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/evercam/evercam-admin/downloads","issues_url":"https://api.github.com/repos/evercam/evercam-admin/issues{/number}","pulls_url":"https://api.github.com/repos/evercam/evercam-admin/pulls{/number}","milestones_url":"https://api.github.com/repos/evercam/evercam-admin/milestones{/number}","notifications_url":"https://api.github.com/repos/evercam/evercam-admin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/evercam/evercam-admin/labels{/name}","releases_url":"https://api.github.com/repos/evercam/evercam-admin/releases{/id}","created_at":"2015-06-26T08:22:15Z","updated_at":"2015-11-05T10:42:17Z","pushed_at":"2015-12-30T12:19:38Z","git_url":"git://github.com/evercam/evercam-admin.git","ssh_url":"git@github.com:evercam/evercam-admin.git","clone_url":"https://github.com/evercam/evercam-admin.git","svn_url":"https://github.com/evercam/evercam-admin","homepage":null,"size":7963,"stargazers_count":4,"watchers_count":4,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":14,"forks":1,"open_issues":14,"watchers":4,"default_branch":"master"}},"base":{"label":"evercam:master","ref":"master","sha":"ea0c07ed261df5a802bd0a9dbe48e8268c4ebd3c","user":{"login":"evercam","id":5575404,"avatar_url":"https://avatars.githubusercontent.com/u/5575404?v=3","gravatar_id":"","url":"https://api.github.com/users/evercam","html_url":"https://github.com/evercam","followers_url":"https://api.github.com/users/evercam/followers","following_url":"https://api.github.com/users/evercam/following{/other_user}","gists_url":"https://api.github.com/users/evercam/gists{/gist_id}","starred_url":"https://api.github.com/users/evercam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evercam/subscriptions","organizations_url":"https://api.github.com/users/evercam/orgs","repos_url":"https://api.github.com/users/evercam/repos","events_url":"https://api.github.com/users/evercam/events{/privacy}","received_events_url":"https://api.github.com/users/evercam/received_events","type":"Organization","site_admin":false},"repo":{"id":38099607,"name":"evercam-admin","full_name":"evercam/evercam-admin","owner":{"login":"evercam","id":5575404,"avatar_url":"https://avatars.githubusercontent.com/u/5575404?v=3","gravatar_id":"","url":"https://api.github.com/users/evercam","html_url":"https://github.com/evercam","followers_url":"https://api.github.com/users/evercam/followers","following_url":"https://api.github.com/users/evercam/following{/other_user}","gists_url":"https://api.github.com/users/evercam/gists{/gist_id}","starred_url":"https://api.github.com/users/evercam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evercam/subscriptions","organizations_url":"https://api.github.com/users/evercam/orgs","repos_url":"https://api.github.com/users/evercam/repos","events_url":"https://api.github.com/users/evercam/events{/privacy}","received_events_url":"https://api.github.com/users/evercam/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/evercam/evercam-admin","description":"Rails Application for Admin Area for User & Camera Management","fork":false,"url":"https://api.github.com/repos/evercam/evercam-admin","forks_url":"https://api.github.com/repos/evercam/evercam-admin/forks","keys_url":"https://api.github.com/repos/evercam/evercam-admin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/evercam/evercam-admin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/evercam/evercam-admin/teams","hooks_url":"https://api.github.com/repos/evercam/evercam-admin/hooks","issue_events_url":"https://api.github.com/repos/evercam/evercam-admin/issues/events{/number}","events_url":"https://api.github.com/repos/evercam/evercam-admin/events","assignees_url":"https://api.github.com/repos/evercam/evercam-admin/assignees{/user}","branches_url":"https://api.github.com/repos/evercam/evercam-admin/branches{/branch}","tags_url":"https://api.github.com/repos/evercam/evercam-admin/tags","blobs_url":"https://api.github.com/repos/evercam/evercam-admin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/evercam/evercam-admin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/evercam/evercam-admin/git/refs{/sha}","trees_url":"https://api.github.com/repos/evercam/evercam-admin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/evercam/evercam-admin/statuses/{sha}","languages_url":"https://api.github.com/repos/evercam/evercam-admin/languages","stargazers_url":"https://api.github.com/repos/evercam/evercam-admin/stargazers","contributors_url":"https://api.github.com/repos/evercam/evercam-admin/contributors","subscribers_url":"https://api.github.com/repos/evercam/evercam-admin/subscribers","subscription_url":"https://api.github.com/repos/evercam/evercam-admin/subscription","commits_url":"https://api.github.com/repos/evercam/evercam-admin/commits{/sha}","git_commits_url":"https://api.github.com/repos/evercam/evercam-admin/git/commits{/sha}","comments_url":"https://api.github.com/repos/evercam/evercam-admin/comments{/number}","issue_comment_url":"https://api.github.com/repos/evercam/evercam-admin/issues/comments{/number}","contents_url":"https://api.github.com/repos/evercam/evercam-admin/contents/{+path}","compare_url":"https://api.github.com/repos/evercam/evercam-admin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/evercam/evercam-admin/merges","archive_url":"https://api.github.com/repos/evercam/evercam-admin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/evercam/evercam-admin/downloads","issues_url":"https://api.github.com/repos/evercam/evercam-admin/issues{/number}","pulls_url":"https://api.github.com/repos/evercam/evercam-admin/pulls{/number}","milestones_url":"https://api.github.com/repos/evercam/evercam-admin/milestones{/number}","notifications_url":"https://api.github.com/repos/evercam/evercam-admin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/evercam/evercam-admin/labels{/name}","releases_url":"https://api.github.com/repos/evercam/evercam-admin/releases{/id}","created_at":"2015-06-26T08:22:15Z","updated_at":"2015-11-05T10:42:17Z","pushed_at":"2015-12-30T12:19:38Z","git_url":"git://github.com/evercam/evercam-admin.git","ssh_url":"git@github.com:evercam/evercam-admin.git","clone_url":"https://github.com/evercam/evercam-admin.git","svn_url":"https://github.com/evercam/evercam-admin","homepage":null,"size":7963,"stargazers_count":4,"watchers_count":4,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":14,"forks":1,"open_issues":14,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/evercam/evercam-admin/pulls/75"},"html":{"href":"https://github.com/evercam/evercam-admin/pull/75"},"issue":{"href":"https://api.github.com/repos/evercam/evercam-admin/issues/75"},"comments":{"href":"https://api.github.com/repos/evercam/evercam-admin/issues/75/comments"},"review_comments":{"href":"https://api.github.com/repos/evercam/evercam-admin/pulls/75/comments"},"review_comment":{"href":"https://api.github.com/repos/evercam/evercam-admin/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/evercam/evercam-admin/pulls/75/commits"},"statuses":{"href":"https://api.github.com/repos/evercam/evercam-admin/statuses/eaf843238ea3da156e5b6a953c99f551f11dbc46"}}}}