{"action":"created","comment":{"url":"https://api.github.com/repos/eJourn-al/eJournal/pulls/comments/217886869","pull_request_review_id":155715797,"id":217886869,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxNzg4Njg2OQ==","diff_hunk":"@@ -125,3 +132,38 @@ def request_email_verification(request):\n \n     return response.success(description='An email was sent to %s, please follow the email for instructions.'\n                             % request.user.email)\n+\n+\n+@api_view(['POST'])\n+def send_feedback(request):\n+    \"\"\"Send an email with feedback to the developers.\n+\n+    Arguments:\n+    request -- the request that was sent\n+        topic -- the topic of the feedback\n+        type -- the type of feedback\n+        feedback -- the actual feedback\n+        browser -- the browser of the user who sends the feedback.\n+        files -- potential files as attachments.\n+\n+        Returns:\n+        On failure:\n+            bad request -- when required keys are missing or file sizes too big.\n+            unauthorized -- when the user is not logged in\n+        On success:\n+            success -- with a description\n+    \"\"\"\n+    if not request.user.is_authenticated:\n+        return response.unauthorized()\n+\n+    if not all(x in request.POST for x in ['topic', 'feedback', 'ftype', 'user_agent']):\n+        return response.bad_request('Required feedback field missing.')\n+\n+    files = request.FILES.getlist('files')\n+    try:\n+        validators.validate_email_files(files)\n+    except ValidationError:\n+        return response.bad_request('The selected files exceeds the total file size limit.')\n+\n+    email_handling.send_email_feedback(request.user, files, **request.POST)\n+    return response.success(description='Feedback received')","path":"src/django/VLE/views/email.py","position":59,"original_position":59,"commit_id":"754549bcdbce4449055c644eb27180f537da9174","original_commit_id":"754549bcdbce4449055c644eb27180f537da9174","user":{"login":"engelhamer","id":39912581,"node_id":"MDQ6VXNlcjM5OTEyNTgx","avatar_url":"https://avatars3.githubusercontent.com/u/39912581?v=4","gravatar_id":"","url":"https://api.github.com/users/engelhamer","html_url":"https://github.com/engelhamer","followers_url":"https://api.github.com/users/engelhamer/followers","following_url":"https://api.github.com/users/engelhamer/following{/other_user}","gists_url":"https://api.github.com/users/engelhamer/gists{/gist_id}","starred_url":"https://api.github.com/users/engelhamer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/engelhamer/subscriptions","organizations_url":"https://api.github.com/users/engelhamer/orgs","repos_url":"https://api.github.com/users/engelhamer/repos","events_url":"https://api.github.com/users/engelhamer/events{/privacy}","received_events_url":"https://api.github.com/users/engelhamer/received_events","type":"User","site_admin":false},"body":"Nope, received is correct.","created_at":"2018-09-15T14:54:15Z","updated_at":"2018-09-15T14:54:15Z","html_url":"https://github.com/eJourn-al/eJournal/pull/328#discussion_r217886869","pull_request_url":"https://api.github.com/repos/eJourn-al/eJournal/pulls/328","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/eJourn-al/eJournal/pulls/comments/217886869"},"html":{"href":"https://github.com/eJourn-al/eJournal/pull/328#discussion_r217886869"},"pull_request":{"href":"https://api.github.com/repos/eJourn-al/eJournal/pulls/328"}},"in_reply_to_id":217886789},"pull_request":{"url":"https://api.github.com/repos/eJourn-al/eJournal/pulls/328","id":215771705,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE1NzcxNzA1","html_url":"https://github.com/eJourn-al/eJournal/pull/328","diff_url":"https://github.com/eJourn-al/eJournal/pull/328.diff","patch_url":"https://github.com/eJourn-al/eJournal/pull/328.patch","issue_url":"https://api.github.com/repos/eJourn-al/eJournal/issues/328","number":328,"state":"open","locked":false,"title":"Feature/easy developer feedback","user":{"login":"cloudzi1","id":39913161,"node_id":"MDQ6VXNlcjM5OTEzMTYx","avatar_url":"https://avatars2.githubusercontent.com/u/39913161?v=4","gravatar_id":"","url":"https://api.github.com/users/cloudzi1","html_url":"https://github.com/cloudzi1","followers_url":"https://api.github.com/users/cloudzi1/followers","following_url":"https://api.github.com/users/cloudzi1/following{/other_user}","gists_url":"https://api.github.com/users/cloudzi1/gists{/gist_id}","starred_url":"https://api.github.com/users/cloudzi1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cloudzi1/subscriptions","organizations_url":"https://api.github.com/users/cloudzi1/orgs","repos_url":"https://api.github.com/users/cloudzi1/repos","events_url":"https://api.github.com/users/cloudzi1/events{/privacy}","received_events_url":"https://api.github.com/users/cloudzi1/received_events","type":"User","site_admin":false},"body":"## Description\r\nFixed the easy developer feedback issue. Added a page where a form can be filled in with multiple attached files possible. After someone presses send an email will be send to the developers which is for now ejourn.al.trial@gmail.com. Only users with an account can send feedback.\r\n\r\n## Summary of changes\r\n- Fixes #275 \r\n","created_at":"2018-09-15T14:26:40Z","updated_at":"2018-09-15T14:54:15Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ab7d504ff08525520531632f198d6bcbd59d1adb","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/eJourn-al/eJournal/pulls/328/commits","review_comments_url":"https://api.github.com/repos/eJourn-al/eJournal/pulls/328/comments","review_comment_url":"https://api.github.com/repos/eJourn-al/eJournal/pulls/comments{/number}","comments_url":"https://api.github.com/repos/eJourn-al/eJournal/issues/328/comments","statuses_url":"https://api.github.com/repos/eJourn-al/eJournal/statuses/754549bcdbce4449055c644eb27180f537da9174","head":{"label":"eJourn-al:feature/easy-developer-feedback","ref":"feature/easy-developer-feedback","sha":"754549bcdbce4449055c644eb27180f537da9174","user":{"login":"eJourn-al","id":41028230,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQxMDI4MjMw","avatar_url":"https://avatars3.githubusercontent.com/u/41028230?v=4","gravatar_id":"","url":"https://api.github.com/users/eJourn-al","html_url":"https://github.com/eJourn-al","followers_url":"https://api.github.com/users/eJourn-al/followers","following_url":"https://api.github.com/users/eJourn-al/following{/other_user}","gists_url":"https://api.github.com/users/eJourn-al/gists{/gist_id}","starred_url":"https://api.github.com/users/eJourn-al/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eJourn-al/subscriptions","organizations_url":"https://api.github.com/users/eJourn-al/orgs","repos_url":"https://api.github.com/users/eJourn-al/repos","events_url":"https://api.github.com/users/eJourn-al/events{/privacy}","received_events_url":"https://api.github.com/users/eJourn-al/received_events","type":"Organization","site_admin":false},"repo":{"id":136030378,"node_id":"MDEwOlJlcG9zaXRvcnkxMzYwMzAzNzg=","name":"eJournal","full_name":"eJourn-al/eJournal","owner":{"login":"eJourn-al","id":41028230,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQxMDI4MjMw","avatar_url":"https://avatars3.githubusercontent.com/u/41028230?v=4","gravatar_id":"","url":"https://api.github.com/users/eJourn-al","html_url":"https://github.com/eJourn-al","followers_url":"https://api.github.com/users/eJourn-al/followers","following_url":"https://api.github.com/users/eJourn-al/following{/other_user}","gists_url":"https://api.github.com/users/eJourn-al/gists{/gist_id}","starred_url":"https://api.github.com/users/eJourn-al/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eJourn-al/subscriptions","organizations_url":"https://api.github.com/users/eJourn-al/orgs","repos_url":"https://api.github.com/users/eJourn-al/repos","events_url":"https://api.github.com/users/eJourn-al/events{/privacy}","received_events_url":"https://api.github.com/users/eJourn-al/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/eJourn-al/eJournal","description":"Platform for long term assignments in virtual learning environments.","fork":false,"url":"https://api.github.com/repos/eJourn-al/eJournal","forks_url":"https://api.github.com/repos/eJourn-al/eJournal/forks","keys_url":"https://api.github.com/repos/eJourn-al/eJournal/keys{/key_id}","collaborators_url":"https://api.github.com/repos/eJourn-al/eJournal/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/eJourn-al/eJournal/teams","hooks_url":"https://api.github.com/repos/eJourn-al/eJournal/hooks","issue_events_url":"https://api.github.com/repos/eJourn-al/eJournal/issues/events{/number}","events_url":"https://api.github.com/repos/eJourn-al/eJournal/events","assignees_url":"https://api.github.com/repos/eJourn-al/eJournal/assignees{/user}","branches_url":"https://api.github.com/repos/eJourn-al/eJournal/branches{/branch}","tags_url":"https://api.github.com/repos/eJourn-al/eJournal/tags","blobs_url":"https://api.github.com/repos/eJourn-al/eJournal/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/eJourn-al/eJournal/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/eJourn-al/eJournal/git/refs{/sha}","trees_url":"https://api.github.com/repos/eJourn-al/eJournal/git/trees{/sha}","statuses_url":"https://api.github.com/repos/eJourn-al/eJournal/statuses/{sha}","languages_url":"https://api.github.com/repos/eJourn-al/eJournal/languages","stargazers_url":"https://api.github.com/repos/eJourn-al/eJournal/stargazers","contributors_url":"https://api.github.com/repos/eJourn-al/eJournal/contributors","subscribers_url":"https://api.github.com/repos/eJourn-al/eJournal/subscribers","subscription_url":"https://api.github.com/repos/eJourn-al/eJournal/subscription","commits_url":"https://api.github.com/repos/eJourn-al/eJournal/commits{/sha}","git_commits_url":"https://api.github.com/repos/eJourn-al/eJournal/git/commits{/sha}","comments_url":"https://api.github.com/repos/eJourn-al/eJournal/comments{/number}","issue_comment_url":"https://api.github.com/repos/eJourn-al/eJournal/issues/comments{/number}","contents_url":"https://api.github.com/repos/eJourn-al/eJournal/contents/{+path}","compare_url":"https://api.github.com/repos/eJourn-al/eJournal/compare/{base}...{head}","merges_url":"https://api.github.com/repos/eJourn-al/eJournal/merges","archive_url":"https://api.github.com/repos/eJourn-al/eJournal/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/eJourn-al/eJournal/downloads","issues_url":"https://api.github.com/repos/eJourn-al/eJournal/issues{/number}","pulls_url":"https://api.github.com/repos/eJourn-al/eJournal/pulls{/number}","milestones_url":"https://api.github.com/repos/eJourn-al/eJournal/milestones{/number}","notifications_url":"https://api.github.com/repos/eJourn-al/eJournal/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/eJourn-al/eJournal/labels{/name}","releases_url":"https://api.github.com/repos/eJourn-al/eJournal/releases{/id}","deployments_url":"https://api.github.com/repos/eJourn-al/eJournal/deployments","created_at":"2018-06-04T13:36:31Z","updated_at":"2018-09-15T10:41:49Z","pushed_at":"2018-09-15T14:29:45Z","git_url":"git://github.com/eJourn-al/eJournal.git","ssh_url":"git@github.com:eJourn-al/eJournal.git","clone_url":"https://github.com/eJourn-al/eJournal.git","svn_url":"https://github.com/eJourn-al/eJournal","homepage":"","size":22426,"stargazers_count":8,"watchers_count":8,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":42,"license":{"key":"agpl-3.0","name":"GNU Affero General Public License v3.0","spdx_id":"AGPL-3.0","url":"https://api.github.com/licenses/agpl-3.0","node_id":"MDc6TGljZW5zZTE="},"forks":0,"open_issues":42,"watchers":8,"default_branch":"develop"}},"base":{"label":"eJourn-al:develop","ref":"develop","sha":"11875711641d8c2435cecc758e9bdc1c22cafeb7","user":{"login":"eJourn-al","id":41028230,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQxMDI4MjMw","avatar_url":"https://avatars3.githubusercontent.com/u/41028230?v=4","gravatar_id":"","url":"https://api.github.com/users/eJourn-al","html_url":"https://github.com/eJourn-al","followers_url":"https://api.github.com/users/eJourn-al/followers","following_url":"https://api.github.com/users/eJourn-al/following{/other_user}","gists_url":"https://api.github.com/users/eJourn-al/gists{/gist_id}","starred_url":"https://api.github.com/users/eJourn-al/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eJourn-al/subscriptions","organizations_url":"https://api.github.com/users/eJourn-al/orgs","repos_url":"https://api.github.com/users/eJourn-al/repos","events_url":"https://api.github.com/users/eJourn-al/events{/privacy}","received_events_url":"https://api.github.com/users/eJourn-al/received_events","type":"Organization","site_admin":false},"repo":{"id":136030378,"node_id":"MDEwOlJlcG9zaXRvcnkxMzYwMzAzNzg=","name":"eJournal","full_name":"eJourn-al/eJournal","owner":{"login":"eJourn-al","id":41028230,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQxMDI4MjMw","avatar_url":"https://avatars3.githubusercontent.com/u/41028230?v=4","gravatar_id":"","url":"https://api.github.com/users/eJourn-al","html_url":"https://github.com/eJourn-al","followers_url":"https://api.github.com/users/eJourn-al/followers","following_url":"https://api.github.com/users/eJourn-al/following{/other_user}","gists_url":"https://api.github.com/users/eJourn-al/gists{/gist_id}","starred_url":"https://api.github.com/users/eJourn-al/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eJourn-al/subscriptions","organizations_url":"https://api.github.com/users/eJourn-al/orgs","repos_url":"https://api.github.com/users/eJourn-al/repos","events_url":"https://api.github.com/users/eJourn-al/events{/privacy}","received_events_url":"https://api.github.com/users/eJourn-al/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/eJourn-al/eJournal","description":"Platform for long term assignments in virtual learning environments.","fork":false,"url":"https://api.github.com/repos/eJourn-al/eJournal","forks_url":"https://api.github.com/repos/eJourn-al/eJournal/forks","keys_url":"https://api.github.com/repos/eJourn-al/eJournal/keys{/key_id}","collaborators_url":"https://api.github.com/repos/eJourn-al/eJournal/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/eJourn-al/eJournal/teams","hooks_url":"https://api.github.com/repos/eJourn-al/eJournal/hooks","issue_events_url":"https://api.github.com/repos/eJourn-al/eJournal/issues/events{/number}","events_url":"https://api.github.com/repos/eJourn-al/eJournal/events","assignees_url":"https://api.github.com/repos/eJourn-al/eJournal/assignees{/user}","branches_url":"https://api.github.com/repos/eJourn-al/eJournal/branches{/branch}","tags_url":"https://api.github.com/repos/eJourn-al/eJournal/tags","blobs_url":"https://api.github.com/repos/eJourn-al/eJournal/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/eJourn-al/eJournal/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/eJourn-al/eJournal/git/refs{/sha}","trees_url":"https://api.github.com/repos/eJourn-al/eJournal/git/trees{/sha}","statuses_url":"https://api.github.com/repos/eJourn-al/eJournal/statuses/{sha}","languages_url":"https://api.github.com/repos/eJourn-al/eJournal/languages","stargazers_url":"https://api.github.com/repos/eJourn-al/eJournal/stargazers","contributors_url":"https://api.github.com/repos/eJourn-al/eJournal/contributors","subscribers_url":"https://api.github.com/repos/eJourn-al/eJournal/subscribers","subscription_url":"https://api.github.com/repos/eJourn-al/eJournal/subscription","commits_url":"https://api.github.com/repos/eJourn-al/eJournal/commits{/sha}","git_commits_url":"https://api.github.com/repos/eJourn-al/eJournal/git/commits{/sha}","comments_url":"https://api.github.com/repos/eJourn-al/eJournal/comments{/number}","issue_comment_url":"https://api.github.com/repos/eJourn-al/eJournal/issues/comments{/number}","contents_url":"https://api.github.com/repos/eJourn-al/eJournal/contents/{+path}","compare_url":"https://api.github.com/repos/eJourn-al/eJournal/compare/{base}...{head}","merges_url":"https://api.github.com/repos/eJourn-al/eJournal/merges","archive_url":"https://api.github.com/repos/eJourn-al/eJournal/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/eJourn-al/eJournal/downloads","issues_url":"https://api.github.com/repos/eJourn-al/eJournal/issues{/number}","pulls_url":"https://api.github.com/repos/eJourn-al/eJournal/pulls{/number}","milestones_url":"https://api.github.com/repos/eJourn-al/eJournal/milestones{/number}","notifications_url":"https://api.github.com/repos/eJourn-al/eJournal/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/eJourn-al/eJournal/labels{/name}","releases_url":"https://api.github.com/repos/eJourn-al/eJournal/releases{/id}","deployments_url":"https://api.github.com/repos/eJourn-al/eJournal/deployments","created_at":"2018-06-04T13:36:31Z","updated_at":"2018-09-15T10:41:49Z","pushed_at":"2018-09-15T14:29:45Z","git_url":"git://github.com/eJourn-al/eJournal.git","ssh_url":"git@github.com:eJourn-al/eJournal.git","clone_url":"https://github.com/eJourn-al/eJournal.git","svn_url":"https://github.com/eJourn-al/eJournal","homepage":"","size":22426,"stargazers_count":8,"watchers_count":8,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":42,"license":{"key":"agpl-3.0","name":"GNU Affero General Public License v3.0","spdx_id":"AGPL-3.0","url":"https://api.github.com/licenses/agpl-3.0","node_id":"MDc6TGljZW5zZTE="},"forks":0,"open_issues":42,"watchers":8,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/eJourn-al/eJournal/pulls/328"},"html":{"href":"https://github.com/eJourn-al/eJournal/pull/328"},"issue":{"href":"https://api.github.com/repos/eJourn-al/eJournal/issues/328"},"comments":{"href":"https://api.github.com/repos/eJourn-al/eJournal/issues/328/comments"},"review_comments":{"href":"https://api.github.com/repos/eJourn-al/eJournal/pulls/328/comments"},"review_comment":{"href":"https://api.github.com/repos/eJourn-al/eJournal/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/eJourn-al/eJournal/pulls/328/commits"},"statuses":{"href":"https://api.github.com/repos/eJourn-al/eJournal/statuses/754549bcdbce4449055c644eb27180f537da9174"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"engelhamer"}}