{"action":"created","comment":{"url":"https://api.github.com/repos/oppia/oppia/pulls/comments/93475702","pull_request_review_id":14001059,"id":93475702,"diff_hunk":"@@ -64,9 +84,45 @@ oppia.factory('CollectionRightsBackendApiService', [\n          */\n         setCollectionPrivate: function(collectionId, collectionVersion) {\n           return $q(function(resolve, reject) {\n-            _setCollectionStatus(\n+            SetCollectionStatus(\n               collectionId, collectionVersion, false, resolve, reject);\n           });\n+        },\n+\n+        /**\n+         * Adds a a new owner to the collection, given its ID and version.\n+         */\n+        SetCollectionOwner: function(\n+          collectionId, collectionVersion, newCollectionOwner) {\n+          return $q(function(resolve, reject) {\n+            SetCollectionMember(\n+              collectionId, collectionVersion, newCollectionOwner, 'owner',\n+              resolve, reject);\n+          });\n+        },\n+\n+        /**\n+         * Adds a a new owner to the collection, given its ID and version.","path":"core/templates/dev/head/domain/collection/CollectionRightsBackendApiService.js","position":93,"original_position":93,"commit_id":"135897241667f209b9364aa882bb79949423ee92","original_commit_id":"135897241667f209b9364aa882bb79949423ee92","user":{"login":"seanlip","id":10575562,"avatar_url":"https://avatars.githubusercontent.com/u/10575562?v=3","gravatar_id":"","url":"https://api.github.com/users/seanlip","html_url":"https://github.com/seanlip","followers_url":"https://api.github.com/users/seanlip/followers","following_url":"https://api.github.com/users/seanlip/following{/other_user}","gists_url":"https://api.github.com/users/seanlip/gists{/gist_id}","starred_url":"https://api.github.com/users/seanlip/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seanlip/subscriptions","organizations_url":"https://api.github.com/users/seanlip/orgs","repos_url":"https://api.github.com/users/seanlip/repos","events_url":"https://api.github.com/users/seanlip/events{/privacy}","received_events_url":"https://api.github.com/users/seanlip/received_events","type":"User","site_admin":false},"body":"Docstring copypaste error. Ditto below.","created_at":"2016-12-21T16:50:20Z","updated_at":"2016-12-21T16:57:02Z","html_url":"https://github.com/oppia/oppia/pull/2852#discussion_r93475702","pull_request_url":"https://api.github.com/repos/oppia/oppia/pulls/2852","_links":{"self":{"href":"https://api.github.com/repos/oppia/oppia/pulls/comments/93475702"},"html":{"href":"https://github.com/oppia/oppia/pull/2852#discussion_r93475702"},"pull_request":{"href":"https://api.github.com/repos/oppia/oppia/pulls/2852"}}},"pull_request":{"url":"https://api.github.com/repos/oppia/oppia/pulls/2852","id":98687037,"html_url":"https://github.com/oppia/oppia/pull/2852","diff_url":"https://github.com/oppia/oppia/pull/2852.diff","patch_url":"https://github.com/oppia/oppia/pull/2852.patch","issue_url":"https://api.github.com/repos/oppia/oppia/issues/2852","number":2852,"state":"open","locked":false,"title":"Fix #2026: Add collections permissions settings","user":{"login":"kevinlee12","id":5758256,"avatar_url":"https://avatars.githubusercontent.com/u/5758256?v=3","gravatar_id":"","url":"https://api.github.com/users/kevinlee12","html_url":"https://github.com/kevinlee12","followers_url":"https://api.github.com/users/kevinlee12/followers","following_url":"https://api.github.com/users/kevinlee12/following{/other_user}","gists_url":"https://api.github.com/users/kevinlee12/gists{/gist_id}","starred_url":"https://api.github.com/users/kevinlee12/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevinlee12/subscriptions","organizations_url":"https://api.github.com/users/kevinlee12/orgs","repos_url":"https://api.github.com/users/kevinlee12/repos","events_url":"https://api.github.com/users/kevinlee12/events{/privacy}","received_events_url":"https://api.github.com/users/kevinlee12/received_events","type":"User","site_admin":false},"body":"Allow for users to modify permission settings for collections, please see my comment in #2026 for a rough outline of what is implemented in this PR. ","created_at":"2016-12-20T05:01:32Z","updated_at":"2016-12-21T16:57:03Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c31283e1c18d47a1009f98ffdeee90a07f85fb1c","assignee":{"login":"seanlip","id":10575562,"avatar_url":"https://avatars.githubusercontent.com/u/10575562?v=3","gravatar_id":"","url":"https://api.github.com/users/seanlip","html_url":"https://github.com/seanlip","followers_url":"https://api.github.com/users/seanlip/followers","following_url":"https://api.github.com/users/seanlip/following{/other_user}","gists_url":"https://api.github.com/users/seanlip/gists{/gist_id}","starred_url":"https://api.github.com/users/seanlip/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seanlip/subscriptions","organizations_url":"https://api.github.com/users/seanlip/orgs","repos_url":"https://api.github.com/users/seanlip/repos","events_url":"https://api.github.com/users/seanlip/events{/privacy}","received_events_url":"https://api.github.com/users/seanlip/received_events","type":"User","site_admin":false},"assignees":[{"login":"seanlip","id":10575562,"avatar_url":"https://avatars.githubusercontent.com/u/10575562?v=3","gravatar_id":"","url":"https://api.github.com/users/seanlip","html_url":"https://github.com/seanlip","followers_url":"https://api.github.com/users/seanlip/followers","following_url":"https://api.github.com/users/seanlip/following{/other_user}","gists_url":"https://api.github.com/users/seanlip/gists{/gist_id}","starred_url":"https://api.github.com/users/seanlip/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seanlip/subscriptions","organizations_url":"https://api.github.com/users/seanlip/orgs","repos_url":"https://api.github.com/users/seanlip/repos","events_url":"https://api.github.com/users/seanlip/events{/privacy}","received_events_url":"https://api.github.com/users/seanlip/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/oppia/oppia/pulls/2852/commits","review_comments_url":"https://api.github.com/repos/oppia/oppia/pulls/2852/comments","review_comment_url":"https://api.github.com/repos/oppia/oppia/pulls/comments{/number}","comments_url":"https://api.github.com/repos/oppia/oppia/issues/2852/comments","statuses_url":"https://api.github.com/repos/oppia/oppia/statuses/135897241667f209b9364aa882bb79949423ee92","head":{"label":"kevinlee12:collection-rights-toggle","ref":"collection-rights-toggle","sha":"135897241667f209b9364aa882bb79949423ee92","user":{"login":"kevinlee12","id":5758256,"avatar_url":"https://avatars.githubusercontent.com/u/5758256?v=3","gravatar_id":"","url":"https://api.github.com/users/kevinlee12","html_url":"https://github.com/kevinlee12","followers_url":"https://api.github.com/users/kevinlee12/followers","following_url":"https://api.github.com/users/kevinlee12/following{/other_user}","gists_url":"https://api.github.com/users/kevinlee12/gists{/gist_id}","starred_url":"https://api.github.com/users/kevinlee12/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevinlee12/subscriptions","organizations_url":"https://api.github.com/users/kevinlee12/orgs","repos_url":"https://api.github.com/users/kevinlee12/repos","events_url":"https://api.github.com/users/kevinlee12/events{/privacy}","received_events_url":"https://api.github.com/users/kevinlee12/received_events","type":"User","site_admin":false},"repo":{"id":40864105,"name":"oppia","full_name":"kevinlee12/oppia","owner":{"login":"kevinlee12","id":5758256,"avatar_url":"https://avatars.githubusercontent.com/u/5758256?v=3","gravatar_id":"","url":"https://api.github.com/users/kevinlee12","html_url":"https://github.com/kevinlee12","followers_url":"https://api.github.com/users/kevinlee12/followers","following_url":"https://api.github.com/users/kevinlee12/following{/other_user}","gists_url":"https://api.github.com/users/kevinlee12/gists{/gist_id}","starred_url":"https://api.github.com/users/kevinlee12/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevinlee12/subscriptions","organizations_url":"https://api.github.com/users/kevinlee12/orgs","repos_url":"https://api.github.com/users/kevinlee12/repos","events_url":"https://api.github.com/users/kevinlee12/events{/privacy}","received_events_url":"https://api.github.com/users/kevinlee12/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kevinlee12/oppia","description":"Tool for creating interactive tutors.","fork":true,"url":"https://api.github.com/repos/kevinlee12/oppia","forks_url":"https://api.github.com/repos/kevinlee12/oppia/forks","keys_url":"https://api.github.com/repos/kevinlee12/oppia/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kevinlee12/oppia/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kevinlee12/oppia/teams","hooks_url":"https://api.github.com/repos/kevinlee12/oppia/hooks","issue_events_url":"https://api.github.com/repos/kevinlee12/oppia/issues/events{/number}","events_url":"https://api.github.com/repos/kevinlee12/oppia/events","assignees_url":"https://api.github.com/repos/kevinlee12/oppia/assignees{/user}","branches_url":"https://api.github.com/repos/kevinlee12/oppia/branches{/branch}","tags_url":"https://api.github.com/repos/kevinlee12/oppia/tags","blobs_url":"https://api.github.com/repos/kevinlee12/oppia/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kevinlee12/oppia/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kevinlee12/oppia/git/refs{/sha}","trees_url":"https://api.github.com/repos/kevinlee12/oppia/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kevinlee12/oppia/statuses/{sha}","languages_url":"https://api.github.com/repos/kevinlee12/oppia/languages","stargazers_url":"https://api.github.com/repos/kevinlee12/oppia/stargazers","contributors_url":"https://api.github.com/repos/kevinlee12/oppia/contributors","subscribers_url":"https://api.github.com/repos/kevinlee12/oppia/subscribers","subscription_url":"https://api.github.com/repos/kevinlee12/oppia/subscription","commits_url":"https://api.github.com/repos/kevinlee12/oppia/commits{/sha}","git_commits_url":"https://api.github.com/repos/kevinlee12/oppia/git/commits{/sha}","comments_url":"https://api.github.com/repos/kevinlee12/oppia/comments{/number}","issue_comment_url":"https://api.github.com/repos/kevinlee12/oppia/issues/comments{/number}","contents_url":"https://api.github.com/repos/kevinlee12/oppia/contents/{+path}","compare_url":"https://api.github.com/repos/kevinlee12/oppia/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kevinlee12/oppia/merges","archive_url":"https://api.github.com/repos/kevinlee12/oppia/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kevinlee12/oppia/downloads","issues_url":"https://api.github.com/repos/kevinlee12/oppia/issues{/number}","pulls_url":"https://api.github.com/repos/kevinlee12/oppia/pulls{/number}","milestones_url":"https://api.github.com/repos/kevinlee12/oppia/milestones{/number}","notifications_url":"https://api.github.com/repos/kevinlee12/oppia/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kevinlee12/oppia/labels{/name}","releases_url":"https://api.github.com/repos/kevinlee12/oppia/releases{/id}","deployments_url":"https://api.github.com/repos/kevinlee12/oppia/deployments","created_at":"2015-08-17T04:39:47Z","updated_at":"2016-01-21T01:21:28Z","pushed_at":"2016-12-21T01:46:44Z","git_url":"git://github.com/kevinlee12/oppia.git","ssh_url":"git@github.com:kevinlee12/oppia.git","clone_url":"https://github.com/kevinlee12/oppia.git","svn_url":"https://github.com/kevinlee12/oppia","homepage":"https://www.oppia.org","size":45363,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":false,"has_wiki":false,"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":"oppia:develop","ref":"develop","sha":"64a4c006d911718bb9f9fec1a699f397f3fcd549","user":{"login":"oppia","id":11620230,"avatar_url":"https://avatars.githubusercontent.com/u/11620230?v=3","gravatar_id":"","url":"https://api.github.com/users/oppia","html_url":"https://github.com/oppia","followers_url":"https://api.github.com/users/oppia/followers","following_url":"https://api.github.com/users/oppia/following{/other_user}","gists_url":"https://api.github.com/users/oppia/gists{/gist_id}","starred_url":"https://api.github.com/users/oppia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oppia/subscriptions","organizations_url":"https://api.github.com/users/oppia/orgs","repos_url":"https://api.github.com/users/oppia/repos","events_url":"https://api.github.com/users/oppia/events{/privacy}","received_events_url":"https://api.github.com/users/oppia/received_events","type":"Organization","site_admin":false},"repo":{"id":40687563,"name":"oppia","full_name":"oppia/oppia","owner":{"login":"oppia","id":11620230,"avatar_url":"https://avatars.githubusercontent.com/u/11620230?v=3","gravatar_id":"","url":"https://api.github.com/users/oppia","html_url":"https://github.com/oppia","followers_url":"https://api.github.com/users/oppia/followers","following_url":"https://api.github.com/users/oppia/following{/other_user}","gists_url":"https://api.github.com/users/oppia/gists{/gist_id}","starred_url":"https://api.github.com/users/oppia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oppia/subscriptions","organizations_url":"https://api.github.com/users/oppia/orgs","repos_url":"https://api.github.com/users/oppia/repos","events_url":"https://api.github.com/users/oppia/events{/privacy}","received_events_url":"https://api.github.com/users/oppia/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/oppia/oppia","description":"Tool for collaboratively building interactive lessons.","fork":false,"url":"https://api.github.com/repos/oppia/oppia","forks_url":"https://api.github.com/repos/oppia/oppia/forks","keys_url":"https://api.github.com/repos/oppia/oppia/keys{/key_id}","collaborators_url":"https://api.github.com/repos/oppia/oppia/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/oppia/oppia/teams","hooks_url":"https://api.github.com/repos/oppia/oppia/hooks","issue_events_url":"https://api.github.com/repos/oppia/oppia/issues/events{/number}","events_url":"https://api.github.com/repos/oppia/oppia/events","assignees_url":"https://api.github.com/repos/oppia/oppia/assignees{/user}","branches_url":"https://api.github.com/repos/oppia/oppia/branches{/branch}","tags_url":"https://api.github.com/repos/oppia/oppia/tags","blobs_url":"https://api.github.com/repos/oppia/oppia/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/oppia/oppia/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/oppia/oppia/git/refs{/sha}","trees_url":"https://api.github.com/repos/oppia/oppia/git/trees{/sha}","statuses_url":"https://api.github.com/repos/oppia/oppia/statuses/{sha}","languages_url":"https://api.github.com/repos/oppia/oppia/languages","stargazers_url":"https://api.github.com/repos/oppia/oppia/stargazers","contributors_url":"https://api.github.com/repos/oppia/oppia/contributors","subscribers_url":"https://api.github.com/repos/oppia/oppia/subscribers","subscription_url":"https://api.github.com/repos/oppia/oppia/subscription","commits_url":"https://api.github.com/repos/oppia/oppia/commits{/sha}","git_commits_url":"https://api.github.com/repos/oppia/oppia/git/commits{/sha}","comments_url":"https://api.github.com/repos/oppia/oppia/comments{/number}","issue_comment_url":"https://api.github.com/repos/oppia/oppia/issues/comments{/number}","contents_url":"https://api.github.com/repos/oppia/oppia/contents/{+path}","compare_url":"https://api.github.com/repos/oppia/oppia/compare/{base}...{head}","merges_url":"https://api.github.com/repos/oppia/oppia/merges","archive_url":"https://api.github.com/repos/oppia/oppia/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/oppia/oppia/downloads","issues_url":"https://api.github.com/repos/oppia/oppia/issues{/number}","pulls_url":"https://api.github.com/repos/oppia/oppia/pulls{/number}","milestones_url":"https://api.github.com/repos/oppia/oppia/milestones{/number}","notifications_url":"https://api.github.com/repos/oppia/oppia/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/oppia/oppia/labels{/name}","releases_url":"https://api.github.com/repos/oppia/oppia/releases{/id}","deployments_url":"https://api.github.com/repos/oppia/oppia/deployments","created_at":"2015-08-14T00:16:14Z","updated_at":"2016-12-20T04:59:21Z","pushed_at":"2016-12-21T09:55:27Z","git_url":"git://github.com/oppia/oppia.git","ssh_url":"git@github.com:oppia/oppia.git","clone_url":"https://github.com/oppia/oppia.git","svn_url":"https://github.com/oppia/oppia","homepage":"https://www.oppia.org","size":48851,"stargazers_count":202,"watchers_count":202,"language":"Python","has_issues":true,"has_downloads":false,"has_wiki":true,"has_pages":false,"forks_count":307,"mirror_url":null,"open_issues_count":360,"forks":307,"open_issues":360,"watchers":202,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/oppia/oppia/pulls/2852"},"html":{"href":"https://github.com/oppia/oppia/pull/2852"},"issue":{"href":"https://api.github.com/repos/oppia/oppia/issues/2852"},"comments":{"href":"https://api.github.com/repos/oppia/oppia/issues/2852/comments"},"review_comments":{"href":"https://api.github.com/repos/oppia/oppia/pulls/2852/comments"},"review_comment":{"href":"https://api.github.com/repos/oppia/oppia/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/oppia/oppia/pulls/2852/commits"},"statuses":{"href":"https://api.github.com/repos/oppia/oppia/statuses/135897241667f209b9364aa882bb79949423ee92"}}}}
{"actor":{"display_login":"seanlip"}}