{"action":"created","comment":{"url":"https://api.github.com/repos/thewca/worldcubeassociation.org/pulls/comments/91421880","pull_request_review_id":11930285,"id":91421880,"diff_hunk":"@@ -29,6 +29,8 @@ class Competition < ActiveRecord::Base\n            allow_nil: true,\n            with_model_currency: :currency_code\n \n+  scope :present, -> { where(\"CAST(CONCAT(endYear,'-',endMonth,'-',endDay) as Datetime) >= ?\", Date.today) }","path":"WcaOnRails/app/models/competition.rb","position":4,"original_position":4,"commit_id":"802a33920f98e00dcf77a3816177e7c348081067","original_commit_id":"802a33920f98e00dcf77a3816177e7c348081067","user":{"login":"larspetrus","id":755243,"avatar_url":"https://avatars.githubusercontent.com/u/755243?v=3","gravatar_id":"","url":"https://api.github.com/users/larspetrus","html_url":"https://github.com/larspetrus","followers_url":"https://api.github.com/users/larspetrus/followers","following_url":"https://api.github.com/users/larspetrus/following{/other_user}","gists_url":"https://api.github.com/users/larspetrus/gists{/gist_id}","starred_url":"https://api.github.com/users/larspetrus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/larspetrus/subscriptions","organizations_url":"https://api.github.com/users/larspetrus/orgs","repos_url":"https://api.github.com/users/larspetrus/repos","events_url":"https://api.github.com/users/larspetrus/events{/privacy}","received_events_url":"https://api.github.com/users/larspetrus/received_events","type":"User","site_admin":false},"body":"`present` seems like the wrong name, since this would return all future competitions as well.\r\n\r\nComing up with a better name is harder. `not_ended` is correct, but awkward. ","created_at":"2016-12-08T00:51:17Z","updated_at":"2016-12-08T00:51:17Z","html_url":"https://github.com/thewca/worldcubeassociation.org/pull/1041#discussion_r91421880","pull_request_url":"https://api.github.com/repos/thewca/worldcubeassociation.org/pulls/1041","_links":{"self":{"href":"https://api.github.com/repos/thewca/worldcubeassociation.org/pulls/comments/91421880"},"html":{"href":"https://github.com/thewca/worldcubeassociation.org/pull/1041#discussion_r91421880"},"pull_request":{"href":"https://api.github.com/repos/thewca/worldcubeassociation.org/pulls/1041"}}},"pull_request":{"url":"https://api.github.com/repos/thewca/worldcubeassociation.org/pulls/1041","id":97036943,"html_url":"https://github.com/thewca/worldcubeassociation.org/pull/1041","diff_url":"https://github.com/thewca/worldcubeassociation.org/pull/1041.diff","patch_url":"https://github.com/thewca/worldcubeassociation.org/pull/1041.patch","issue_url":"https://api.github.com/repos/thewca/worldcubeassociation.org/issues/1041","number":1041,"state":"open","locked":false,"title":"Allow organizers to change names of registered newcomers","user":{"login":"jonatanklosko","id":17034772,"avatar_url":"https://avatars.githubusercontent.com/u/17034772?v=3","gravatar_id":"","url":"https://api.github.com/users/jonatanklosko","html_url":"https://github.com/jonatanklosko","followers_url":"https://api.github.com/users/jonatanklosko/followers","following_url":"https://api.github.com/users/jonatanklosko/following{/other_user}","gists_url":"https://api.github.com/users/jonatanklosko/gists{/gist_id}","starred_url":"https://api.github.com/users/jonatanklosko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonatanklosko/subscriptions","organizations_url":"https://api.github.com/users/jonatanklosko/orgs","repos_url":"https://api.github.com/users/jonatanklosko/repos","events_url":"https://api.github.com/users/jonatanklosko/events{/privacy}","received_events_url":"https://api.github.com/users/jonatanklosko/received_events","type":"User","site_admin":false},"body":"Fixes #1036.\r\nThis makes organizers of upcoming competitions that use the WCA registration system able to change names of newcomers registered for it.","created_at":"2016-12-08T00:31:37Z","updated_at":"2016-12-08T00:51:17Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1fe2c9c27800a4ad2c188bf95eae16d25d9fa85f","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/thewca/worldcubeassociation.org/pulls/1041/commits","review_comments_url":"https://api.github.com/repos/thewca/worldcubeassociation.org/pulls/1041/comments","review_comment_url":"https://api.github.com/repos/thewca/worldcubeassociation.org/pulls/comments{/number}","comments_url":"https://api.github.com/repos/thewca/worldcubeassociation.org/issues/1041/comments","statuses_url":"https://api.github.com/repos/thewca/worldcubeassociation.org/statuses/802a33920f98e00dcf77a3816177e7c348081067","head":{"label":"jonatanklosko:issue-1036","ref":"issue-1036","sha":"802a33920f98e00dcf77a3816177e7c348081067","user":{"login":"jonatanklosko","id":17034772,"avatar_url":"https://avatars.githubusercontent.com/u/17034772?v=3","gravatar_id":"","url":"https://api.github.com/users/jonatanklosko","html_url":"https://github.com/jonatanklosko","followers_url":"https://api.github.com/users/jonatanklosko/followers","following_url":"https://api.github.com/users/jonatanklosko/following{/other_user}","gists_url":"https://api.github.com/users/jonatanklosko/gists{/gist_id}","starred_url":"https://api.github.com/users/jonatanklosko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonatanklosko/subscriptions","organizations_url":"https://api.github.com/users/jonatanklosko/orgs","repos_url":"https://api.github.com/users/jonatanklosko/repos","events_url":"https://api.github.com/users/jonatanklosko/events{/privacy}","received_events_url":"https://api.github.com/users/jonatanklosko/received_events","type":"User","site_admin":false},"repo":{"id":54846746,"name":"worldcubeassociation.org","full_name":"jonatanklosko/worldcubeassociation.org","owner":{"login":"jonatanklosko","id":17034772,"avatar_url":"https://avatars.githubusercontent.com/u/17034772?v=3","gravatar_id":"","url":"https://api.github.com/users/jonatanklosko","html_url":"https://github.com/jonatanklosko","followers_url":"https://api.github.com/users/jonatanklosko/followers","following_url":"https://api.github.com/users/jonatanklosko/following{/other_user}","gists_url":"https://api.github.com/users/jonatanklosko/gists{/gist_id}","starred_url":"https://api.github.com/users/jonatanklosko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonatanklosko/subscriptions","organizations_url":"https://api.github.com/users/jonatanklosko/orgs","repos_url":"https://api.github.com/users/jonatanklosko/repos","events_url":"https://api.github.com/users/jonatanklosko/events{/privacy}","received_events_url":"https://api.github.com/users/jonatanklosko/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jonatanklosko/worldcubeassociation.org","description":"[WCA Project] All of the code that runs on worldcubeassociation.org","fork":true,"url":"https://api.github.com/repos/jonatanklosko/worldcubeassociation.org","forks_url":"https://api.github.com/repos/jonatanklosko/worldcubeassociation.org/forks","keys_url":"https://api.github.com/repos/jonatanklosko/worldcubeassociation.org/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jonatanklosko/worldcubeassociation.org/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jonatanklosko/worldcubeassociation.org/teams","hooks_url":"https://api.github.com/repos/jonatanklosko/worldcubeassociation.org/hooks","issue_events_url":"https://api.github.com/repos/jonatanklosko/worldcubeassociation.org/issues/events{/number}","events_url":"https://api.github.com/repos/jonatanklosko/worldcubeassociation.org/events","assignees_url":"https://api.github.com/repos/jonatanklosko/worldcubeassociation.org/assignees{/user}","branches_url":"https://api.github.com/repos/jonatanklosko/worldcubeassociation.org/branches{/branch}","tags_url":"https://api.github.com/repos/jonatanklosko/worldcubeassociation.org/tags","blobs_url":"https://api.github.com/repos/jonatanklosko/worldcubeassociation.org/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jonatanklosko/worldcubeassociation.org/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jonatanklosko/worldcubeassociation.org/git/refs{/sha}","trees_url":"https://api.github.com/repos/jonatanklosko/worldcubeassociation.org/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jonatanklosko/worldcubeassociation.org/statuses/{sha}","languages_url":"https://api.github.com/repos/jonatanklosko/worldcubeassociation.org/languages","stargazers_url":"https://api.github.com/repos/jonatanklosko/worldcubeassociation.org/stargazers","contributors_url":"https://api.github.com/repos/jonatanklosko/worldcubeassociation.org/contributors","subscribers_url":"https://api.github.com/repos/jonatanklosko/worldcubeassociation.org/subscribers","subscription_url":"https://api.github.com/repos/jonatanklosko/worldcubeassociation.org/subscription","commits_url":"https://api.github.com/repos/jonatanklosko/worldcubeassociation.org/commits{/sha}","git_commits_url":"https://api.github.com/repos/jonatanklosko/worldcubeassociation.org/git/commits{/sha}","comments_url":"https://api.github.com/repos/jonatanklosko/worldcubeassociation.org/comments{/number}","issue_comment_url":"https://api.github.com/repos/jonatanklosko/worldcubeassociation.org/issues/comments{/number}","contents_url":"https://api.github.com/repos/jonatanklosko/worldcubeassociation.org/contents/{+path}","compare_url":"https://api.github.com/repos/jonatanklosko/worldcubeassociation.org/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jonatanklosko/worldcubeassociation.org/merges","archive_url":"https://api.github.com/repos/jonatanklosko/worldcubeassociation.org/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jonatanklosko/worldcubeassociation.org/downloads","issues_url":"https://api.github.com/repos/jonatanklosko/worldcubeassociation.org/issues{/number}","pulls_url":"https://api.github.com/repos/jonatanklosko/worldcubeassociation.org/pulls{/number}","milestones_url":"https://api.github.com/repos/jonatanklosko/worldcubeassociation.org/milestones{/number}","notifications_url":"https://api.github.com/repos/jonatanklosko/worldcubeassociation.org/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jonatanklosko/worldcubeassociation.org/labels{/name}","releases_url":"https://api.github.com/repos/jonatanklosko/worldcubeassociation.org/releases{/id}","deployments_url":"https://api.github.com/repos/jonatanklosko/worldcubeassociation.org/deployments","created_at":"2016-03-27T20:29:06Z","updated_at":"2016-06-24T20:22:48Z","pushed_at":"2016-12-08T00:27:08Z","git_url":"git://github.com/jonatanklosko/worldcubeassociation.org.git","ssh_url":"git@github.com:jonatanklosko/worldcubeassociation.org.git","clone_url":"https://github.com/jonatanklosko/worldcubeassociation.org.git","svn_url":"https://github.com/jonatanklosko/worldcubeassociation.org","homepage":"https://www.worldcubeassociation.org/","size":53505,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"thewca:master","ref":"master","sha":"62185782231dad24155f64e810ef03a371416d18","user":{"login":"thewca","id":19806436,"avatar_url":"https://avatars.githubusercontent.com/u/19806436?v=3","gravatar_id":"","url":"https://api.github.com/users/thewca","html_url":"https://github.com/thewca","followers_url":"https://api.github.com/users/thewca/followers","following_url":"https://api.github.com/users/thewca/following{/other_user}","gists_url":"https://api.github.com/users/thewca/gists{/gist_id}","starred_url":"https://api.github.com/users/thewca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thewca/subscriptions","organizations_url":"https://api.github.com/users/thewca/orgs","repos_url":"https://api.github.com/users/thewca/repos","events_url":"https://api.github.com/users/thewca/events{/privacy}","received_events_url":"https://api.github.com/users/thewca/received_events","type":"Organization","site_admin":false},"repo":{"id":34161579,"name":"worldcubeassociation.org","full_name":"thewca/worldcubeassociation.org","owner":{"login":"thewca","id":19806436,"avatar_url":"https://avatars.githubusercontent.com/u/19806436?v=3","gravatar_id":"","url":"https://api.github.com/users/thewca","html_url":"https://github.com/thewca","followers_url":"https://api.github.com/users/thewca/followers","following_url":"https://api.github.com/users/thewca/following{/other_user}","gists_url":"https://api.github.com/users/thewca/gists{/gist_id}","starred_url":"https://api.github.com/users/thewca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thewca/subscriptions","organizations_url":"https://api.github.com/users/thewca/orgs","repos_url":"https://api.github.com/users/thewca/repos","events_url":"https://api.github.com/users/thewca/events{/privacy}","received_events_url":"https://api.github.com/users/thewca/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/thewca/worldcubeassociation.org","description":"All of the code that runs on worldcubeassociation.org","fork":false,"url":"https://api.github.com/repos/thewca/worldcubeassociation.org","forks_url":"https://api.github.com/repos/thewca/worldcubeassociation.org/forks","keys_url":"https://api.github.com/repos/thewca/worldcubeassociation.org/keys{/key_id}","collaborators_url":"https://api.github.com/repos/thewca/worldcubeassociation.org/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/thewca/worldcubeassociation.org/teams","hooks_url":"https://api.github.com/repos/thewca/worldcubeassociation.org/hooks","issue_events_url":"https://api.github.com/repos/thewca/worldcubeassociation.org/issues/events{/number}","events_url":"https://api.github.com/repos/thewca/worldcubeassociation.org/events","assignees_url":"https://api.github.com/repos/thewca/worldcubeassociation.org/assignees{/user}","branches_url":"https://api.github.com/repos/thewca/worldcubeassociation.org/branches{/branch}","tags_url":"https://api.github.com/repos/thewca/worldcubeassociation.org/tags","blobs_url":"https://api.github.com/repos/thewca/worldcubeassociation.org/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/thewca/worldcubeassociation.org/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/thewca/worldcubeassociation.org/git/refs{/sha}","trees_url":"https://api.github.com/repos/thewca/worldcubeassociation.org/git/trees{/sha}","statuses_url":"https://api.github.com/repos/thewca/worldcubeassociation.org/statuses/{sha}","languages_url":"https://api.github.com/repos/thewca/worldcubeassociation.org/languages","stargazers_url":"https://api.github.com/repos/thewca/worldcubeassociation.org/stargazers","contributors_url":"https://api.github.com/repos/thewca/worldcubeassociation.org/contributors","subscribers_url":"https://api.github.com/repos/thewca/worldcubeassociation.org/subscribers","subscription_url":"https://api.github.com/repos/thewca/worldcubeassociation.org/subscription","commits_url":"https://api.github.com/repos/thewca/worldcubeassociation.org/commits{/sha}","git_commits_url":"https://api.github.com/repos/thewca/worldcubeassociation.org/git/commits{/sha}","comments_url":"https://api.github.com/repos/thewca/worldcubeassociation.org/comments{/number}","issue_comment_url":"https://api.github.com/repos/thewca/worldcubeassociation.org/issues/comments{/number}","contents_url":"https://api.github.com/repos/thewca/worldcubeassociation.org/contents/{+path}","compare_url":"https://api.github.com/repos/thewca/worldcubeassociation.org/compare/{base}...{head}","merges_url":"https://api.github.com/repos/thewca/worldcubeassociation.org/merges","archive_url":"https://api.github.com/repos/thewca/worldcubeassociation.org/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/thewca/worldcubeassociation.org/downloads","issues_url":"https://api.github.com/repos/thewca/worldcubeassociation.org/issues{/number}","pulls_url":"https://api.github.com/repos/thewca/worldcubeassociation.org/pulls{/number}","milestones_url":"https://api.github.com/repos/thewca/worldcubeassociation.org/milestones{/number}","notifications_url":"https://api.github.com/repos/thewca/worldcubeassociation.org/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/thewca/worldcubeassociation.org/labels{/name}","releases_url":"https://api.github.com/repos/thewca/worldcubeassociation.org/releases{/id}","deployments_url":"https://api.github.com/repos/thewca/worldcubeassociation.org/deployments","created_at":"2015-04-18T10:21:53Z","updated_at":"2016-10-28T02:30:57Z","pushed_at":"2016-12-08T00:31:37Z","git_url":"git://github.com/thewca/worldcubeassociation.org.git","ssh_url":"git@github.com:thewca/worldcubeassociation.org.git","clone_url":"https://github.com/thewca/worldcubeassociation.org.git","svn_url":"https://github.com/thewca/worldcubeassociation.org","homepage":"https://www.worldcubeassociation.org/","size":60192,"stargazers_count":25,"watchers_count":25,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":31,"mirror_url":null,"open_issues_count":187,"forks":31,"open_issues":187,"watchers":25,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/thewca/worldcubeassociation.org/pulls/1041"},"html":{"href":"https://github.com/thewca/worldcubeassociation.org/pull/1041"},"issue":{"href":"https://api.github.com/repos/thewca/worldcubeassociation.org/issues/1041"},"comments":{"href":"https://api.github.com/repos/thewca/worldcubeassociation.org/issues/1041/comments"},"review_comments":{"href":"https://api.github.com/repos/thewca/worldcubeassociation.org/pulls/1041/comments"},"review_comment":{"href":"https://api.github.com/repos/thewca/worldcubeassociation.org/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/thewca/worldcubeassociation.org/pulls/1041/commits"},"statuses":{"href":"https://api.github.com/repos/thewca/worldcubeassociation.org/statuses/802a33920f98e00dcf77a3816177e7c348081067"}}}}
{"actor":{"display_login":"larspetrus"}}