{"action":"created","comment":{"url":"https://api.github.com/repos/CESNET/perun/pulls/comments/208198427","pull_request_review_id":143954544,"id":208198427,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwODE5ODQyNw==","diff_hunk":"@@ -0,0 +1,65 @@\n+#!/usr/bin/perl\n+\n+use strict;\n+use warnings;\n+use Getopt::Long qw(:config no_ignore_case);\n+use Text::ASCIITable;\n+use Perun::Agent;\n+use Perun::Common qw(printMessage);\n+#use Data::Dumper;\n+\n+sub help {\n+\treturn qq{\n+\tSets attribute rights of roles\n+\t--------------------------------\n+\tAvailable options:\n+\t--attributeId     | -a attribute identifier\n+\t--attributeName   | -A attribute name (including namespace)\n+\t--userRole        | -R user role (VOADMIN/GROUPADMIN/FACILITYADMIN/SELF)\n+\t--rolesRights     | -r list of rights for roles (READ WRITE)\n+\t--batch           | -b batch\n+\t--help            | -h prints this help\n+\t};\n+}\n+\n+my ($attributeId, $attributeName, $reqRole, @rights, $batch);\n+GetOptions(\"help|h\"   => sub {\n+\t\tprint help;\n+\t\texit 0;\n+\t},\n+\t\"attributeId|a=i\"       => \\$attributeId,\n+\t\"attributeName|A=s\"     => \\$attributeName,\n+\t\"userRole|R=s\"          => \\$reqRole,\n+\t'rolesRights|r=s@{1,}'  => \\@rights,","path":"perun-cli/setAttributeRights","position":33,"original_position":33,"commit_id":"d1b1a4913f1187017b0709b820f5e6d2ce25cd4b","original_commit_id":"d1b1a4913f1187017b0709b820f5e6d2ce25cd4b","user":{"login":"zlamalp","id":1336607,"node_id":"MDQ6VXNlcjEzMzY2MDc=","avatar_url":"https://avatars0.githubusercontent.com/u/1336607?v=4","gravatar_id":"","url":"https://api.github.com/users/zlamalp","html_url":"https://github.com/zlamalp","followers_url":"https://api.github.com/users/zlamalp/followers","following_url":"https://api.github.com/users/zlamalp/following{/other_user}","gists_url":"https://api.github.com/users/zlamalp/gists{/gist_id}","starred_url":"https://api.github.com/users/zlamalp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zlamalp/subscriptions","organizations_url":"https://api.github.com/users/zlamalp/orgs","repos_url":"https://api.github.com/users/zlamalp/repos","events_url":"https://api.github.com/users/zlamalp/events{/privacy}","received_events_url":"https://api.github.com/users/zlamalp/received_events","type":"User","site_admin":false},"body":"Right now tool can't remove attribute rights, since ``-r`` param is required to have value by the CLI, but empty list / null should be allowed in perun API. Please test it and allow removal either by another CLI tool or allowing empty list of rights.","created_at":"2018-08-07T11:42:20Z","updated_at":"2018-08-07T11:42:47Z","html_url":"https://github.com/CESNET/perun/pull/1927#discussion_r208198427","pull_request_url":"https://api.github.com/repos/CESNET/perun/pulls/1927","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/CESNET/perun/pulls/comments/208198427"},"html":{"href":"https://github.com/CESNET/perun/pull/1927#discussion_r208198427"},"pull_request":{"href":"https://api.github.com/repos/CESNET/perun/pulls/1927"}}},"pull_request":{"url":"https://api.github.com/repos/CESNET/perun/pulls/1927","id":206626516,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA2NjI2NTE2","html_url":"https://github.com/CESNET/perun/pull/1927","diff_url":"https://github.com/CESNET/perun/pull/1927.diff","patch_url":"https://github.com/CESNET/perun/pull/1927.patch","issue_url":"https://api.github.com/repos/CESNET/perun/issues/1927","number":1927,"state":"open","locked":false,"title":"Tools for get and set attribute rights","user":{"login":"zoraseb","id":5907998,"node_id":"MDQ6VXNlcjU5MDc5OTg=","avatar_url":"https://avatars0.githubusercontent.com/u/5907998?v=4","gravatar_id":"","url":"https://api.github.com/users/zoraseb","html_url":"https://github.com/zoraseb","followers_url":"https://api.github.com/users/zoraseb/followers","following_url":"https://api.github.com/users/zoraseb/following{/other_user}","gists_url":"https://api.github.com/users/zoraseb/gists{/gist_id}","starred_url":"https://api.github.com/users/zoraseb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zoraseb/subscriptions","organizations_url":"https://api.github.com/users/zoraseb/orgs","repos_url":"https://api.github.com/users/zoraseb/repos","events_url":"https://api.github.com/users/zoraseb/events{/privacy}","received_events_url":"https://api.github.com/users/zoraseb/received_events","type":"User","site_admin":false},"body":"Tool getAttributeRights lists permissions READ, WRITE or both for\r\nroles SELF,VOADMIN,GROUPADMIN and FACILITYADMIN\r\nBy tool setAttributeRights can be set permissions READ, WRITE or both\r\nto selected role.","created_at":"2018-08-07T08:58:42Z","updated_at":"2018-08-07T11:42:47Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6bda5ed1b7c684880396c7472edcbfd0dd30a55d","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/CESNET/perun/pulls/1927/commits","review_comments_url":"https://api.github.com/repos/CESNET/perun/pulls/1927/comments","review_comment_url":"https://api.github.com/repos/CESNET/perun/pulls/comments{/number}","comments_url":"https://api.github.com/repos/CESNET/perun/issues/1927/comments","statuses_url":"https://api.github.com/repos/CESNET/perun/statuses/d1b1a4913f1187017b0709b820f5e6d2ce25cd4b","head":{"label":"zoraseb:attrrights","ref":"attrrights","sha":"d1b1a4913f1187017b0709b820f5e6d2ce25cd4b","user":{"login":"zoraseb","id":5907998,"node_id":"MDQ6VXNlcjU5MDc5OTg=","avatar_url":"https://avatars0.githubusercontent.com/u/5907998?v=4","gravatar_id":"","url":"https://api.github.com/users/zoraseb","html_url":"https://github.com/zoraseb","followers_url":"https://api.github.com/users/zoraseb/followers","following_url":"https://api.github.com/users/zoraseb/following{/other_user}","gists_url":"https://api.github.com/users/zoraseb/gists{/gist_id}","starred_url":"https://api.github.com/users/zoraseb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zoraseb/subscriptions","organizations_url":"https://api.github.com/users/zoraseb/orgs","repos_url":"https://api.github.com/users/zoraseb/repos","events_url":"https://api.github.com/users/zoraseb/events{/privacy}","received_events_url":"https://api.github.com/users/zoraseb/received_events","type":"User","site_admin":false},"repo":{"id":14297118,"node_id":"MDEwOlJlcG9zaXRvcnkxNDI5NzExOA==","name":"perun","full_name":"zoraseb/perun","owner":{"login":"zoraseb","id":5907998,"node_id":"MDQ6VXNlcjU5MDc5OTg=","avatar_url":"https://avatars0.githubusercontent.com/u/5907998?v=4","gravatar_id":"","url":"https://api.github.com/users/zoraseb","html_url":"https://github.com/zoraseb","followers_url":"https://api.github.com/users/zoraseb/followers","following_url":"https://api.github.com/users/zoraseb/following{/other_user}","gists_url":"https://api.github.com/users/zoraseb/gists{/gist_id}","starred_url":"https://api.github.com/users/zoraseb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zoraseb/subscriptions","organizations_url":"https://api.github.com/users/zoraseb/orgs","repos_url":"https://api.github.com/users/zoraseb/repos","events_url":"https://api.github.com/users/zoraseb/events{/privacy}","received_events_url":"https://api.github.com/users/zoraseb/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/zoraseb/perun","description":"Users, Groups, Services and Resources Management System","fork":true,"url":"https://api.github.com/repos/zoraseb/perun","forks_url":"https://api.github.com/repos/zoraseb/perun/forks","keys_url":"https://api.github.com/repos/zoraseb/perun/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zoraseb/perun/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zoraseb/perun/teams","hooks_url":"https://api.github.com/repos/zoraseb/perun/hooks","issue_events_url":"https://api.github.com/repos/zoraseb/perun/issues/events{/number}","events_url":"https://api.github.com/repos/zoraseb/perun/events","assignees_url":"https://api.github.com/repos/zoraseb/perun/assignees{/user}","branches_url":"https://api.github.com/repos/zoraseb/perun/branches{/branch}","tags_url":"https://api.github.com/repos/zoraseb/perun/tags","blobs_url":"https://api.github.com/repos/zoraseb/perun/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zoraseb/perun/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zoraseb/perun/git/refs{/sha}","trees_url":"https://api.github.com/repos/zoraseb/perun/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zoraseb/perun/statuses/{sha}","languages_url":"https://api.github.com/repos/zoraseb/perun/languages","stargazers_url":"https://api.github.com/repos/zoraseb/perun/stargazers","contributors_url":"https://api.github.com/repos/zoraseb/perun/contributors","subscribers_url":"https://api.github.com/repos/zoraseb/perun/subscribers","subscription_url":"https://api.github.com/repos/zoraseb/perun/subscription","commits_url":"https://api.github.com/repos/zoraseb/perun/commits{/sha}","git_commits_url":"https://api.github.com/repos/zoraseb/perun/git/commits{/sha}","comments_url":"https://api.github.com/repos/zoraseb/perun/comments{/number}","issue_comment_url":"https://api.github.com/repos/zoraseb/perun/issues/comments{/number}","contents_url":"https://api.github.com/repos/zoraseb/perun/contents/{+path}","compare_url":"https://api.github.com/repos/zoraseb/perun/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zoraseb/perun/merges","archive_url":"https://api.github.com/repos/zoraseb/perun/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zoraseb/perun/downloads","issues_url":"https://api.github.com/repos/zoraseb/perun/issues{/number}","pulls_url":"https://api.github.com/repos/zoraseb/perun/pulls{/number}","milestones_url":"https://api.github.com/repos/zoraseb/perun/milestones{/number}","notifications_url":"https://api.github.com/repos/zoraseb/perun/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zoraseb/perun/labels{/name}","releases_url":"https://api.github.com/repos/zoraseb/perun/releases{/id}","deployments_url":"https://api.github.com/repos/zoraseb/perun/deployments","created_at":"2013-11-11T09:52:05Z","updated_at":"2018-07-18T12:04:06Z","pushed_at":"2018-08-07T08:51:36Z","git_url":"git://github.com/zoraseb/perun.git","ssh_url":"git@github.com:zoraseb/perun.git","clone_url":"https://github.com/zoraseb/perun.git","svn_url":"https://github.com/zoraseb/perun","homepage":null,"size":32292,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"bsd-2-clause","name":"BSD 2-Clause \"Simplified\" License","spdx_id":"BSD-2-Clause","url":"https://api.github.com/licenses/bsd-2-clause","node_id":"MDc6TGljZW5zZTQ="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"CESNET:master","ref":"master","sha":"c740d341d2674399e80b32bead66ef6942afc095","user":{"login":"CESNET","id":1116469,"node_id":"MDEyOk9yZ2FuaXphdGlvbjExMTY0Njk=","avatar_url":"https://avatars2.githubusercontent.com/u/1116469?v=4","gravatar_id":"","url":"https://api.github.com/users/CESNET","html_url":"https://github.com/CESNET","followers_url":"https://api.github.com/users/CESNET/followers","following_url":"https://api.github.com/users/CESNET/following{/other_user}","gists_url":"https://api.github.com/users/CESNET/gists{/gist_id}","starred_url":"https://api.github.com/users/CESNET/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CESNET/subscriptions","organizations_url":"https://api.github.com/users/CESNET/orgs","repos_url":"https://api.github.com/users/CESNET/repos","events_url":"https://api.github.com/users/CESNET/events{/privacy}","received_events_url":"https://api.github.com/users/CESNET/received_events","type":"Organization","site_admin":false},"repo":{"id":4085998,"node_id":"MDEwOlJlcG9zaXRvcnk0MDg1OTk4","name":"perun","full_name":"CESNET/perun","owner":{"login":"CESNET","id":1116469,"node_id":"MDEyOk9yZ2FuaXphdGlvbjExMTY0Njk=","avatar_url":"https://avatars2.githubusercontent.com/u/1116469?v=4","gravatar_id":"","url":"https://api.github.com/users/CESNET","html_url":"https://github.com/CESNET","followers_url":"https://api.github.com/users/CESNET/followers","following_url":"https://api.github.com/users/CESNET/following{/other_user}","gists_url":"https://api.github.com/users/CESNET/gists{/gist_id}","starred_url":"https://api.github.com/users/CESNET/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CESNET/subscriptions","organizations_url":"https://api.github.com/users/CESNET/orgs","repos_url":"https://api.github.com/users/CESNET/repos","events_url":"https://api.github.com/users/CESNET/events{/privacy}","received_events_url":"https://api.github.com/users/CESNET/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/CESNET/perun","description":"Identity and Access Management System","fork":false,"url":"https://api.github.com/repos/CESNET/perun","forks_url":"https://api.github.com/repos/CESNET/perun/forks","keys_url":"https://api.github.com/repos/CESNET/perun/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CESNET/perun/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CESNET/perun/teams","hooks_url":"https://api.github.com/repos/CESNET/perun/hooks","issue_events_url":"https://api.github.com/repos/CESNET/perun/issues/events{/number}","events_url":"https://api.github.com/repos/CESNET/perun/events","assignees_url":"https://api.github.com/repos/CESNET/perun/assignees{/user}","branches_url":"https://api.github.com/repos/CESNET/perun/branches{/branch}","tags_url":"https://api.github.com/repos/CESNET/perun/tags","blobs_url":"https://api.github.com/repos/CESNET/perun/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CESNET/perun/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CESNET/perun/git/refs{/sha}","trees_url":"https://api.github.com/repos/CESNET/perun/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CESNET/perun/statuses/{sha}","languages_url":"https://api.github.com/repos/CESNET/perun/languages","stargazers_url":"https://api.github.com/repos/CESNET/perun/stargazers","contributors_url":"https://api.github.com/repos/CESNET/perun/contributors","subscribers_url":"https://api.github.com/repos/CESNET/perun/subscribers","subscription_url":"https://api.github.com/repos/CESNET/perun/subscription","commits_url":"https://api.github.com/repos/CESNET/perun/commits{/sha}","git_commits_url":"https://api.github.com/repos/CESNET/perun/git/commits{/sha}","comments_url":"https://api.github.com/repos/CESNET/perun/comments{/number}","issue_comment_url":"https://api.github.com/repos/CESNET/perun/issues/comments{/number}","contents_url":"https://api.github.com/repos/CESNET/perun/contents/{+path}","compare_url":"https://api.github.com/repos/CESNET/perun/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CESNET/perun/merges","archive_url":"https://api.github.com/repos/CESNET/perun/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CESNET/perun/downloads","issues_url":"https://api.github.com/repos/CESNET/perun/issues{/number}","pulls_url":"https://api.github.com/repos/CESNET/perun/pulls{/number}","milestones_url":"https://api.github.com/repos/CESNET/perun/milestones{/number}","notifications_url":"https://api.github.com/repos/CESNET/perun/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CESNET/perun/labels{/name}","releases_url":"https://api.github.com/repos/CESNET/perun/releases{/id}","deployments_url":"https://api.github.com/repos/CESNET/perun/deployments","created_at":"2012-04-20T11:55:38Z","updated_at":"2018-08-03T06:02:06Z","pushed_at":"2018-08-07T09:40:06Z","git_url":"git://github.com/CESNET/perun.git","ssh_url":"git@github.com:CESNET/perun.git","clone_url":"https://github.com/CESNET/perun.git","svn_url":"https://github.com/CESNET/perun","homepage":"https://perun.cesnet.cz/web/","size":33637,"stargazers_count":29,"watchers_count":29,"language":"Java","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":50,"mirror_url":null,"archived":false,"open_issues_count":22,"license":{"key":"bsd-2-clause","name":"BSD 2-Clause \"Simplified\" License","spdx_id":"BSD-2-Clause","url":"https://api.github.com/licenses/bsd-2-clause","node_id":"MDc6TGljZW5zZTQ="},"forks":50,"open_issues":22,"watchers":29,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/CESNET/perun/pulls/1927"},"html":{"href":"https://github.com/CESNET/perun/pull/1927"},"issue":{"href":"https://api.github.com/repos/CESNET/perun/issues/1927"},"comments":{"href":"https://api.github.com/repos/CESNET/perun/issues/1927/comments"},"review_comments":{"href":"https://api.github.com/repos/CESNET/perun/pulls/1927/comments"},"review_comment":{"href":"https://api.github.com/repos/CESNET/perun/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/CESNET/perun/pulls/1927/commits"},"statuses":{"href":"https://api.github.com/repos/CESNET/perun/statuses/d1b1a4913f1187017b0709b820f5e6d2ce25cd4b"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"zlamalp"}}