{"action":"created","comment":{"url":"https://api.github.com/repos/cms-dev/cms/pulls/comments/79311332","id":79311332,"diff_hunk":"@@ -364,18 +368,17 @@ def post(self, task_name):\n         # (nor it discloses information to the user), but it is useful\n         # for automatic testing to obtain the submission id).\n         # FIXME is it actually used by something?\n-        self.redirect(\"/tasks/%s/submissions?%s\" % (\n-            quote(task.name, safe=''),\n-            encrypt_number(submission.id)))\n+        self.redirect(fallback_page + \"?\" + encrypt_number(submission.id))\n \n \n-class TaskSubmissionsHandler(BaseHandler):\n+class TaskSubmissionsHandler(ContestHandler):\n     \"\"\"Shows the data of a task in the contest.\n \n     \"\"\"\n     @tornado.web.authenticated\n     @actual_phase_required(0)\n-    def get(self, task_name):\n+    @multi_contest\n+    def get(self, contest_name, task_name):","path":"cms/server/contest/handlers/tasksubmission.py","position":144,"original_position":144,"commit_id":"4ad479f5ee31b8d5fa727f487b3aa6711fb57639","original_commit_id":"4ad479f5ee31b8d5fa727f487b3aa6711fb57639","user":{"login":"codacy-bot","id":19940114,"avatar_url":"https://avatars.githubusercontent.com/u/19940114?v=3","gravatar_id":"","url":"https://api.github.com/users/codacy-bot","html_url":"https://github.com/codacy-bot","followers_url":"https://api.github.com/users/codacy-bot/followers","following_url":"https://api.github.com/users/codacy-bot/following{/other_user}","gists_url":"https://api.github.com/users/codacy-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/codacy-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codacy-bot/subscriptions","organizations_url":"https://api.github.com/users/codacy-bot/orgs","repos_url":"https://api.github.com/users/codacy-bot/repos","events_url":"https://api.github.com/users/codacy-bot/events{/privacy}","received_events_url":"https://api.github.com/users/codacy-bot/received_events","type":"User","site_admin":false},"body":"![Codacy](https://www.codacy.com/assets/images/favicon.png) Issue found: [Arguments number differs from overridden 'get' method](https://www.codacy.com/app/s-maggiolo/cms/file/3951817762/issues/source?bid=3167167&fileBranchId=3624544#l381)","created_at":"2016-09-18T17:56:51Z","updated_at":"2016-09-18T17:56:51Z","html_url":"https://github.com/cms-dev/cms/pull/646#discussion_r79311332","pull_request_url":"https://api.github.com/repos/cms-dev/cms/pulls/646","_links":{"self":{"href":"https://api.github.com/repos/cms-dev/cms/pulls/comments/79311332"},"html":{"href":"https://github.com/cms-dev/cms/pull/646#discussion_r79311332"},"pull_request":{"href":"https://api.github.com/repos/cms-dev/cms/pulls/646"}}},"pull_request":{"url":"https://api.github.com/repos/cms-dev/cms/pulls/646","id":82439393,"html_url":"https://github.com/cms-dev/cms/pull/646","diff_url":"https://github.com/cms-dev/cms/pull/646.diff","patch_url":"https://github.com/cms-dev/cms/pull/646.patch","issue_url":"https://api.github.com/repos/cms-dev/cms/issues/646","number":646,"state":"open","locked":false,"title":"Support open participation in contests + hidden contests","user":{"login":"wil93","id":1285361,"avatar_url":"https://avatars.githubusercontent.com/u/1285361?v=3","gravatar_id":"","url":"https://api.github.com/users/wil93","html_url":"https://github.com/wil93","followers_url":"https://api.github.com/users/wil93/followers","following_url":"https://api.github.com/users/wil93/following{/other_user}","gists_url":"https://api.github.com/users/wil93/gists{/gist_id}","starred_url":"https://api.github.com/users/wil93/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wil93/subscriptions","organizations_url":"https://api.github.com/users/wil93/orgs","repos_url":"https://api.github.com/users/wil93/repos","events_url":"https://api.github.com/users/wil93/events{/privacy}","received_events_url":"https://api.github.com/users/wil93/received_events","type":"User","site_admin":false},"body":"This is useful if you have some users already in the database, and you want them to be able to automatically sign up to one or more contests without having to create a participation for them.\r\n\r\nThis PR depends on #594\r\n\r\n---\r\n\r\nUPDATE: I also added a commit which introduces Contest.hidden, a way to hide contests from the list (useful for contests which aren't ready yet, e.g. the \"day2\" of a 2-day contest, or for special contests which are not meant to be consumed by CWS, as in my use case).\r\n\r\nI didn't create another PR because:\r\n\r\n1. that PR would also need to be based on the multi_cws branch so, when that is merged, I would need to rebase two PRs instead of just one\r\n2. it's a quite small change, after all\r\n\r\n<!-- Reviewable:start -->\r\n---\r\nThis change is [<img src=\"https://reviewable.io/review_button.svg\" height=\"34\" align=\"absmiddle\" alt=\"Reviewable\"/>](https://reviewable.io/reviews/cms-dev/cms/646)\r\n<!-- Reviewable:end -->\r\n","created_at":"2016-08-23T20:55:49Z","updated_at":"2016-09-18T17:56:51Z","closed_at":null,"merged_at":null,"merge_commit_sha":"59ec7ba0d7a815194f3064d5a530e36bb2b968b9","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/cms-dev/cms/pulls/646/commits","review_comments_url":"https://api.github.com/repos/cms-dev/cms/pulls/646/comments","review_comment_url":"https://api.github.com/repos/cms-dev/cms/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cms-dev/cms/issues/646/comments","statuses_url":"https://api.github.com/repos/cms-dev/cms/statuses/4ad479f5ee31b8d5fa727f487b3aa6711fb57639","head":{"label":"wil93:open_participation","ref":"open_participation","sha":"4ad479f5ee31b8d5fa727f487b3aa6711fb57639","user":{"login":"wil93","id":1285361,"avatar_url":"https://avatars.githubusercontent.com/u/1285361?v=3","gravatar_id":"","url":"https://api.github.com/users/wil93","html_url":"https://github.com/wil93","followers_url":"https://api.github.com/users/wil93/followers","following_url":"https://api.github.com/users/wil93/following{/other_user}","gists_url":"https://api.github.com/users/wil93/gists{/gist_id}","starred_url":"https://api.github.com/users/wil93/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wil93/subscriptions","organizations_url":"https://api.github.com/users/wil93/orgs","repos_url":"https://api.github.com/users/wil93/repos","events_url":"https://api.github.com/users/wil93/events{/privacy}","received_events_url":"https://api.github.com/users/wil93/received_events","type":"User","site_admin":false},"repo":{"id":9392345,"name":"cms","full_name":"wil93/cms","owner":{"login":"wil93","id":1285361,"avatar_url":"https://avatars.githubusercontent.com/u/1285361?v=3","gravatar_id":"","url":"https://api.github.com/users/wil93","html_url":"https://github.com/wil93","followers_url":"https://api.github.com/users/wil93/followers","following_url":"https://api.github.com/users/wil93/following{/other_user}","gists_url":"https://api.github.com/users/wil93/gists{/gist_id}","starred_url":"https://api.github.com/users/wil93/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wil93/subscriptions","organizations_url":"https://api.github.com/users/wil93/orgs","repos_url":"https://api.github.com/users/wil93/repos","events_url":"https://api.github.com/users/wil93/events{/privacy}","received_events_url":"https://api.github.com/users/wil93/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/wil93/cms","description":"Contest Management System","fork":true,"url":"https://api.github.com/repos/wil93/cms","forks_url":"https://api.github.com/repos/wil93/cms/forks","keys_url":"https://api.github.com/repos/wil93/cms/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wil93/cms/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wil93/cms/teams","hooks_url":"https://api.github.com/repos/wil93/cms/hooks","issue_events_url":"https://api.github.com/repos/wil93/cms/issues/events{/number}","events_url":"https://api.github.com/repos/wil93/cms/events","assignees_url":"https://api.github.com/repos/wil93/cms/assignees{/user}","branches_url":"https://api.github.com/repos/wil93/cms/branches{/branch}","tags_url":"https://api.github.com/repos/wil93/cms/tags","blobs_url":"https://api.github.com/repos/wil93/cms/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wil93/cms/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wil93/cms/git/refs{/sha}","trees_url":"https://api.github.com/repos/wil93/cms/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wil93/cms/statuses/{sha}","languages_url":"https://api.github.com/repos/wil93/cms/languages","stargazers_url":"https://api.github.com/repos/wil93/cms/stargazers","contributors_url":"https://api.github.com/repos/wil93/cms/contributors","subscribers_url":"https://api.github.com/repos/wil93/cms/subscribers","subscription_url":"https://api.github.com/repos/wil93/cms/subscription","commits_url":"https://api.github.com/repos/wil93/cms/commits{/sha}","git_commits_url":"https://api.github.com/repos/wil93/cms/git/commits{/sha}","comments_url":"https://api.github.com/repos/wil93/cms/comments{/number}","issue_comment_url":"https://api.github.com/repos/wil93/cms/issues/comments{/number}","contents_url":"https://api.github.com/repos/wil93/cms/contents/{+path}","compare_url":"https://api.github.com/repos/wil93/cms/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wil93/cms/merges","archive_url":"https://api.github.com/repos/wil93/cms/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wil93/cms/downloads","issues_url":"https://api.github.com/repos/wil93/cms/issues{/number}","pulls_url":"https://api.github.com/repos/wil93/cms/pulls{/number}","milestones_url":"https://api.github.com/repos/wil93/cms/milestones{/number}","notifications_url":"https://api.github.com/repos/wil93/cms/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wil93/cms/labels{/name}","releases_url":"https://api.github.com/repos/wil93/cms/releases{/id}","deployments_url":"https://api.github.com/repos/wil93/cms/deployments","created_at":"2013-04-12T10:56:24Z","updated_at":"2016-06-09T08:32:23Z","pushed_at":"2016-09-18T17:54:35Z","git_url":"git://github.com/wil93/cms.git","ssh_url":"git@github.com:wil93/cms.git","clone_url":"https://github.com/wil93/cms.git","svn_url":"https://github.com/wil93/cms","homepage":"","size":12792,"stargazers_count":2,"watchers_count":2,"language":"Python","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":2,"default_branch":"master"}},"base":{"label":"cms-dev:master","ref":"master","sha":"b6fa831fe95de2c858e43141c9bd423767c7f919","user":{"login":"cms-dev","id":1671612,"avatar_url":"https://avatars.githubusercontent.com/u/1671612?v=3","gravatar_id":"","url":"https://api.github.com/users/cms-dev","html_url":"https://github.com/cms-dev","followers_url":"https://api.github.com/users/cms-dev/followers","following_url":"https://api.github.com/users/cms-dev/following{/other_user}","gists_url":"https://api.github.com/users/cms-dev/gists{/gist_id}","starred_url":"https://api.github.com/users/cms-dev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cms-dev/subscriptions","organizations_url":"https://api.github.com/users/cms-dev/orgs","repos_url":"https://api.github.com/users/cms-dev/repos","events_url":"https://api.github.com/users/cms-dev/events{/privacy}","received_events_url":"https://api.github.com/users/cms-dev/received_events","type":"Organization","site_admin":false},"repo":{"id":2504741,"name":"cms","full_name":"cms-dev/cms","owner":{"login":"cms-dev","id":1671612,"avatar_url":"https://avatars.githubusercontent.com/u/1671612?v=3","gravatar_id":"","url":"https://api.github.com/users/cms-dev","html_url":"https://github.com/cms-dev","followers_url":"https://api.github.com/users/cms-dev/followers","following_url":"https://api.github.com/users/cms-dev/following{/other_user}","gists_url":"https://api.github.com/users/cms-dev/gists{/gist_id}","starred_url":"https://api.github.com/users/cms-dev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cms-dev/subscriptions","organizations_url":"https://api.github.com/users/cms-dev/orgs","repos_url":"https://api.github.com/users/cms-dev/repos","events_url":"https://api.github.com/users/cms-dev/events{/privacy}","received_events_url":"https://api.github.com/users/cms-dev/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cms-dev/cms","description":"Contest Management System","fork":false,"url":"https://api.github.com/repos/cms-dev/cms","forks_url":"https://api.github.com/repos/cms-dev/cms/forks","keys_url":"https://api.github.com/repos/cms-dev/cms/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cms-dev/cms/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cms-dev/cms/teams","hooks_url":"https://api.github.com/repos/cms-dev/cms/hooks","issue_events_url":"https://api.github.com/repos/cms-dev/cms/issues/events{/number}","events_url":"https://api.github.com/repos/cms-dev/cms/events","assignees_url":"https://api.github.com/repos/cms-dev/cms/assignees{/user}","branches_url":"https://api.github.com/repos/cms-dev/cms/branches{/branch}","tags_url":"https://api.github.com/repos/cms-dev/cms/tags","blobs_url":"https://api.github.com/repos/cms-dev/cms/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cms-dev/cms/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cms-dev/cms/git/refs{/sha}","trees_url":"https://api.github.com/repos/cms-dev/cms/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cms-dev/cms/statuses/{sha}","languages_url":"https://api.github.com/repos/cms-dev/cms/languages","stargazers_url":"https://api.github.com/repos/cms-dev/cms/stargazers","contributors_url":"https://api.github.com/repos/cms-dev/cms/contributors","subscribers_url":"https://api.github.com/repos/cms-dev/cms/subscribers","subscription_url":"https://api.github.com/repos/cms-dev/cms/subscription","commits_url":"https://api.github.com/repos/cms-dev/cms/commits{/sha}","git_commits_url":"https://api.github.com/repos/cms-dev/cms/git/commits{/sha}","comments_url":"https://api.github.com/repos/cms-dev/cms/comments{/number}","issue_comment_url":"https://api.github.com/repos/cms-dev/cms/issues/comments{/number}","contents_url":"https://api.github.com/repos/cms-dev/cms/contents/{+path}","compare_url":"https://api.github.com/repos/cms-dev/cms/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cms-dev/cms/merges","archive_url":"https://api.github.com/repos/cms-dev/cms/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cms-dev/cms/downloads","issues_url":"https://api.github.com/repos/cms-dev/cms/issues{/number}","pulls_url":"https://api.github.com/repos/cms-dev/cms/pulls{/number}","milestones_url":"https://api.github.com/repos/cms-dev/cms/milestones{/number}","notifications_url":"https://api.github.com/repos/cms-dev/cms/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cms-dev/cms/labels{/name}","releases_url":"https://api.github.com/repos/cms-dev/cms/releases{/id}","deployments_url":"https://api.github.com/repos/cms-dev/cms/deployments","created_at":"2011-10-03T13:37:02Z","updated_at":"2016-09-10T21:03:09Z","pushed_at":"2016-09-18T17:54:46Z","git_url":"git://github.com/cms-dev/cms.git","ssh_url":"git@github.com:cms-dev/cms.git","clone_url":"https://github.com/cms-dev/cms.git","svn_url":"https://github.com/cms-dev/cms","homepage":"http://cms-dev.github.io/","size":16051,"stargazers_count":275,"watchers_count":275,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":150,"mirror_url":null,"open_issues_count":139,"forks":150,"open_issues":139,"watchers":275,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/cms-dev/cms/pulls/646"},"html":{"href":"https://github.com/cms-dev/cms/pull/646"},"issue":{"href":"https://api.github.com/repos/cms-dev/cms/issues/646"},"comments":{"href":"https://api.github.com/repos/cms-dev/cms/issues/646/comments"},"review_comments":{"href":"https://api.github.com/repos/cms-dev/cms/pulls/646/comments"},"review_comment":{"href":"https://api.github.com/repos/cms-dev/cms/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cms-dev/cms/pulls/646/commits"},"statuses":{"href":"https://api.github.com/repos/cms-dev/cms/statuses/4ad479f5ee31b8d5fa727f487b3aa6711fb57639"}}}}
{"actor":{"display_login":"codacy-bot"}}