{"action":"opened","number":767,"pull_request":{"url":"https://api.github.com/repos/kobotoolbox/kpi/pulls/767","id":74724727,"html_url":"https://github.com/kobotoolbox/kpi/pull/767","diff_url":"https://github.com/kobotoolbox/kpi/pull/767.diff","patch_url":"https://github.com/kobotoolbox/kpi/pull/767.patch","issue_url":"https://api.github.com/repos/kobotoolbox/kpi/issues/767","number":767,"state":"open","locked":false,"title":"Collection sharing modal routes back to library","user":{"login":"jnm","id":2085013,"avatar_url":"https://avatars.githubusercontent.com/u/2085013?v=3","gravatar_id":"","url":"https://api.github.com/users/jnm","html_url":"https://github.com/jnm","followers_url":"https://api.github.com/users/jnm/followers","following_url":"https://api.github.com/users/jnm/following{/other_user}","gists_url":"https://api.github.com/users/jnm/gists{/gist_id}","starred_url":"https://api.github.com/users/jnm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jnm/subscriptions","organizations_url":"https://api.github.com/users/jnm/orgs","repos_url":"https://api.github.com/users/jnm/repos","events_url":"https://api.github.com/users/jnm/events{/privacy}","received_events_url":"https://api.github.com/users/jnm/received_events","type":"User","site_admin":false},"body":"Fixes #656 \r\nAdditional fix for the following:\r\n\r\n1. User selects collection;\r\n1. User clicks 'make public';\r\n1. User clicks 'sharing';\r\n1. User toggles off 'link sharing';\r\n1. User closes sharing modal;\r\n1. User clicks 'make private' for previously mentioned collection;\r\n1. Operation fails because 'make private' tries to remove an anonymous `view_collection` permission that no longer exists.","created_at":"2016-06-22T05:08:57Z","updated_at":"2016-06-22T05:08:57Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/kobotoolbox/kpi/pulls/767/commits","review_comments_url":"https://api.github.com/repos/kobotoolbox/kpi/pulls/767/comments","review_comment_url":"https://api.github.com/repos/kobotoolbox/kpi/pulls/comments{/number}","comments_url":"https://api.github.com/repos/kobotoolbox/kpi/issues/767/comments","statuses_url":"https://api.github.com/repos/kobotoolbox/kpi/statuses/08a4bf48494b8f0f0a42bf800d0a1cf1dde1e5f2","head":{"label":"kobotoolbox:656-issue-etc","ref":"656-issue-etc","sha":"08a4bf48494b8f0f0a42bf800d0a1cf1dde1e5f2","user":{"login":"kobotoolbox","id":5543677,"avatar_url":"https://avatars.githubusercontent.com/u/5543677?v=3","gravatar_id":"","url":"https://api.github.com/users/kobotoolbox","html_url":"https://github.com/kobotoolbox","followers_url":"https://api.github.com/users/kobotoolbox/followers","following_url":"https://api.github.com/users/kobotoolbox/following{/other_user}","gists_url":"https://api.github.com/users/kobotoolbox/gists{/gist_id}","starred_url":"https://api.github.com/users/kobotoolbox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kobotoolbox/subscriptions","organizations_url":"https://api.github.com/users/kobotoolbox/orgs","repos_url":"https://api.github.com/users/kobotoolbox/repos","events_url":"https://api.github.com/users/kobotoolbox/events{/privacy}","received_events_url":"https://api.github.com/users/kobotoolbox/received_events","type":"Organization","site_admin":false},"repo":{"id":31337353,"name":"kpi","full_name":"kobotoolbox/kpi","owner":{"login":"kobotoolbox","id":5543677,"avatar_url":"https://avatars.githubusercontent.com/u/5543677?v=3","gravatar_id":"","url":"https://api.github.com/users/kobotoolbox","html_url":"https://github.com/kobotoolbox","followers_url":"https://api.github.com/users/kobotoolbox/followers","following_url":"https://api.github.com/users/kobotoolbox/following{/other_user}","gists_url":"https://api.github.com/users/kobotoolbox/gists{/gist_id}","starred_url":"https://api.github.com/users/kobotoolbox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kobotoolbox/subscriptions","organizations_url":"https://api.github.com/users/kobotoolbox/orgs","repos_url":"https://api.github.com/users/kobotoolbox/repos","events_url":"https://api.github.com/users/kobotoolbox/events{/privacy}","received_events_url":"https://api.github.com/users/kobotoolbox/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/kobotoolbox/kpi","description":"kpi: kobo-api","fork":false,"url":"https://api.github.com/repos/kobotoolbox/kpi","forks_url":"https://api.github.com/repos/kobotoolbox/kpi/forks","keys_url":"https://api.github.com/repos/kobotoolbox/kpi/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kobotoolbox/kpi/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kobotoolbox/kpi/teams","hooks_url":"https://api.github.com/repos/kobotoolbox/kpi/hooks","issue_events_url":"https://api.github.com/repos/kobotoolbox/kpi/issues/events{/number}","events_url":"https://api.github.com/repos/kobotoolbox/kpi/events","assignees_url":"https://api.github.com/repos/kobotoolbox/kpi/assignees{/user}","branches_url":"https://api.github.com/repos/kobotoolbox/kpi/branches{/branch}","tags_url":"https://api.github.com/repos/kobotoolbox/kpi/tags","blobs_url":"https://api.github.com/repos/kobotoolbox/kpi/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kobotoolbox/kpi/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kobotoolbox/kpi/git/refs{/sha}","trees_url":"https://api.github.com/repos/kobotoolbox/kpi/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kobotoolbox/kpi/statuses/{sha}","languages_url":"https://api.github.com/repos/kobotoolbox/kpi/languages","stargazers_url":"https://api.github.com/repos/kobotoolbox/kpi/stargazers","contributors_url":"https://api.github.com/repos/kobotoolbox/kpi/contributors","subscribers_url":"https://api.github.com/repos/kobotoolbox/kpi/subscribers","subscription_url":"https://api.github.com/repos/kobotoolbox/kpi/subscription","commits_url":"https://api.github.com/repos/kobotoolbox/kpi/commits{/sha}","git_commits_url":"https://api.github.com/repos/kobotoolbox/kpi/git/commits{/sha}","comments_url":"https://api.github.com/repos/kobotoolbox/kpi/comments{/number}","issue_comment_url":"https://api.github.com/repos/kobotoolbox/kpi/issues/comments{/number}","contents_url":"https://api.github.com/repos/kobotoolbox/kpi/contents/{+path}","compare_url":"https://api.github.com/repos/kobotoolbox/kpi/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kobotoolbox/kpi/merges","archive_url":"https://api.github.com/repos/kobotoolbox/kpi/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kobotoolbox/kpi/downloads","issues_url":"https://api.github.com/repos/kobotoolbox/kpi/issues{/number}","pulls_url":"https://api.github.com/repos/kobotoolbox/kpi/pulls{/number}","milestones_url":"https://api.github.com/repos/kobotoolbox/kpi/milestones{/number}","notifications_url":"https://api.github.com/repos/kobotoolbox/kpi/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kobotoolbox/kpi/labels{/name}","releases_url":"https://api.github.com/repos/kobotoolbox/kpi/releases{/id}","deployments_url":"https://api.github.com/repos/kobotoolbox/kpi/deployments","created_at":"2015-02-25T21:45:33Z","updated_at":"2016-06-02T00:16:17Z","pushed_at":"2016-06-22T05:04:15Z","git_url":"git://github.com/kobotoolbox/kpi.git","ssh_url":"git@github.com:kobotoolbox/kpi.git","clone_url":"https://github.com/kobotoolbox/kpi.git","svn_url":"https://github.com/kobotoolbox/kpi","homepage":"","size":3174,"stargazers_count":2,"watchers_count":2,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":129,"forks":4,"open_issues":129,"watchers":2,"default_branch":"master"}},"base":{"label":"kobotoolbox:master","ref":"master","sha":"6c20ec1f2f7b52058375b4b93b9570cc7c8d1a2d","user":{"login":"kobotoolbox","id":5543677,"avatar_url":"https://avatars.githubusercontent.com/u/5543677?v=3","gravatar_id":"","url":"https://api.github.com/users/kobotoolbox","html_url":"https://github.com/kobotoolbox","followers_url":"https://api.github.com/users/kobotoolbox/followers","following_url":"https://api.github.com/users/kobotoolbox/following{/other_user}","gists_url":"https://api.github.com/users/kobotoolbox/gists{/gist_id}","starred_url":"https://api.github.com/users/kobotoolbox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kobotoolbox/subscriptions","organizations_url":"https://api.github.com/users/kobotoolbox/orgs","repos_url":"https://api.github.com/users/kobotoolbox/repos","events_url":"https://api.github.com/users/kobotoolbox/events{/privacy}","received_events_url":"https://api.github.com/users/kobotoolbox/received_events","type":"Organization","site_admin":false},"repo":{"id":31337353,"name":"kpi","full_name":"kobotoolbox/kpi","owner":{"login":"kobotoolbox","id":5543677,"avatar_url":"https://avatars.githubusercontent.com/u/5543677?v=3","gravatar_id":"","url":"https://api.github.com/users/kobotoolbox","html_url":"https://github.com/kobotoolbox","followers_url":"https://api.github.com/users/kobotoolbox/followers","following_url":"https://api.github.com/users/kobotoolbox/following{/other_user}","gists_url":"https://api.github.com/users/kobotoolbox/gists{/gist_id}","starred_url":"https://api.github.com/users/kobotoolbox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kobotoolbox/subscriptions","organizations_url":"https://api.github.com/users/kobotoolbox/orgs","repos_url":"https://api.github.com/users/kobotoolbox/repos","events_url":"https://api.github.com/users/kobotoolbox/events{/privacy}","received_events_url":"https://api.github.com/users/kobotoolbox/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/kobotoolbox/kpi","description":"kpi: kobo-api","fork":false,"url":"https://api.github.com/repos/kobotoolbox/kpi","forks_url":"https://api.github.com/repos/kobotoolbox/kpi/forks","keys_url":"https://api.github.com/repos/kobotoolbox/kpi/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kobotoolbox/kpi/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kobotoolbox/kpi/teams","hooks_url":"https://api.github.com/repos/kobotoolbox/kpi/hooks","issue_events_url":"https://api.github.com/repos/kobotoolbox/kpi/issues/events{/number}","events_url":"https://api.github.com/repos/kobotoolbox/kpi/events","assignees_url":"https://api.github.com/repos/kobotoolbox/kpi/assignees{/user}","branches_url":"https://api.github.com/repos/kobotoolbox/kpi/branches{/branch}","tags_url":"https://api.github.com/repos/kobotoolbox/kpi/tags","blobs_url":"https://api.github.com/repos/kobotoolbox/kpi/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kobotoolbox/kpi/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kobotoolbox/kpi/git/refs{/sha}","trees_url":"https://api.github.com/repos/kobotoolbox/kpi/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kobotoolbox/kpi/statuses/{sha}","languages_url":"https://api.github.com/repos/kobotoolbox/kpi/languages","stargazers_url":"https://api.github.com/repos/kobotoolbox/kpi/stargazers","contributors_url":"https://api.github.com/repos/kobotoolbox/kpi/contributors","subscribers_url":"https://api.github.com/repos/kobotoolbox/kpi/subscribers","subscription_url":"https://api.github.com/repos/kobotoolbox/kpi/subscription","commits_url":"https://api.github.com/repos/kobotoolbox/kpi/commits{/sha}","git_commits_url":"https://api.github.com/repos/kobotoolbox/kpi/git/commits{/sha}","comments_url":"https://api.github.com/repos/kobotoolbox/kpi/comments{/number}","issue_comment_url":"https://api.github.com/repos/kobotoolbox/kpi/issues/comments{/number}","contents_url":"https://api.github.com/repos/kobotoolbox/kpi/contents/{+path}","compare_url":"https://api.github.com/repos/kobotoolbox/kpi/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kobotoolbox/kpi/merges","archive_url":"https://api.github.com/repos/kobotoolbox/kpi/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kobotoolbox/kpi/downloads","issues_url":"https://api.github.com/repos/kobotoolbox/kpi/issues{/number}","pulls_url":"https://api.github.com/repos/kobotoolbox/kpi/pulls{/number}","milestones_url":"https://api.github.com/repos/kobotoolbox/kpi/milestones{/number}","notifications_url":"https://api.github.com/repos/kobotoolbox/kpi/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kobotoolbox/kpi/labels{/name}","releases_url":"https://api.github.com/repos/kobotoolbox/kpi/releases{/id}","deployments_url":"https://api.github.com/repos/kobotoolbox/kpi/deployments","created_at":"2015-02-25T21:45:33Z","updated_at":"2016-06-02T00:16:17Z","pushed_at":"2016-06-22T05:04:15Z","git_url":"git://github.com/kobotoolbox/kpi.git","ssh_url":"git@github.com:kobotoolbox/kpi.git","clone_url":"https://github.com/kobotoolbox/kpi.git","svn_url":"https://github.com/kobotoolbox/kpi","homepage":"","size":3174,"stargazers_count":2,"watchers_count":2,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":129,"forks":4,"open_issues":129,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/kobotoolbox/kpi/pulls/767"},"html":{"href":"https://github.com/kobotoolbox/kpi/pull/767"},"issue":{"href":"https://api.github.com/repos/kobotoolbox/kpi/issues/767"},"comments":{"href":"https://api.github.com/repos/kobotoolbox/kpi/issues/767/comments"},"review_comments":{"href":"https://api.github.com/repos/kobotoolbox/kpi/pulls/767/comments"},"review_comment":{"href":"https://api.github.com/repos/kobotoolbox/kpi/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/kobotoolbox/kpi/pulls/767/commits"},"statuses":{"href":"https://api.github.com/repos/kobotoolbox/kpi/statuses/08a4bf48494b8f0f0a42bf800d0a1cf1dde1e5f2"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":2,"additions":7,"deletions":1,"changed_files":2}}
{"actor":{"display_login":"jnm"}}