{"action":"opened","number":58,"pull_request":{"url":"https://api.github.com/repos/ministryofjustice/analytics-platform-control-panel/pulls/58","id":150315636,"html_url":"https://github.com/ministryofjustice/analytics-platform-control-panel/pull/58","diff_url":"https://github.com/ministryofjustice/analytics-platform-control-panel/pull/58.diff","patch_url":"https://github.com/ministryofjustice/analytics-platform-control-panel/pull/58.patch","issue_url":"https://api.github.com/repos/ministryofjustice/analytics-platform-control-panel/issues/58","number":58,"state":"open","locked":false,"title":"Users3bucket access level based on is_admin","user":{"login":"jmoz","id":94684,"avatar_url":"https://avatars0.githubusercontent.com/u/94684?v=4","gravatar_id":"","url":"https://api.github.com/users/jmoz","html_url":"https://github.com/jmoz","followers_url":"https://api.github.com/users/jmoz/followers","following_url":"https://api.github.com/users/jmoz/following{/other_user}","gists_url":"https://api.github.com/users/jmoz/gists{/gist_id}","starred_url":"https://api.github.com/users/jmoz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmoz/subscriptions","organizations_url":"https://api.github.com/users/jmoz/orgs","repos_url":"https://api.github.com/users/jmoz/repos","events_url":"https://api.github.com/users/jmoz/events{/privacy}","received_events_url":"https://api.github.com/users/jmoz/received_events","type":"User","site_admin":false},"body":"## What\r\n\r\nUserS3Bucket access_level should not be editable and should be based on the is_admin flag.\r\n\r\n## How to review\r\n\r\n1. ./manage.py test\r\n2. Use api to create UserS3Bucket\r\n\r\nhttps://trello.com/c/WuFheSAR/447-confirm-users-assigned-s3-bucket-policy-is-read-only-2","created_at":"2017-11-02T15:01:39Z","updated_at":"2017-11-02T15:01:39Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/ministryofjustice/analytics-platform-control-panel/pulls/58/commits","review_comments_url":"https://api.github.com/repos/ministryofjustice/analytics-platform-control-panel/pulls/58/comments","review_comment_url":"https://api.github.com/repos/ministryofjustice/analytics-platform-control-panel/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ministryofjustice/analytics-platform-control-panel/issues/58/comments","statuses_url":"https://api.github.com/repos/ministryofjustice/analytics-platform-control-panel/statuses/b94f60e63126be626cb344b796690cfaf2793ab0","head":{"label":"ministryofjustice:feature-users3bucket-access-level","ref":"feature-users3bucket-access-level","sha":"b94f60e63126be626cb344b796690cfaf2793ab0","user":{"login":"ministryofjustice","id":2203574,"avatar_url":"https://avatars3.githubusercontent.com/u/2203574?v=4","gravatar_id":"","url":"https://api.github.com/users/ministryofjustice","html_url":"https://github.com/ministryofjustice","followers_url":"https://api.github.com/users/ministryofjustice/followers","following_url":"https://api.github.com/users/ministryofjustice/following{/other_user}","gists_url":"https://api.github.com/users/ministryofjustice/gists{/gist_id}","starred_url":"https://api.github.com/users/ministryofjustice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ministryofjustice/subscriptions","organizations_url":"https://api.github.com/users/ministryofjustice/orgs","repos_url":"https://api.github.com/users/ministryofjustice/repos","events_url":"https://api.github.com/users/ministryofjustice/events{/privacy}","received_events_url":"https://api.github.com/users/ministryofjustice/received_events","type":"Organization","site_admin":false},"repo":{"id":97129318,"name":"analytics-platform-control-panel","full_name":"ministryofjustice/analytics-platform-control-panel","owner":{"login":"ministryofjustice","id":2203574,"avatar_url":"https://avatars3.githubusercontent.com/u/2203574?v=4","gravatar_id":"","url":"https://api.github.com/users/ministryofjustice","html_url":"https://github.com/ministryofjustice","followers_url":"https://api.github.com/users/ministryofjustice/followers","following_url":"https://api.github.com/users/ministryofjustice/following{/other_user}","gists_url":"https://api.github.com/users/ministryofjustice/gists{/gist_id}","starred_url":"https://api.github.com/users/ministryofjustice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ministryofjustice/subscriptions","organizations_url":"https://api.github.com/users/ministryofjustice/orgs","repos_url":"https://api.github.com/users/ministryofjustice/repos","events_url":"https://api.github.com/users/ministryofjustice/events{/privacy}","received_events_url":"https://api.github.com/users/ministryofjustice/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ministryofjustice/analytics-platform-control-panel","description":"Control panel contains admin functions like creating users and granting access to apps","fork":false,"url":"https://api.github.com/repos/ministryofjustice/analytics-platform-control-panel","forks_url":"https://api.github.com/repos/ministryofjustice/analytics-platform-control-panel/forks","keys_url":"https://api.github.com/repos/ministryofjustice/analytics-platform-control-panel/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ministryofjustice/analytics-platform-control-panel/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ministryofjustice/analytics-platform-control-panel/teams","hooks_url":"https://api.github.com/repos/ministryofjustice/analytics-platform-control-panel/hooks","issue_events_url":"https://api.github.com/repos/ministryofjustice/analytics-platform-control-panel/issues/events{/number}","events_url":"https://api.github.com/repos/ministryofjustice/analytics-platform-control-panel/events","assignees_url":"https://api.github.com/repos/ministryofjustice/analytics-platform-control-panel/assignees{/user}","branches_url":"https://api.github.com/repos/ministryofjustice/analytics-platform-control-panel/branches{/branch}","tags_url":"https://api.github.com/repos/ministryofjustice/analytics-platform-control-panel/tags","blobs_url":"https://api.github.com/repos/ministryofjustice/analytics-platform-control-panel/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ministryofjustice/analytics-platform-control-panel/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ministryofjustice/analytics-platform-control-panel/git/refs{/sha}","trees_url":"https://api.github.com/repos/ministryofjustice/analytics-platform-control-panel/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ministryofjustice/analytics-platform-control-panel/statuses/{sha}","languages_url":"https://api.github.com/repos/ministryofjustice/analytics-platform-control-panel/languages","stargazers_url":"https://api.github.com/repos/ministryofjustice/analytics-platform-control-panel/stargazers","contributors_url":"https://api.github.com/repos/ministryofjustice/analytics-platform-control-panel/contributors","subscribers_url":"https://api.github.com/repos/ministryofjustice/analytics-platform-control-panel/subscribers","subscription_url":"https://api.github.com/repos/ministryofjustice/analytics-platform-control-panel/subscription","commits_url":"https://api.github.com/repos/ministryofjustice/analytics-platform-control-panel/commits{/sha}","git_commits_url":"https://api.github.com/repos/ministryofjustice/analytics-platform-control-panel/git/commits{/sha}","comments_url":"https://api.github.com/repos/ministryofjustice/analytics-platform-control-panel/comments{/number}","issue_comment_url":"https://api.github.com/repos/ministryofjustice/analytics-platform-control-panel/issues/comments{/number}","contents_url":"https://api.github.com/repos/ministryofjustice/analytics-platform-control-panel/contents/{+path}","compare_url":"https://api.github.com/repos/ministryofjustice/analytics-platform-control-panel/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ministryofjustice/analytics-platform-control-panel/merges","archive_url":"https://api.github.com/repos/ministryofjustice/analytics-platform-control-panel/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ministryofjustice/analytics-platform-control-panel/downloads","issues_url":"https://api.github.com/repos/ministryofjustice/analytics-platform-control-panel/issues{/number}","pulls_url":"https://api.github.com/repos/ministryofjustice/analytics-platform-control-panel/pulls{/number}","milestones_url":"https://api.github.com/repos/ministryofjustice/analytics-platform-control-panel/milestones{/number}","notifications_url":"https://api.github.com/repos/ministryofjustice/analytics-platform-control-panel/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ministryofjustice/analytics-platform-control-panel/labels{/name}","releases_url":"https://api.github.com/repos/ministryofjustice/analytics-platform-control-panel/releases{/id}","deployments_url":"https://api.github.com/repos/ministryofjustice/analytics-platform-control-panel/deployments","created_at":"2017-07-13T14:05:47Z","updated_at":"2017-10-15T07:15:28Z","pushed_at":"2017-11-02T14:59:00Z","git_url":"git://github.com/ministryofjustice/analytics-platform-control-panel.git","ssh_url":"git@github.com:ministryofjustice/analytics-platform-control-panel.git","clone_url":"https://github.com/ministryofjustice/analytics-platform-control-panel.git","svn_url":"https://github.com/ministryofjustice/analytics-platform-control-panel","homepage":null,"size":220,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":1,"default_branch":"api"}},"base":{"label":"ministryofjustice:api","ref":"api","sha":"9bc2305403fc644f4d7967bb1875c095c1682217","user":{"login":"ministryofjustice","id":2203574,"avatar_url":"https://avatars3.githubusercontent.com/u/2203574?v=4","gravatar_id":"","url":"https://api.github.com/users/ministryofjustice","html_url":"https://github.com/ministryofjustice","followers_url":"https://api.github.com/users/ministryofjustice/followers","following_url":"https://api.github.com/users/ministryofjustice/following{/other_user}","gists_url":"https://api.github.com/users/ministryofjustice/gists{/gist_id}","starred_url":"https://api.github.com/users/ministryofjustice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ministryofjustice/subscriptions","organizations_url":"https://api.github.com/users/ministryofjustice/orgs","repos_url":"https://api.github.com/users/ministryofjustice/repos","events_url":"https://api.github.com/users/ministryofjustice/events{/privacy}","received_events_url":"https://api.github.com/users/ministryofjustice/received_events","type":"Organization","site_admin":false},"repo":{"id":97129318,"name":"analytics-platform-control-panel","full_name":"ministryofjustice/analytics-platform-control-panel","owner":{"login":"ministryofjustice","id":2203574,"avatar_url":"https://avatars3.githubusercontent.com/u/2203574?v=4","gravatar_id":"","url":"https://api.github.com/users/ministryofjustice","html_url":"https://github.com/ministryofjustice","followers_url":"https://api.github.com/users/ministryofjustice/followers","following_url":"https://api.github.com/users/ministryofjustice/following{/other_user}","gists_url":"https://api.github.com/users/ministryofjustice/gists{/gist_id}","starred_url":"https://api.github.com/users/ministryofjustice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ministryofjustice/subscriptions","organizations_url":"https://api.github.com/users/ministryofjustice/orgs","repos_url":"https://api.github.com/users/ministryofjustice/repos","events_url":"https://api.github.com/users/ministryofjustice/events{/privacy}","received_events_url":"https://api.github.com/users/ministryofjustice/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ministryofjustice/analytics-platform-control-panel","description":"Control panel contains admin functions like creating users and granting access to apps","fork":false,"url":"https://api.github.com/repos/ministryofjustice/analytics-platform-control-panel","forks_url":"https://api.github.com/repos/ministryofjustice/analytics-platform-control-panel/forks","keys_url":"https://api.github.com/repos/ministryofjustice/analytics-platform-control-panel/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ministryofjustice/analytics-platform-control-panel/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ministryofjustice/analytics-platform-control-panel/teams","hooks_url":"https://api.github.com/repos/ministryofjustice/analytics-platform-control-panel/hooks","issue_events_url":"https://api.github.com/repos/ministryofjustice/analytics-platform-control-panel/issues/events{/number}","events_url":"https://api.github.com/repos/ministryofjustice/analytics-platform-control-panel/events","assignees_url":"https://api.github.com/repos/ministryofjustice/analytics-platform-control-panel/assignees{/user}","branches_url":"https://api.github.com/repos/ministryofjustice/analytics-platform-control-panel/branches{/branch}","tags_url":"https://api.github.com/repos/ministryofjustice/analytics-platform-control-panel/tags","blobs_url":"https://api.github.com/repos/ministryofjustice/analytics-platform-control-panel/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ministryofjustice/analytics-platform-control-panel/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ministryofjustice/analytics-platform-control-panel/git/refs{/sha}","trees_url":"https://api.github.com/repos/ministryofjustice/analytics-platform-control-panel/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ministryofjustice/analytics-platform-control-panel/statuses/{sha}","languages_url":"https://api.github.com/repos/ministryofjustice/analytics-platform-control-panel/languages","stargazers_url":"https://api.github.com/repos/ministryofjustice/analytics-platform-control-panel/stargazers","contributors_url":"https://api.github.com/repos/ministryofjustice/analytics-platform-control-panel/contributors","subscribers_url":"https://api.github.com/repos/ministryofjustice/analytics-platform-control-panel/subscribers","subscription_url":"https://api.github.com/repos/ministryofjustice/analytics-platform-control-panel/subscription","commits_url":"https://api.github.com/repos/ministryofjustice/analytics-platform-control-panel/commits{/sha}","git_commits_url":"https://api.github.com/repos/ministryofjustice/analytics-platform-control-panel/git/commits{/sha}","comments_url":"https://api.github.com/repos/ministryofjustice/analytics-platform-control-panel/comments{/number}","issue_comment_url":"https://api.github.com/repos/ministryofjustice/analytics-platform-control-panel/issues/comments{/number}","contents_url":"https://api.github.com/repos/ministryofjustice/analytics-platform-control-panel/contents/{+path}","compare_url":"https://api.github.com/repos/ministryofjustice/analytics-platform-control-panel/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ministryofjustice/analytics-platform-control-panel/merges","archive_url":"https://api.github.com/repos/ministryofjustice/analytics-platform-control-panel/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ministryofjustice/analytics-platform-control-panel/downloads","issues_url":"https://api.github.com/repos/ministryofjustice/analytics-platform-control-panel/issues{/number}","pulls_url":"https://api.github.com/repos/ministryofjustice/analytics-platform-control-panel/pulls{/number}","milestones_url":"https://api.github.com/repos/ministryofjustice/analytics-platform-control-panel/milestones{/number}","notifications_url":"https://api.github.com/repos/ministryofjustice/analytics-platform-control-panel/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ministryofjustice/analytics-platform-control-panel/labels{/name}","releases_url":"https://api.github.com/repos/ministryofjustice/analytics-platform-control-panel/releases{/id}","deployments_url":"https://api.github.com/repos/ministryofjustice/analytics-platform-control-panel/deployments","created_at":"2017-07-13T14:05:47Z","updated_at":"2017-10-15T07:15:28Z","pushed_at":"2017-11-02T14:59:00Z","git_url":"git://github.com/ministryofjustice/analytics-platform-control-panel.git","ssh_url":"git@github.com:ministryofjustice/analytics-platform-control-panel.git","clone_url":"https://github.com/ministryofjustice/analytics-platform-control-panel.git","svn_url":"https://github.com/ministryofjustice/analytics-platform-control-panel","homepage":null,"size":220,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":1,"default_branch":"api"}},"_links":{"self":{"href":"https://api.github.com/repos/ministryofjustice/analytics-platform-control-panel/pulls/58"},"html":{"href":"https://github.com/ministryofjustice/analytics-platform-control-panel/pull/58"},"issue":{"href":"https://api.github.com/repos/ministryofjustice/analytics-platform-control-panel/issues/58"},"comments":{"href":"https://api.github.com/repos/ministryofjustice/analytics-platform-control-panel/issues/58/comments"},"review_comments":{"href":"https://api.github.com/repos/ministryofjustice/analytics-platform-control-panel/pulls/58/comments"},"review_comment":{"href":"https://api.github.com/repos/ministryofjustice/analytics-platform-control-panel/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ministryofjustice/analytics-platform-control-panel/pulls/58/commits"},"statuses":{"href":"https://api.github.com/repos/ministryofjustice/analytics-platform-control-panel/statuses/b94f60e63126be626cb344b796690cfaf2793ab0"}},"author_association":"CONTRIBUTOR","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":2,"additions":79,"deletions":22,"changed_files":7}}
{"actor":{"display_login":"jmoz"}}