{"action":"created","comment":{"url":"https://api.github.com/repos/keboola/storage-api-console/pulls/comments/220301199","pull_request_review_id":158678134,"id":220301199,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyMDMwMTE5OQ==","diff_hunk":"@@ -64,6 +64,34 @@ angular.module('storageApiConsole')\n \t\t\t\t\t$scope.isSharingSaving = false\n \t\t\t\t)\n \n+\t\t\t$scope.changeBucketShareTypeModal = ->\n+\t\t\t\t$modal.open(\n+\t\t\t\t\ttemplateUrl: appVersion.versionUrl('/partials/modals/bucket-change-share-type.html')\n+\t\t\t\t\tcontroller: 'BucketShare'\n+\t\t\t\t\tresolve:\n+\t\t\t\t\t\tbucket: ->\n+\t\t\t\t\t\t\t$scope.bucket\n+\t\t\t\t).result.then((sharingType) ->\n+\t\t\t\t\tconsole.log 'sharing', sharingType\n+\t\t\t\t\t$scope.changeBucketShareType($scope.bucket, sharingType)\n+\t\t\t\t)\n+\n+\t\t\t$scope.changeBucketShareType = (bucket, sharingType) ->\n+\t\t\t\treturn if !storageService.token.isOrganizationMember()\n+\n+\t\t\t\t$scope.isSharingSaving = true\n+\t\t\t\tstorageService\n+\t\t\t\t.changeBucketShareType(bucket.id,","path":"app/scripts/controllers/bucket-controller.coffee","position":21,"original_position":21,"commit_id":"30e55d9fade7af0d21e064f406225882226ef011","original_commit_id":"30e55d9fade7af0d21e064f406225882226ef011","user":{"login":"Halama","id":903531,"node_id":"MDQ6VXNlcjkwMzUzMQ==","avatar_url":"https://avatars3.githubusercontent.com/u/903531?v=4","gravatar_id":"","url":"https://api.github.com/users/Halama","html_url":"https://github.com/Halama","followers_url":"https://api.github.com/users/Halama/followers","following_url":"https://api.github.com/users/Halama/following{/other_user}","gists_url":"https://api.github.com/users/Halama/gists{/gist_id}","starred_url":"https://api.github.com/users/Halama/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Halama/subscriptions","organizations_url":"https://api.github.com/users/Halama/orgs","repos_url":"https://api.github.com/users/Halama/repos","events_url":"https://api.github.com/users/Halama/events{/privacy}","received_events_url":"https://api.github.com/users/Halama/received_events","type":"User","site_admin":false},"body":"je tahle metoda někde? Nebude potřeba doplnit sem https://github.com/keboola/angular-kb ?","created_at":"2018-09-25T18:17:10Z","updated_at":"2018-09-25T18:17:10Z","html_url":"https://github.com/keboola/storage-api-console/pull/72#discussion_r220301199","pull_request_url":"https://api.github.com/repos/keboola/storage-api-console/pulls/72","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/keboola/storage-api-console/pulls/comments/220301199"},"html":{"href":"https://github.com/keboola/storage-api-console/pull/72#discussion_r220301199"},"pull_request":{"href":"https://api.github.com/repos/keboola/storage-api-console/pulls/72"}}},"pull_request":{"url":"https://api.github.com/repos/keboola/storage-api-console/pulls/72","id":218046915,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE4MDQ2OTE1","html_url":"https://github.com/keboola/storage-api-console/pull/72","diff_url":"https://github.com/keboola/storage-api-console/pull/72.diff","patch_url":"https://github.com/keboola/storage-api-console/pull/72.patch","issue_url":"https://api.github.com/repos/keboola/storage-api-console/issues/72","number":72,"state":"open","locked":false,"title":"Change bucket share type","user":{"login":"Actimel","id":4041679,"node_id":"MDQ6VXNlcjQwNDE2Nzk=","avatar_url":"https://avatars0.githubusercontent.com/u/4041679?v=4","gravatar_id":"","url":"https://api.github.com/users/Actimel","html_url":"https://github.com/Actimel","followers_url":"https://api.github.com/users/Actimel/followers","following_url":"https://api.github.com/users/Actimel/following{/other_user}","gists_url":"https://api.github.com/users/Actimel/gists{/gist_id}","starred_url":"https://api.github.com/users/Actimel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Actimel/subscriptions","organizations_url":"https://api.github.com/users/Actimel/orgs","repos_url":"https://api.github.com/users/Actimel/repos","events_url":"https://api.github.com/users/Actimel/events{/privacy}","received_events_url":"https://api.github.com/users/Actimel/received_events","type":"User","site_admin":false},"body":"Solve #67 ","created_at":"2018-09-25T16:40:19Z","updated_at":"2018-09-25T18:17:10Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5c9d792c4c2d847b31a326924ef746f245345c64","assignee":{"login":"Actimel","id":4041679,"node_id":"MDQ6VXNlcjQwNDE2Nzk=","avatar_url":"https://avatars0.githubusercontent.com/u/4041679?v=4","gravatar_id":"","url":"https://api.github.com/users/Actimel","html_url":"https://github.com/Actimel","followers_url":"https://api.github.com/users/Actimel/followers","following_url":"https://api.github.com/users/Actimel/following{/other_user}","gists_url":"https://api.github.com/users/Actimel/gists{/gist_id}","starred_url":"https://api.github.com/users/Actimel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Actimel/subscriptions","organizations_url":"https://api.github.com/users/Actimel/orgs","repos_url":"https://api.github.com/users/Actimel/repos","events_url":"https://api.github.com/users/Actimel/events{/privacy}","received_events_url":"https://api.github.com/users/Actimel/received_events","type":"User","site_admin":false},"assignees":[{"login":"Actimel","id":4041679,"node_id":"MDQ6VXNlcjQwNDE2Nzk=","avatar_url":"https://avatars0.githubusercontent.com/u/4041679?v=4","gravatar_id":"","url":"https://api.github.com/users/Actimel","html_url":"https://github.com/Actimel","followers_url":"https://api.github.com/users/Actimel/followers","following_url":"https://api.github.com/users/Actimel/following{/other_user}","gists_url":"https://api.github.com/users/Actimel/gists{/gist_id}","starred_url":"https://api.github.com/users/Actimel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Actimel/subscriptions","organizations_url":"https://api.github.com/users/Actimel/orgs","repos_url":"https://api.github.com/users/Actimel/repos","events_url":"https://api.github.com/users/Actimel/events{/privacy}","received_events_url":"https://api.github.com/users/Actimel/received_events","type":"User","site_admin":false}],"requested_reviewers":[{"login":"ErikZigo","id":1726727,"node_id":"MDQ6VXNlcjE3MjY3Mjc=","avatar_url":"https://avatars2.githubusercontent.com/u/1726727?v=4","gravatar_id":"","url":"https://api.github.com/users/ErikZigo","html_url":"https://github.com/ErikZigo","followers_url":"https://api.github.com/users/ErikZigo/followers","following_url":"https://api.github.com/users/ErikZigo/following{/other_user}","gists_url":"https://api.github.com/users/ErikZigo/gists{/gist_id}","starred_url":"https://api.github.com/users/ErikZigo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ErikZigo/subscriptions","organizations_url":"https://api.github.com/users/ErikZigo/orgs","repos_url":"https://api.github.com/users/ErikZigo/repos","events_url":"https://api.github.com/users/ErikZigo/events{/privacy}","received_events_url":"https://api.github.com/users/ErikZigo/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/keboola/storage-api-console/pulls/72/commits","review_comments_url":"https://api.github.com/repos/keboola/storage-api-console/pulls/72/comments","review_comment_url":"https://api.github.com/repos/keboola/storage-api-console/pulls/comments{/number}","comments_url":"https://api.github.com/repos/keboola/storage-api-console/issues/72/comments","statuses_url":"https://api.github.com/repos/keboola/storage-api-console/statuses/30e55d9fade7af0d21e064f406225882226ef011","head":{"label":"keboola:david-change-bucket-share-type","ref":"david-change-bucket-share-type","sha":"30e55d9fade7af0d21e064f406225882226ef011","user":{"login":"keboola","id":1424387,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE0MjQzODc=","avatar_url":"https://avatars1.githubusercontent.com/u/1424387?v=4","gravatar_id":"","url":"https://api.github.com/users/keboola","html_url":"https://github.com/keboola","followers_url":"https://api.github.com/users/keboola/followers","following_url":"https://api.github.com/users/keboola/following{/other_user}","gists_url":"https://api.github.com/users/keboola/gists{/gist_id}","starred_url":"https://api.github.com/users/keboola/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/keboola/subscriptions","organizations_url":"https://api.github.com/users/keboola/orgs","repos_url":"https://api.github.com/users/keboola/repos","events_url":"https://api.github.com/users/keboola/events{/privacy}","received_events_url":"https://api.github.com/users/keboola/received_events","type":"Organization","site_admin":false},"repo":{"id":5143889,"node_id":"MDEwOlJlcG9zaXRvcnk1MTQzODg5","name":"storage-api-console","full_name":"keboola/storage-api-console","private":false,"owner":{"login":"keboola","id":1424387,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE0MjQzODc=","avatar_url":"https://avatars1.githubusercontent.com/u/1424387?v=4","gravatar_id":"","url":"https://api.github.com/users/keboola","html_url":"https://github.com/keboola","followers_url":"https://api.github.com/users/keboola/followers","following_url":"https://api.github.com/users/keboola/following{/other_user}","gists_url":"https://api.github.com/users/keboola/gists{/gist_id}","starred_url":"https://api.github.com/users/keboola/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/keboola/subscriptions","organizations_url":"https://api.github.com/users/keboola/orgs","repos_url":"https://api.github.com/users/keboola/repos","events_url":"https://api.github.com/users/keboola/events{/privacy}","received_events_url":"https://api.github.com/users/keboola/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/keboola/storage-api-console","description":"UI For Keboola Storage API","fork":false,"url":"https://api.github.com/repos/keboola/storage-api-console","forks_url":"https://api.github.com/repos/keboola/storage-api-console/forks","keys_url":"https://api.github.com/repos/keboola/storage-api-console/keys{/key_id}","collaborators_url":"https://api.github.com/repos/keboola/storage-api-console/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/keboola/storage-api-console/teams","hooks_url":"https://api.github.com/repos/keboola/storage-api-console/hooks","issue_events_url":"https://api.github.com/repos/keboola/storage-api-console/issues/events{/number}","events_url":"https://api.github.com/repos/keboola/storage-api-console/events","assignees_url":"https://api.github.com/repos/keboola/storage-api-console/assignees{/user}","branches_url":"https://api.github.com/repos/keboola/storage-api-console/branches{/branch}","tags_url":"https://api.github.com/repos/keboola/storage-api-console/tags","blobs_url":"https://api.github.com/repos/keboola/storage-api-console/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/keboola/storage-api-console/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/keboola/storage-api-console/git/refs{/sha}","trees_url":"https://api.github.com/repos/keboola/storage-api-console/git/trees{/sha}","statuses_url":"https://api.github.com/repos/keboola/storage-api-console/statuses/{sha}","languages_url":"https://api.github.com/repos/keboola/storage-api-console/languages","stargazers_url":"https://api.github.com/repos/keboola/storage-api-console/stargazers","contributors_url":"https://api.github.com/repos/keboola/storage-api-console/contributors","subscribers_url":"https://api.github.com/repos/keboola/storage-api-console/subscribers","subscription_url":"https://api.github.com/repos/keboola/storage-api-console/subscription","commits_url":"https://api.github.com/repos/keboola/storage-api-console/commits{/sha}","git_commits_url":"https://api.github.com/repos/keboola/storage-api-console/git/commits{/sha}","comments_url":"https://api.github.com/repos/keboola/storage-api-console/comments{/number}","issue_comment_url":"https://api.github.com/repos/keboola/storage-api-console/issues/comments{/number}","contents_url":"https://api.github.com/repos/keboola/storage-api-console/contents/{+path}","compare_url":"https://api.github.com/repos/keboola/storage-api-console/compare/{base}...{head}","merges_url":"https://api.github.com/repos/keboola/storage-api-console/merges","archive_url":"https://api.github.com/repos/keboola/storage-api-console/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/keboola/storage-api-console/downloads","issues_url":"https://api.github.com/repos/keboola/storage-api-console/issues{/number}","pulls_url":"https://api.github.com/repos/keboola/storage-api-console/pulls{/number}","milestones_url":"https://api.github.com/repos/keboola/storage-api-console/milestones{/number}","notifications_url":"https://api.github.com/repos/keboola/storage-api-console/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/keboola/storage-api-console/labels{/name}","releases_url":"https://api.github.com/repos/keboola/storage-api-console/releases{/id}","deployments_url":"https://api.github.com/repos/keboola/storage-api-console/deployments","created_at":"2012-07-22T19:00:01Z","updated_at":"2018-09-20T13:19:44Z","pushed_at":"2018-09-25T17:46:34Z","git_url":"git://github.com/keboola/storage-api-console.git","ssh_url":"git@github.com:keboola/storage-api-console.git","clone_url":"https://github.com/keboola/storage-api-console.git","svn_url":"https://github.com/keboola/storage-api-console","homepage":"https://storage-api-console.keboola.com/","size":7501,"stargazers_count":4,"watchers_count":4,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":14,"license":null,"forks":0,"open_issues":14,"watchers":4,"default_branch":"master"}},"base":{"label":"keboola:master","ref":"master","sha":"2bf41158ca13e1f515f00b911abbe53f1b544392","user":{"login":"keboola","id":1424387,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE0MjQzODc=","avatar_url":"https://avatars1.githubusercontent.com/u/1424387?v=4","gravatar_id":"","url":"https://api.github.com/users/keboola","html_url":"https://github.com/keboola","followers_url":"https://api.github.com/users/keboola/followers","following_url":"https://api.github.com/users/keboola/following{/other_user}","gists_url":"https://api.github.com/users/keboola/gists{/gist_id}","starred_url":"https://api.github.com/users/keboola/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/keboola/subscriptions","organizations_url":"https://api.github.com/users/keboola/orgs","repos_url":"https://api.github.com/users/keboola/repos","events_url":"https://api.github.com/users/keboola/events{/privacy}","received_events_url":"https://api.github.com/users/keboola/received_events","type":"Organization","site_admin":false},"repo":{"id":5143889,"node_id":"MDEwOlJlcG9zaXRvcnk1MTQzODg5","name":"storage-api-console","full_name":"keboola/storage-api-console","private":false,"owner":{"login":"keboola","id":1424387,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE0MjQzODc=","avatar_url":"https://avatars1.githubusercontent.com/u/1424387?v=4","gravatar_id":"","url":"https://api.github.com/users/keboola","html_url":"https://github.com/keboola","followers_url":"https://api.github.com/users/keboola/followers","following_url":"https://api.github.com/users/keboola/following{/other_user}","gists_url":"https://api.github.com/users/keboola/gists{/gist_id}","starred_url":"https://api.github.com/users/keboola/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/keboola/subscriptions","organizations_url":"https://api.github.com/users/keboola/orgs","repos_url":"https://api.github.com/users/keboola/repos","events_url":"https://api.github.com/users/keboola/events{/privacy}","received_events_url":"https://api.github.com/users/keboola/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/keboola/storage-api-console","description":"UI For Keboola Storage API","fork":false,"url":"https://api.github.com/repos/keboola/storage-api-console","forks_url":"https://api.github.com/repos/keboola/storage-api-console/forks","keys_url":"https://api.github.com/repos/keboola/storage-api-console/keys{/key_id}","collaborators_url":"https://api.github.com/repos/keboola/storage-api-console/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/keboola/storage-api-console/teams","hooks_url":"https://api.github.com/repos/keboola/storage-api-console/hooks","issue_events_url":"https://api.github.com/repos/keboola/storage-api-console/issues/events{/number}","events_url":"https://api.github.com/repos/keboola/storage-api-console/events","assignees_url":"https://api.github.com/repos/keboola/storage-api-console/assignees{/user}","branches_url":"https://api.github.com/repos/keboola/storage-api-console/branches{/branch}","tags_url":"https://api.github.com/repos/keboola/storage-api-console/tags","blobs_url":"https://api.github.com/repos/keboola/storage-api-console/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/keboola/storage-api-console/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/keboola/storage-api-console/git/refs{/sha}","trees_url":"https://api.github.com/repos/keboola/storage-api-console/git/trees{/sha}","statuses_url":"https://api.github.com/repos/keboola/storage-api-console/statuses/{sha}","languages_url":"https://api.github.com/repos/keboola/storage-api-console/languages","stargazers_url":"https://api.github.com/repos/keboola/storage-api-console/stargazers","contributors_url":"https://api.github.com/repos/keboola/storage-api-console/contributors","subscribers_url":"https://api.github.com/repos/keboola/storage-api-console/subscribers","subscription_url":"https://api.github.com/repos/keboola/storage-api-console/subscription","commits_url":"https://api.github.com/repos/keboola/storage-api-console/commits{/sha}","git_commits_url":"https://api.github.com/repos/keboola/storage-api-console/git/commits{/sha}","comments_url":"https://api.github.com/repos/keboola/storage-api-console/comments{/number}","issue_comment_url":"https://api.github.com/repos/keboola/storage-api-console/issues/comments{/number}","contents_url":"https://api.github.com/repos/keboola/storage-api-console/contents/{+path}","compare_url":"https://api.github.com/repos/keboola/storage-api-console/compare/{base}...{head}","merges_url":"https://api.github.com/repos/keboola/storage-api-console/merges","archive_url":"https://api.github.com/repos/keboola/storage-api-console/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/keboola/storage-api-console/downloads","issues_url":"https://api.github.com/repos/keboola/storage-api-console/issues{/number}","pulls_url":"https://api.github.com/repos/keboola/storage-api-console/pulls{/number}","milestones_url":"https://api.github.com/repos/keboola/storage-api-console/milestones{/number}","notifications_url":"https://api.github.com/repos/keboola/storage-api-console/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/keboola/storage-api-console/labels{/name}","releases_url":"https://api.github.com/repos/keboola/storage-api-console/releases{/id}","deployments_url":"https://api.github.com/repos/keboola/storage-api-console/deployments","created_at":"2012-07-22T19:00:01Z","updated_at":"2018-09-20T13:19:44Z","pushed_at":"2018-09-25T17:46:34Z","git_url":"git://github.com/keboola/storage-api-console.git","ssh_url":"git@github.com:keboola/storage-api-console.git","clone_url":"https://github.com/keboola/storage-api-console.git","svn_url":"https://github.com/keboola/storage-api-console","homepage":"https://storage-api-console.keboola.com/","size":7501,"stargazers_count":4,"watchers_count":4,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":14,"license":null,"forks":0,"open_issues":14,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/keboola/storage-api-console/pulls/72"},"html":{"href":"https://github.com/keboola/storage-api-console/pull/72"},"issue":{"href":"https://api.github.com/repos/keboola/storage-api-console/issues/72"},"comments":{"href":"https://api.github.com/repos/keboola/storage-api-console/issues/72/comments"},"review_comments":{"href":"https://api.github.com/repos/keboola/storage-api-console/pulls/72/comments"},"review_comment":{"href":"https://api.github.com/repos/keboola/storage-api-console/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/keboola/storage-api-console/pulls/72/commits"},"statuses":{"href":"https://api.github.com/repos/keboola/storage-api-console/statuses/30e55d9fade7af0d21e064f406225882226ef011"}},"author_association":"NONE"}}
{"actor":{"display_login":"Halama"}}