{"action":"created","comment":{"url":"https://api.github.com/repos/evercam/evercam-admin/pulls/comments/56153667","id":56153667,"diff_hunk":"@@ -33,8 +33,20 @@ def update\n   end\n \n   def load_users\n-    if params[:def].present?\n+    if params[:def].present? and params[:licReq].present? and params[:licValid].present?\n+      condition1 = \"where (required_licence - valid_licence) > #{params[:def]} OR required_licence > #{params[:licReq]} OR valid_licence > #{params[:licValid]}\"","path":"app/controllers/users_controller.rb","position":6,"original_position":6,"commit_id":"4fedd0fe9ec5266be93288605be48dfd0210a627","original_commit_id":"4fedd0fe9ec5266be93288605be48dfd0210a627","user":{"login":"houndci-bot","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci-bot","html_url":"https://github.com/houndci-bot","followers_url":"https://api.github.com/users/houndci-bot/followers","following_url":"https://api.github.com/users/houndci-bot/following{/other_user}","gists_url":"https://api.github.com/users/houndci-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci-bot/subscriptions","organizations_url":"https://api.github.com/users/houndci-bot/orgs","repos_url":"https://api.github.com/users/houndci-bot/repos","events_url":"https://api.github.com/users/houndci-bot/events{/privacy}","received_events_url":"https://api.github.com/users/houndci-bot/received_events","type":"User","site_admin":false},"body":"Line is too long. [160/80]","created_at":"2016-03-15T12:22:36Z","updated_at":"2016-03-15T12:22:36Z","html_url":"https://github.com/evercam/evercam-admin/pull/159#discussion_r56153667","pull_request_url":"https://api.github.com/repos/evercam/evercam-admin/pulls/159","_links":{"self":{"href":"https://api.github.com/repos/evercam/evercam-admin/pulls/comments/56153667"},"html":{"href":"https://github.com/evercam/evercam-admin/pull/159#discussion_r56153667"},"pull_request":{"href":"https://api.github.com/repos/evercam/evercam-admin/pulls/159"}}},"pull_request":{"url":"https://api.github.com/repos/evercam/evercam-admin/pulls/159","id":62897010,"html_url":"https://github.com/evercam/evercam-admin/pull/159","diff_url":"https://github.com/evercam/evercam-admin/pull/159.diff","patch_url":"https://github.com/evercam/evercam-admin/pull/159.patch","issue_url":"https://api.github.com/repos/evercam/evercam-admin/issues/159","number":159,"state":"open","locked":false,"title":"Filter 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":"/cc @azharmalik3 ","created_at":"2016-03-15T12:22:21Z","updated_at":"2016-03-15T12:22:36Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d3f584321885a51176fd55770234962753ab8b65","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/evercam/evercam-admin/pulls/159/commits","review_comments_url":"https://api.github.com/repos/evercam/evercam-admin/pulls/159/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/159/comments","statuses_url":"https://api.github.com/repos/evercam/evercam-admin/statuses/4fedd0fe9ec5266be93288605be48dfd0210a627","head":{"label":"evercam:filter_changes","ref":"filter_changes","sha":"4fedd0fe9ec5266be93288605be48dfd0210a627","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}","deployments_url":"https://api.github.com/repos/evercam/evercam-admin/deployments","created_at":"2015-06-26T08:22:15Z","updated_at":"2016-01-21T13:08:29Z","pushed_at":"2016-03-15T12:22:21Z","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":10017,"stargazers_count":4,"watchers_count":4,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":4,"forks":2,"open_issues":4,"watchers":4,"default_branch":"master"}},"base":{"label":"evercam:master","ref":"master","sha":"0c14b5705364ce550fe3fb9325f505136da7d6ef","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}","deployments_url":"https://api.github.com/repos/evercam/evercam-admin/deployments","created_at":"2015-06-26T08:22:15Z","updated_at":"2016-01-21T13:08:29Z","pushed_at":"2016-03-15T12:22:21Z","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":10017,"stargazers_count":4,"watchers_count":4,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":4,"forks":2,"open_issues":4,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/evercam/evercam-admin/pulls/159"},"html":{"href":"https://github.com/evercam/evercam-admin/pull/159"},"issue":{"href":"https://api.github.com/repos/evercam/evercam-admin/issues/159"},"comments":{"href":"https://api.github.com/repos/evercam/evercam-admin/issues/159/comments"},"review_comments":{"href":"https://api.github.com/repos/evercam/evercam-admin/pulls/159/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/159/commits"},"statuses":{"href":"https://api.github.com/repos/evercam/evercam-admin/statuses/4fedd0fe9ec5266be93288605be48dfd0210a627"}}}}