{"action":"created","comment":{"url":"https://api.github.com/repos/cubing/worldcubeassociation.org/pulls/comments/34533270","id":34533270,"diff_hunk":"@@ -0,0 +1,171 @@\n+<% provide(:title, @competition.name) %>\n+\n+<% if @admin_view %>\n+  <h2>Announcements</h2>","path":"WcaOnRails/app/views/competitions/edit.html.erb","position":4,"original_position":4,"commit_id":"4622be423347542ac9cc3a3ca5d4f0eba25d298d","original_commit_id":"4622be423347542ac9cc3a3ca5d4f0eba25d298d","user":{"login":"jfly","id":277474,"avatar_url":"https://avatars.githubusercontent.com/u/277474?v=3","gravatar_id":"","url":"https://api.github.com/users/jfly","html_url":"https://github.com/jfly","followers_url":"https://api.github.com/users/jfly/followers","following_url":"https://api.github.com/users/jfly/following{/other_user}","gists_url":"https://api.github.com/users/jfly/gists{/gist_id}","starred_url":"https://api.github.com/users/jfly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jfly/subscriptions","organizations_url":"https://api.github.com/users/jfly/orgs","repos_url":"https://api.github.com/users/jfly/repos","events_url":"https://api.github.com/users/jfly/events{/privacy}","received_events_url":"https://api.github.com/users/jfly/received_events","type":"User","site_admin":false},"body":"I did update the post results link [here](https://github.com/cubing/worldcubeassociation.org/commit/148b5e7a6b358d7ced0a57157c7e000b8e7a8df8#diff-d4c5068a7b12ed233fbb1b00f3e34e0dR155).\r\n\r\nThere is currently no link to announce the competition results, although the `/competitions/*/post/announcment` route does work. I'll add a link as part of porting competitions_manage.php to rails.","created_at":"2015-07-14T02:44:14Z","updated_at":"2015-07-14T02:44:14Z","html_url":"https://github.com/cubing/worldcubeassociation.org/pull/111#discussion_r34533270","pull_request_url":"https://api.github.com/repos/cubing/worldcubeassociation.org/pulls/111","_links":{"self":{"href":"https://api.github.com/repos/cubing/worldcubeassociation.org/pulls/comments/34533270"},"html":{"href":"https://github.com/cubing/worldcubeassociation.org/pull/111#discussion_r34533270"},"pull_request":{"href":"https://api.github.com/repos/cubing/worldcubeassociation.org/pulls/111"}}},"pull_request":{"url":"https://api.github.com/repos/cubing/worldcubeassociation.org/pulls/111","id":39602643,"html_url":"https://github.com/cubing/worldcubeassociation.org/pull/111","diff_url":"https://github.com/cubing/worldcubeassociation.org/pull/111.diff","patch_url":"https://github.com/cubing/worldcubeassociation.org/pull/111.patch","issue_url":"https://api.github.com/repos/cubing/worldcubeassociation.org/issues/111","number":111,"state":"open","locked":false,"title":"Ported competition edit to Rails","user":{"login":"jfly","id":277474,"avatar_url":"https://avatars.githubusercontent.com/u/277474?v=3","gravatar_id":"","url":"https://api.github.com/users/jfly","html_url":"https://github.com/jfly","followers_url":"https://api.github.com/users/jfly/followers","following_url":"https://api.github.com/users/jfly/following{/other_user}","gists_url":"https://api.github.com/users/jfly/gists{/gist_id}","starred_url":"https://api.github.com/users/jfly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jfly/subscriptions","organizations_url":"https://api.github.com/users/jfly/orgs","repos_url":"https://api.github.com/users/jfly/repos","events_url":"https://api.github.com/users/jfly/events{/privacy}","received_events_url":"https://api.github.com/users/jfly/received_events","type":"User","site_admin":false},"body":"This is a big part of #92. Right now, only [results admins](https://github.com/cubing/worldcubeassociation.org/pull/111/files#diff-cc669b7b0cc8520d68707875f678c920R6) have access to the /competitions/ listing. Later, we will give delegates and organizers access to that page, and they'll be allowed to edit competitions that they delegate/organize.\r\n\r\nSome stuff I'd like people with ruby/rails experience to look at:\r\n\r\n- https://github.com/cubing/worldcubeassociation.org/pull/111/files#diff-848ffc153c457b964c6c8a9d204cea61R8\r\n- WcaOnRails/app/controllers/registrations_controller.rb - There's a form that allows updating multiple registrations at a time. The way I implemented `update_all` didn't feel super railsy to me.\r\n\r\nSee http://wca.jflei.com to test it out, specifically http://wca.jflei.com/competitions.","created_at":"2015-07-09T16:31:39Z","updated_at":"2015-07-14T02:44:14Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0c0251ad5866174467e7315b9529049e27f50b88","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/cubing/worldcubeassociation.org/pulls/111/commits","review_comments_url":"https://api.github.com/repos/cubing/worldcubeassociation.org/pulls/111/comments","review_comment_url":"https://api.github.com/repos/cubing/worldcubeassociation.org/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cubing/worldcubeassociation.org/issues/111/comments","statuses_url":"https://api.github.com/repos/cubing/worldcubeassociation.org/statuses/4622be423347542ac9cc3a3ca5d4f0eba25d298d","head":{"label":"jfly:master","ref":"master","sha":"4622be423347542ac9cc3a3ca5d4f0eba25d298d","user":{"login":"jfly","id":277474,"avatar_url":"https://avatars.githubusercontent.com/u/277474?v=3","gravatar_id":"","url":"https://api.github.com/users/jfly","html_url":"https://github.com/jfly","followers_url":"https://api.github.com/users/jfly/followers","following_url":"https://api.github.com/users/jfly/following{/other_user}","gists_url":"https://api.github.com/users/jfly/gists{/gist_id}","starred_url":"https://api.github.com/users/jfly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jfly/subscriptions","organizations_url":"https://api.github.com/users/jfly/orgs","repos_url":"https://api.github.com/users/jfly/repos","events_url":"https://api.github.com/users/jfly/events{/privacy}","received_events_url":"https://api.github.com/users/jfly/received_events","type":"User","site_admin":false},"repo":{"id":36788277,"name":"worldcubeassociation.org","full_name":"jfly/worldcubeassociation.org","owner":{"login":"jfly","id":277474,"avatar_url":"https://avatars.githubusercontent.com/u/277474?v=3","gravatar_id":"","url":"https://api.github.com/users/jfly","html_url":"https://github.com/jfly","followers_url":"https://api.github.com/users/jfly/followers","following_url":"https://api.github.com/users/jfly/following{/other_user}","gists_url":"https://api.github.com/users/jfly/gists{/gist_id}","starred_url":"https://api.github.com/users/jfly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jfly/subscriptions","organizations_url":"https://api.github.com/users/jfly/orgs","repos_url":"https://api.github.com/users/jfly/repos","events_url":"https://api.github.com/users/jfly/events{/privacy}","received_events_url":"https://api.github.com/users/jfly/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jfly/worldcubeassociation.org","description":"All of the code that runs on worldcubeassociation.org","fork":true,"url":"https://api.github.com/repos/jfly/worldcubeassociation.org","forks_url":"https://api.github.com/repos/jfly/worldcubeassociation.org/forks","keys_url":"https://api.github.com/repos/jfly/worldcubeassociation.org/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jfly/worldcubeassociation.org/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jfly/worldcubeassociation.org/teams","hooks_url":"https://api.github.com/repos/jfly/worldcubeassociation.org/hooks","issue_events_url":"https://api.github.com/repos/jfly/worldcubeassociation.org/issues/events{/number}","events_url":"https://api.github.com/repos/jfly/worldcubeassociation.org/events","assignees_url":"https://api.github.com/repos/jfly/worldcubeassociation.org/assignees{/user}","branches_url":"https://api.github.com/repos/jfly/worldcubeassociation.org/branches{/branch}","tags_url":"https://api.github.com/repos/jfly/worldcubeassociation.org/tags","blobs_url":"https://api.github.com/repos/jfly/worldcubeassociation.org/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jfly/worldcubeassociation.org/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jfly/worldcubeassociation.org/git/refs{/sha}","trees_url":"https://api.github.com/repos/jfly/worldcubeassociation.org/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jfly/worldcubeassociation.org/statuses/{sha}","languages_url":"https://api.github.com/repos/jfly/worldcubeassociation.org/languages","stargazers_url":"https://api.github.com/repos/jfly/worldcubeassociation.org/stargazers","contributors_url":"https://api.github.com/repos/jfly/worldcubeassociation.org/contributors","subscribers_url":"https://api.github.com/repos/jfly/worldcubeassociation.org/subscribers","subscription_url":"https://api.github.com/repos/jfly/worldcubeassociation.org/subscription","commits_url":"https://api.github.com/repos/jfly/worldcubeassociation.org/commits{/sha}","git_commits_url":"https://api.github.com/repos/jfly/worldcubeassociation.org/git/commits{/sha}","comments_url":"https://api.github.com/repos/jfly/worldcubeassociation.org/comments{/number}","issue_comment_url":"https://api.github.com/repos/jfly/worldcubeassociation.org/issues/comments{/number}","contents_url":"https://api.github.com/repos/jfly/worldcubeassociation.org/contents/{+path}","compare_url":"https://api.github.com/repos/jfly/worldcubeassociation.org/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jfly/worldcubeassociation.org/merges","archive_url":"https://api.github.com/repos/jfly/worldcubeassociation.org/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jfly/worldcubeassociation.org/downloads","issues_url":"https://api.github.com/repos/jfly/worldcubeassociation.org/issues{/number}","pulls_url":"https://api.github.com/repos/jfly/worldcubeassociation.org/pulls{/number}","milestones_url":"https://api.github.com/repos/jfly/worldcubeassociation.org/milestones{/number}","notifications_url":"https://api.github.com/repos/jfly/worldcubeassociation.org/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jfly/worldcubeassociation.org/labels{/name}","releases_url":"https://api.github.com/repos/jfly/worldcubeassociation.org/releases{/id}","created_at":"2015-06-03T07:49:06Z","updated_at":"2015-06-03T07:49:10Z","pushed_at":"2015-07-09T16:28:43Z","git_url":"git://github.com/jfly/worldcubeassociation.org.git","ssh_url":"git@github.com:jfly/worldcubeassociation.org.git","clone_url":"https://github.com/jfly/worldcubeassociation.org.git","svn_url":"https://github.com/jfly/worldcubeassociation.org","homepage":"https://www.worldcubeassociation.org/","size":26514,"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":"cubing:master","ref":"master","sha":"6c2bfa723ace96aa36bdac60744963d906c5cf6b","user":{"login":"cubing","id":1092267,"avatar_url":"https://avatars.githubusercontent.com/u/1092267?v=3","gravatar_id":"","url":"https://api.github.com/users/cubing","html_url":"https://github.com/cubing","followers_url":"https://api.github.com/users/cubing/followers","following_url":"https://api.github.com/users/cubing/following{/other_user}","gists_url":"https://api.github.com/users/cubing/gists{/gist_id}","starred_url":"https://api.github.com/users/cubing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cubing/subscriptions","organizations_url":"https://api.github.com/users/cubing/orgs","repos_url":"https://api.github.com/users/cubing/repos","events_url":"https://api.github.com/users/cubing/events{/privacy}","received_events_url":"https://api.github.com/users/cubing/received_events","type":"Organization","site_admin":false},"repo":{"id":34161579,"name":"worldcubeassociation.org","full_name":"cubing/worldcubeassociation.org","owner":{"login":"cubing","id":1092267,"avatar_url":"https://avatars.githubusercontent.com/u/1092267?v=3","gravatar_id":"","url":"https://api.github.com/users/cubing","html_url":"https://github.com/cubing","followers_url":"https://api.github.com/users/cubing/followers","following_url":"https://api.github.com/users/cubing/following{/other_user}","gists_url":"https://api.github.com/users/cubing/gists{/gist_id}","starred_url":"https://api.github.com/users/cubing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cubing/subscriptions","organizations_url":"https://api.github.com/users/cubing/orgs","repos_url":"https://api.github.com/users/cubing/repos","events_url":"https://api.github.com/users/cubing/events{/privacy}","received_events_url":"https://api.github.com/users/cubing/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cubing/worldcubeassociation.org","description":"[WCA Project] All of the code that runs on worldcubeassociation.org","fork":false,"url":"https://api.github.com/repos/cubing/worldcubeassociation.org","forks_url":"https://api.github.com/repos/cubing/worldcubeassociation.org/forks","keys_url":"https://api.github.com/repos/cubing/worldcubeassociation.org/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cubing/worldcubeassociation.org/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cubing/worldcubeassociation.org/teams","hooks_url":"https://api.github.com/repos/cubing/worldcubeassociation.org/hooks","issue_events_url":"https://api.github.com/repos/cubing/worldcubeassociation.org/issues/events{/number}","events_url":"https://api.github.com/repos/cubing/worldcubeassociation.org/events","assignees_url":"https://api.github.com/repos/cubing/worldcubeassociation.org/assignees{/user}","branches_url":"https://api.github.com/repos/cubing/worldcubeassociation.org/branches{/branch}","tags_url":"https://api.github.com/repos/cubing/worldcubeassociation.org/tags","blobs_url":"https://api.github.com/repos/cubing/worldcubeassociation.org/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cubing/worldcubeassociation.org/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cubing/worldcubeassociation.org/git/refs{/sha}","trees_url":"https://api.github.com/repos/cubing/worldcubeassociation.org/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cubing/worldcubeassociation.org/statuses/{sha}","languages_url":"https://api.github.com/repos/cubing/worldcubeassociation.org/languages","stargazers_url":"https://api.github.com/repos/cubing/worldcubeassociation.org/stargazers","contributors_url":"https://api.github.com/repos/cubing/worldcubeassociation.org/contributors","subscribers_url":"https://api.github.com/repos/cubing/worldcubeassociation.org/subscribers","subscription_url":"https://api.github.com/repos/cubing/worldcubeassociation.org/subscription","commits_url":"https://api.github.com/repos/cubing/worldcubeassociation.org/commits{/sha}","git_commits_url":"https://api.github.com/repos/cubing/worldcubeassociation.org/git/commits{/sha}","comments_url":"https://api.github.com/repos/cubing/worldcubeassociation.org/comments{/number}","issue_comment_url":"https://api.github.com/repos/cubing/worldcubeassociation.org/issues/comments{/number}","contents_url":"https://api.github.com/repos/cubing/worldcubeassociation.org/contents/{+path}","compare_url":"https://api.github.com/repos/cubing/worldcubeassociation.org/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cubing/worldcubeassociation.org/merges","archive_url":"https://api.github.com/repos/cubing/worldcubeassociation.org/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cubing/worldcubeassociation.org/downloads","issues_url":"https://api.github.com/repos/cubing/worldcubeassociation.org/issues{/number}","pulls_url":"https://api.github.com/repos/cubing/worldcubeassociation.org/pulls{/number}","milestones_url":"https://api.github.com/repos/cubing/worldcubeassociation.org/milestones{/number}","notifications_url":"https://api.github.com/repos/cubing/worldcubeassociation.org/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cubing/worldcubeassociation.org/labels{/name}","releases_url":"https://api.github.com/repos/cubing/worldcubeassociation.org/releases{/id}","created_at":"2015-04-18T10:21:53Z","updated_at":"2015-06-30T07:02:40Z","pushed_at":"2015-07-13T06:25:43Z","git_url":"git://github.com/cubing/worldcubeassociation.org.git","ssh_url":"git@github.com:cubing/worldcubeassociation.org.git","clone_url":"https://github.com/cubing/worldcubeassociation.org.git","svn_url":"https://github.com/cubing/worldcubeassociation.org","homepage":"https://www.worldcubeassociation.org/","size":46496,"stargazers_count":1,"watchers_count":1,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":6,"mirror_url":null,"open_issues_count":65,"forks":6,"open_issues":65,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/cubing/worldcubeassociation.org/pulls/111"},"html":{"href":"https://github.com/cubing/worldcubeassociation.org/pull/111"},"issue":{"href":"https://api.github.com/repos/cubing/worldcubeassociation.org/issues/111"},"comments":{"href":"https://api.github.com/repos/cubing/worldcubeassociation.org/issues/111/comments"},"review_comments":{"href":"https://api.github.com/repos/cubing/worldcubeassociation.org/pulls/111/comments"},"review_comment":{"href":"https://api.github.com/repos/cubing/worldcubeassociation.org/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cubing/worldcubeassociation.org/pulls/111/commits"},"statuses":{"href":"https://api.github.com/repos/cubing/worldcubeassociation.org/statuses/4622be423347542ac9cc3a3ca5d4f0eba25d298d"}}}}