{"action":"created","comment":{"url":"https://api.github.com/repos/joelbcastillo/openrecords_v2_0/pulls/comments/90136456","pull_request_review_id":10656581,"id":90136456,"diff_hunk":"@@ -149,20 +149,29 @@ $(function () {\n                     }\n \n                     if (first.find(\".fileupload-form\").parsley().isValid()) {\n-                        first.hide();\n-                        second.show();\n-\n                         $.ajax({\n                             url: \"/response/email\",\n                             type: \"POST\",\n                             data: {\n                                 request_id: request_id,\n-                                template_name: \"email_response_file.html\",\n-                                type: \"files\"\n+                                template_name: \"email_edit_file.html\",\n+                                type: \"edit\",\n+                                response_id: response_id,\n+                                title: first.find(\"input[name=title]\").val(),\n+                                privacy: first.find(\"input[name=privacy]:checked\").val(),\n+                                filename: first.find(\".secured-name\").length > 0 ? first.find(\".secured-name\").text() :\n+                                    null,","path":"app/static/js/request/view-request-responses.js","position":20,"original_position":20,"commit_id":"39ddb5bb6d0a2465143f35152d05511bd6727662","original_commit_id":"39ddb5bb6d0a2465143f35152d05511bd6727662","user":{"login":"Palisand","id":4138177,"avatar_url":"https://avatars.githubusercontent.com/u/4138177?v=3","gravatar_id":"","url":"https://api.github.com/users/Palisand","html_url":"https://github.com/Palisand","followers_url":"https://api.github.com/users/Palisand/followers","following_url":"https://api.github.com/users/Palisand/following{/other_user}","gists_url":"https://api.github.com/users/Palisand/gists{/gist_id}","starred_url":"https://api.github.com/users/Palisand/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Palisand/subscriptions","organizations_url":"https://api.github.com/users/Palisand/orgs","repos_url":"https://api.github.com/users/Palisand/repos","events_url":"https://api.github.com/users/Palisand/events{/privacy}","received_events_url":"https://api.github.com/users/Palisand/received_events","type":"User","site_admin":false},"body":"make this one line","created_at":"2016-11-29T23:10:08Z","updated_at":"2016-11-29T23:20:57Z","html_url":"https://github.com/joelbcastillo/openrecords_v2_0/pull/84#discussion_r90136456","pull_request_url":"https://api.github.com/repos/joelbcastillo/openrecords_v2_0/pulls/84","_links":{"self":{"href":"https://api.github.com/repos/joelbcastillo/openrecords_v2_0/pulls/comments/90136456"},"html":{"href":"https://github.com/joelbcastillo/openrecords_v2_0/pull/84#discussion_r90136456"},"pull_request":{"href":"https://api.github.com/repos/joelbcastillo/openrecords_v2_0/pulls/84"}}},"pull_request":{"url":"https://api.github.com/repos/joelbcastillo/openrecords_v2_0/pulls/84","id":95779761,"html_url":"https://github.com/joelbcastillo/openrecords_v2_0/pull/84","diff_url":"https://github.com/joelbcastillo/openrecords_v2_0/pull/84.diff","patch_url":"https://github.com/joelbcastillo/openrecords_v2_0/pull/84.patch","issue_url":"https://api.github.com/repos/joelbcastillo/openrecords_v2_0/issues/84","number":84,"state":"open","locked":false,"title":"Feature/OP-923: Update FILE Edit","user":{"login":"gzhou1","id":17318911,"avatar_url":"https://avatars.githubusercontent.com/u/17318911?v=3","gravatar_id":"","url":"https://api.github.com/users/gzhou1","html_url":"https://github.com/gzhou1","followers_url":"https://api.github.com/users/gzhou1/followers","following_url":"https://api.github.com/users/gzhou1/following{/other_user}","gists_url":"https://api.github.com/users/gzhou1/gists{/gist_id}","starred_url":"https://api.github.com/users/gzhou1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gzhou1/subscriptions","organizations_url":"https://api.github.com/users/gzhou1/orgs","repos_url":"https://api.github.com/users/gzhou1/repos","events_url":"https://api.github.com/users/gzhou1/events{/privacy}","received_events_url":"https://api.github.com/users/gzhou1/received_events","type":"User","site_admin":false},"body":"- Created function `handle_response_token` in class `Response Editor` to update response token expiration date.\r\n- Created cached_propery function `get_file_link` to create link(s) for edit file workflow. \r\n- Refactored `RespFileEditor` and `_edit_email_handler` to get and generate proper email template  for edit file workflow.","created_at":"2016-11-29T21:32:37Z","updated_at":"2016-11-29T23:20:57Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9206fe8ad99c7674a4dbbb403cad3fecf500e565","assignee":{"login":"Palisand","id":4138177,"avatar_url":"https://avatars.githubusercontent.com/u/4138177?v=3","gravatar_id":"","url":"https://api.github.com/users/Palisand","html_url":"https://github.com/Palisand","followers_url":"https://api.github.com/users/Palisand/followers","following_url":"https://api.github.com/users/Palisand/following{/other_user}","gists_url":"https://api.github.com/users/Palisand/gists{/gist_id}","starred_url":"https://api.github.com/users/Palisand/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Palisand/subscriptions","organizations_url":"https://api.github.com/users/Palisand/orgs","repos_url":"https://api.github.com/users/Palisand/repos","events_url":"https://api.github.com/users/Palisand/events{/privacy}","received_events_url":"https://api.github.com/users/Palisand/received_events","type":"User","site_admin":false},"assignees":[{"login":"Palisand","id":4138177,"avatar_url":"https://avatars.githubusercontent.com/u/4138177?v=3","gravatar_id":"","url":"https://api.github.com/users/Palisand","html_url":"https://github.com/Palisand","followers_url":"https://api.github.com/users/Palisand/followers","following_url":"https://api.github.com/users/Palisand/following{/other_user}","gists_url":"https://api.github.com/users/Palisand/gists{/gist_id}","starred_url":"https://api.github.com/users/Palisand/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Palisand/subscriptions","organizations_url":"https://api.github.com/users/Palisand/orgs","repos_url":"https://api.github.com/users/Palisand/repos","events_url":"https://api.github.com/users/Palisand/events{/privacy}","received_events_url":"https://api.github.com/users/Palisand/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/joelbcastillo/openrecords_v2_0/pulls/84/commits","review_comments_url":"https://api.github.com/repos/joelbcastillo/openrecords_v2_0/pulls/84/comments","review_comment_url":"https://api.github.com/repos/joelbcastillo/openrecords_v2_0/pulls/comments{/number}","comments_url":"https://api.github.com/repos/joelbcastillo/openrecords_v2_0/issues/84/comments","statuses_url":"https://api.github.com/repos/joelbcastillo/openrecords_v2_0/statuses/39ddb5bb6d0a2465143f35152d05511bd6727662","head":{"label":"joelbcastillo:feature/OP-923","ref":"feature/OP-923","sha":"39ddb5bb6d0a2465143f35152d05511bd6727662","user":{"login":"joelbcastillo","id":3308161,"avatar_url":"https://avatars.githubusercontent.com/u/3308161?v=3","gravatar_id":"","url":"https://api.github.com/users/joelbcastillo","html_url":"https://github.com/joelbcastillo","followers_url":"https://api.github.com/users/joelbcastillo/followers","following_url":"https://api.github.com/users/joelbcastillo/following{/other_user}","gists_url":"https://api.github.com/users/joelbcastillo/gists{/gist_id}","starred_url":"https://api.github.com/users/joelbcastillo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joelbcastillo/subscriptions","organizations_url":"https://api.github.com/users/joelbcastillo/orgs","repos_url":"https://api.github.com/users/joelbcastillo/repos","events_url":"https://api.github.com/users/joelbcastillo/events{/privacy}","received_events_url":"https://api.github.com/users/joelbcastillo/received_events","type":"User","site_admin":false},"repo":{"id":60886481,"name":"openrecords_v2_0","full_name":"joelbcastillo/openrecords_v2_0","owner":{"login":"joelbcastillo","id":3308161,"avatar_url":"https://avatars.githubusercontent.com/u/3308161?v=3","gravatar_id":"","url":"https://api.github.com/users/joelbcastillo","html_url":"https://github.com/joelbcastillo","followers_url":"https://api.github.com/users/joelbcastillo/followers","following_url":"https://api.github.com/users/joelbcastillo/following{/other_user}","gists_url":"https://api.github.com/users/joelbcastillo/gists{/gist_id}","starred_url":"https://api.github.com/users/joelbcastillo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joelbcastillo/subscriptions","organizations_url":"https://api.github.com/users/joelbcastillo/orgs","repos_url":"https://api.github.com/users/joelbcastillo/repos","events_url":"https://api.github.com/users/joelbcastillo/events{/privacy}","received_events_url":"https://api.github.com/users/joelbcastillo/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/joelbcastillo/openrecords_v2_0","description":"NYC OpenRecords Application - v2.0","fork":false,"url":"https://api.github.com/repos/joelbcastillo/openrecords_v2_0","forks_url":"https://api.github.com/repos/joelbcastillo/openrecords_v2_0/forks","keys_url":"https://api.github.com/repos/joelbcastillo/openrecords_v2_0/keys{/key_id}","collaborators_url":"https://api.github.com/repos/joelbcastillo/openrecords_v2_0/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/joelbcastillo/openrecords_v2_0/teams","hooks_url":"https://api.github.com/repos/joelbcastillo/openrecords_v2_0/hooks","issue_events_url":"https://api.github.com/repos/joelbcastillo/openrecords_v2_0/issues/events{/number}","events_url":"https://api.github.com/repos/joelbcastillo/openrecords_v2_0/events","assignees_url":"https://api.github.com/repos/joelbcastillo/openrecords_v2_0/assignees{/user}","branches_url":"https://api.github.com/repos/joelbcastillo/openrecords_v2_0/branches{/branch}","tags_url":"https://api.github.com/repos/joelbcastillo/openrecords_v2_0/tags","blobs_url":"https://api.github.com/repos/joelbcastillo/openrecords_v2_0/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/joelbcastillo/openrecords_v2_0/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/joelbcastillo/openrecords_v2_0/git/refs{/sha}","trees_url":"https://api.github.com/repos/joelbcastillo/openrecords_v2_0/git/trees{/sha}","statuses_url":"https://api.github.com/repos/joelbcastillo/openrecords_v2_0/statuses/{sha}","languages_url":"https://api.github.com/repos/joelbcastillo/openrecords_v2_0/languages","stargazers_url":"https://api.github.com/repos/joelbcastillo/openrecords_v2_0/stargazers","contributors_url":"https://api.github.com/repos/joelbcastillo/openrecords_v2_0/contributors","subscribers_url":"https://api.github.com/repos/joelbcastillo/openrecords_v2_0/subscribers","subscription_url":"https://api.github.com/repos/joelbcastillo/openrecords_v2_0/subscription","commits_url":"https://api.github.com/repos/joelbcastillo/openrecords_v2_0/commits{/sha}","git_commits_url":"https://api.github.com/repos/joelbcastillo/openrecords_v2_0/git/commits{/sha}","comments_url":"https://api.github.com/repos/joelbcastillo/openrecords_v2_0/comments{/number}","issue_comment_url":"https://api.github.com/repos/joelbcastillo/openrecords_v2_0/issues/comments{/number}","contents_url":"https://api.github.com/repos/joelbcastillo/openrecords_v2_0/contents/{+path}","compare_url":"https://api.github.com/repos/joelbcastillo/openrecords_v2_0/compare/{base}...{head}","merges_url":"https://api.github.com/repos/joelbcastillo/openrecords_v2_0/merges","archive_url":"https://api.github.com/repos/joelbcastillo/openrecords_v2_0/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/joelbcastillo/openrecords_v2_0/downloads","issues_url":"https://api.github.com/repos/joelbcastillo/openrecords_v2_0/issues{/number}","pulls_url":"https://api.github.com/repos/joelbcastillo/openrecords_v2_0/pulls{/number}","milestones_url":"https://api.github.com/repos/joelbcastillo/openrecords_v2_0/milestones{/number}","notifications_url":"https://api.github.com/repos/joelbcastillo/openrecords_v2_0/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/joelbcastillo/openrecords_v2_0/labels{/name}","releases_url":"https://api.github.com/repos/joelbcastillo/openrecords_v2_0/releases{/id}","deployments_url":"https://api.github.com/repos/joelbcastillo/openrecords_v2_0/deployments","created_at":"2016-06-11T01:58:34Z","updated_at":"2016-10-26T14:26:03Z","pushed_at":"2016-11-29T22:37:04Z","git_url":"git://github.com/joelbcastillo/openrecords_v2_0.git","ssh_url":"git@github.com:joelbcastillo/openrecords_v2_0.git","clone_url":"https://github.com/joelbcastillo/openrecords_v2_0.git","svn_url":"https://github.com/joelbcastillo/openrecords_v2_0","homepage":null,"size":30056,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":4,"forks":0,"open_issues":4,"watchers":0,"default_branch":"develop"}},"base":{"label":"joelbcastillo:develop","ref":"develop","sha":"7fffc0a9b3dc37b400bd45b17093c9c063514bcb","user":{"login":"joelbcastillo","id":3308161,"avatar_url":"https://avatars.githubusercontent.com/u/3308161?v=3","gravatar_id":"","url":"https://api.github.com/users/joelbcastillo","html_url":"https://github.com/joelbcastillo","followers_url":"https://api.github.com/users/joelbcastillo/followers","following_url":"https://api.github.com/users/joelbcastillo/following{/other_user}","gists_url":"https://api.github.com/users/joelbcastillo/gists{/gist_id}","starred_url":"https://api.github.com/users/joelbcastillo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joelbcastillo/subscriptions","organizations_url":"https://api.github.com/users/joelbcastillo/orgs","repos_url":"https://api.github.com/users/joelbcastillo/repos","events_url":"https://api.github.com/users/joelbcastillo/events{/privacy}","received_events_url":"https://api.github.com/users/joelbcastillo/received_events","type":"User","site_admin":false},"repo":{"id":60886481,"name":"openrecords_v2_0","full_name":"joelbcastillo/openrecords_v2_0","owner":{"login":"joelbcastillo","id":3308161,"avatar_url":"https://avatars.githubusercontent.com/u/3308161?v=3","gravatar_id":"","url":"https://api.github.com/users/joelbcastillo","html_url":"https://github.com/joelbcastillo","followers_url":"https://api.github.com/users/joelbcastillo/followers","following_url":"https://api.github.com/users/joelbcastillo/following{/other_user}","gists_url":"https://api.github.com/users/joelbcastillo/gists{/gist_id}","starred_url":"https://api.github.com/users/joelbcastillo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joelbcastillo/subscriptions","organizations_url":"https://api.github.com/users/joelbcastillo/orgs","repos_url":"https://api.github.com/users/joelbcastillo/repos","events_url":"https://api.github.com/users/joelbcastillo/events{/privacy}","received_events_url":"https://api.github.com/users/joelbcastillo/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/joelbcastillo/openrecords_v2_0","description":"NYC OpenRecords Application - v2.0","fork":false,"url":"https://api.github.com/repos/joelbcastillo/openrecords_v2_0","forks_url":"https://api.github.com/repos/joelbcastillo/openrecords_v2_0/forks","keys_url":"https://api.github.com/repos/joelbcastillo/openrecords_v2_0/keys{/key_id}","collaborators_url":"https://api.github.com/repos/joelbcastillo/openrecords_v2_0/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/joelbcastillo/openrecords_v2_0/teams","hooks_url":"https://api.github.com/repos/joelbcastillo/openrecords_v2_0/hooks","issue_events_url":"https://api.github.com/repos/joelbcastillo/openrecords_v2_0/issues/events{/number}","events_url":"https://api.github.com/repos/joelbcastillo/openrecords_v2_0/events","assignees_url":"https://api.github.com/repos/joelbcastillo/openrecords_v2_0/assignees{/user}","branches_url":"https://api.github.com/repos/joelbcastillo/openrecords_v2_0/branches{/branch}","tags_url":"https://api.github.com/repos/joelbcastillo/openrecords_v2_0/tags","blobs_url":"https://api.github.com/repos/joelbcastillo/openrecords_v2_0/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/joelbcastillo/openrecords_v2_0/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/joelbcastillo/openrecords_v2_0/git/refs{/sha}","trees_url":"https://api.github.com/repos/joelbcastillo/openrecords_v2_0/git/trees{/sha}","statuses_url":"https://api.github.com/repos/joelbcastillo/openrecords_v2_0/statuses/{sha}","languages_url":"https://api.github.com/repos/joelbcastillo/openrecords_v2_0/languages","stargazers_url":"https://api.github.com/repos/joelbcastillo/openrecords_v2_0/stargazers","contributors_url":"https://api.github.com/repos/joelbcastillo/openrecords_v2_0/contributors","subscribers_url":"https://api.github.com/repos/joelbcastillo/openrecords_v2_0/subscribers","subscription_url":"https://api.github.com/repos/joelbcastillo/openrecords_v2_0/subscription","commits_url":"https://api.github.com/repos/joelbcastillo/openrecords_v2_0/commits{/sha}","git_commits_url":"https://api.github.com/repos/joelbcastillo/openrecords_v2_0/git/commits{/sha}","comments_url":"https://api.github.com/repos/joelbcastillo/openrecords_v2_0/comments{/number}","issue_comment_url":"https://api.github.com/repos/joelbcastillo/openrecords_v2_0/issues/comments{/number}","contents_url":"https://api.github.com/repos/joelbcastillo/openrecords_v2_0/contents/{+path}","compare_url":"https://api.github.com/repos/joelbcastillo/openrecords_v2_0/compare/{base}...{head}","merges_url":"https://api.github.com/repos/joelbcastillo/openrecords_v2_0/merges","archive_url":"https://api.github.com/repos/joelbcastillo/openrecords_v2_0/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/joelbcastillo/openrecords_v2_0/downloads","issues_url":"https://api.github.com/repos/joelbcastillo/openrecords_v2_0/issues{/number}","pulls_url":"https://api.github.com/repos/joelbcastillo/openrecords_v2_0/pulls{/number}","milestones_url":"https://api.github.com/repos/joelbcastillo/openrecords_v2_0/milestones{/number}","notifications_url":"https://api.github.com/repos/joelbcastillo/openrecords_v2_0/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/joelbcastillo/openrecords_v2_0/labels{/name}","releases_url":"https://api.github.com/repos/joelbcastillo/openrecords_v2_0/releases{/id}","deployments_url":"https://api.github.com/repos/joelbcastillo/openrecords_v2_0/deployments","created_at":"2016-06-11T01:58:34Z","updated_at":"2016-10-26T14:26:03Z","pushed_at":"2016-11-29T22:37:04Z","git_url":"git://github.com/joelbcastillo/openrecords_v2_0.git","ssh_url":"git@github.com:joelbcastillo/openrecords_v2_0.git","clone_url":"https://github.com/joelbcastillo/openrecords_v2_0.git","svn_url":"https://github.com/joelbcastillo/openrecords_v2_0","homepage":null,"size":30056,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":4,"forks":0,"open_issues":4,"watchers":0,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/joelbcastillo/openrecords_v2_0/pulls/84"},"html":{"href":"https://github.com/joelbcastillo/openrecords_v2_0/pull/84"},"issue":{"href":"https://api.github.com/repos/joelbcastillo/openrecords_v2_0/issues/84"},"comments":{"href":"https://api.github.com/repos/joelbcastillo/openrecords_v2_0/issues/84/comments"},"review_comments":{"href":"https://api.github.com/repos/joelbcastillo/openrecords_v2_0/pulls/84/comments"},"review_comment":{"href":"https://api.github.com/repos/joelbcastillo/openrecords_v2_0/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/joelbcastillo/openrecords_v2_0/pulls/84/commits"},"statuses":{"href":"https://api.github.com/repos/joelbcastillo/openrecords_v2_0/statuses/39ddb5bb6d0a2465143f35152d05511bd6727662"}}}}
{"actor":{"display_login":"Palisand"}}