{"action":"created","comment":{"url":"https://api.github.com/repos/joelbcastillo/openrecords_v2_0/pulls/comments/91815390","pull_request_review_id":12328809,"id":91815390,"diff_hunk":"@@ -0,0 +1,48 @@\n+$(function() {\n+    // ADD ACTIVE USER\n+    $(\"#add-button\").click(function() {\n+        var id = $(\"#users\").val();\n+        var isAgencyAdmin = $(\"input[name='is-admin']\").is(':checked');\n+        $.ajax({\n+            url: \"/user/\" + id,\n+            type: \"PATCH\",\n+            data: {\n+                is_agency_active: true,\n+                is_agency_admin: isAgencyAdmin","path":"app/static/js/admin/main.js","position":11,"original_position":11,"commit_id":"637e86b2e582f975da209b87c1d2e3684d6618f8","original_commit_id":"637e86b2e582f975da209b87c1d2e3684d6618f8","user":{"login":"codacy-bot","id":19940114,"avatar_url":"https://avatars.githubusercontent.com/u/19940114?v=3","gravatar_id":"","url":"https://api.github.com/users/codacy-bot","html_url":"https://github.com/codacy-bot","followers_url":"https://api.github.com/users/codacy-bot/followers","following_url":"https://api.github.com/users/codacy-bot/following{/other_user}","gists_url":"https://api.github.com/users/codacy-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/codacy-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codacy-bot/subscriptions","organizations_url":"https://api.github.com/users/codacy-bot/orgs","repos_url":"https://api.github.com/users/codacy-bot/repos","events_url":"https://api.github.com/users/codacy-bot/events{/privacy}","received_events_url":"https://api.github.com/users/codacy-bot/received_events","type":"User","site_admin":false},"body":"![Codacy](https://www.codacy.com/assets/images/favicon.png) Issue found: [Identifier 'is_agency_admin' is not in camel case. (camelcase)](https://www.codacy.com/app/NYCRecords/openrecords_v2_0/file/4704498743/issues/source?bid=3820387&fileBranchId=3982959#l11)","created_at":"2016-12-09T23:25:51Z","updated_at":"2016-12-09T23:25:51Z","html_url":"https://github.com/joelbcastillo/openrecords_v2_0/pull/97#discussion_r91815390","pull_request_url":"https://api.github.com/repos/joelbcastillo/openrecords_v2_0/pulls/97","_links":{"self":{"href":"https://api.github.com/repos/joelbcastillo/openrecords_v2_0/pulls/comments/91815390"},"html":{"href":"https://github.com/joelbcastillo/openrecords_v2_0/pull/97#discussion_r91815390"},"pull_request":{"href":"https://api.github.com/repos/joelbcastillo/openrecords_v2_0/pulls/97"}}},"pull_request":{"url":"https://api.github.com/repos/joelbcastillo/openrecords_v2_0/pulls/97","id":97397941,"html_url":"https://github.com/joelbcastillo/openrecords_v2_0/pull/97","diff_url":"https://github.com/joelbcastillo/openrecords_v2_0/pull/97.diff","patch_url":"https://github.com/joelbcastillo/openrecords_v2_0/pull/97.patch","issue_url":"https://api.github.com/repos/joelbcastillo/openrecords_v2_0/issues/97","number":97,"state":"open","locked":false,"title":"feature/OP-957: Agency User Admin Interface","user":{"login":"Palisand","id":4138177,"avatar_url":"https://avatars.githubusercontent.com/u/4138177?v=3","gravatar_id":"","url":"https://api.github.com/users/Palisand","html_url":"https://github.com/Palisand","followers_url":"https://api.github.com/users/Palisand/followers","following_url":"https://api.github.com/users/Palisand/following{/other_user}","gists_url":"https://api.github.com/users/Palisand/gists{/gist_id}","starred_url":"https://api.github.com/users/Palisand/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Palisand/subscriptions","organizations_url":"https://api.github.com/users/Palisand/orgs","repos_url":"https://api.github.com/users/Palisand/repos","events_url":"https://api.github.com/users/Palisand/events{/privacy}","received_events_url":"https://api.github.com/users/Palisand/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-12-09T23:23:53Z","updated_at":"2016-12-09T23:25:51Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ad07ee6c37584a9afdba06dcc04bf6e83b5bd21c","assignee":{"login":"gzhou1","id":17318911,"avatar_url":"https://avatars.githubusercontent.com/u/17318911?v=3","gravatar_id":"","url":"https://api.github.com/users/gzhou1","html_url":"https://github.com/gzhou1","followers_url":"https://api.github.com/users/gzhou1/followers","following_url":"https://api.github.com/users/gzhou1/following{/other_user}","gists_url":"https://api.github.com/users/gzhou1/gists{/gist_id}","starred_url":"https://api.github.com/users/gzhou1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gzhou1/subscriptions","organizations_url":"https://api.github.com/users/gzhou1/orgs","repos_url":"https://api.github.com/users/gzhou1/repos","events_url":"https://api.github.com/users/gzhou1/events{/privacy}","received_events_url":"https://api.github.com/users/gzhou1/received_events","type":"User","site_admin":false},"assignees":[{"login":"gzhou1","id":17318911,"avatar_url":"https://avatars.githubusercontent.com/u/17318911?v=3","gravatar_id":"","url":"https://api.github.com/users/gzhou1","html_url":"https://github.com/gzhou1","followers_url":"https://api.github.com/users/gzhou1/followers","following_url":"https://api.github.com/users/gzhou1/following{/other_user}","gists_url":"https://api.github.com/users/gzhou1/gists{/gist_id}","starred_url":"https://api.github.com/users/gzhou1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gzhou1/subscriptions","organizations_url":"https://api.github.com/users/gzhou1/orgs","repos_url":"https://api.github.com/users/gzhou1/repos","events_url":"https://api.github.com/users/gzhou1/events{/privacy}","received_events_url":"https://api.github.com/users/gzhou1/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/joelbcastillo/openrecords_v2_0/pulls/97/commits","review_comments_url":"https://api.github.com/repos/joelbcastillo/openrecords_v2_0/pulls/97/comments","review_comment_url":"https://api.github.com/repos/joelbcastillo/openrecords_v2_0/pulls/comments{/number}","comments_url":"https://api.github.com/repos/joelbcastillo/openrecords_v2_0/issues/97/comments","statuses_url":"https://api.github.com/repos/joelbcastillo/openrecords_v2_0/statuses/637e86b2e582f975da209b87c1d2e3684d6618f8","head":{"label":"joelbcastillo:feature/OP-957","ref":"feature/OP-957","sha":"637e86b2e582f975da209b87c1d2e3684d6618f8","user":{"login":"joelbcastillo","id":3308161,"avatar_url":"https://avatars.githubusercontent.com/u/3308161?v=3","gravatar_id":"","url":"https://api.github.com/users/joelbcastillo","html_url":"https://github.com/joelbcastillo","followers_url":"https://api.github.com/users/joelbcastillo/followers","following_url":"https://api.github.com/users/joelbcastillo/following{/other_user}","gists_url":"https://api.github.com/users/joelbcastillo/gists{/gist_id}","starred_url":"https://api.github.com/users/joelbcastillo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joelbcastillo/subscriptions","organizations_url":"https://api.github.com/users/joelbcastillo/orgs","repos_url":"https://api.github.com/users/joelbcastillo/repos","events_url":"https://api.github.com/users/joelbcastillo/events{/privacy}","received_events_url":"https://api.github.com/users/joelbcastillo/received_events","type":"User","site_admin":false},"repo":{"id":60886481,"name":"openrecords_v2_0","full_name":"joelbcastillo/openrecords_v2_0","owner":{"login":"joelbcastillo","id":3308161,"avatar_url":"https://avatars.githubusercontent.com/u/3308161?v=3","gravatar_id":"","url":"https://api.github.com/users/joelbcastillo","html_url":"https://github.com/joelbcastillo","followers_url":"https://api.github.com/users/joelbcastillo/followers","following_url":"https://api.github.com/users/joelbcastillo/following{/other_user}","gists_url":"https://api.github.com/users/joelbcastillo/gists{/gist_id}","starred_url":"https://api.github.com/users/joelbcastillo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joelbcastillo/subscriptions","organizations_url":"https://api.github.com/users/joelbcastillo/orgs","repos_url":"https://api.github.com/users/joelbcastillo/repos","events_url":"https://api.github.com/users/joelbcastillo/events{/privacy}","received_events_url":"https://api.github.com/users/joelbcastillo/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/joelbcastillo/openrecords_v2_0","description":"NYC OpenRecords Application - v2.0","fork":false,"url":"https://api.github.com/repos/joelbcastillo/openrecords_v2_0","forks_url":"https://api.github.com/repos/joelbcastillo/openrecords_v2_0/forks","keys_url":"https://api.github.com/repos/joelbcastillo/openrecords_v2_0/keys{/key_id}","collaborators_url":"https://api.github.com/repos/joelbcastillo/openrecords_v2_0/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/joelbcastillo/openrecords_v2_0/teams","hooks_url":"https://api.github.com/repos/joelbcastillo/openrecords_v2_0/hooks","issue_events_url":"https://api.github.com/repos/joelbcastillo/openrecords_v2_0/issues/events{/number}","events_url":"https://api.github.com/repos/joelbcastillo/openrecords_v2_0/events","assignees_url":"https://api.github.com/repos/joelbcastillo/openrecords_v2_0/assignees{/user}","branches_url":"https://api.github.com/repos/joelbcastillo/openrecords_v2_0/branches{/branch}","tags_url":"https://api.github.com/repos/joelbcastillo/openrecords_v2_0/tags","blobs_url":"https://api.github.com/repos/joelbcastillo/openrecords_v2_0/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/joelbcastillo/openrecords_v2_0/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/joelbcastillo/openrecords_v2_0/git/refs{/sha}","trees_url":"https://api.github.com/repos/joelbcastillo/openrecords_v2_0/git/trees{/sha}","statuses_url":"https://api.github.com/repos/joelbcastillo/openrecords_v2_0/statuses/{sha}","languages_url":"https://api.github.com/repos/joelbcastillo/openrecords_v2_0/languages","stargazers_url":"https://api.github.com/repos/joelbcastillo/openrecords_v2_0/stargazers","contributors_url":"https://api.github.com/repos/joelbcastillo/openrecords_v2_0/contributors","subscribers_url":"https://api.github.com/repos/joelbcastillo/openrecords_v2_0/subscribers","subscription_url":"https://api.github.com/repos/joelbcastillo/openrecords_v2_0/subscription","commits_url":"https://api.github.com/repos/joelbcastillo/openrecords_v2_0/commits{/sha}","git_commits_url":"https://api.github.com/repos/joelbcastillo/openrecords_v2_0/git/commits{/sha}","comments_url":"https://api.github.com/repos/joelbcastillo/openrecords_v2_0/comments{/number}","issue_comment_url":"https://api.github.com/repos/joelbcastillo/openrecords_v2_0/issues/comments{/number}","contents_url":"https://api.github.com/repos/joelbcastillo/openrecords_v2_0/contents/{+path}","compare_url":"https://api.github.com/repos/joelbcastillo/openrecords_v2_0/compare/{base}...{head}","merges_url":"https://api.github.com/repos/joelbcastillo/openrecords_v2_0/merges","archive_url":"https://api.github.com/repos/joelbcastillo/openrecords_v2_0/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/joelbcastillo/openrecords_v2_0/downloads","issues_url":"https://api.github.com/repos/joelbcastillo/openrecords_v2_0/issues{/number}","pulls_url":"https://api.github.com/repos/joelbcastillo/openrecords_v2_0/pulls{/number}","milestones_url":"https://api.github.com/repos/joelbcastillo/openrecords_v2_0/milestones{/number}","notifications_url":"https://api.github.com/repos/joelbcastillo/openrecords_v2_0/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/joelbcastillo/openrecords_v2_0/labels{/name}","releases_url":"https://api.github.com/repos/joelbcastillo/openrecords_v2_0/releases{/id}","deployments_url":"https://api.github.com/repos/joelbcastillo/openrecords_v2_0/deployments","created_at":"2016-06-11T01:58:34Z","updated_at":"2016-10-26T14:26:03Z","pushed_at":"2016-12-09T23:23:53Z","git_url":"git://github.com/joelbcastillo/openrecords_v2_0.git","ssh_url":"git@github.com:joelbcastillo/openrecords_v2_0.git","clone_url":"https://github.com/joelbcastillo/openrecords_v2_0.git","svn_url":"https://github.com/joelbcastillo/openrecords_v2_0","homepage":null,"size":30274,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":5,"forks":0,"open_issues":5,"watchers":0,"default_branch":"develop"}},"base":{"label":"joelbcastillo:develop","ref":"develop","sha":"7d9fd6e53538e52b0f074b3737a452872a13248b","user":{"login":"joelbcastillo","id":3308161,"avatar_url":"https://avatars.githubusercontent.com/u/3308161?v=3","gravatar_id":"","url":"https://api.github.com/users/joelbcastillo","html_url":"https://github.com/joelbcastillo","followers_url":"https://api.github.com/users/joelbcastillo/followers","following_url":"https://api.github.com/users/joelbcastillo/following{/other_user}","gists_url":"https://api.github.com/users/joelbcastillo/gists{/gist_id}","starred_url":"https://api.github.com/users/joelbcastillo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joelbcastillo/subscriptions","organizations_url":"https://api.github.com/users/joelbcastillo/orgs","repos_url":"https://api.github.com/users/joelbcastillo/repos","events_url":"https://api.github.com/users/joelbcastillo/events{/privacy}","received_events_url":"https://api.github.com/users/joelbcastillo/received_events","type":"User","site_admin":false},"repo":{"id":60886481,"name":"openrecords_v2_0","full_name":"joelbcastillo/openrecords_v2_0","owner":{"login":"joelbcastillo","id":3308161,"avatar_url":"https://avatars.githubusercontent.com/u/3308161?v=3","gravatar_id":"","url":"https://api.github.com/users/joelbcastillo","html_url":"https://github.com/joelbcastillo","followers_url":"https://api.github.com/users/joelbcastillo/followers","following_url":"https://api.github.com/users/joelbcastillo/following{/other_user}","gists_url":"https://api.github.com/users/joelbcastillo/gists{/gist_id}","starred_url":"https://api.github.com/users/joelbcastillo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joelbcastillo/subscriptions","organizations_url":"https://api.github.com/users/joelbcastillo/orgs","repos_url":"https://api.github.com/users/joelbcastillo/repos","events_url":"https://api.github.com/users/joelbcastillo/events{/privacy}","received_events_url":"https://api.github.com/users/joelbcastillo/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/joelbcastillo/openrecords_v2_0","description":"NYC OpenRecords Application - v2.0","fork":false,"url":"https://api.github.com/repos/joelbcastillo/openrecords_v2_0","forks_url":"https://api.github.com/repos/joelbcastillo/openrecords_v2_0/forks","keys_url":"https://api.github.com/repos/joelbcastillo/openrecords_v2_0/keys{/key_id}","collaborators_url":"https://api.github.com/repos/joelbcastillo/openrecords_v2_0/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/joelbcastillo/openrecords_v2_0/teams","hooks_url":"https://api.github.com/repos/joelbcastillo/openrecords_v2_0/hooks","issue_events_url":"https://api.github.com/repos/joelbcastillo/openrecords_v2_0/issues/events{/number}","events_url":"https://api.github.com/repos/joelbcastillo/openrecords_v2_0/events","assignees_url":"https://api.github.com/repos/joelbcastillo/openrecords_v2_0/assignees{/user}","branches_url":"https://api.github.com/repos/joelbcastillo/openrecords_v2_0/branches{/branch}","tags_url":"https://api.github.com/repos/joelbcastillo/openrecords_v2_0/tags","blobs_url":"https://api.github.com/repos/joelbcastillo/openrecords_v2_0/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/joelbcastillo/openrecords_v2_0/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/joelbcastillo/openrecords_v2_0/git/refs{/sha}","trees_url":"https://api.github.com/repos/joelbcastillo/openrecords_v2_0/git/trees{/sha}","statuses_url":"https://api.github.com/repos/joelbcastillo/openrecords_v2_0/statuses/{sha}","languages_url":"https://api.github.com/repos/joelbcastillo/openrecords_v2_0/languages","stargazers_url":"https://api.github.com/repos/joelbcastillo/openrecords_v2_0/stargazers","contributors_url":"https://api.github.com/repos/joelbcastillo/openrecords_v2_0/contributors","subscribers_url":"https://api.github.com/repos/joelbcastillo/openrecords_v2_0/subscribers","subscription_url":"https://api.github.com/repos/joelbcastillo/openrecords_v2_0/subscription","commits_url":"https://api.github.com/repos/joelbcastillo/openrecords_v2_0/commits{/sha}","git_commits_url":"https://api.github.com/repos/joelbcastillo/openrecords_v2_0/git/commits{/sha}","comments_url":"https://api.github.com/repos/joelbcastillo/openrecords_v2_0/comments{/number}","issue_comment_url":"https://api.github.com/repos/joelbcastillo/openrecords_v2_0/issues/comments{/number}","contents_url":"https://api.github.com/repos/joelbcastillo/openrecords_v2_0/contents/{+path}","compare_url":"https://api.github.com/repos/joelbcastillo/openrecords_v2_0/compare/{base}...{head}","merges_url":"https://api.github.com/repos/joelbcastillo/openrecords_v2_0/merges","archive_url":"https://api.github.com/repos/joelbcastillo/openrecords_v2_0/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/joelbcastillo/openrecords_v2_0/downloads","issues_url":"https://api.github.com/repos/joelbcastillo/openrecords_v2_0/issues{/number}","pulls_url":"https://api.github.com/repos/joelbcastillo/openrecords_v2_0/pulls{/number}","milestones_url":"https://api.github.com/repos/joelbcastillo/openrecords_v2_0/milestones{/number}","notifications_url":"https://api.github.com/repos/joelbcastillo/openrecords_v2_0/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/joelbcastillo/openrecords_v2_0/labels{/name}","releases_url":"https://api.github.com/repos/joelbcastillo/openrecords_v2_0/releases{/id}","deployments_url":"https://api.github.com/repos/joelbcastillo/openrecords_v2_0/deployments","created_at":"2016-06-11T01:58:34Z","updated_at":"2016-10-26T14:26:03Z","pushed_at":"2016-12-09T23:23:53Z","git_url":"git://github.com/joelbcastillo/openrecords_v2_0.git","ssh_url":"git@github.com:joelbcastillo/openrecords_v2_0.git","clone_url":"https://github.com/joelbcastillo/openrecords_v2_0.git","svn_url":"https://github.com/joelbcastillo/openrecords_v2_0","homepage":null,"size":30274,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":5,"forks":0,"open_issues":5,"watchers":0,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/joelbcastillo/openrecords_v2_0/pulls/97"},"html":{"href":"https://github.com/joelbcastillo/openrecords_v2_0/pull/97"},"issue":{"href":"https://api.github.com/repos/joelbcastillo/openrecords_v2_0/issues/97"},"comments":{"href":"https://api.github.com/repos/joelbcastillo/openrecords_v2_0/issues/97/comments"},"review_comments":{"href":"https://api.github.com/repos/joelbcastillo/openrecords_v2_0/pulls/97/comments"},"review_comment":{"href":"https://api.github.com/repos/joelbcastillo/openrecords_v2_0/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/joelbcastillo/openrecords_v2_0/pulls/97/commits"},"statuses":{"href":"https://api.github.com/repos/joelbcastillo/openrecords_v2_0/statuses/637e86b2e582f975da209b87c1d2e3684d6618f8"}}}}
{"actor":{"display_login":"codacy-bot"}}