{"action":"created","comment":{"url":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls/comments/29940811","id":29940811,"diff_hunk":"@@ -336,8 +319,11 @@ var AddContributorViewModel = oop.extend(Paginator, {\n         $osf.block();\n         return $osf.postJSON(\n             nodeApiUrl + 'contributors/', {\n-                users: self.selection().map(function(user) {\n-                    return ko.toJS(user);\n+                users: ko.utils.arrayMap(self.selection(), function(user) {\n+                    var permission = user.permission().value; //removes the value from the object\n+                    var tUser = JSON.parse(ko.toJSON(user)); //The serialized user minus functions","path":"website/static/js/contribAdder.js","position":69,"original_position":69,"commit_id":"5e89ad5d743e743f3ad219c56fe16967b040f69c","original_commit_id":"5e89ad5d743e743f3ad219c56fe16967b040f69c","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":"Ah, I see. Thanks for the clarifications.","created_at":"2015-05-08T13:53:18Z","updated_at":"2015-05-08T13:53:18Z","html_url":"https://github.com/CenterForOpenScience/osf.io/pull/2223#discussion_r29940811","pull_request_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls/2223","_links":{"self":{"href":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls/comments/29940811"},"html":{"href":"https://github.com/CenterForOpenScience/osf.io/pull/2223#discussion_r29940811"},"pull_request":{"href":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls/2223"}}},"pull_request":{"url":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls/2223","id":31431791,"html_url":"https://github.com/CenterForOpenScience/osf.io/pull/2223","diff_url":"https://github.com/CenterForOpenScience/osf.io/pull/2223.diff","patch_url":"https://github.com/CenterForOpenScience/osf.io/pull/2223.patch","issue_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/issues/2223","number":2223,"state":"open","locked":false,"title":"Feature/simplify permissions","user":{"login":"Ghalko","id":5169088,"avatar_url":"https://avatars.githubusercontent.com/u/5169088?v=3","gravatar_id":"","url":"https://api.github.com/users/Ghalko","html_url":"https://github.com/Ghalko","followers_url":"https://api.github.com/users/Ghalko/followers","following_url":"https://api.github.com/users/Ghalko/following{/other_user}","gists_url":"https://api.github.com/users/Ghalko/gists{/gist_id}","starred_url":"https://api.github.com/users/Ghalko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ghalko/subscriptions","organizations_url":"https://api.github.com/users/Ghalko/orgs","repos_url":"https://api.github.com/users/Ghalko/repos","events_url":"https://api.github.com/users/Ghalko/events{/privacy}","received_events_url":"https://api.github.com/users/Ghalko/received_events","type":"User","site_admin":false},"body":"## Proposed\r\n\r\nPermissions now look like PR #2196. Close #2197. Default set to \"Read\", close #2209.\r\n\r\n## Repercussions\r\nMany fewer accidental admins. Two issues at once, but the 'default permission' is a one line change.","created_at":"2015-03-18T14:10:13Z","updated_at":"2015-05-08T13:53:18Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fe485ea3ddff93acb4000c7bfe21b72e196eb34d","assignee":null,"milestone":{"url":"https://api.github.com/repos/CenterForOpenScience/osf.io/milestones/33","html_url":"https://github.com/CenterForOpenScience/osf.io/milestones/0.36.0","labels_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/milestones/33/labels","id":1091628,"number":33,"title":"0.36.0","description":"Merge Level 2 + Toolbar","creator":{"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},"open_issues":4,"closed_issues":2,"state":"open","created_at":"2015-04-30T19:53:58Z","updated_at":"2015-05-08T01:17:44Z","due_on":"2015-05-12T04:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls/2223/commits","review_comments_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls/2223/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/2223/comments","statuses_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/statuses/5e89ad5d743e743f3ad219c56fe16967b040f69c","head":{"label":"Ghalko:feature/simplifyPermissions","ref":"feature/simplifyPermissions","sha":"5e89ad5d743e743f3ad219c56fe16967b040f69c","user":{"login":"Ghalko","id":5169088,"avatar_url":"https://avatars.githubusercontent.com/u/5169088?v=3","gravatar_id":"","url":"https://api.github.com/users/Ghalko","html_url":"https://github.com/Ghalko","followers_url":"https://api.github.com/users/Ghalko/followers","following_url":"https://api.github.com/users/Ghalko/following{/other_user}","gists_url":"https://api.github.com/users/Ghalko/gists{/gist_id}","starred_url":"https://api.github.com/users/Ghalko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ghalko/subscriptions","organizations_url":"https://api.github.com/users/Ghalko/orgs","repos_url":"https://api.github.com/users/Ghalko/repos","events_url":"https://api.github.com/users/Ghalko/events{/privacy}","received_events_url":"https://api.github.com/users/Ghalko/received_events","type":"User","site_admin":false},"repo":{"id":31034068,"name":"osf.io","full_name":"Ghalko/osf.io","owner":{"login":"Ghalko","id":5169088,"avatar_url":"https://avatars.githubusercontent.com/u/5169088?v=3","gravatar_id":"","url":"https://api.github.com/users/Ghalko","html_url":"https://github.com/Ghalko","followers_url":"https://api.github.com/users/Ghalko/followers","following_url":"https://api.github.com/users/Ghalko/following{/other_user}","gists_url":"https://api.github.com/users/Ghalko/gists{/gist_id}","starred_url":"https://api.github.com/users/Ghalko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ghalko/subscriptions","organizations_url":"https://api.github.com/users/Ghalko/orgs","repos_url":"https://api.github.com/users/Ghalko/repos","events_url":"https://api.github.com/users/Ghalko/events{/privacy}","received_events_url":"https://api.github.com/users/Ghalko/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Ghalko/osf.io","description":"Facilitating Open Science","fork":true,"url":"https://api.github.com/repos/Ghalko/osf.io","forks_url":"https://api.github.com/repos/Ghalko/osf.io/forks","keys_url":"https://api.github.com/repos/Ghalko/osf.io/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Ghalko/osf.io/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Ghalko/osf.io/teams","hooks_url":"https://api.github.com/repos/Ghalko/osf.io/hooks","issue_events_url":"https://api.github.com/repos/Ghalko/osf.io/issues/events{/number}","events_url":"https://api.github.com/repos/Ghalko/osf.io/events","assignees_url":"https://api.github.com/repos/Ghalko/osf.io/assignees{/user}","branches_url":"https://api.github.com/repos/Ghalko/osf.io/branches{/branch}","tags_url":"https://api.github.com/repos/Ghalko/osf.io/tags","blobs_url":"https://api.github.com/repos/Ghalko/osf.io/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Ghalko/osf.io/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Ghalko/osf.io/git/refs{/sha}","trees_url":"https://api.github.com/repos/Ghalko/osf.io/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Ghalko/osf.io/statuses/{sha}","languages_url":"https://api.github.com/repos/Ghalko/osf.io/languages","stargazers_url":"https://api.github.com/repos/Ghalko/osf.io/stargazers","contributors_url":"https://api.github.com/repos/Ghalko/osf.io/contributors","subscribers_url":"https://api.github.com/repos/Ghalko/osf.io/subscribers","subscription_url":"https://api.github.com/repos/Ghalko/osf.io/subscription","commits_url":"https://api.github.com/repos/Ghalko/osf.io/commits{/sha}","git_commits_url":"https://api.github.com/repos/Ghalko/osf.io/git/commits{/sha}","comments_url":"https://api.github.com/repos/Ghalko/osf.io/comments{/number}","issue_comment_url":"https://api.github.com/repos/Ghalko/osf.io/issues/comments{/number}","contents_url":"https://api.github.com/repos/Ghalko/osf.io/contents/{+path}","compare_url":"https://api.github.com/repos/Ghalko/osf.io/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Ghalko/osf.io/merges","archive_url":"https://api.github.com/repos/Ghalko/osf.io/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Ghalko/osf.io/downloads","issues_url":"https://api.github.com/repos/Ghalko/osf.io/issues{/number}","pulls_url":"https://api.github.com/repos/Ghalko/osf.io/pulls{/number}","milestones_url":"https://api.github.com/repos/Ghalko/osf.io/milestones{/number}","notifications_url":"https://api.github.com/repos/Ghalko/osf.io/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Ghalko/osf.io/labels{/name}","releases_url":"https://api.github.com/repos/Ghalko/osf.io/releases{/id}","created_at":"2015-02-19T20:02:48Z","updated_at":"2015-03-30T13:32:39Z","pushed_at":"2015-05-08T12:05:07Z","git_url":"git://github.com/Ghalko/osf.io.git","ssh_url":"git@github.com:Ghalko/osf.io.git","clone_url":"https://github.com/Ghalko/osf.io.git","svn_url":"https://github.com/Ghalko/osf.io","homepage":"http://osf.io","size":86130,"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":"5e7341fa4c8dbfac27b69e6fde1f61c5c41ad130","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-05-08T01:17:44Z","pushed_at":"2015-05-08T12:05:09Z","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":205952,"stargazers_count":99,"watchers_count":99,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":78,"mirror_url":null,"open_issues_count":402,"forks":78,"open_issues":402,"watchers":99,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls/2223"},"html":{"href":"https://github.com/CenterForOpenScience/osf.io/pull/2223"},"issue":{"href":"https://api.github.com/repos/CenterForOpenScience/osf.io/issues/2223"},"comments":{"href":"https://api.github.com/repos/CenterForOpenScience/osf.io/issues/2223/comments"},"review_comments":{"href":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls/2223/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/2223/commits"},"statuses":{"href":"https://api.github.com/repos/CenterForOpenScience/osf.io/statuses/5e89ad5d743e743f3ad219c56fe16967b040f69c"}}}}