{"action":"created","comment":{"url":"https://api.github.com/repos/uwcirg/true_nth_usa_portal/pulls/comments/189501038","pull_request_review_id":121690732,"id":189501038,"diff_hunk":"@@ -0,0 +1,70 @@\n+var requestAttempts = 0;\n+function sendRequest(url, params, callback) { //XHR request in pure JavaScript\n+    requestAttempts++;\n+    var xhr;\n+    var ensureReadiness = function() {","path":"portal/static/js/ajaxWorker.js","position":5,"original_position":5,"commit_id":"b793611cb914d79bab7cb0281f48c5da3f89f97e","original_commit_id":"b793611cb914d79bab7cb0281f48c5da3f89f97e","user":{"login":"codacy-bot","id":19940114,"avatar_url":"https://avatars1.githubusercontent.com/u/19940114?v=4","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://app.codacy.com/assets/images/favicon.png) Issue found: [Function has a complexity of 5. (complexity)](https://app.codacy.com/app/uwcirg/true_nth_usa_portal/pullRequest?prid=1672320)","created_at":"2018-05-21T06:03:50Z","updated_at":"2018-05-21T06:03:50Z","html_url":"https://github.com/uwcirg/true_nth_usa_portal/pull/2143#discussion_r189501038","pull_request_url":"https://api.github.com/repos/uwcirg/true_nth_usa_portal/pulls/2143","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/uwcirg/true_nth_usa_portal/pulls/comments/189501038"},"html":{"href":"https://github.com/uwcirg/true_nth_usa_portal/pull/2143#discussion_r189501038"},"pull_request":{"href":"https://api.github.com/repos/uwcirg/true_nth_usa_portal/pulls/2143"}}},"pull_request":{"url":"https://api.github.com/repos/uwcirg/true_nth_usa_portal/pulls/2143","id":189289721,"html_url":"https://github.com/uwcirg/true_nth_usa_portal/pull/2143","diff_url":"https://github.com/uwcirg/true_nth_usa_portal/pull/2143.diff","patch_url":"https://github.com/uwcirg/true_nth_usa_portal/pull/2143.patch","issue_url":"https://api.github.com/repos/uwcirg/true_nth_usa_portal/issues/2143","number":2143,"state":"open","locked":false,"title":"Feature/js refactor 5","user":{"login":"achen2401","id":12942714,"avatar_url":"https://avatars2.githubusercontent.com/u/12942714?v=4","gravatar_id":"","url":"https://api.github.com/users/achen2401","html_url":"https://github.com/achen2401","followers_url":"https://api.github.com/users/achen2401/followers","following_url":"https://api.github.com/users/achen2401/following{/other_user}","gists_url":"https://api.github.com/users/achen2401/gists{/gist_id}","starred_url":"https://api.github.com/users/achen2401/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/achen2401/subscriptions","organizations_url":"https://api.github.com/users/achen2401/orgs","repos_url":"https://api.github.com/users/achen2401/repos","events_url":"https://api.github.com/users/achen2401/events{/privacy}","received_events_url":"https://api.github.com/users/achen2401/received_events","type":"User","site_admin":false},"body":"use web worker if browser supports it (has fallback if not) to handle ajax request(s) in cases when numerous are made (in profile page, +5 requests were made to initialize sections)\r\nadd ajax params that allows it\r\n","created_at":"2018-05-21T06:00:58Z","updated_at":"2018-05-21T06:03:50Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ee318391765ea1ae4fc401ac50f4e55c22e7d029","assignee":null,"assignees":[],"requested_reviewers":[{"login":"pbugni","id":755392,"avatar_url":"https://avatars0.githubusercontent.com/u/755392?v=4","gravatar_id":"","url":"https://api.github.com/users/pbugni","html_url":"https://github.com/pbugni","followers_url":"https://api.github.com/users/pbugni/followers","following_url":"https://api.github.com/users/pbugni/following{/other_user}","gists_url":"https://api.github.com/users/pbugni/gists{/gist_id}","starred_url":"https://api.github.com/users/pbugni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pbugni/subscriptions","organizations_url":"https://api.github.com/users/pbugni/orgs","repos_url":"https://api.github.com/users/pbugni/repos","events_url":"https://api.github.com/users/pbugni/events{/privacy}","received_events_url":"https://api.github.com/users/pbugni/received_events","type":"User","site_admin":false},{"login":"mcjustin","id":1036500,"avatar_url":"https://avatars2.githubusercontent.com/u/1036500?v=4","gravatar_id":"","url":"https://api.github.com/users/mcjustin","html_url":"https://github.com/mcjustin","followers_url":"https://api.github.com/users/mcjustin/followers","following_url":"https://api.github.com/users/mcjustin/following{/other_user}","gists_url":"https://api.github.com/users/mcjustin/gists{/gist_id}","starred_url":"https://api.github.com/users/mcjustin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mcjustin/subscriptions","organizations_url":"https://api.github.com/users/mcjustin/orgs","repos_url":"https://api.github.com/users/mcjustin/repos","events_url":"https://api.github.com/users/mcjustin/events{/privacy}","received_events_url":"https://api.github.com/users/mcjustin/received_events","type":"User","site_admin":false},{"login":"ivan-c","id":5333433,"avatar_url":"https://avatars1.githubusercontent.com/u/5333433?v=4","gravatar_id":"","url":"https://api.github.com/users/ivan-c","html_url":"https://github.com/ivan-c","followers_url":"https://api.github.com/users/ivan-c/followers","following_url":"https://api.github.com/users/ivan-c/following{/other_user}","gists_url":"https://api.github.com/users/ivan-c/gists{/gist_id}","starred_url":"https://api.github.com/users/ivan-c/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ivan-c/subscriptions","organizations_url":"https://api.github.com/users/ivan-c/orgs","repos_url":"https://api.github.com/users/ivan-c/repos","events_url":"https://api.github.com/users/ivan-c/events{/privacy}","received_events_url":"https://api.github.com/users/ivan-c/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/uwcirg/true_nth_usa_portal/pulls/2143/commits","review_comments_url":"https://api.github.com/repos/uwcirg/true_nth_usa_portal/pulls/2143/comments","review_comment_url":"https://api.github.com/repos/uwcirg/true_nth_usa_portal/pulls/comments{/number}","comments_url":"https://api.github.com/repos/uwcirg/true_nth_usa_portal/issues/2143/comments","statuses_url":"https://api.github.com/repos/uwcirg/true_nth_usa_portal/statuses/b793611cb914d79bab7cb0281f48c5da3f89f97e","head":{"label":"uwcirg:feature/js-refactor-5","ref":"feature/js-refactor-5","sha":"b793611cb914d79bab7cb0281f48c5da3f89f97e","user":{"login":"uwcirg","id":4440514,"avatar_url":"https://avatars1.githubusercontent.com/u/4440514?v=4","gravatar_id":"","url":"https://api.github.com/users/uwcirg","html_url":"https://github.com/uwcirg","followers_url":"https://api.github.com/users/uwcirg/followers","following_url":"https://api.github.com/users/uwcirg/following{/other_user}","gists_url":"https://api.github.com/users/uwcirg/gists{/gist_id}","starred_url":"https://api.github.com/users/uwcirg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/uwcirg/subscriptions","organizations_url":"https://api.github.com/users/uwcirg/orgs","repos_url":"https://api.github.com/users/uwcirg/repos","events_url":"https://api.github.com/users/uwcirg/events{/privacy}","received_events_url":"https://api.github.com/users/uwcirg/received_events","type":"Organization","site_admin":false},"repo":{"id":37150258,"name":"true_nth_usa_portal","full_name":"uwcirg/true_nth_usa_portal","owner":{"login":"uwcirg","id":4440514,"avatar_url":"https://avatars1.githubusercontent.com/u/4440514?v=4","gravatar_id":"","url":"https://api.github.com/users/uwcirg","html_url":"https://github.com/uwcirg","followers_url":"https://api.github.com/users/uwcirg/followers","following_url":"https://api.github.com/users/uwcirg/following{/other_user}","gists_url":"https://api.github.com/users/uwcirg/gists{/gist_id}","starred_url":"https://api.github.com/users/uwcirg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/uwcirg/subscriptions","organizations_url":"https://api.github.com/users/uwcirg/orgs","repos_url":"https://api.github.com/users/uwcirg/repos","events_url":"https://api.github.com/users/uwcirg/events{/privacy}","received_events_url":"https://api.github.com/users/uwcirg/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/uwcirg/true_nth_usa_portal","description":"TrueNTH USA Portal / Shared Services, primary codebase","fork":false,"url":"https://api.github.com/repos/uwcirg/true_nth_usa_portal","forks_url":"https://api.github.com/repos/uwcirg/true_nth_usa_portal/forks","keys_url":"https://api.github.com/repos/uwcirg/true_nth_usa_portal/keys{/key_id}","collaborators_url":"https://api.github.com/repos/uwcirg/true_nth_usa_portal/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/uwcirg/true_nth_usa_portal/teams","hooks_url":"https://api.github.com/repos/uwcirg/true_nth_usa_portal/hooks","issue_events_url":"https://api.github.com/repos/uwcirg/true_nth_usa_portal/issues/events{/number}","events_url":"https://api.github.com/repos/uwcirg/true_nth_usa_portal/events","assignees_url":"https://api.github.com/repos/uwcirg/true_nth_usa_portal/assignees{/user}","branches_url":"https://api.github.com/repos/uwcirg/true_nth_usa_portal/branches{/branch}","tags_url":"https://api.github.com/repos/uwcirg/true_nth_usa_portal/tags","blobs_url":"https://api.github.com/repos/uwcirg/true_nth_usa_portal/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/uwcirg/true_nth_usa_portal/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/uwcirg/true_nth_usa_portal/git/refs{/sha}","trees_url":"https://api.github.com/repos/uwcirg/true_nth_usa_portal/git/trees{/sha}","statuses_url":"https://api.github.com/repos/uwcirg/true_nth_usa_portal/statuses/{sha}","languages_url":"https://api.github.com/repos/uwcirg/true_nth_usa_portal/languages","stargazers_url":"https://api.github.com/repos/uwcirg/true_nth_usa_portal/stargazers","contributors_url":"https://api.github.com/repos/uwcirg/true_nth_usa_portal/contributors","subscribers_url":"https://api.github.com/repos/uwcirg/true_nth_usa_portal/subscribers","subscription_url":"https://api.github.com/repos/uwcirg/true_nth_usa_portal/subscription","commits_url":"https://api.github.com/repos/uwcirg/true_nth_usa_portal/commits{/sha}","git_commits_url":"https://api.github.com/repos/uwcirg/true_nth_usa_portal/git/commits{/sha}","comments_url":"https://api.github.com/repos/uwcirg/true_nth_usa_portal/comments{/number}","issue_comment_url":"https://api.github.com/repos/uwcirg/true_nth_usa_portal/issues/comments{/number}","contents_url":"https://api.github.com/repos/uwcirg/true_nth_usa_portal/contents/{+path}","compare_url":"https://api.github.com/repos/uwcirg/true_nth_usa_portal/compare/{base}...{head}","merges_url":"https://api.github.com/repos/uwcirg/true_nth_usa_portal/merges","archive_url":"https://api.github.com/repos/uwcirg/true_nth_usa_portal/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/uwcirg/true_nth_usa_portal/downloads","issues_url":"https://api.github.com/repos/uwcirg/true_nth_usa_portal/issues{/number}","pulls_url":"https://api.github.com/repos/uwcirg/true_nth_usa_portal/pulls{/number}","milestones_url":"https://api.github.com/repos/uwcirg/true_nth_usa_portal/milestones{/number}","notifications_url":"https://api.github.com/repos/uwcirg/true_nth_usa_portal/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/uwcirg/true_nth_usa_portal/labels{/name}","releases_url":"https://api.github.com/repos/uwcirg/true_nth_usa_portal/releases{/id}","deployments_url":"https://api.github.com/repos/uwcirg/true_nth_usa_portal/deployments","created_at":"2015-06-09T18:25:47Z","updated_at":"2018-05-19T22:41:45Z","pushed_at":"2018-05-21T06:00:59Z","git_url":"git://github.com/uwcirg/true_nth_usa_portal.git","ssh_url":"git@github.com:uwcirg/true_nth_usa_portal.git","clone_url":"https://github.com/uwcirg/true_nth_usa_portal.git","svn_url":"https://github.com/uwcirg/true_nth_usa_portal","homepage":"","size":51116,"stargazers_count":1,"watchers_count":1,"language":"CSS","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"archived":false,"open_issues_count":5,"license":{"key":"bsd-3-clause","name":"BSD 3-Clause \"New\" or \"Revised\" License","spdx_id":"BSD-3-Clause","url":"https://api.github.com/licenses/bsd-3-clause"},"forks":3,"open_issues":5,"watchers":1,"default_branch":"develop"}},"base":{"label":"uwcirg:develop","ref":"develop","sha":"ccc19d82369263324751a3e33c6c10062e7425ca","user":{"login":"uwcirg","id":4440514,"avatar_url":"https://avatars1.githubusercontent.com/u/4440514?v=4","gravatar_id":"","url":"https://api.github.com/users/uwcirg","html_url":"https://github.com/uwcirg","followers_url":"https://api.github.com/users/uwcirg/followers","following_url":"https://api.github.com/users/uwcirg/following{/other_user}","gists_url":"https://api.github.com/users/uwcirg/gists{/gist_id}","starred_url":"https://api.github.com/users/uwcirg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/uwcirg/subscriptions","organizations_url":"https://api.github.com/users/uwcirg/orgs","repos_url":"https://api.github.com/users/uwcirg/repos","events_url":"https://api.github.com/users/uwcirg/events{/privacy}","received_events_url":"https://api.github.com/users/uwcirg/received_events","type":"Organization","site_admin":false},"repo":{"id":37150258,"name":"true_nth_usa_portal","full_name":"uwcirg/true_nth_usa_portal","owner":{"login":"uwcirg","id":4440514,"avatar_url":"https://avatars1.githubusercontent.com/u/4440514?v=4","gravatar_id":"","url":"https://api.github.com/users/uwcirg","html_url":"https://github.com/uwcirg","followers_url":"https://api.github.com/users/uwcirg/followers","following_url":"https://api.github.com/users/uwcirg/following{/other_user}","gists_url":"https://api.github.com/users/uwcirg/gists{/gist_id}","starred_url":"https://api.github.com/users/uwcirg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/uwcirg/subscriptions","organizations_url":"https://api.github.com/users/uwcirg/orgs","repos_url":"https://api.github.com/users/uwcirg/repos","events_url":"https://api.github.com/users/uwcirg/events{/privacy}","received_events_url":"https://api.github.com/users/uwcirg/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/uwcirg/true_nth_usa_portal","description":"TrueNTH USA Portal / Shared Services, primary codebase","fork":false,"url":"https://api.github.com/repos/uwcirg/true_nth_usa_portal","forks_url":"https://api.github.com/repos/uwcirg/true_nth_usa_portal/forks","keys_url":"https://api.github.com/repos/uwcirg/true_nth_usa_portal/keys{/key_id}","collaborators_url":"https://api.github.com/repos/uwcirg/true_nth_usa_portal/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/uwcirg/true_nth_usa_portal/teams","hooks_url":"https://api.github.com/repos/uwcirg/true_nth_usa_portal/hooks","issue_events_url":"https://api.github.com/repos/uwcirg/true_nth_usa_portal/issues/events{/number}","events_url":"https://api.github.com/repos/uwcirg/true_nth_usa_portal/events","assignees_url":"https://api.github.com/repos/uwcirg/true_nth_usa_portal/assignees{/user}","branches_url":"https://api.github.com/repos/uwcirg/true_nth_usa_portal/branches{/branch}","tags_url":"https://api.github.com/repos/uwcirg/true_nth_usa_portal/tags","blobs_url":"https://api.github.com/repos/uwcirg/true_nth_usa_portal/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/uwcirg/true_nth_usa_portal/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/uwcirg/true_nth_usa_portal/git/refs{/sha}","trees_url":"https://api.github.com/repos/uwcirg/true_nth_usa_portal/git/trees{/sha}","statuses_url":"https://api.github.com/repos/uwcirg/true_nth_usa_portal/statuses/{sha}","languages_url":"https://api.github.com/repos/uwcirg/true_nth_usa_portal/languages","stargazers_url":"https://api.github.com/repos/uwcirg/true_nth_usa_portal/stargazers","contributors_url":"https://api.github.com/repos/uwcirg/true_nth_usa_portal/contributors","subscribers_url":"https://api.github.com/repos/uwcirg/true_nth_usa_portal/subscribers","subscription_url":"https://api.github.com/repos/uwcirg/true_nth_usa_portal/subscription","commits_url":"https://api.github.com/repos/uwcirg/true_nth_usa_portal/commits{/sha}","git_commits_url":"https://api.github.com/repos/uwcirg/true_nth_usa_portal/git/commits{/sha}","comments_url":"https://api.github.com/repos/uwcirg/true_nth_usa_portal/comments{/number}","issue_comment_url":"https://api.github.com/repos/uwcirg/true_nth_usa_portal/issues/comments{/number}","contents_url":"https://api.github.com/repos/uwcirg/true_nth_usa_portal/contents/{+path}","compare_url":"https://api.github.com/repos/uwcirg/true_nth_usa_portal/compare/{base}...{head}","merges_url":"https://api.github.com/repos/uwcirg/true_nth_usa_portal/merges","archive_url":"https://api.github.com/repos/uwcirg/true_nth_usa_portal/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/uwcirg/true_nth_usa_portal/downloads","issues_url":"https://api.github.com/repos/uwcirg/true_nth_usa_portal/issues{/number}","pulls_url":"https://api.github.com/repos/uwcirg/true_nth_usa_portal/pulls{/number}","milestones_url":"https://api.github.com/repos/uwcirg/true_nth_usa_portal/milestones{/number}","notifications_url":"https://api.github.com/repos/uwcirg/true_nth_usa_portal/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/uwcirg/true_nth_usa_portal/labels{/name}","releases_url":"https://api.github.com/repos/uwcirg/true_nth_usa_portal/releases{/id}","deployments_url":"https://api.github.com/repos/uwcirg/true_nth_usa_portal/deployments","created_at":"2015-06-09T18:25:47Z","updated_at":"2018-05-19T22:41:45Z","pushed_at":"2018-05-21T06:00:59Z","git_url":"git://github.com/uwcirg/true_nth_usa_portal.git","ssh_url":"git@github.com:uwcirg/true_nth_usa_portal.git","clone_url":"https://github.com/uwcirg/true_nth_usa_portal.git","svn_url":"https://github.com/uwcirg/true_nth_usa_portal","homepage":"","size":51116,"stargazers_count":1,"watchers_count":1,"language":"CSS","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"archived":false,"open_issues_count":5,"license":{"key":"bsd-3-clause","name":"BSD 3-Clause \"New\" or \"Revised\" License","spdx_id":"BSD-3-Clause","url":"https://api.github.com/licenses/bsd-3-clause"},"forks":3,"open_issues":5,"watchers":1,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/uwcirg/true_nth_usa_portal/pulls/2143"},"html":{"href":"https://github.com/uwcirg/true_nth_usa_portal/pull/2143"},"issue":{"href":"https://api.github.com/repos/uwcirg/true_nth_usa_portal/issues/2143"},"comments":{"href":"https://api.github.com/repos/uwcirg/true_nth_usa_portal/issues/2143/comments"},"review_comments":{"href":"https://api.github.com/repos/uwcirg/true_nth_usa_portal/pulls/2143/comments"},"review_comment":{"href":"https://api.github.com/repos/uwcirg/true_nth_usa_portal/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/uwcirg/true_nth_usa_portal/pulls/2143/commits"},"statuses":{"href":"https://api.github.com/repos/uwcirg/true_nth_usa_portal/statuses/b793611cb914d79bab7cb0281f48c5da3f89f97e"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"codacy-bot"}}