{"action":"created","issue":{"url":"https://api.github.com/repos/diging/amphora/issues/138","repository_url":"https://api.github.com/repos/diging/amphora","labels_url":"https://api.github.com/repos/diging/amphora/issues/138/labels{/name}","comments_url":"https://api.github.com/repos/diging/amphora/issues/138/comments","events_url":"https://api.github.com/repos/diging/amphora/issues/138/events","html_url":"https://github.com/diging/amphora/pull/138","id":343207705,"node_id":"MDExOlB1bGxSZXF1ZXN0MjAyOTI1Mjgy","number":138,"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},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-07-20T18:35:23Z","updated_at":"2018-08-24T21:43:06Z","closed_at":null,"author_association":"NONE","pull_request":{"url":"https://api.github.com/repos/diging/amphora/pulls/138","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"},"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"},"comment":{"url":"https://api.github.com/repos/diging/amphora/issues/comments/415890267","html_url":"https://github.com/diging/amphora/pull/138#issuecomment-415890267","issue_url":"https://api.github.com/repos/diging/amphora/issues/138","id":415890267,"node_id":"MDEyOklzc3VlQ29tbWVudDQxNTg5MDI2Nw==","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},"created_at":"2018-08-24T21:43:06Z","updated_at":"2018-08-24T21:43:06Z","author_association":"NONE","body":"Made the following changes :\r\n- Added check for Pending State in the create_resource function\r\n- Created a new function for re-upload file to make the code look cleaner\r\n\r\nI am appending the re-upload id to the url when user clicks on the re-upload button. It is not being appended when the form is posted. That is why I am using request.get to the re-upload id. "}}
{"actor":{"display_login":"prnvshrn"}}