{"action":"created","comment":{"url":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls/comments/42052468","id":42052468,"diff_hunk":"@@ -40,25 +38,18 @@\n from website.identifiers.client import EzidClient\n \n from .node import _view_project\n-from .. import clean_template_name\n-\n \n @must_be_valid_project\n @must_have_permission(ADMIN)\n-@must_not_be_registration\n def node_register_page(auth, node, **kwargs):\n \n-    ret = {\n-        'options': [\n-            {\n-                'template_name': metaschema['name'],\n-                'template_name_clean': clean_template_name(metaschema['name'])\n-            }\n-            for metaschema in OSF_META_SCHEMAS\n-        ]\n-    }\n-    ret.update(_view_project(node, auth, primary=True))\n-    return ret\n+    if node.is_registration:","path":"website/project/views/register.py","position":null,"original_position":54,"commit_id":"04312badf72951510f0082eff1252ba86f52a6aa","original_commit_id":"8a823201b8d6e7c6521e7111bb1136ff011037b2","user":{"login":"abought","id":2957073,"avatar_url":"https://avatars.githubusercontent.com/u/2957073?v=3","gravatar_id":"","url":"https://api.github.com/users/abought","html_url":"https://github.com/abought","followers_url":"https://api.github.com/users/abought/followers","following_url":"https://api.github.com/users/abought/following{/other_user}","gists_url":"https://api.github.com/users/abought/gists{/gist_id}","starred_url":"https://api.github.com/users/abought/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abought/subscriptions","organizations_url":"https://api.github.com/users/abought/orgs","repos_url":"https://api.github.com/users/abought/repos","events_url":"https://api.github.com/users/abought/events{/privacy}","received_events_url":"https://api.github.com/users/abought/received_events","type":"User","site_admin":false},"body":"@brianjgeiger and @JeffSpies are the recommended consults for all things route-related, and can best advise on an appropriate route name. \r\n\r\nI would note that underscores in URLs are relatively unusual; see discussion for example here: http://stackoverflow.com/questions/10302179/hyphen-underscore-or-camelcase-as-word-delimiter-in-uris\r\n\r\nAlso, note that I almost couldn't find this comment because it was attached to an outdated diff. You may want to create separate tickets to track the other concerns mentioned in the above. Let me know if other points need feedback.","created_at":"2015-10-14T21:00:58Z","updated_at":"2015-10-14T21:00:58Z","html_url":"https://github.com/CenterForOpenScience/osf.io/pull/4428#discussion_r42052468","pull_request_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls/4428","_links":{"self":{"href":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls/comments/42052468"},"html":{"href":"https://github.com/CenterForOpenScience/osf.io/pull/4428#discussion_r42052468"},"pull_request":{"href":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls/4428"}}},"pull_request":{"url":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls/4428","id":47201122,"html_url":"https://github.com/CenterForOpenScience/osf.io/pull/4428","diff_url":"https://github.com/CenterForOpenScience/osf.io/pull/4428.diff","patch_url":"https://github.com/CenterForOpenScience/osf.io/pull/4428.patch","issue_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/issues/4428","number":4428,"state":"open","locked":false,"title":"[feature] Draft Registrations","user":{"login":"lyndsysimon","id":131414,"avatar_url":"https://avatars.githubusercontent.com/u/131414?v=3","gravatar_id":"","url":"https://api.github.com/users/lyndsysimon","html_url":"https://github.com/lyndsysimon","followers_url":"https://api.github.com/users/lyndsysimon/followers","following_url":"https://api.github.com/users/lyndsysimon/following{/other_user}","gists_url":"https://api.github.com/users/lyndsysimon/gists{/gist_id}","starred_url":"https://api.github.com/users/lyndsysimon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lyndsysimon/subscriptions","organizations_url":"https://api.github.com/users/lyndsysimon/orgs","repos_url":"https://api.github.com/users/lyndsysimon/repos","events_url":"https://api.github.com/users/lyndsysimon/events{/privacy}","received_events_url":"https://api.github.com/users/lyndsysimon/received_events","type":"User","site_admin":false},"body":"This is largely comprised of code that was part of the previous `prereg` and `prereg-2` branches that Harry submitted. The two big differences are that features specific to the Prereg Challenge have been removed, and commenting on individual questions has been removed.\r\n\r\nCorresponds with [OSF-4835](https://openscience.atlassian.net/browse/OSF-4835).\r\n\r\nAlso includes [OSF-4834](https://openscience.atlassian.net/browse/OSF-4834).","created_at":"2015-10-08T20:19:47Z","updated_at":"2015-10-14T21:00:58Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls/4428/commits","review_comments_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls/4428/comments","review_comment_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls/comments{/number}","comments_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/issues/4428/comments","statuses_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/statuses/04312badf72951510f0082eff1252ba86f52a6aa","head":{"label":"lyndsysimon:feature/draft-registrations","ref":"feature/draft-registrations","sha":"04312badf72951510f0082eff1252ba86f52a6aa","user":{"login":"lyndsysimon","id":131414,"avatar_url":"https://avatars.githubusercontent.com/u/131414?v=3","gravatar_id":"","url":"https://api.github.com/users/lyndsysimon","html_url":"https://github.com/lyndsysimon","followers_url":"https://api.github.com/users/lyndsysimon/followers","following_url":"https://api.github.com/users/lyndsysimon/following{/other_user}","gists_url":"https://api.github.com/users/lyndsysimon/gists{/gist_id}","starred_url":"https://api.github.com/users/lyndsysimon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lyndsysimon/subscriptions","organizations_url":"https://api.github.com/users/lyndsysimon/orgs","repos_url":"https://api.github.com/users/lyndsysimon/repos","events_url":"https://api.github.com/users/lyndsysimon/events{/privacy}","received_events_url":"https://api.github.com/users/lyndsysimon/received_events","type":"User","site_admin":false},"repo":{"id":26919430,"name":"osf.io","full_name":"lyndsysimon/osf.io","owner":{"login":"lyndsysimon","id":131414,"avatar_url":"https://avatars.githubusercontent.com/u/131414?v=3","gravatar_id":"","url":"https://api.github.com/users/lyndsysimon","html_url":"https://github.com/lyndsysimon","followers_url":"https://api.github.com/users/lyndsysimon/followers","following_url":"https://api.github.com/users/lyndsysimon/following{/other_user}","gists_url":"https://api.github.com/users/lyndsysimon/gists{/gist_id}","starred_url":"https://api.github.com/users/lyndsysimon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lyndsysimon/subscriptions","organizations_url":"https://api.github.com/users/lyndsysimon/orgs","repos_url":"https://api.github.com/users/lyndsysimon/repos","events_url":"https://api.github.com/users/lyndsysimon/events{/privacy}","received_events_url":"https://api.github.com/users/lyndsysimon/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/lyndsysimon/osf.io","description":"Facilitating Open Science","fork":true,"url":"https://api.github.com/repos/lyndsysimon/osf.io","forks_url":"https://api.github.com/repos/lyndsysimon/osf.io/forks","keys_url":"https://api.github.com/repos/lyndsysimon/osf.io/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lyndsysimon/osf.io/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lyndsysimon/osf.io/teams","hooks_url":"https://api.github.com/repos/lyndsysimon/osf.io/hooks","issue_events_url":"https://api.github.com/repos/lyndsysimon/osf.io/issues/events{/number}","events_url":"https://api.github.com/repos/lyndsysimon/osf.io/events","assignees_url":"https://api.github.com/repos/lyndsysimon/osf.io/assignees{/user}","branches_url":"https://api.github.com/repos/lyndsysimon/osf.io/branches{/branch}","tags_url":"https://api.github.com/repos/lyndsysimon/osf.io/tags","blobs_url":"https://api.github.com/repos/lyndsysimon/osf.io/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lyndsysimon/osf.io/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lyndsysimon/osf.io/git/refs{/sha}","trees_url":"https://api.github.com/repos/lyndsysimon/osf.io/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lyndsysimon/osf.io/statuses/{sha}","languages_url":"https://api.github.com/repos/lyndsysimon/osf.io/languages","stargazers_url":"https://api.github.com/repos/lyndsysimon/osf.io/stargazers","contributors_url":"https://api.github.com/repos/lyndsysimon/osf.io/contributors","subscribers_url":"https://api.github.com/repos/lyndsysimon/osf.io/subscribers","subscription_url":"https://api.github.com/repos/lyndsysimon/osf.io/subscription","commits_url":"https://api.github.com/repos/lyndsysimon/osf.io/commits{/sha}","git_commits_url":"https://api.github.com/repos/lyndsysimon/osf.io/git/commits{/sha}","comments_url":"https://api.github.com/repos/lyndsysimon/osf.io/comments{/number}","issue_comment_url":"https://api.github.com/repos/lyndsysimon/osf.io/issues/comments{/number}","contents_url":"https://api.github.com/repos/lyndsysimon/osf.io/contents/{+path}","compare_url":"https://api.github.com/repos/lyndsysimon/osf.io/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lyndsysimon/osf.io/merges","archive_url":"https://api.github.com/repos/lyndsysimon/osf.io/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lyndsysimon/osf.io/downloads","issues_url":"https://api.github.com/repos/lyndsysimon/osf.io/issues{/number}","pulls_url":"https://api.github.com/repos/lyndsysimon/osf.io/pulls{/number}","milestones_url":"https://api.github.com/repos/lyndsysimon/osf.io/milestones{/number}","notifications_url":"https://api.github.com/repos/lyndsysimon/osf.io/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lyndsysimon/osf.io/labels{/name}","releases_url":"https://api.github.com/repos/lyndsysimon/osf.io/releases{/id}","created_at":"2014-11-20T15:49:38Z","updated_at":"2015-06-23T16:16:09Z","pushed_at":"2015-10-14T19:41:52Z","git_url":"git://github.com/lyndsysimon/osf.io.git","ssh_url":"git@github.com:lyndsysimon/osf.io.git","clone_url":"https://github.com/lyndsysimon/osf.io.git","svn_url":"https://github.com/lyndsysimon/osf.io","homepage":"http://osf.io","size":103314,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":0,"forks":2,"open_issues":0,"watchers":0,"default_branch":"develop"}},"base":{"label":"CenterForOpenScience:develop","ref":"develop","sha":"486dbcd366db746a6fcb83a4373adade2c6768bb","user":{"login":"CenterForOpenScience","id":3344584,"avatar_url":"https://avatars.githubusercontent.com/u/3344584?v=3","gravatar_id":"","url":"https://api.github.com/users/CenterForOpenScience","html_url":"https://github.com/CenterForOpenScience","followers_url":"https://api.github.com/users/CenterForOpenScience/followers","following_url":"https://api.github.com/users/CenterForOpenScience/following{/other_user}","gists_url":"https://api.github.com/users/CenterForOpenScience/gists{/gist_id}","starred_url":"https://api.github.com/users/CenterForOpenScience/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CenterForOpenScience/subscriptions","organizations_url":"https://api.github.com/users/CenterForOpenScience/orgs","repos_url":"https://api.github.com/users/CenterForOpenScience/repos","events_url":"https://api.github.com/users/CenterForOpenScience/events{/privacy}","received_events_url":"https://api.github.com/users/CenterForOpenScience/received_events","type":"Organization","site_admin":false},"repo":{"id":10199599,"name":"osf.io","full_name":"CenterForOpenScience/osf.io","owner":{"login":"CenterForOpenScience","id":3344584,"avatar_url":"https://avatars.githubusercontent.com/u/3344584?v=3","gravatar_id":"","url":"https://api.github.com/users/CenterForOpenScience","html_url":"https://github.com/CenterForOpenScience","followers_url":"https://api.github.com/users/CenterForOpenScience/followers","following_url":"https://api.github.com/users/CenterForOpenScience/following{/other_user}","gists_url":"https://api.github.com/users/CenterForOpenScience/gists{/gist_id}","starred_url":"https://api.github.com/users/CenterForOpenScience/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CenterForOpenScience/subscriptions","organizations_url":"https://api.github.com/users/CenterForOpenScience/orgs","repos_url":"https://api.github.com/users/CenterForOpenScience/repos","events_url":"https://api.github.com/users/CenterForOpenScience/events{/privacy}","received_events_url":"https://api.github.com/users/CenterForOpenScience/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/CenterForOpenScience/osf.io","description":"Facilitating Open Science","fork":false,"url":"https://api.github.com/repos/CenterForOpenScience/osf.io","forks_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/forks","keys_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/teams","hooks_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/hooks","issue_events_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/issues/events{/number}","events_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/events","assignees_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/assignees{/user}","branches_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/branches{/branch}","tags_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/tags","blobs_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/git/refs{/sha}","trees_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/statuses/{sha}","languages_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/languages","stargazers_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/stargazers","contributors_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/contributors","subscribers_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/subscribers","subscription_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/subscription","commits_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/commits{/sha}","git_commits_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/git/commits{/sha}","comments_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/comments{/number}","issue_comment_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/issues/comments{/number}","contents_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/contents/{+path}","compare_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/merges","archive_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/downloads","issues_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/issues{/number}","pulls_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls{/number}","milestones_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/milestones{/number}","notifications_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/labels{/name}","releases_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/releases{/id}","created_at":"2013-05-21T15:53:37Z","updated_at":"2015-10-11T20:46:09Z","pushed_at":"2015-10-14T20:32:44Z","git_url":"git://github.com/CenterForOpenScience/osf.io.git","ssh_url":"git@github.com:CenterForOpenScience/osf.io.git","clone_url":"https://github.com/CenterForOpenScience/osf.io.git","svn_url":"https://github.com/CenterForOpenScience/osf.io","homepage":"http://osf.io","size":233908,"stargazers_count":144,"watchers_count":144,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":125,"mirror_url":null,"open_issues_count":432,"forks":125,"open_issues":432,"watchers":144,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls/4428"},"html":{"href":"https://github.com/CenterForOpenScience/osf.io/pull/4428"},"issue":{"href":"https://api.github.com/repos/CenterForOpenScience/osf.io/issues/4428"},"comments":{"href":"https://api.github.com/repos/CenterForOpenScience/osf.io/issues/4428/comments"},"review_comments":{"href":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls/4428/comments"},"review_comment":{"href":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls/4428/commits"},"statuses":{"href":"https://api.github.com/repos/CenterForOpenScience/osf.io/statuses/04312badf72951510f0082eff1252ba86f52a6aa"}}}}