{"action":"created","comment":{"url":"https://api.github.com/repos/diging/amphora/pulls/comments/211379374","pull_request_review_id":147785993,"id":211379374,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxMTM3OTM3NA==","diff_hunk":"@@ -192,8 +194,19 @@ def create_resource_file(request):\n         if form.is_valid():\n             with transaction.atomic():\n                 content = _create_resource_file(request, request.FILES['upload_file'], Resource.INTERFACE_WEB)\n-            return HttpResponseRedirect(reverse('create-resource-details',\n-                                                args=(content.id,)))\n+                if request.GET.get('reupload'):","path":"cookies/views/resource.py","position":18,"original_position":18,"commit_id":"bb9fa54f4004cdc68a39ebc5af2336811c930654","original_commit_id":"bb9fa54f4004cdc68a39ebc5af2336811c930654","user":{"login":"jdamerow","id":8881141,"node_id":"MDQ6VXNlcjg4ODExNDE=","avatar_url":"https://avatars2.githubusercontent.com/u/8881141?v=4","gravatar_id":"","url":"https://api.github.com/users/jdamerow","html_url":"https://github.com/jdamerow","followers_url":"https://api.github.com/users/jdamerow/followers","following_url":"https://api.github.com/users/jdamerow/following{/other_user}","gists_url":"https://api.github.com/users/jdamerow/gists{/gist_id}","starred_url":"https://api.github.com/users/jdamerow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jdamerow/subscriptions","organizations_url":"https://api.github.com/users/jdamerow/orgs","repos_url":"https://api.github.com/users/jdamerow/repos","events_url":"https://api.github.com/users/jdamerow/events{/privacy}","received_events_url":"https://api.github.com/users/jdamerow/received_events","type":"User","site_admin":false},"body":"we're making a post request here. there shouldn't be anything in 'GET'.","created_at":"2018-08-20T19:24:44Z","updated_at":"2018-08-20T19:31:15Z","html_url":"https://github.com/diging/amphora/pull/138#discussion_r211379374","pull_request_url":"https://api.github.com/repos/diging/amphora/pulls/138","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/diging/amphora/pulls/comments/211379374"},"html":{"href":"https://github.com/diging/amphora/pull/138#discussion_r211379374"},"pull_request":{"href":"https://api.github.com/repos/diging/amphora/pulls/138"}}},"pull_request":{"url":"https://api.github.com/repos/diging/amphora/pulls/138","id":202925282,"node_id":"MDExOlB1bGxSZXF1ZXN0MjAyOTI1Mjgy","html_url":"https://github.com/diging/amphora/pull/138","diff_url":"https://github.com/diging/amphora/pull/138.diff","patch_url":"https://github.com/diging/amphora/pull/138.patch","issue_url":"https://api.github.com/repos/diging/amphora/issues/138","number":138,"state":"open","locked":false,"title":"[JARS-107] Ability to reupload file unless uploaded to Giles","user":{"login":"prnvshrn","id":20481066,"node_id":"MDQ6VXNlcjIwNDgxMDY2","avatar_url":"https://avatars2.githubusercontent.com/u/20481066?v=4","gravatar_id":"","url":"https://api.github.com/users/prnvshrn","html_url":"https://github.com/prnvshrn","followers_url":"https://api.github.com/users/prnvshrn/followers","following_url":"https://api.github.com/users/prnvshrn/following{/other_user}","gists_url":"https://api.github.com/users/prnvshrn/gists{/gist_id}","starred_url":"https://api.github.com/users/prnvshrn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prnvshrn/subscriptions","organizations_url":"https://api.github.com/users/prnvshrn/orgs","repos_url":"https://api.github.com/users/prnvshrn/repos","events_url":"https://api.github.com/users/prnvshrn/events{/privacy}","received_events_url":"https://api.github.com/users/prnvshrn/received_events","type":"User","site_admin":false},"body":"I added a reupload button as follows. This is will appear unless the upload status is 'Done' :- \r\n<img width=\"460\" alt=\"screen shot 2018-07-20 at 11 28 25 am\" src=\"https://user-images.githubusercontent.com/20481066/43018964-3948e210-8c10-11e8-8723-0ada08f92c36.png\">\r\n\r\nOn clicking the button, a url param called 'reupload' with the resource_id is used to redirect to the existing upload file page. A confirmation modal is displayed on clicking 'ReUpload' button with the message as specified in the issue description on Jira.<br>\r\n<img width=\"873\" alt=\"screen shot 2018-07-20 at 11 29 27 am\" src=\"https://user-images.githubusercontent.com/20481066/43018966-3bfff304-8c10-11e8-866b-0ca4b438f591.png\">\r\n","created_at":"2018-07-20T18:35:23Z","updated_at":"2018-08-20T19:31:15Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1faceb7e3c551a277760f3d100485e3cf21ee1a6","assignee":null,"assignees":[],"requested_reviewers":[{"login":"tjquinn1","id":16781171,"node_id":"MDQ6VXNlcjE2NzgxMTcx","avatar_url":"https://avatars3.githubusercontent.com/u/16781171?v=4","gravatar_id":"","url":"https://api.github.com/users/tjquinn1","html_url":"https://github.com/tjquinn1","followers_url":"https://api.github.com/users/tjquinn1/followers","following_url":"https://api.github.com/users/tjquinn1/following{/other_user}","gists_url":"https://api.github.com/users/tjquinn1/gists{/gist_id}","starred_url":"https://api.github.com/users/tjquinn1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tjquinn1/subscriptions","organizations_url":"https://api.github.com/users/tjquinn1/orgs","repos_url":"https://api.github.com/users/tjquinn1/repos","events_url":"https://api.github.com/users/tjquinn1/events{/privacy}","received_events_url":"https://api.github.com/users/tjquinn1/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/diging/amphora/pulls/138/commits","review_comments_url":"https://api.github.com/repos/diging/amphora/pulls/138/comments","review_comment_url":"https://api.github.com/repos/diging/amphora/pulls/comments{/number}","comments_url":"https://api.github.com/repos/diging/amphora/issues/138/comments","statuses_url":"https://api.github.com/repos/diging/amphora/statuses/bb9fa54f4004cdc68a39ebc5af2336811c930654","head":{"label":"diging:story/JARS-107","ref":"story/JARS-107","sha":"bb9fa54f4004cdc68a39ebc5af2336811c930654","user":{"login":"diging","id":5402168,"node_id":"MDEyOk9yZ2FuaXphdGlvbjU0MDIxNjg=","avatar_url":"https://avatars2.githubusercontent.com/u/5402168?v=4","gravatar_id":"","url":"https://api.github.com/users/diging","html_url":"https://github.com/diging","followers_url":"https://api.github.com/users/diging/followers","following_url":"https://api.github.com/users/diging/following{/other_user}","gists_url":"https://api.github.com/users/diging/gists{/gist_id}","starred_url":"https://api.github.com/users/diging/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/diging/subscriptions","organizations_url":"https://api.github.com/users/diging/orgs","repos_url":"https://api.github.com/users/diging/repos","events_url":"https://api.github.com/users/diging/events{/privacy}","received_events_url":"https://api.github.com/users/diging/received_events","type":"Organization","site_admin":false},"repo":{"id":24615113,"node_id":"MDEwOlJlcG9zaXRvcnkyNDYxNTExMw==","name":"amphora","full_name":"diging/amphora","owner":{"login":"diging","id":5402168,"node_id":"MDEyOk9yZ2FuaXphdGlvbjU0MDIxNjg=","avatar_url":"https://avatars2.githubusercontent.com/u/5402168?v=4","gravatar_id":"","url":"https://api.github.com/users/diging","html_url":"https://github.com/diging","followers_url":"https://api.github.com/users/diging/followers","following_url":"https://api.github.com/users/diging/following{/other_user}","gists_url":"https://api.github.com/users/diging/gists{/gist_id}","starred_url":"https://api.github.com/users/diging/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/diging/subscriptions","organizations_url":"https://api.github.com/users/diging/orgs","repos_url":"https://api.github.com/users/diging/repos","events_url":"https://api.github.com/users/diging/events{/privacy}","received_events_url":"https://api.github.com/users/diging/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/diging/amphora","description":"A lightweight digital repository for corpus analysis","fork":false,"url":"https://api.github.com/repos/diging/amphora","forks_url":"https://api.github.com/repos/diging/amphora/forks","keys_url":"https://api.github.com/repos/diging/amphora/keys{/key_id}","collaborators_url":"https://api.github.com/repos/diging/amphora/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/diging/amphora/teams","hooks_url":"https://api.github.com/repos/diging/amphora/hooks","issue_events_url":"https://api.github.com/repos/diging/amphora/issues/events{/number}","events_url":"https://api.github.com/repos/diging/amphora/events","assignees_url":"https://api.github.com/repos/diging/amphora/assignees{/user}","branches_url":"https://api.github.com/repos/diging/amphora/branches{/branch}","tags_url":"https://api.github.com/repos/diging/amphora/tags","blobs_url":"https://api.github.com/repos/diging/amphora/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/diging/amphora/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/diging/amphora/git/refs{/sha}","trees_url":"https://api.github.com/repos/diging/amphora/git/trees{/sha}","statuses_url":"https://api.github.com/repos/diging/amphora/statuses/{sha}","languages_url":"https://api.github.com/repos/diging/amphora/languages","stargazers_url":"https://api.github.com/repos/diging/amphora/stargazers","contributors_url":"https://api.github.com/repos/diging/amphora/contributors","subscribers_url":"https://api.github.com/repos/diging/amphora/subscribers","subscription_url":"https://api.github.com/repos/diging/amphora/subscription","commits_url":"https://api.github.com/repos/diging/amphora/commits{/sha}","git_commits_url":"https://api.github.com/repos/diging/amphora/git/commits{/sha}","comments_url":"https://api.github.com/repos/diging/amphora/comments{/number}","issue_comment_url":"https://api.github.com/repos/diging/amphora/issues/comments{/number}","contents_url":"https://api.github.com/repos/diging/amphora/contents/{+path}","compare_url":"https://api.github.com/repos/diging/amphora/compare/{base}...{head}","merges_url":"https://api.github.com/repos/diging/amphora/merges","archive_url":"https://api.github.com/repos/diging/amphora/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/diging/amphora/downloads","issues_url":"https://api.github.com/repos/diging/amphora/issues{/number}","pulls_url":"https://api.github.com/repos/diging/amphora/pulls{/number}","milestones_url":"https://api.github.com/repos/diging/amphora/milestones{/number}","notifications_url":"https://api.github.com/repos/diging/amphora/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/diging/amphora/labels{/name}","releases_url":"https://api.github.com/repos/diging/amphora/releases{/id}","deployments_url":"https://api.github.com/repos/diging/amphora/deployments","created_at":"2014-09-29T22:15:21Z","updated_at":"2018-08-14T05:51:09Z","pushed_at":"2018-08-17T23:25:20Z","git_url":"git://github.com/diging/amphora.git","ssh_url":"git@github.com:diging/amphora.git","clone_url":"https://github.com/diging/amphora.git","svn_url":"https://github.com/diging/amphora","homepage":"","size":68968,"stargazers_count":7,"watchers_count":7,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":5,"license":{"key":"gpl-3.0","name":"GNU General Public License v3.0","spdx_id":"GPL-3.0","url":"https://api.github.com/licenses/gpl-3.0","node_id":"MDc6TGljZW5zZTk="},"forks":1,"open_issues":5,"watchers":7,"default_branch":"master"}},"base":{"label":"diging:develop","ref":"develop","sha":"da91090b355ec3824ff7e6dec97926388df1bbb1","user":{"login":"diging","id":5402168,"node_id":"MDEyOk9yZ2FuaXphdGlvbjU0MDIxNjg=","avatar_url":"https://avatars2.githubusercontent.com/u/5402168?v=4","gravatar_id":"","url":"https://api.github.com/users/diging","html_url":"https://github.com/diging","followers_url":"https://api.github.com/users/diging/followers","following_url":"https://api.github.com/users/diging/following{/other_user}","gists_url":"https://api.github.com/users/diging/gists{/gist_id}","starred_url":"https://api.github.com/users/diging/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/diging/subscriptions","organizations_url":"https://api.github.com/users/diging/orgs","repos_url":"https://api.github.com/users/diging/repos","events_url":"https://api.github.com/users/diging/events{/privacy}","received_events_url":"https://api.github.com/users/diging/received_events","type":"Organization","site_admin":false},"repo":{"id":24615113,"node_id":"MDEwOlJlcG9zaXRvcnkyNDYxNTExMw==","name":"amphora","full_name":"diging/amphora","owner":{"login":"diging","id":5402168,"node_id":"MDEyOk9yZ2FuaXphdGlvbjU0MDIxNjg=","avatar_url":"https://avatars2.githubusercontent.com/u/5402168?v=4","gravatar_id":"","url":"https://api.github.com/users/diging","html_url":"https://github.com/diging","followers_url":"https://api.github.com/users/diging/followers","following_url":"https://api.github.com/users/diging/following{/other_user}","gists_url":"https://api.github.com/users/diging/gists{/gist_id}","starred_url":"https://api.github.com/users/diging/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/diging/subscriptions","organizations_url":"https://api.github.com/users/diging/orgs","repos_url":"https://api.github.com/users/diging/repos","events_url":"https://api.github.com/users/diging/events{/privacy}","received_events_url":"https://api.github.com/users/diging/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/diging/amphora","description":"A lightweight digital repository for corpus analysis","fork":false,"url":"https://api.github.com/repos/diging/amphora","forks_url":"https://api.github.com/repos/diging/amphora/forks","keys_url":"https://api.github.com/repos/diging/amphora/keys{/key_id}","collaborators_url":"https://api.github.com/repos/diging/amphora/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/diging/amphora/teams","hooks_url":"https://api.github.com/repos/diging/amphora/hooks","issue_events_url":"https://api.github.com/repos/diging/amphora/issues/events{/number}","events_url":"https://api.github.com/repos/diging/amphora/events","assignees_url":"https://api.github.com/repos/diging/amphora/assignees{/user}","branches_url":"https://api.github.com/repos/diging/amphora/branches{/branch}","tags_url":"https://api.github.com/repos/diging/amphora/tags","blobs_url":"https://api.github.com/repos/diging/amphora/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/diging/amphora/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/diging/amphora/git/refs{/sha}","trees_url":"https://api.github.com/repos/diging/amphora/git/trees{/sha}","statuses_url":"https://api.github.com/repos/diging/amphora/statuses/{sha}","languages_url":"https://api.github.com/repos/diging/amphora/languages","stargazers_url":"https://api.github.com/repos/diging/amphora/stargazers","contributors_url":"https://api.github.com/repos/diging/amphora/contributors","subscribers_url":"https://api.github.com/repos/diging/amphora/subscribers","subscription_url":"https://api.github.com/repos/diging/amphora/subscription","commits_url":"https://api.github.com/repos/diging/amphora/commits{/sha}","git_commits_url":"https://api.github.com/repos/diging/amphora/git/commits{/sha}","comments_url":"https://api.github.com/repos/diging/amphora/comments{/number}","issue_comment_url":"https://api.github.com/repos/diging/amphora/issues/comments{/number}","contents_url":"https://api.github.com/repos/diging/amphora/contents/{+path}","compare_url":"https://api.github.com/repos/diging/amphora/compare/{base}...{head}","merges_url":"https://api.github.com/repos/diging/amphora/merges","archive_url":"https://api.github.com/repos/diging/amphora/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/diging/amphora/downloads","issues_url":"https://api.github.com/repos/diging/amphora/issues{/number}","pulls_url":"https://api.github.com/repos/diging/amphora/pulls{/number}","milestones_url":"https://api.github.com/repos/diging/amphora/milestones{/number}","notifications_url":"https://api.github.com/repos/diging/amphora/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/diging/amphora/labels{/name}","releases_url":"https://api.github.com/repos/diging/amphora/releases{/id}","deployments_url":"https://api.github.com/repos/diging/amphora/deployments","created_at":"2014-09-29T22:15:21Z","updated_at":"2018-08-14T05:51:09Z","pushed_at":"2018-08-17T23:25:20Z","git_url":"git://github.com/diging/amphora.git","ssh_url":"git@github.com:diging/amphora.git","clone_url":"https://github.com/diging/amphora.git","svn_url":"https://github.com/diging/amphora","homepage":"","size":68968,"stargazers_count":7,"watchers_count":7,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":5,"license":{"key":"gpl-3.0","name":"GNU General Public License v3.0","spdx_id":"GPL-3.0","url":"https://api.github.com/licenses/gpl-3.0","node_id":"MDc6TGljZW5zZTk="},"forks":1,"open_issues":5,"watchers":7,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/diging/amphora/pulls/138"},"html":{"href":"https://github.com/diging/amphora/pull/138"},"issue":{"href":"https://api.github.com/repos/diging/amphora/issues/138"},"comments":{"href":"https://api.github.com/repos/diging/amphora/issues/138/comments"},"review_comments":{"href":"https://api.github.com/repos/diging/amphora/pulls/138/comments"},"review_comment":{"href":"https://api.github.com/repos/diging/amphora/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/diging/amphora/pulls/138/commits"},"statuses":{"href":"https://api.github.com/repos/diging/amphora/statuses/bb9fa54f4004cdc68a39ebc5af2336811c930654"}},"author_association":"NONE"}}
{"actor":{"display_login":"jdamerow"}}