{"action":"created","comment":{"url":"https://api.github.com/repos/MrAaronOlsen/trail-up/pulls/comments/128121150","pull_request_review_id":50770858,"id":128121150,"diff_hunk":"@@ -14,6 +15,22 @@ def create\n     end\n   end\n \n+  def edit\n+    @event = Event.find(params[:id])\n+  end\n+\n+  def update\n+    @event = Event.find(params[:id])","path":"app/controllers/events_controller.rb","position":17,"original_position":17,"commit_id":"cea20763560b36bcc9457410718de3d30b433c6b","original_commit_id":"cea20763560b36bcc9457410718de3d30b433c6b","user":{"login":"Benjaminpjacobs","id":24966769,"avatar_url":"https://avatars0.githubusercontent.com/u/24966769?v=4","gravatar_id":"","url":"https://api.github.com/users/Benjaminpjacobs","html_url":"https://github.com/Benjaminpjacobs","followers_url":"https://api.github.com/users/Benjaminpjacobs/followers","following_url":"https://api.github.com/users/Benjaminpjacobs/following{/other_user}","gists_url":"https://api.github.com/users/Benjaminpjacobs/gists{/gist_id}","starred_url":"https://api.github.com/users/Benjaminpjacobs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Benjaminpjacobs/subscriptions","organizations_url":"https://api.github.com/users/Benjaminpjacobs/orgs","repos_url":"https://api.github.com/users/Benjaminpjacobs/repos","events_url":"https://api.github.com/users/Benjaminpjacobs/events{/privacy}","received_events_url":"https://api.github.com/users/Benjaminpjacobs/received_events","type":"User","site_admin":false},"body":"@event = current_user.hosting.find(params[:id])","created_at":"2017-07-18T23:27:45Z","updated_at":"2017-07-18T23:27:55Z","html_url":"https://github.com/MrAaronOlsen/trail-up/pull/65#discussion_r128121150","pull_request_url":"https://api.github.com/repos/MrAaronOlsen/trail-up/pulls/65","_links":{"self":{"href":"https://api.github.com/repos/MrAaronOlsen/trail-up/pulls/comments/128121150"},"html":{"href":"https://github.com/MrAaronOlsen/trail-up/pull/65#discussion_r128121150"},"pull_request":{"href":"https://api.github.com/repos/MrAaronOlsen/trail-up/pulls/65"}}},"pull_request":{"url":"https://api.github.com/repos/MrAaronOlsen/trail-up/pulls/65","id":131206290,"html_url":"https://github.com/MrAaronOlsen/trail-up/pull/65","diff_url":"https://github.com/MrAaronOlsen/trail-up/pull/65.diff","patch_url":"https://github.com/MrAaronOlsen/trail-up/pull/65.patch","issue_url":"https://api.github.com/repos/MrAaronOlsen/trail-up/issues/65","number":65,"state":"open","locked":false,"title":"User edits event","user":{"login":"ACC25","id":23218365,"avatar_url":"https://avatars1.githubusercontent.com/u/23218365?v=4","gravatar_id":"","url":"https://api.github.com/users/ACC25","html_url":"https://github.com/ACC25","followers_url":"https://api.github.com/users/ACC25/followers","following_url":"https://api.github.com/users/ACC25/following{/other_user}","gists_url":"https://api.github.com/users/ACC25/gists{/gist_id}","starred_url":"https://api.github.com/users/ACC25/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ACC25/subscriptions","organizations_url":"https://api.github.com/users/ACC25/orgs","repos_url":"https://api.github.com/users/ACC25/repos","events_url":"https://api.github.com/users/ACC25/events{/privacy}","received_events_url":"https://api.github.com/users/ACC25/received_events","type":"User","site_admin":false},"body":"#### What does  this PR do?\r\nUsers can now edit events they are the host of.\r\nUsers cannot manually change the url to edit an event they are not the host of - permissions updated.\r\nAll RSPEC tests pass. \r\n#### Where should the reviewer start?\r\nspec/features/users/user_can_edit_event\r\n#### How should this be manually tested?\r\nNo.\r\n#### Any background context you want to provide?\r\n#### What are the relevant tickets?\r\n#### Screenshots (if appropriate)\r\n#### Questions:\r\n  - Do Migrations Need to be ran? No.\r\n  - Do Environment Variables need to be set? No.\r\n  - Any other deploy steps? No.\r\n","created_at":"2017-07-18T23:08:00Z","updated_at":"2017-07-18T23:27:55Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5dfda4420f8e3014c51ac17d6edbfa364614be7b","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/MrAaronOlsen/trail-up/pulls/65/commits","review_comments_url":"https://api.github.com/repos/MrAaronOlsen/trail-up/pulls/65/comments","review_comment_url":"https://api.github.com/repos/MrAaronOlsen/trail-up/pulls/comments{/number}","comments_url":"https://api.github.com/repos/MrAaronOlsen/trail-up/issues/65/comments","statuses_url":"https://api.github.com/repos/MrAaronOlsen/trail-up/statuses/cea20763560b36bcc9457410718de3d30b433c6b","head":{"label":"MrAaronOlsen:user_edits_event","ref":"user_edits_event","sha":"cea20763560b36bcc9457410718de3d30b433c6b","user":{"login":"MrAaronOlsen","id":22713509,"avatar_url":"https://avatars1.githubusercontent.com/u/22713509?v=4","gravatar_id":"","url":"https://api.github.com/users/MrAaronOlsen","html_url":"https://github.com/MrAaronOlsen","followers_url":"https://api.github.com/users/MrAaronOlsen/followers","following_url":"https://api.github.com/users/MrAaronOlsen/following{/other_user}","gists_url":"https://api.github.com/users/MrAaronOlsen/gists{/gist_id}","starred_url":"https://api.github.com/users/MrAaronOlsen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MrAaronOlsen/subscriptions","organizations_url":"https://api.github.com/users/MrAaronOlsen/orgs","repos_url":"https://api.github.com/users/MrAaronOlsen/repos","events_url":"https://api.github.com/users/MrAaronOlsen/events{/privacy}","received_events_url":"https://api.github.com/users/MrAaronOlsen/received_events","type":"User","site_admin":false},"repo":{"id":96832882,"name":"trail-up","full_name":"MrAaronOlsen/trail-up","owner":{"login":"MrAaronOlsen","id":22713509,"avatar_url":"https://avatars1.githubusercontent.com/u/22713509?v=4","gravatar_id":"","url":"https://api.github.com/users/MrAaronOlsen","html_url":"https://github.com/MrAaronOlsen","followers_url":"https://api.github.com/users/MrAaronOlsen/followers","following_url":"https://api.github.com/users/MrAaronOlsen/following{/other_user}","gists_url":"https://api.github.com/users/MrAaronOlsen/gists{/gist_id}","starred_url":"https://api.github.com/users/MrAaronOlsen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MrAaronOlsen/subscriptions","organizations_url":"https://api.github.com/users/MrAaronOlsen/orgs","repos_url":"https://api.github.com/users/MrAaronOlsen/repos","events_url":"https://api.github.com/users/MrAaronOlsen/events{/privacy}","received_events_url":"https://api.github.com/users/MrAaronOlsen/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/MrAaronOlsen/trail-up","description":"Trail Up! The social hiking app.","fork":false,"url":"https://api.github.com/repos/MrAaronOlsen/trail-up","forks_url":"https://api.github.com/repos/MrAaronOlsen/trail-up/forks","keys_url":"https://api.github.com/repos/MrAaronOlsen/trail-up/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MrAaronOlsen/trail-up/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MrAaronOlsen/trail-up/teams","hooks_url":"https://api.github.com/repos/MrAaronOlsen/trail-up/hooks","issue_events_url":"https://api.github.com/repos/MrAaronOlsen/trail-up/issues/events{/number}","events_url":"https://api.github.com/repos/MrAaronOlsen/trail-up/events","assignees_url":"https://api.github.com/repos/MrAaronOlsen/trail-up/assignees{/user}","branches_url":"https://api.github.com/repos/MrAaronOlsen/trail-up/branches{/branch}","tags_url":"https://api.github.com/repos/MrAaronOlsen/trail-up/tags","blobs_url":"https://api.github.com/repos/MrAaronOlsen/trail-up/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MrAaronOlsen/trail-up/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MrAaronOlsen/trail-up/git/refs{/sha}","trees_url":"https://api.github.com/repos/MrAaronOlsen/trail-up/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MrAaronOlsen/trail-up/statuses/{sha}","languages_url":"https://api.github.com/repos/MrAaronOlsen/trail-up/languages","stargazers_url":"https://api.github.com/repos/MrAaronOlsen/trail-up/stargazers","contributors_url":"https://api.github.com/repos/MrAaronOlsen/trail-up/contributors","subscribers_url":"https://api.github.com/repos/MrAaronOlsen/trail-up/subscribers","subscription_url":"https://api.github.com/repos/MrAaronOlsen/trail-up/subscription","commits_url":"https://api.github.com/repos/MrAaronOlsen/trail-up/commits{/sha}","git_commits_url":"https://api.github.com/repos/MrAaronOlsen/trail-up/git/commits{/sha}","comments_url":"https://api.github.com/repos/MrAaronOlsen/trail-up/comments{/number}","issue_comment_url":"https://api.github.com/repos/MrAaronOlsen/trail-up/issues/comments{/number}","contents_url":"https://api.github.com/repos/MrAaronOlsen/trail-up/contents/{+path}","compare_url":"https://api.github.com/repos/MrAaronOlsen/trail-up/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MrAaronOlsen/trail-up/merges","archive_url":"https://api.github.com/repos/MrAaronOlsen/trail-up/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MrAaronOlsen/trail-up/downloads","issues_url":"https://api.github.com/repos/MrAaronOlsen/trail-up/issues{/number}","pulls_url":"https://api.github.com/repos/MrAaronOlsen/trail-up/pulls{/number}","milestones_url":"https://api.github.com/repos/MrAaronOlsen/trail-up/milestones{/number}","notifications_url":"https://api.github.com/repos/MrAaronOlsen/trail-up/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MrAaronOlsen/trail-up/labels{/name}","releases_url":"https://api.github.com/repos/MrAaronOlsen/trail-up/releases{/id}","deployments_url":"https://api.github.com/repos/MrAaronOlsen/trail-up/deployments","created_at":"2017-07-11T00:25:33Z","updated_at":"2017-07-18T23:09:26Z","pushed_at":"2017-07-18T23:13:30Z","git_url":"git://github.com/MrAaronOlsen/trail-up.git","ssh_url":"git@github.com:MrAaronOlsen/trail-up.git","clone_url":"https://github.com/MrAaronOlsen/trail-up.git","svn_url":"https://github.com/MrAaronOlsen/trail-up","homepage":null,"size":6611,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"developement"}},"base":{"label":"MrAaronOlsen:developement","ref":"developement","sha":"53ecbc03b09369474de55bebca41b0bbe48413c5","user":{"login":"MrAaronOlsen","id":22713509,"avatar_url":"https://avatars1.githubusercontent.com/u/22713509?v=4","gravatar_id":"","url":"https://api.github.com/users/MrAaronOlsen","html_url":"https://github.com/MrAaronOlsen","followers_url":"https://api.github.com/users/MrAaronOlsen/followers","following_url":"https://api.github.com/users/MrAaronOlsen/following{/other_user}","gists_url":"https://api.github.com/users/MrAaronOlsen/gists{/gist_id}","starred_url":"https://api.github.com/users/MrAaronOlsen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MrAaronOlsen/subscriptions","organizations_url":"https://api.github.com/users/MrAaronOlsen/orgs","repos_url":"https://api.github.com/users/MrAaronOlsen/repos","events_url":"https://api.github.com/users/MrAaronOlsen/events{/privacy}","received_events_url":"https://api.github.com/users/MrAaronOlsen/received_events","type":"User","site_admin":false},"repo":{"id":96832882,"name":"trail-up","full_name":"MrAaronOlsen/trail-up","owner":{"login":"MrAaronOlsen","id":22713509,"avatar_url":"https://avatars1.githubusercontent.com/u/22713509?v=4","gravatar_id":"","url":"https://api.github.com/users/MrAaronOlsen","html_url":"https://github.com/MrAaronOlsen","followers_url":"https://api.github.com/users/MrAaronOlsen/followers","following_url":"https://api.github.com/users/MrAaronOlsen/following{/other_user}","gists_url":"https://api.github.com/users/MrAaronOlsen/gists{/gist_id}","starred_url":"https://api.github.com/users/MrAaronOlsen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MrAaronOlsen/subscriptions","organizations_url":"https://api.github.com/users/MrAaronOlsen/orgs","repos_url":"https://api.github.com/users/MrAaronOlsen/repos","events_url":"https://api.github.com/users/MrAaronOlsen/events{/privacy}","received_events_url":"https://api.github.com/users/MrAaronOlsen/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/MrAaronOlsen/trail-up","description":"Trail Up! The social hiking app.","fork":false,"url":"https://api.github.com/repos/MrAaronOlsen/trail-up","forks_url":"https://api.github.com/repos/MrAaronOlsen/trail-up/forks","keys_url":"https://api.github.com/repos/MrAaronOlsen/trail-up/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MrAaronOlsen/trail-up/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MrAaronOlsen/trail-up/teams","hooks_url":"https://api.github.com/repos/MrAaronOlsen/trail-up/hooks","issue_events_url":"https://api.github.com/repos/MrAaronOlsen/trail-up/issues/events{/number}","events_url":"https://api.github.com/repos/MrAaronOlsen/trail-up/events","assignees_url":"https://api.github.com/repos/MrAaronOlsen/trail-up/assignees{/user}","branches_url":"https://api.github.com/repos/MrAaronOlsen/trail-up/branches{/branch}","tags_url":"https://api.github.com/repos/MrAaronOlsen/trail-up/tags","blobs_url":"https://api.github.com/repos/MrAaronOlsen/trail-up/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MrAaronOlsen/trail-up/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MrAaronOlsen/trail-up/git/refs{/sha}","trees_url":"https://api.github.com/repos/MrAaronOlsen/trail-up/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MrAaronOlsen/trail-up/statuses/{sha}","languages_url":"https://api.github.com/repos/MrAaronOlsen/trail-up/languages","stargazers_url":"https://api.github.com/repos/MrAaronOlsen/trail-up/stargazers","contributors_url":"https://api.github.com/repos/MrAaronOlsen/trail-up/contributors","subscribers_url":"https://api.github.com/repos/MrAaronOlsen/trail-up/subscribers","subscription_url":"https://api.github.com/repos/MrAaronOlsen/trail-up/subscription","commits_url":"https://api.github.com/repos/MrAaronOlsen/trail-up/commits{/sha}","git_commits_url":"https://api.github.com/repos/MrAaronOlsen/trail-up/git/commits{/sha}","comments_url":"https://api.github.com/repos/MrAaronOlsen/trail-up/comments{/number}","issue_comment_url":"https://api.github.com/repos/MrAaronOlsen/trail-up/issues/comments{/number}","contents_url":"https://api.github.com/repos/MrAaronOlsen/trail-up/contents/{+path}","compare_url":"https://api.github.com/repos/MrAaronOlsen/trail-up/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MrAaronOlsen/trail-up/merges","archive_url":"https://api.github.com/repos/MrAaronOlsen/trail-up/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MrAaronOlsen/trail-up/downloads","issues_url":"https://api.github.com/repos/MrAaronOlsen/trail-up/issues{/number}","pulls_url":"https://api.github.com/repos/MrAaronOlsen/trail-up/pulls{/number}","milestones_url":"https://api.github.com/repos/MrAaronOlsen/trail-up/milestones{/number}","notifications_url":"https://api.github.com/repos/MrAaronOlsen/trail-up/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MrAaronOlsen/trail-up/labels{/name}","releases_url":"https://api.github.com/repos/MrAaronOlsen/trail-up/releases{/id}","deployments_url":"https://api.github.com/repos/MrAaronOlsen/trail-up/deployments","created_at":"2017-07-11T00:25:33Z","updated_at":"2017-07-18T23:09:26Z","pushed_at":"2017-07-18T23:13:30Z","git_url":"git://github.com/MrAaronOlsen/trail-up.git","ssh_url":"git@github.com:MrAaronOlsen/trail-up.git","clone_url":"https://github.com/MrAaronOlsen/trail-up.git","svn_url":"https://github.com/MrAaronOlsen/trail-up","homepage":null,"size":6611,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"developement"}},"_links":{"self":{"href":"https://api.github.com/repos/MrAaronOlsen/trail-up/pulls/65"},"html":{"href":"https://github.com/MrAaronOlsen/trail-up/pull/65"},"issue":{"href":"https://api.github.com/repos/MrAaronOlsen/trail-up/issues/65"},"comments":{"href":"https://api.github.com/repos/MrAaronOlsen/trail-up/issues/65/comments"},"review_comments":{"href":"https://api.github.com/repos/MrAaronOlsen/trail-up/pulls/65/comments"},"review_comment":{"href":"https://api.github.com/repos/MrAaronOlsen/trail-up/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/MrAaronOlsen/trail-up/pulls/65/commits"},"statuses":{"href":"https://api.github.com/repos/MrAaronOlsen/trail-up/statuses/cea20763560b36bcc9457410718de3d30b433c6b"}}}}
{"actor":{"display_login":"Benjaminpjacobs"}}