{"action":"created","comment":{"url":"https://api.github.com/repos/joindin/joindin-web2/pulls/comments/25903095","id":25903095,"diff_hunk":"@@ -291,6 +302,85 @@ public function submit()\n     }\n \n     /**\n+     * Action used to display a form to edit an event and with which the form can be submitted\n+     *\n+     * @return void\n+     */\n+    public function edit($friendly_name)\n+    {\n+        $request = $this->application->request();\n+\n+        $eventApi = $this->getEventApi();\n+        $event    = $eventApi->getByFriendlyUrl($friendly_name);\n+        if (! $event) {\n+            $this->redirectToListPage();\n+        }\n+\n+        if (! $this->userIsAllowedToEdit($event)) {\n+            $this->redirectToDetailPage($event->getUrlFriendlyName());\n+        }\n+\n+        /** @var FormFactoryInterface $factory */\n+        $factory = $this->application->formFactory;\n+        $form    = $factory->create(new EventFormType(), $event->setTags(implode(', ', $event->getTags())));","path":"app/src/Event/EventController.php","position":74,"original_position":74,"commit_id":"341932a8fc6e510035aa5c0784f8962e74d9b692","original_commit_id":"341932a8fc6e510035aa5c0784f8962e74d9b692","user":{"login":"akrabat","id":33135,"avatar_url":"https://avatars.githubusercontent.com/u/33135?v=3","gravatar_id":"","url":"https://api.github.com/users/akrabat","html_url":"https://github.com/akrabat","followers_url":"https://api.github.com/users/akrabat/followers","following_url":"https://api.github.com/users/akrabat/following{/other_user}","gists_url":"https://api.github.com/users/akrabat/gists{/gist_id}","starred_url":"https://api.github.com/users/akrabat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akrabat/subscriptions","organizations_url":"https://api.github.com/users/akrabat/orgs","repos_url":"https://api.github.com/users/akrabat/repos","events_url":"https://api.github.com/users/akrabat/events{/privacy}","received_events_url":"https://api.github.com/users/akrabat/received_events","type":"User","site_admin":false},"body":"I'm not happy about rewriting the way tags are stored internally from an array to a csv.\r\nI think that the correct Symfony2 Forms solution to this problem is to implement a \"DataTransformer\" like we did for dates here: https://github.com/joindin/joindin-web2/blob/master/app/src/Form/DataTransformer/DateTransformer.php","created_at":"2015-03-05T21:27:01Z","updated_at":"2015-03-05T21:27:01Z","html_url":"https://github.com/joindin/joindin-web2/pull/155#discussion_r25903095","pull_request_url":"https://api.github.com/repos/joindin/joindin-web2/pulls/155","_links":{"self":{"href":"https://api.github.com/repos/joindin/joindin-web2/pulls/comments/25903095"},"html":{"href":"https://github.com/joindin/joindin-web2/pull/155#discussion_r25903095"},"pull_request":{"href":"https://api.github.com/repos/joindin/joindin-web2/pulls/155"}}},"pull_request":{"url":"https://api.github.com/repos/joindin/joindin-web2/pulls/155","id":21900517,"html_url":"https://github.com/joindin/joindin-web2/pull/155","diff_url":"https://github.com/joindin/joindin-web2/pull/155.diff","patch_url":"https://github.com/joindin/joindin-web2/pull/155.patch","issue_url":"https://api.github.com/repos/joindin/joindin-web2/issues/155","number":155,"state":"open","locked":false,"title":"Adds possibility to edit an event in web2","user":{"login":"heiglandreas","id":91998,"avatar_url":"https://avatars.githubusercontent.com/u/91998?v=3","gravatar_id":"","url":"https://api.github.com/users/heiglandreas","html_url":"https://github.com/heiglandreas","followers_url":"https://api.github.com/users/heiglandreas/followers","following_url":"https://api.github.com/users/heiglandreas/following{/other_user}","gists_url":"https://api.github.com/users/heiglandreas/gists{/gist_id}","starred_url":"https://api.github.com/users/heiglandreas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/heiglandreas/subscriptions","organizations_url":"https://api.github.com/users/heiglandreas/orgs","repos_url":"https://api.github.com/users/heiglandreas/repos","events_url":"https://api.github.com/users/heiglandreas/events{/privacy}","received_events_url":"https://api.github.com/users/heiglandreas/received_events","type":"User","site_admin":false},"body":"This commit adds the possibility to edit an event via the web2 interface","created_at":"2014-09-28T10:42:32Z","updated_at":"2015-03-05T21:27:01Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7fedb56248677963f37e5c2861652b1f2747e393","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/joindin/joindin-web2/pulls/155/commits","review_comments_url":"https://api.github.com/repos/joindin/joindin-web2/pulls/155/comments","review_comment_url":"https://api.github.com/repos/joindin/joindin-web2/pulls/comments{/number}","comments_url":"https://api.github.com/repos/joindin/joindin-web2/issues/155/comments","statuses_url":"https://api.github.com/repos/joindin/joindin-web2/statuses/341932a8fc6e510035aa5c0784f8962e74d9b692","head":{"label":"heiglandreas:feature/addEditPossibility","ref":"feature/addEditPossibility","sha":"341932a8fc6e510035aa5c0784f8962e74d9b692","user":{"login":"heiglandreas","id":91998,"avatar_url":"https://avatars.githubusercontent.com/u/91998?v=3","gravatar_id":"","url":"https://api.github.com/users/heiglandreas","html_url":"https://github.com/heiglandreas","followers_url":"https://api.github.com/users/heiglandreas/followers","following_url":"https://api.github.com/users/heiglandreas/following{/other_user}","gists_url":"https://api.github.com/users/heiglandreas/gists{/gist_id}","starred_url":"https://api.github.com/users/heiglandreas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/heiglandreas/subscriptions","organizations_url":"https://api.github.com/users/heiglandreas/orgs","repos_url":"https://api.github.com/users/heiglandreas/repos","events_url":"https://api.github.com/users/heiglandreas/events{/privacy}","received_events_url":"https://api.github.com/users/heiglandreas/received_events","type":"User","site_admin":false},"repo":{"id":21251466,"name":"joindin-web2","full_name":"heiglandreas/joindin-web2","owner":{"login":"heiglandreas","id":91998,"avatar_url":"https://avatars.githubusercontent.com/u/91998?v=3","gravatar_id":"","url":"https://api.github.com/users/heiglandreas","html_url":"https://github.com/heiglandreas","followers_url":"https://api.github.com/users/heiglandreas/followers","following_url":"https://api.github.com/users/heiglandreas/following{/other_user}","gists_url":"https://api.github.com/users/heiglandreas/gists{/gist_id}","starred_url":"https://api.github.com/users/heiglandreas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/heiglandreas/subscriptions","organizations_url":"https://api.github.com/users/heiglandreas/orgs","repos_url":"https://api.github.com/users/heiglandreas/repos","events_url":"https://api.github.com/users/heiglandreas/events{/privacy}","received_events_url":"https://api.github.com/users/heiglandreas/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/heiglandreas/joindin-web2","description":"Next generation website for joind.in","fork":true,"url":"https://api.github.com/repos/heiglandreas/joindin-web2","forks_url":"https://api.github.com/repos/heiglandreas/joindin-web2/forks","keys_url":"https://api.github.com/repos/heiglandreas/joindin-web2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/heiglandreas/joindin-web2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/heiglandreas/joindin-web2/teams","hooks_url":"https://api.github.com/repos/heiglandreas/joindin-web2/hooks","issue_events_url":"https://api.github.com/repos/heiglandreas/joindin-web2/issues/events{/number}","events_url":"https://api.github.com/repos/heiglandreas/joindin-web2/events","assignees_url":"https://api.github.com/repos/heiglandreas/joindin-web2/assignees{/user}","branches_url":"https://api.github.com/repos/heiglandreas/joindin-web2/branches{/branch}","tags_url":"https://api.github.com/repos/heiglandreas/joindin-web2/tags","blobs_url":"https://api.github.com/repos/heiglandreas/joindin-web2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/heiglandreas/joindin-web2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/heiglandreas/joindin-web2/git/refs{/sha}","trees_url":"https://api.github.com/repos/heiglandreas/joindin-web2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/heiglandreas/joindin-web2/statuses/{sha}","languages_url":"https://api.github.com/repos/heiglandreas/joindin-web2/languages","stargazers_url":"https://api.github.com/repos/heiglandreas/joindin-web2/stargazers","contributors_url":"https://api.github.com/repos/heiglandreas/joindin-web2/contributors","subscribers_url":"https://api.github.com/repos/heiglandreas/joindin-web2/subscribers","subscription_url":"https://api.github.com/repos/heiglandreas/joindin-web2/subscription","commits_url":"https://api.github.com/repos/heiglandreas/joindin-web2/commits{/sha}","git_commits_url":"https://api.github.com/repos/heiglandreas/joindin-web2/git/commits{/sha}","comments_url":"https://api.github.com/repos/heiglandreas/joindin-web2/comments{/number}","issue_comment_url":"https://api.github.com/repos/heiglandreas/joindin-web2/issues/comments{/number}","contents_url":"https://api.github.com/repos/heiglandreas/joindin-web2/contents/{+path}","compare_url":"https://api.github.com/repos/heiglandreas/joindin-web2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/heiglandreas/joindin-web2/merges","archive_url":"https://api.github.com/repos/heiglandreas/joindin-web2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/heiglandreas/joindin-web2/downloads","issues_url":"https://api.github.com/repos/heiglandreas/joindin-web2/issues{/number}","pulls_url":"https://api.github.com/repos/heiglandreas/joindin-web2/pulls{/number}","milestones_url":"https://api.github.com/repos/heiglandreas/joindin-web2/milestones{/number}","notifications_url":"https://api.github.com/repos/heiglandreas/joindin-web2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/heiglandreas/joindin-web2/labels{/name}","releases_url":"https://api.github.com/repos/heiglandreas/joindin-web2/releases{/id}","created_at":"2014-06-26T19:00:03Z","updated_at":"2014-06-25T19:40:16Z","pushed_at":"2015-03-03T20:11:20Z","git_url":"git://github.com/heiglandreas/joindin-web2.git","ssh_url":"git@github.com:heiglandreas/joindin-web2.git","clone_url":"https://github.com/heiglandreas/joindin-web2.git","svn_url":"https://github.com/heiglandreas/joindin-web2","homepage":null,"size":10826,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"joindin:master","ref":"master","sha":"dc59e8d77f0b4541add0e71294392cde15e6cf93","user":{"login":"joindin","id":317803,"avatar_url":"https://avatars.githubusercontent.com/u/317803?v=3","gravatar_id":"","url":"https://api.github.com/users/joindin","html_url":"https://github.com/joindin","followers_url":"https://api.github.com/users/joindin/followers","following_url":"https://api.github.com/users/joindin/following{/other_user}","gists_url":"https://api.github.com/users/joindin/gists{/gist_id}","starred_url":"https://api.github.com/users/joindin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joindin/subscriptions","organizations_url":"https://api.github.com/users/joindin/orgs","repos_url":"https://api.github.com/users/joindin/repos","events_url":"https://api.github.com/users/joindin/events{/privacy}","received_events_url":"https://api.github.com/users/joindin/received_events","type":"Organization","site_admin":false},"repo":{"id":7489590,"name":"joindin-web2","full_name":"joindin/joindin-web2","owner":{"login":"joindin","id":317803,"avatar_url":"https://avatars.githubusercontent.com/u/317803?v=3","gravatar_id":"","url":"https://api.github.com/users/joindin","html_url":"https://github.com/joindin","followers_url":"https://api.github.com/users/joindin/followers","following_url":"https://api.github.com/users/joindin/following{/other_user}","gists_url":"https://api.github.com/users/joindin/gists{/gist_id}","starred_url":"https://api.github.com/users/joindin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joindin/subscriptions","organizations_url":"https://api.github.com/users/joindin/orgs","repos_url":"https://api.github.com/users/joindin/repos","events_url":"https://api.github.com/users/joindin/events{/privacy}","received_events_url":"https://api.github.com/users/joindin/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/joindin/joindin-web2","description":"Next generation website for joind.in","fork":false,"url":"https://api.github.com/repos/joindin/joindin-web2","forks_url":"https://api.github.com/repos/joindin/joindin-web2/forks","keys_url":"https://api.github.com/repos/joindin/joindin-web2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/joindin/joindin-web2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/joindin/joindin-web2/teams","hooks_url":"https://api.github.com/repos/joindin/joindin-web2/hooks","issue_events_url":"https://api.github.com/repos/joindin/joindin-web2/issues/events{/number}","events_url":"https://api.github.com/repos/joindin/joindin-web2/events","assignees_url":"https://api.github.com/repos/joindin/joindin-web2/assignees{/user}","branches_url":"https://api.github.com/repos/joindin/joindin-web2/branches{/branch}","tags_url":"https://api.github.com/repos/joindin/joindin-web2/tags","blobs_url":"https://api.github.com/repos/joindin/joindin-web2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/joindin/joindin-web2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/joindin/joindin-web2/git/refs{/sha}","trees_url":"https://api.github.com/repos/joindin/joindin-web2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/joindin/joindin-web2/statuses/{sha}","languages_url":"https://api.github.com/repos/joindin/joindin-web2/languages","stargazers_url":"https://api.github.com/repos/joindin/joindin-web2/stargazers","contributors_url":"https://api.github.com/repos/joindin/joindin-web2/contributors","subscribers_url":"https://api.github.com/repos/joindin/joindin-web2/subscribers","subscription_url":"https://api.github.com/repos/joindin/joindin-web2/subscription","commits_url":"https://api.github.com/repos/joindin/joindin-web2/commits{/sha}","git_commits_url":"https://api.github.com/repos/joindin/joindin-web2/git/commits{/sha}","comments_url":"https://api.github.com/repos/joindin/joindin-web2/comments{/number}","issue_comment_url":"https://api.github.com/repos/joindin/joindin-web2/issues/comments{/number}","contents_url":"https://api.github.com/repos/joindin/joindin-web2/contents/{+path}","compare_url":"https://api.github.com/repos/joindin/joindin-web2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/joindin/joindin-web2/merges","archive_url":"https://api.github.com/repos/joindin/joindin-web2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/joindin/joindin-web2/downloads","issues_url":"https://api.github.com/repos/joindin/joindin-web2/issues{/number}","pulls_url":"https://api.github.com/repos/joindin/joindin-web2/pulls{/number}","milestones_url":"https://api.github.com/repos/joindin/joindin-web2/milestones{/number}","notifications_url":"https://api.github.com/repos/joindin/joindin-web2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/joindin/joindin-web2/labels{/name}","releases_url":"https://api.github.com/repos/joindin/joindin-web2/releases{/id}","created_at":"2013-01-07T20:48:20Z","updated_at":"2015-03-02T20:59:26Z","pushed_at":"2015-03-02T20:59:26Z","git_url":"git://github.com/joindin/joindin-web2.git","ssh_url":"git@github.com:joindin/joindin-web2.git","clone_url":"https://github.com/joindin/joindin-web2.git","svn_url":"https://github.com/joindin/joindin-web2","homepage":null,"size":13453,"stargazers_count":22,"watchers_count":22,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":94,"mirror_url":null,"open_issues_count":7,"forks":94,"open_issues":7,"watchers":22,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/joindin/joindin-web2/pulls/155"},"html":{"href":"https://github.com/joindin/joindin-web2/pull/155"},"issue":{"href":"https://api.github.com/repos/joindin/joindin-web2/issues/155"},"comments":{"href":"https://api.github.com/repos/joindin/joindin-web2/issues/155/comments"},"review_comments":{"href":"https://api.github.com/repos/joindin/joindin-web2/pulls/155/comments"},"review_comment":{"href":"https://api.github.com/repos/joindin/joindin-web2/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/joindin/joindin-web2/pulls/155/commits"},"statuses":{"href":"https://api.github.com/repos/joindin/joindin-web2/statuses/341932a8fc6e510035aa5c0784f8962e74d9b692"}}}}