{"action":"created","comment":{"url":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls/comments/37331256","id":37331256,"diff_hunk":"@@ -154,3 +155,64 @@ def format_wiki_version(version, num_versions, allow_preview):\n         raise InvalidVersionError\n \n     return version\n+\n+def serialize_wiki_settings(user, node_ids):","path":"website/addons/wiki/utils.py","position":13,"original_position":13,"commit_id":"41ce878ab76ecb53d769a3fcab803a33fd4aebb6","original_commit_id":"ba0bddab6e42b643cf5ba60151806aba8b835493","user":{"login":"sloria","id":2379650,"avatar_url":"https://avatars.githubusercontent.com/u/2379650?v=3","gravatar_id":"","url":"https://api.github.com/users/sloria","html_url":"https://github.com/sloria","followers_url":"https://api.github.com/users/sloria/followers","following_url":"https://api.github.com/users/sloria/following{/other_user}","gists_url":"https://api.github.com/users/sloria/gists{/gist_id}","starred_url":"https://api.github.com/users/sloria/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sloria/subscriptions","organizations_url":"https://api.github.com/users/sloria/orgs","repos_url":"https://api.github.com/users/sloria/repos","events_url":"https://api.github.com/users/sloria/events{/privacy}","received_events_url":"https://api.github.com/users/sloria/received_events","type":"User","site_admin":false},"body":"If you believe this can be improved, go for it. What are you looking to refactor?","created_at":"2015-08-18T17:59:07Z","updated_at":"2015-08-18T17:59:07Z","html_url":"https://github.com/CenterForOpenScience/osf.io/pull/3397#discussion_r37331256","pull_request_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls/3397","_links":{"self":{"href":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls/comments/37331256"},"html":{"href":"https://github.com/CenterForOpenScience/osf.io/pull/3397#discussion_r37331256"},"pull_request":{"href":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls/3397"}}},"pull_request":{"url":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls/3397","id":38918600,"html_url":"https://github.com/CenterForOpenScience/osf.io/pull/3397","diff_url":"https://github.com/CenterForOpenScience/osf.io/pull/3397.diff","patch_url":"https://github.com/CenterForOpenScience/osf.io/pull/3397.patch","issue_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/issues/3397","number":3397,"state":"open","locked":false,"title":"[feature] publicly editable wiki","user":{"login":"geeksnglitter","id":7839433,"avatar_url":"https://avatars.githubusercontent.com/u/7839433?v=3","gravatar_id":"","url":"https://api.github.com/users/geeksnglitter","html_url":"https://github.com/geeksnglitter","followers_url":"https://api.github.com/users/geeksnglitter/followers","following_url":"https://api.github.com/users/geeksnglitter/following{/other_user}","gists_url":"https://api.github.com/users/geeksnglitter/gists{/gist_id}","starred_url":"https://api.github.com/users/geeksnglitter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/geeksnglitter/subscriptions","organizations_url":"https://api.github.com/users/geeksnglitter/orgs","repos_url":"https://api.github.com/users/geeksnglitter/repos","events_url":"https://api.github.com/users/geeksnglitter/events{/privacy}","received_events_url":"https://api.github.com/users/geeksnglitter/received_events","type":"User","site_admin":false},"body":"Purpose\r\n-------------------\r\nThis feature adds the ability to make wikis for nodes to be made publicly editable. This allows any logged in user to edit said wiki. This allows admins to make their wikis accessible to users of whom they may not know the contact information.\r\n\r\nChanges\r\n--------------------\r\nA flag was added to the wiki_settings stored object (similar to the is_public for projects) to keep track of wiki edit-ability. A wiki settings panel was added to the project settings page. This panel was modeled closely after Saman's comment notifications model.\r\n\r\nTODO\r\n-------------------\r\n- [x] Add tests\r\n- [x] Add confirmation modal\r\n\r\n\r\n\r\n\r\n","created_at":"2015-06-30T20:07:35Z","updated_at":"2015-08-18T17:59:07Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ff62e3246801c291ee3543c1d18d98bc97421c79","assignee":{"login":"sloria","id":2379650,"avatar_url":"https://avatars.githubusercontent.com/u/2379650?v=3","gravatar_id":"","url":"https://api.github.com/users/sloria","html_url":"https://github.com/sloria","followers_url":"https://api.github.com/users/sloria/followers","following_url":"https://api.github.com/users/sloria/following{/other_user}","gists_url":"https://api.github.com/users/sloria/gists{/gist_id}","starred_url":"https://api.github.com/users/sloria/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sloria/subscriptions","organizations_url":"https://api.github.com/users/sloria/orgs","repos_url":"https://api.github.com/users/sloria/repos","events_url":"https://api.github.com/users/sloria/events{/privacy}","received_events_url":"https://api.github.com/users/sloria/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls/3397/commits","review_comments_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls/3397/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/3397/comments","statuses_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/statuses/41ce878ab76ecb53d769a3fcab803a33fd4aebb6","head":{"label":"geeksnglitter:feature/publicWiki","ref":"feature/publicWiki","sha":"41ce878ab76ecb53d769a3fcab803a33fd4aebb6","user":{"login":"geeksnglitter","id":7839433,"avatar_url":"https://avatars.githubusercontent.com/u/7839433?v=3","gravatar_id":"","url":"https://api.github.com/users/geeksnglitter","html_url":"https://github.com/geeksnglitter","followers_url":"https://api.github.com/users/geeksnglitter/followers","following_url":"https://api.github.com/users/geeksnglitter/following{/other_user}","gists_url":"https://api.github.com/users/geeksnglitter/gists{/gist_id}","starred_url":"https://api.github.com/users/geeksnglitter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/geeksnglitter/subscriptions","organizations_url":"https://api.github.com/users/geeksnglitter/orgs","repos_url":"https://api.github.com/users/geeksnglitter/repos","events_url":"https://api.github.com/users/geeksnglitter/events{/privacy}","received_events_url":"https://api.github.com/users/geeksnglitter/received_events","type":"User","site_admin":false},"repo":{"id":36674767,"name":"osf.io","full_name":"geeksnglitter/osf.io","owner":{"login":"geeksnglitter","id":7839433,"avatar_url":"https://avatars.githubusercontent.com/u/7839433?v=3","gravatar_id":"","url":"https://api.github.com/users/geeksnglitter","html_url":"https://github.com/geeksnglitter","followers_url":"https://api.github.com/users/geeksnglitter/followers","following_url":"https://api.github.com/users/geeksnglitter/following{/other_user}","gists_url":"https://api.github.com/users/geeksnglitter/gists{/gist_id}","starred_url":"https://api.github.com/users/geeksnglitter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/geeksnglitter/subscriptions","organizations_url":"https://api.github.com/users/geeksnglitter/orgs","repos_url":"https://api.github.com/users/geeksnglitter/repos","events_url":"https://api.github.com/users/geeksnglitter/events{/privacy}","received_events_url":"https://api.github.com/users/geeksnglitter/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/geeksnglitter/osf.io","description":"Facilitating Open Science","fork":true,"url":"https://api.github.com/repos/geeksnglitter/osf.io","forks_url":"https://api.github.com/repos/geeksnglitter/osf.io/forks","keys_url":"https://api.github.com/repos/geeksnglitter/osf.io/keys{/key_id}","collaborators_url":"https://api.github.com/repos/geeksnglitter/osf.io/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/geeksnglitter/osf.io/teams","hooks_url":"https://api.github.com/repos/geeksnglitter/osf.io/hooks","issue_events_url":"https://api.github.com/repos/geeksnglitter/osf.io/issues/events{/number}","events_url":"https://api.github.com/repos/geeksnglitter/osf.io/events","assignees_url":"https://api.github.com/repos/geeksnglitter/osf.io/assignees{/user}","branches_url":"https://api.github.com/repos/geeksnglitter/osf.io/branches{/branch}","tags_url":"https://api.github.com/repos/geeksnglitter/osf.io/tags","blobs_url":"https://api.github.com/repos/geeksnglitter/osf.io/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/geeksnglitter/osf.io/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/geeksnglitter/osf.io/git/refs{/sha}","trees_url":"https://api.github.com/repos/geeksnglitter/osf.io/git/trees{/sha}","statuses_url":"https://api.github.com/repos/geeksnglitter/osf.io/statuses/{sha}","languages_url":"https://api.github.com/repos/geeksnglitter/osf.io/languages","stargazers_url":"https://api.github.com/repos/geeksnglitter/osf.io/stargazers","contributors_url":"https://api.github.com/repos/geeksnglitter/osf.io/contributors","subscribers_url":"https://api.github.com/repos/geeksnglitter/osf.io/subscribers","subscription_url":"https://api.github.com/repos/geeksnglitter/osf.io/subscription","commits_url":"https://api.github.com/repos/geeksnglitter/osf.io/commits{/sha}","git_commits_url":"https://api.github.com/repos/geeksnglitter/osf.io/git/commits{/sha}","comments_url":"https://api.github.com/repos/geeksnglitter/osf.io/comments{/number}","issue_comment_url":"https://api.github.com/repos/geeksnglitter/osf.io/issues/comments{/number}","contents_url":"https://api.github.com/repos/geeksnglitter/osf.io/contents/{+path}","compare_url":"https://api.github.com/repos/geeksnglitter/osf.io/compare/{base}...{head}","merges_url":"https://api.github.com/repos/geeksnglitter/osf.io/merges","archive_url":"https://api.github.com/repos/geeksnglitter/osf.io/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/geeksnglitter/osf.io/downloads","issues_url":"https://api.github.com/repos/geeksnglitter/osf.io/issues{/number}","pulls_url":"https://api.github.com/repos/geeksnglitter/osf.io/pulls{/number}","milestones_url":"https://api.github.com/repos/geeksnglitter/osf.io/milestones{/number}","notifications_url":"https://api.github.com/repos/geeksnglitter/osf.io/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/geeksnglitter/osf.io/labels{/name}","releases_url":"https://api.github.com/repos/geeksnglitter/osf.io/releases{/id}","created_at":"2015-06-01T16:51:30Z","updated_at":"2015-06-01T16:51:33Z","pushed_at":"2015-08-18T14:04:01Z","git_url":"git://github.com/geeksnglitter/osf.io.git","ssh_url":"git@github.com:geeksnglitter/osf.io.git","clone_url":"https://github.com/geeksnglitter/osf.io.git","svn_url":"https://github.com/geeksnglitter/osf.io","homepage":"http://osf.io","size":99014,"stargazers_count":0,"watchers_count":0,"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":0,"default_branch":"develop"}},"base":{"label":"CenterForOpenScience:develop","ref":"develop","sha":"09e607959136f73cc67a9ef8cfe28d41c6e6fd59","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-08-05T16:17:51Z","pushed_at":"2015-08-18T17:50:33Z","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":223142,"stargazers_count":125,"watchers_count":125,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":107,"mirror_url":null,"open_issues_count":499,"forks":107,"open_issues":499,"watchers":125,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls/3397"},"html":{"href":"https://github.com/CenterForOpenScience/osf.io/pull/3397"},"issue":{"href":"https://api.github.com/repos/CenterForOpenScience/osf.io/issues/3397"},"comments":{"href":"https://api.github.com/repos/CenterForOpenScience/osf.io/issues/3397/comments"},"review_comments":{"href":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls/3397/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/3397/commits"},"statuses":{"href":"https://api.github.com/repos/CenterForOpenScience/osf.io/statuses/41ce878ab76ecb53d769a3fcab803a33fd4aebb6"}}}}