{"action":"created","comment":{"url":"https://api.github.com/repos/hack4impact/immigrant-defense-project/pulls/comments/230575239","pull_request_review_id":171349350,"id":230575239,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzMDU3NTIzOQ==","diff_hunk":"@@ -15,3 +20,46 @@ def about():\n     editable_html_obj = EditableHTML.get_editable_html('about')\n     return render_template(\n         'main/about.html', editable_html_obj=editable_html_obj)\n+\n+# generates all signed URL for AWS upload\n+@main.route('/sign-s3/')\n+def sign_s3():\n+    # Load necessary information into the application\n+    S3_BUCKET = os.environ.get('S3_BUCKET')\n+    S3_REGION = os.environ.get('S3_REGION')\n+    TARGET_FOLDER = 'json/'\n+    # Load required data from the request\n+    pre_file_name = request.args.get('file-name')\n+    file_name = ''.join(pre_file_name.split('.')[:-1]) +\\\n+                str(time.time()).replace('.',  '-') + '.' +  \\\n+                ''.join(pre_file_name.split('.')[-1:])\n+    file_type = request.args.get('file-type')","path":"app/main/views.py","position":28,"original_position":28,"commit_id":"ecbcac27a1400f6bb268a42c26b0bd84c89ac44d","original_commit_id":"ecbcac27a1400f6bb268a42c26b0bd84c89ac44d","user":{"login":"katiejiang","id":7690709,"node_id":"MDQ6VXNlcjc2OTA3MDk=","avatar_url":"https://avatars3.githubusercontent.com/u/7690709?v=4","gravatar_id":"","url":"https://api.github.com/users/katiejiang","html_url":"https://github.com/katiejiang","followers_url":"https://api.github.com/users/katiejiang/followers","following_url":"https://api.github.com/users/katiejiang/following{/other_user}","gists_url":"https://api.github.com/users/katiejiang/gists{/gist_id}","starred_url":"https://api.github.com/users/katiejiang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/katiejiang/subscriptions","organizations_url":"https://api.github.com/users/katiejiang/orgs","repos_url":"https://api.github.com/users/katiejiang/repos","events_url":"https://api.github.com/users/katiejiang/events{/privacy}","received_events_url":"https://api.github.com/users/katiejiang/received_events","type":"User","site_admin":false},"body":"Maybe a `None` check for `file_type` as well.","created_at":"2018-11-04T04:24:02Z","updated_at":"2018-11-04T04:28:19Z","html_url":"https://github.com/hack4impact/immigrant-defense-project/pull/20#discussion_r230575239","pull_request_url":"https://api.github.com/repos/hack4impact/immigrant-defense-project/pulls/20","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/hack4impact/immigrant-defense-project/pulls/comments/230575239"},"html":{"href":"https://github.com/hack4impact/immigrant-defense-project/pull/20#discussion_r230575239"},"pull_request":{"href":"https://api.github.com/repos/hack4impact/immigrant-defense-project/pulls/20"}}},"pull_request":{"url":"https://api.github.com/repos/hack4impact/immigrant-defense-project/pulls/20","id":226369154,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI2MzY5MTU0","html_url":"https://github.com/hack4impact/immigrant-defense-project/pull/20","diff_url":"https://github.com/hack4impact/immigrant-defense-project/pull/20.diff","patch_url":"https://github.com/hack4impact/immigrant-defense-project/pull/20.patch","issue_url":"https://api.github.com/repos/hack4impact/immigrant-defense-project/issues/20","number":20,"state":"open","locked":false,"title":"Documents","user":{"login":"stevenbursztyn","id":24466300,"node_id":"MDQ6VXNlcjI0NDY2MzAw","avatar_url":"https://avatars3.githubusercontent.com/u/24466300?v=4","gravatar_id":"","url":"https://api.github.com/users/stevenbursztyn","html_url":"https://github.com/stevenbursztyn","followers_url":"https://api.github.com/users/stevenbursztyn/followers","following_url":"https://api.github.com/users/stevenbursztyn/following{/other_user}","gists_url":"https://api.github.com/users/stevenbursztyn/gists{/gist_id}","starred_url":"https://api.github.com/users/stevenbursztyn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stevenbursztyn/subscriptions","organizations_url":"https://api.github.com/users/stevenbursztyn/orgs","repos_url":"https://api.github.com/users/stevenbursztyn/repos","events_url":"https://api.github.com/users/stevenbursztyn/events{/privacy}","received_events_url":"https://api.github.com/users/stevenbursztyn/received_events","type":"User","site_admin":false},"body":"## Description\r\n> Please include a summary of the change and, if applicable, which issue is fixed. Please also include relevant motivation, context, and screenshots.\r\nPDF File uploading works :) \r\n\r\n## Testing\r\n> Please briefly note how you tested and verified your changes.\r\nLocally & checked db using DB Browser & verified file URLs worked :) \r\n\r\n## Reviewers \r\n> Tag one or two teammates to review your code. Ideally, you should tag people who have worked on the same files or similar features to notify them of your changes. If you pair programmed with someone, please indicate that here as well.\r\n\r\n## Checklist\r\n- [x] I ran `python manage.py format` to autoformat my code according to the style guidelines of this project\r\n- [x] I have commented my code, particularly in hard-to-understand areas\r\n","created_at":"2018-10-28T14:00:48Z","updated_at":"2018-11-04T04:28:18Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5ef3c3fef2d6cf203806ea68987e660805ce6ddb","assignee":null,"assignees":[],"requested_reviewers":[{"login":"stephanieyshi","id":20306315,"node_id":"MDQ6VXNlcjIwMzA2MzE1","avatar_url":"https://avatars3.githubusercontent.com/u/20306315?v=4","gravatar_id":"","url":"https://api.github.com/users/stephanieyshi","html_url":"https://github.com/stephanieyshi","followers_url":"https://api.github.com/users/stephanieyshi/followers","following_url":"https://api.github.com/users/stephanieyshi/following{/other_user}","gists_url":"https://api.github.com/users/stephanieyshi/gists{/gist_id}","starred_url":"https://api.github.com/users/stephanieyshi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stephanieyshi/subscriptions","organizations_url":"https://api.github.com/users/stephanieyshi/orgs","repos_url":"https://api.github.com/users/stephanieyshi/repos","events_url":"https://api.github.com/users/stephanieyshi/events{/privacy}","received_events_url":"https://api.github.com/users/stephanieyshi/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/hack4impact/immigrant-defense-project/pulls/20/commits","review_comments_url":"https://api.github.com/repos/hack4impact/immigrant-defense-project/pulls/20/comments","review_comment_url":"https://api.github.com/repos/hack4impact/immigrant-defense-project/pulls/comments{/number}","comments_url":"https://api.github.com/repos/hack4impact/immigrant-defense-project/issues/20/comments","statuses_url":"https://api.github.com/repos/hack4impact/immigrant-defense-project/statuses/ecbcac27a1400f6bb268a42c26b0bd84c89ac44d","head":{"label":"hack4impact:documents","ref":"documents","sha":"ecbcac27a1400f6bb268a42c26b0bd84c89ac44d","user":{"login":"hack4impact","id":9021093,"node_id":"MDEyOk9yZ2FuaXphdGlvbjkwMjEwOTM=","avatar_url":"https://avatars2.githubusercontent.com/u/9021093?v=4","gravatar_id":"","url":"https://api.github.com/users/hack4impact","html_url":"https://github.com/hack4impact","followers_url":"https://api.github.com/users/hack4impact/followers","following_url":"https://api.github.com/users/hack4impact/following{/other_user}","gists_url":"https://api.github.com/users/hack4impact/gists{/gist_id}","starred_url":"https://api.github.com/users/hack4impact/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hack4impact/subscriptions","organizations_url":"https://api.github.com/users/hack4impact/orgs","repos_url":"https://api.github.com/users/hack4impact/repos","events_url":"https://api.github.com/users/hack4impact/events{/privacy}","received_events_url":"https://api.github.com/users/hack4impact/received_events","type":"Organization","site_admin":false},"repo":{"id":149310052,"node_id":"MDEwOlJlcG9zaXRvcnkxNDkzMTAwNTI=","name":"immigrant-defense-project","full_name":"hack4impact/immigrant-defense-project","private":false,"owner":{"login":"hack4impact","id":9021093,"node_id":"MDEyOk9yZ2FuaXphdGlvbjkwMjEwOTM=","avatar_url":"https://avatars2.githubusercontent.com/u/9021093?v=4","gravatar_id":"","url":"https://api.github.com/users/hack4impact","html_url":"https://github.com/hack4impact","followers_url":"https://api.github.com/users/hack4impact/followers","following_url":"https://api.github.com/users/hack4impact/following{/other_user}","gists_url":"https://api.github.com/users/hack4impact/gists{/gist_id}","starred_url":"https://api.github.com/users/hack4impact/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hack4impact/subscriptions","organizations_url":"https://api.github.com/users/hack4impact/orgs","repos_url":"https://api.github.com/users/hack4impact/repos","events_url":"https://api.github.com/users/hack4impact/events{/privacy}","received_events_url":"https://api.github.com/users/hack4impact/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/hack4impact/immigrant-defense-project","description":"Immigrant Defense Project (Penn F2018)","fork":false,"url":"https://api.github.com/repos/hack4impact/immigrant-defense-project","forks_url":"https://api.github.com/repos/hack4impact/immigrant-defense-project/forks","keys_url":"https://api.github.com/repos/hack4impact/immigrant-defense-project/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hack4impact/immigrant-defense-project/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hack4impact/immigrant-defense-project/teams","hooks_url":"https://api.github.com/repos/hack4impact/immigrant-defense-project/hooks","issue_events_url":"https://api.github.com/repos/hack4impact/immigrant-defense-project/issues/events{/number}","events_url":"https://api.github.com/repos/hack4impact/immigrant-defense-project/events","assignees_url":"https://api.github.com/repos/hack4impact/immigrant-defense-project/assignees{/user}","branches_url":"https://api.github.com/repos/hack4impact/immigrant-defense-project/branches{/branch}","tags_url":"https://api.github.com/repos/hack4impact/immigrant-defense-project/tags","blobs_url":"https://api.github.com/repos/hack4impact/immigrant-defense-project/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hack4impact/immigrant-defense-project/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hack4impact/immigrant-defense-project/git/refs{/sha}","trees_url":"https://api.github.com/repos/hack4impact/immigrant-defense-project/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hack4impact/immigrant-defense-project/statuses/{sha}","languages_url":"https://api.github.com/repos/hack4impact/immigrant-defense-project/languages","stargazers_url":"https://api.github.com/repos/hack4impact/immigrant-defense-project/stargazers","contributors_url":"https://api.github.com/repos/hack4impact/immigrant-defense-project/contributors","subscribers_url":"https://api.github.com/repos/hack4impact/immigrant-defense-project/subscribers","subscription_url":"https://api.github.com/repos/hack4impact/immigrant-defense-project/subscription","commits_url":"https://api.github.com/repos/hack4impact/immigrant-defense-project/commits{/sha}","git_commits_url":"https://api.github.com/repos/hack4impact/immigrant-defense-project/git/commits{/sha}","comments_url":"https://api.github.com/repos/hack4impact/immigrant-defense-project/comments{/number}","issue_comment_url":"https://api.github.com/repos/hack4impact/immigrant-defense-project/issues/comments{/number}","contents_url":"https://api.github.com/repos/hack4impact/immigrant-defense-project/contents/{+path}","compare_url":"https://api.github.com/repos/hack4impact/immigrant-defense-project/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hack4impact/immigrant-defense-project/merges","archive_url":"https://api.github.com/repos/hack4impact/immigrant-defense-project/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hack4impact/immigrant-defense-project/downloads","issues_url":"https://api.github.com/repos/hack4impact/immigrant-defense-project/issues{/number}","pulls_url":"https://api.github.com/repos/hack4impact/immigrant-defense-project/pulls{/number}","milestones_url":"https://api.github.com/repos/hack4impact/immigrant-defense-project/milestones{/number}","notifications_url":"https://api.github.com/repos/hack4impact/immigrant-defense-project/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hack4impact/immigrant-defense-project/labels{/name}","releases_url":"https://api.github.com/repos/hack4impact/immigrant-defense-project/releases{/id}","deployments_url":"https://api.github.com/repos/hack4impact/immigrant-defense-project/deployments","created_at":"2018-09-18T15:21:50Z","updated_at":"2018-11-04T04:14:20Z","pushed_at":"2018-11-04T04:14:18Z","git_url":"git://github.com/hack4impact/immigrant-defense-project.git","ssh_url":"git@github.com:hack4impact/immigrant-defense-project.git","clone_url":"https://github.com/hack4impact/immigrant-defense-project.git","svn_url":"https://github.com/hack4impact/immigrant-defense-project","homepage":null,"size":2077,"stargazers_count":3,"watchers_count":3,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":8,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":8,"watchers":3,"default_branch":"master"}},"base":{"label":"hack4impact:master","ref":"master","sha":"f043cc9f68ad9464eb699f0cb737d8bd9002d199","user":{"login":"hack4impact","id":9021093,"node_id":"MDEyOk9yZ2FuaXphdGlvbjkwMjEwOTM=","avatar_url":"https://avatars2.githubusercontent.com/u/9021093?v=4","gravatar_id":"","url":"https://api.github.com/users/hack4impact","html_url":"https://github.com/hack4impact","followers_url":"https://api.github.com/users/hack4impact/followers","following_url":"https://api.github.com/users/hack4impact/following{/other_user}","gists_url":"https://api.github.com/users/hack4impact/gists{/gist_id}","starred_url":"https://api.github.com/users/hack4impact/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hack4impact/subscriptions","organizations_url":"https://api.github.com/users/hack4impact/orgs","repos_url":"https://api.github.com/users/hack4impact/repos","events_url":"https://api.github.com/users/hack4impact/events{/privacy}","received_events_url":"https://api.github.com/users/hack4impact/received_events","type":"Organization","site_admin":false},"repo":{"id":149310052,"node_id":"MDEwOlJlcG9zaXRvcnkxNDkzMTAwNTI=","name":"immigrant-defense-project","full_name":"hack4impact/immigrant-defense-project","private":false,"owner":{"login":"hack4impact","id":9021093,"node_id":"MDEyOk9yZ2FuaXphdGlvbjkwMjEwOTM=","avatar_url":"https://avatars2.githubusercontent.com/u/9021093?v=4","gravatar_id":"","url":"https://api.github.com/users/hack4impact","html_url":"https://github.com/hack4impact","followers_url":"https://api.github.com/users/hack4impact/followers","following_url":"https://api.github.com/users/hack4impact/following{/other_user}","gists_url":"https://api.github.com/users/hack4impact/gists{/gist_id}","starred_url":"https://api.github.com/users/hack4impact/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hack4impact/subscriptions","organizations_url":"https://api.github.com/users/hack4impact/orgs","repos_url":"https://api.github.com/users/hack4impact/repos","events_url":"https://api.github.com/users/hack4impact/events{/privacy}","received_events_url":"https://api.github.com/users/hack4impact/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/hack4impact/immigrant-defense-project","description":"Immigrant Defense Project (Penn F2018)","fork":false,"url":"https://api.github.com/repos/hack4impact/immigrant-defense-project","forks_url":"https://api.github.com/repos/hack4impact/immigrant-defense-project/forks","keys_url":"https://api.github.com/repos/hack4impact/immigrant-defense-project/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hack4impact/immigrant-defense-project/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hack4impact/immigrant-defense-project/teams","hooks_url":"https://api.github.com/repos/hack4impact/immigrant-defense-project/hooks","issue_events_url":"https://api.github.com/repos/hack4impact/immigrant-defense-project/issues/events{/number}","events_url":"https://api.github.com/repos/hack4impact/immigrant-defense-project/events","assignees_url":"https://api.github.com/repos/hack4impact/immigrant-defense-project/assignees{/user}","branches_url":"https://api.github.com/repos/hack4impact/immigrant-defense-project/branches{/branch}","tags_url":"https://api.github.com/repos/hack4impact/immigrant-defense-project/tags","blobs_url":"https://api.github.com/repos/hack4impact/immigrant-defense-project/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hack4impact/immigrant-defense-project/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hack4impact/immigrant-defense-project/git/refs{/sha}","trees_url":"https://api.github.com/repos/hack4impact/immigrant-defense-project/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hack4impact/immigrant-defense-project/statuses/{sha}","languages_url":"https://api.github.com/repos/hack4impact/immigrant-defense-project/languages","stargazers_url":"https://api.github.com/repos/hack4impact/immigrant-defense-project/stargazers","contributors_url":"https://api.github.com/repos/hack4impact/immigrant-defense-project/contributors","subscribers_url":"https://api.github.com/repos/hack4impact/immigrant-defense-project/subscribers","subscription_url":"https://api.github.com/repos/hack4impact/immigrant-defense-project/subscription","commits_url":"https://api.github.com/repos/hack4impact/immigrant-defense-project/commits{/sha}","git_commits_url":"https://api.github.com/repos/hack4impact/immigrant-defense-project/git/commits{/sha}","comments_url":"https://api.github.com/repos/hack4impact/immigrant-defense-project/comments{/number}","issue_comment_url":"https://api.github.com/repos/hack4impact/immigrant-defense-project/issues/comments{/number}","contents_url":"https://api.github.com/repos/hack4impact/immigrant-defense-project/contents/{+path}","compare_url":"https://api.github.com/repos/hack4impact/immigrant-defense-project/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hack4impact/immigrant-defense-project/merges","archive_url":"https://api.github.com/repos/hack4impact/immigrant-defense-project/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hack4impact/immigrant-defense-project/downloads","issues_url":"https://api.github.com/repos/hack4impact/immigrant-defense-project/issues{/number}","pulls_url":"https://api.github.com/repos/hack4impact/immigrant-defense-project/pulls{/number}","milestones_url":"https://api.github.com/repos/hack4impact/immigrant-defense-project/milestones{/number}","notifications_url":"https://api.github.com/repos/hack4impact/immigrant-defense-project/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hack4impact/immigrant-defense-project/labels{/name}","releases_url":"https://api.github.com/repos/hack4impact/immigrant-defense-project/releases{/id}","deployments_url":"https://api.github.com/repos/hack4impact/immigrant-defense-project/deployments","created_at":"2018-09-18T15:21:50Z","updated_at":"2018-11-04T04:14:20Z","pushed_at":"2018-11-04T04:14:18Z","git_url":"git://github.com/hack4impact/immigrant-defense-project.git","ssh_url":"git@github.com:hack4impact/immigrant-defense-project.git","clone_url":"https://github.com/hack4impact/immigrant-defense-project.git","svn_url":"https://github.com/hack4impact/immigrant-defense-project","homepage":null,"size":2077,"stargazers_count":3,"watchers_count":3,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":8,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":8,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/hack4impact/immigrant-defense-project/pulls/20"},"html":{"href":"https://github.com/hack4impact/immigrant-defense-project/pull/20"},"issue":{"href":"https://api.github.com/repos/hack4impact/immigrant-defense-project/issues/20"},"comments":{"href":"https://api.github.com/repos/hack4impact/immigrant-defense-project/issues/20/comments"},"review_comments":{"href":"https://api.github.com/repos/hack4impact/immigrant-defense-project/pulls/20/comments"},"review_comment":{"href":"https://api.github.com/repos/hack4impact/immigrant-defense-project/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/hack4impact/immigrant-defense-project/pulls/20/commits"},"statuses":{"href":"https://api.github.com/repos/hack4impact/immigrant-defense-project/statuses/ecbcac27a1400f6bb268a42c26b0bd84c89ac44d"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"katiejiang"}}