{"action":"created","comment":{"url":"https://api.github.com/repos/fossasia/open-event-orga-server/pulls/comments/75601977","id":75601977,"diff_hunk":"@@ -60,3 +60,33 @@ function importTask(url){\n         }\n     });\n }\n+\n+\n+function importTaskTable(task, field_id){\n+    console.log(task);\n+    url = '/api/v2/tasks/' + task;\n+    jQuery.ajax({\n+        url: url,\n+        type: 'GET',\n+        success: function(data){\n+            console.log(data);\n+            if (data['state'] == 'PENDING'){ // task is lost\n+                $(field_id).html('Failed');\n+                return;\n+            }\n+            if (data['state'] != 'SUCCESS'){\n+                $(field_id).html('<b>Status:</b> ' + data['state']);\n+                setTimeout(function(){\n+                    importTaskTable(task, field_id);\n+                }, 3000);\n+            } else {\n+                $(field_id).html('<b>Status:</b> ' + data['state']);\n+            }\n+        },\n+        error: function(x){\n+            console.log(x.responseText);","path":"app/static/js/admin/event/importEvent.js","position":37,"original_position":37,"commit_id":"92dea9b7f9cdef56a97a6b38fd7bf986bd8851a1","original_commit_id":"92dea9b7f9cdef56a97a6b38fd7bf986bd8851a1","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: [Unexpected console statement. (no-console)](https://www.codacy.com/app/fossasia/open-event-orga-server/file/3464272610/issues/source?bid=3448950&fileBranchId=3615165#l87)","created_at":"2016-08-21T19:37:51Z","updated_at":"2016-08-21T19:37:51Z","html_url":"https://github.com/fossasia/open-event-orga-server/pull/2330#discussion_r75601977","pull_request_url":"https://api.github.com/repos/fossasia/open-event-orga-server/pulls/2330","_links":{"self":{"href":"https://api.github.com/repos/fossasia/open-event-orga-server/pulls/comments/75601977"},"html":{"href":"https://github.com/fossasia/open-event-orga-server/pull/2330#discussion_r75601977"},"pull_request":{"href":"https://api.github.com/repos/fossasia/open-event-orga-server/pulls/2330"}}},"pull_request":{"url":"https://api.github.com/repos/fossasia/open-event-orga-server/pulls/2330","id":82113487,"html_url":"https://github.com/fossasia/open-event-orga-server/pull/2330","diff_url":"https://github.com/fossasia/open-event-orga-server/pull/2330.diff","patch_url":"https://github.com/fossasia/open-event-orga-server/pull/2330.patch","issue_url":"https://api.github.com/repos/fossasia/open-event-orga-server/issues/2330","number":2330,"state":"open","locked":false,"title":"Made import event non-blocking","user":{"login":"aviaryan","id":4047597,"avatar_url":"https://avatars.githubusercontent.com/u/4047597?v=3","gravatar_id":"","url":"https://api.github.com/users/aviaryan","html_url":"https://github.com/aviaryan","followers_url":"https://api.github.com/users/aviaryan/followers","following_url":"https://api.github.com/users/aviaryan/following{/other_user}","gists_url":"https://api.github.com/users/aviaryan/gists{/gist_id}","starred_url":"https://api.github.com/users/aviaryan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aviaryan/subscriptions","organizations_url":"https://api.github.com/users/aviaryan/orgs","repos_url":"https://api.github.com/users/aviaryan/repos","events_url":"https://api.github.com/users/aviaryan/events{/privacy}","received_events_url":"https://api.github.com/users/aviaryan/received_events","type":"User","site_admin":false},"body":"#2221 \r\nI will do sending the email part in next PR. \r\n\r\n#### Screenshots\r\n\r\nPhoto 1\r\n\r\n![import_new](https://cloud.githubusercontent.com/assets/4047597/17839190/5d24d3b6-67fe-11e6-9aa8-260fc781a12d.png)\r\n\r\nPhoto 2\r\n\r\n![previous_imports](https://cloud.githubusercontent.com/assets/4047597/17839191/5d62f312-67fe-11e6-82bb-a22270a70bde.png)\r\n","created_at":"2016-08-21T18:53:46Z","updated_at":"2016-08-21T19:37:51Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f466f3189454768139fb3a9834f05103eee63260","assignee":{"login":"aviaryan","id":4047597,"avatar_url":"https://avatars.githubusercontent.com/u/4047597?v=3","gravatar_id":"","url":"https://api.github.com/users/aviaryan","html_url":"https://github.com/aviaryan","followers_url":"https://api.github.com/users/aviaryan/followers","following_url":"https://api.github.com/users/aviaryan/following{/other_user}","gists_url":"https://api.github.com/users/aviaryan/gists{/gist_id}","starred_url":"https://api.github.com/users/aviaryan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aviaryan/subscriptions","organizations_url":"https://api.github.com/users/aviaryan/orgs","repos_url":"https://api.github.com/users/aviaryan/repos","events_url":"https://api.github.com/users/aviaryan/events{/privacy}","received_events_url":"https://api.github.com/users/aviaryan/received_events","type":"User","site_admin":false},"assignees":[{"login":"aviaryan","id":4047597,"avatar_url":"https://avatars.githubusercontent.com/u/4047597?v=3","gravatar_id":"","url":"https://api.github.com/users/aviaryan","html_url":"https://github.com/aviaryan","followers_url":"https://api.github.com/users/aviaryan/followers","following_url":"https://api.github.com/users/aviaryan/following{/other_user}","gists_url":"https://api.github.com/users/aviaryan/gists{/gist_id}","starred_url":"https://api.github.com/users/aviaryan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aviaryan/subscriptions","organizations_url":"https://api.github.com/users/aviaryan/orgs","repos_url":"https://api.github.com/users/aviaryan/repos","events_url":"https://api.github.com/users/aviaryan/events{/privacy}","received_events_url":"https://api.github.com/users/aviaryan/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/fossasia/open-event-orga-server/milestones/19","html_url":"https://github.com/fossasia/open-event-orga-server/milestones/GSOC%202016:%20Milestone%2014%20(FINISH)","labels_url":"https://api.github.com/repos/fossasia/open-event-orga-server/milestones/19/labels","id":1762397,"number":19,"title":"GSOC 2016: Milestone 14 (FINISH)","description":"GSOC 2016 Milestone 14 - All issues to be completed by 21st August 2016.\r\n\r\nInstructions: \r\n1. Create issues to work on.\r\n2. Assign the issue to the milestone.\r\n3. Assign the issue to a user.\r\n\r\nCompleted Milestone:\r\n1. Create a blog post describing what has been done.\r\n2. Tag a release.\r\n3. Deploy on a server.","creator":{"login":"juslee","id":1696598,"avatar_url":"https://avatars.githubusercontent.com/u/1696598?v=3","gravatar_id":"","url":"https://api.github.com/users/juslee","html_url":"https://github.com/juslee","followers_url":"https://api.github.com/users/juslee/followers","following_url":"https://api.github.com/users/juslee/following{/other_user}","gists_url":"https://api.github.com/users/juslee/gists{/gist_id}","starred_url":"https://api.github.com/users/juslee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/juslee/subscriptions","organizations_url":"https://api.github.com/users/juslee/orgs","repos_url":"https://api.github.com/users/juslee/repos","events_url":"https://api.github.com/users/juslee/events{/privacy}","received_events_url":"https://api.github.com/users/juslee/received_events","type":"User","site_admin":false},"open_issues":42,"closed_issues":121,"state":"open","created_at":"2016-05-12T13:20:35Z","updated_at":"2016-08-21T18:55:18Z","due_on":"2016-08-21T00:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/fossasia/open-event-orga-server/pulls/2330/commits","review_comments_url":"https://api.github.com/repos/fossasia/open-event-orga-server/pulls/2330/comments","review_comment_url":"https://api.github.com/repos/fossasia/open-event-orga-server/pulls/comments{/number}","comments_url":"https://api.github.com/repos/fossasia/open-event-orga-server/issues/2330/comments","statuses_url":"https://api.github.com/repos/fossasia/open-event-orga-server/statuses/92dea9b7f9cdef56a97a6b38fd7bf986bd8851a1","head":{"label":"aviaryan:import-non-blocking","ref":"import-non-blocking","sha":"92dea9b7f9cdef56a97a6b38fd7bf986bd8851a1","user":{"login":"aviaryan","id":4047597,"avatar_url":"https://avatars.githubusercontent.com/u/4047597?v=3","gravatar_id":"","url":"https://api.github.com/users/aviaryan","html_url":"https://github.com/aviaryan","followers_url":"https://api.github.com/users/aviaryan/followers","following_url":"https://api.github.com/users/aviaryan/following{/other_user}","gists_url":"https://api.github.com/users/aviaryan/gists{/gist_id}","starred_url":"https://api.github.com/users/aviaryan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aviaryan/subscriptions","organizations_url":"https://api.github.com/users/aviaryan/orgs","repos_url":"https://api.github.com/users/aviaryan/repos","events_url":"https://api.github.com/users/aviaryan/events{/privacy}","received_events_url":"https://api.github.com/users/aviaryan/received_events","type":"User","site_admin":false},"repo":{"id":54204334,"name":"open-event-orga-server","full_name":"aviaryan/open-event-orga-server","owner":{"login":"aviaryan","id":4047597,"avatar_url":"https://avatars.githubusercontent.com/u/4047597?v=3","gravatar_id":"","url":"https://api.github.com/users/aviaryan","html_url":"https://github.com/aviaryan","followers_url":"https://api.github.com/users/aviaryan/followers","following_url":"https://api.github.com/users/aviaryan/following{/other_user}","gists_url":"https://api.github.com/users/aviaryan/gists{/gist_id}","starred_url":"https://api.github.com/users/aviaryan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aviaryan/subscriptions","organizations_url":"https://api.github.com/users/aviaryan/orgs","repos_url":"https://api.github.com/users/aviaryan/repos","events_url":"https://api.github.com/users/aviaryan/events{/privacy}","received_events_url":"https://api.github.com/users/aviaryan/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/aviaryan/open-event-orga-server","description":"Open Event Orga Server","fork":true,"url":"https://api.github.com/repos/aviaryan/open-event-orga-server","forks_url":"https://api.github.com/repos/aviaryan/open-event-orga-server/forks","keys_url":"https://api.github.com/repos/aviaryan/open-event-orga-server/keys{/key_id}","collaborators_url":"https://api.github.com/repos/aviaryan/open-event-orga-server/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/aviaryan/open-event-orga-server/teams","hooks_url":"https://api.github.com/repos/aviaryan/open-event-orga-server/hooks","issue_events_url":"https://api.github.com/repos/aviaryan/open-event-orga-server/issues/events{/number}","events_url":"https://api.github.com/repos/aviaryan/open-event-orga-server/events","assignees_url":"https://api.github.com/repos/aviaryan/open-event-orga-server/assignees{/user}","branches_url":"https://api.github.com/repos/aviaryan/open-event-orga-server/branches{/branch}","tags_url":"https://api.github.com/repos/aviaryan/open-event-orga-server/tags","blobs_url":"https://api.github.com/repos/aviaryan/open-event-orga-server/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/aviaryan/open-event-orga-server/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/aviaryan/open-event-orga-server/git/refs{/sha}","trees_url":"https://api.github.com/repos/aviaryan/open-event-orga-server/git/trees{/sha}","statuses_url":"https://api.github.com/repos/aviaryan/open-event-orga-server/statuses/{sha}","languages_url":"https://api.github.com/repos/aviaryan/open-event-orga-server/languages","stargazers_url":"https://api.github.com/repos/aviaryan/open-event-orga-server/stargazers","contributors_url":"https://api.github.com/repos/aviaryan/open-event-orga-server/contributors","subscribers_url":"https://api.github.com/repos/aviaryan/open-event-orga-server/subscribers","subscription_url":"https://api.github.com/repos/aviaryan/open-event-orga-server/subscription","commits_url":"https://api.github.com/repos/aviaryan/open-event-orga-server/commits{/sha}","git_commits_url":"https://api.github.com/repos/aviaryan/open-event-orga-server/git/commits{/sha}","comments_url":"https://api.github.com/repos/aviaryan/open-event-orga-server/comments{/number}","issue_comment_url":"https://api.github.com/repos/aviaryan/open-event-orga-server/issues/comments{/number}","contents_url":"https://api.github.com/repos/aviaryan/open-event-orga-server/contents/{+path}","compare_url":"https://api.github.com/repos/aviaryan/open-event-orga-server/compare/{base}...{head}","merges_url":"https://api.github.com/repos/aviaryan/open-event-orga-server/merges","archive_url":"https://api.github.com/repos/aviaryan/open-event-orga-server/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/aviaryan/open-event-orga-server/downloads","issues_url":"https://api.github.com/repos/aviaryan/open-event-orga-server/issues{/number}","pulls_url":"https://api.github.com/repos/aviaryan/open-event-orga-server/pulls{/number}","milestones_url":"https://api.github.com/repos/aviaryan/open-event-orga-server/milestones{/number}","notifications_url":"https://api.github.com/repos/aviaryan/open-event-orga-server/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/aviaryan/open-event-orga-server/labels{/name}","releases_url":"https://api.github.com/repos/aviaryan/open-event-orga-server/releases{/id}","deployments_url":"https://api.github.com/repos/aviaryan/open-event-orga-server/deployments","created_at":"2016-03-18T13:46:21Z","updated_at":"2016-06-21T15:55:23Z","pushed_at":"2016-08-21T18:50:45Z","git_url":"git://github.com/aviaryan/open-event-orga-server.git","ssh_url":"git@github.com:aviaryan/open-event-orga-server.git","clone_url":"https://github.com/aviaryan/open-event-orga-server.git","svn_url":"https://github.com/aviaryan/open-event-orga-server","homepage":null,"size":32525,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"fossasia:development","ref":"development","sha":"1721c5f66c9558cc5080b1dea8b55b42f6a5477d","user":{"login":"fossasia","id":6295529,"avatar_url":"https://avatars.githubusercontent.com/u/6295529?v=3","gravatar_id":"","url":"https://api.github.com/users/fossasia","html_url":"https://github.com/fossasia","followers_url":"https://api.github.com/users/fossasia/followers","following_url":"https://api.github.com/users/fossasia/following{/other_user}","gists_url":"https://api.github.com/users/fossasia/gists{/gist_id}","starred_url":"https://api.github.com/users/fossasia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fossasia/subscriptions","organizations_url":"https://api.github.com/users/fossasia/orgs","repos_url":"https://api.github.com/users/fossasia/repos","events_url":"https://api.github.com/users/fossasia/events{/privacy}","received_events_url":"https://api.github.com/users/fossasia/received_events","type":"Organization","site_admin":false},"repo":{"id":35270176,"name":"open-event-orga-server","full_name":"fossasia/open-event-orga-server","owner":{"login":"fossasia","id":6295529,"avatar_url":"https://avatars.githubusercontent.com/u/6295529?v=3","gravatar_id":"","url":"https://api.github.com/users/fossasia","html_url":"https://github.com/fossasia","followers_url":"https://api.github.com/users/fossasia/followers","following_url":"https://api.github.com/users/fossasia/following{/other_user}","gists_url":"https://api.github.com/users/fossasia/gists{/gist_id}","starred_url":"https://api.github.com/users/fossasia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fossasia/subscriptions","organizations_url":"https://api.github.com/users/fossasia/orgs","repos_url":"https://api.github.com/users/fossasia/repos","events_url":"https://api.github.com/users/fossasia/events{/privacy}","received_events_url":"https://api.github.com/users/fossasia/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/fossasia/open-event-orga-server","description":"The Open Event Organizer Server to Manage Events","fork":false,"url":"https://api.github.com/repos/fossasia/open-event-orga-server","forks_url":"https://api.github.com/repos/fossasia/open-event-orga-server/forks","keys_url":"https://api.github.com/repos/fossasia/open-event-orga-server/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fossasia/open-event-orga-server/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fossasia/open-event-orga-server/teams","hooks_url":"https://api.github.com/repos/fossasia/open-event-orga-server/hooks","issue_events_url":"https://api.github.com/repos/fossasia/open-event-orga-server/issues/events{/number}","events_url":"https://api.github.com/repos/fossasia/open-event-orga-server/events","assignees_url":"https://api.github.com/repos/fossasia/open-event-orga-server/assignees{/user}","branches_url":"https://api.github.com/repos/fossasia/open-event-orga-server/branches{/branch}","tags_url":"https://api.github.com/repos/fossasia/open-event-orga-server/tags","blobs_url":"https://api.github.com/repos/fossasia/open-event-orga-server/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fossasia/open-event-orga-server/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fossasia/open-event-orga-server/git/refs{/sha}","trees_url":"https://api.github.com/repos/fossasia/open-event-orga-server/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fossasia/open-event-orga-server/statuses/{sha}","languages_url":"https://api.github.com/repos/fossasia/open-event-orga-server/languages","stargazers_url":"https://api.github.com/repos/fossasia/open-event-orga-server/stargazers","contributors_url":"https://api.github.com/repos/fossasia/open-event-orga-server/contributors","subscribers_url":"https://api.github.com/repos/fossasia/open-event-orga-server/subscribers","subscription_url":"https://api.github.com/repos/fossasia/open-event-orga-server/subscription","commits_url":"https://api.github.com/repos/fossasia/open-event-orga-server/commits{/sha}","git_commits_url":"https://api.github.com/repos/fossasia/open-event-orga-server/git/commits{/sha}","comments_url":"https://api.github.com/repos/fossasia/open-event-orga-server/comments{/number}","issue_comment_url":"https://api.github.com/repos/fossasia/open-event-orga-server/issues/comments{/number}","contents_url":"https://api.github.com/repos/fossasia/open-event-orga-server/contents/{+path}","compare_url":"https://api.github.com/repos/fossasia/open-event-orga-server/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fossasia/open-event-orga-server/merges","archive_url":"https://api.github.com/repos/fossasia/open-event-orga-server/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fossasia/open-event-orga-server/downloads","issues_url":"https://api.github.com/repos/fossasia/open-event-orga-server/issues{/number}","pulls_url":"https://api.github.com/repos/fossasia/open-event-orga-server/pulls{/number}","milestones_url":"https://api.github.com/repos/fossasia/open-event-orga-server/milestones{/number}","notifications_url":"https://api.github.com/repos/fossasia/open-event-orga-server/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fossasia/open-event-orga-server/labels{/name}","releases_url":"https://api.github.com/repos/fossasia/open-event-orga-server/releases{/id}","deployments_url":"https://api.github.com/repos/fossasia/open-event-orga-server/deployments","created_at":"2015-05-08T09:16:19Z","updated_at":"2016-08-21T10:33:01Z","pushed_at":"2016-08-21T19:25:58Z","git_url":"git://github.com/fossasia/open-event-orga-server.git","ssh_url":"git@github.com:fossasia/open-event-orga-server.git","clone_url":"https://github.com/fossasia/open-event-orga-server.git","svn_url":"https://github.com/fossasia/open-event-orga-server","homepage":"https://open-event-dev.herokuapp.com","size":593784,"stargazers_count":29,"watchers_count":29,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":59,"mirror_url":null,"open_issues_count":49,"forks":59,"open_issues":49,"watchers":29,"default_branch":"development"}},"_links":{"self":{"href":"https://api.github.com/repos/fossasia/open-event-orga-server/pulls/2330"},"html":{"href":"https://github.com/fossasia/open-event-orga-server/pull/2330"},"issue":{"href":"https://api.github.com/repos/fossasia/open-event-orga-server/issues/2330"},"comments":{"href":"https://api.github.com/repos/fossasia/open-event-orga-server/issues/2330/comments"},"review_comments":{"href":"https://api.github.com/repos/fossasia/open-event-orga-server/pulls/2330/comments"},"review_comment":{"href":"https://api.github.com/repos/fossasia/open-event-orga-server/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/fossasia/open-event-orga-server/pulls/2330/commits"},"statuses":{"href":"https://api.github.com/repos/fossasia/open-event-orga-server/statuses/92dea9b7f9cdef56a97a6b38fd7bf986bd8851a1"}}}}
{"actor":{"display_login":"codacy-bot"}}