{"action":"created","comment":{"url":"https://api.github.com/repos/foyt/fni/pulls/comments/65820083","id":65820083,"diff_hunk":"@@ -32,13 +32,48 @@\n       }, this);\n     },\n     \n-    _createCreateMaterialUser: function (userId, role) {\n+    _createCreateMaterialShareUser: function (userId, role) {\n       return $.proxy(function (callback) {\n-        this._restCall(this._getMaterialClient(true).materials.users.create(this.options.materialId, {\n+        this._restCall(this._getMaterialClient(true).materials.shareUsers.create(this.options.materialId, {\n           userId: userId,\n           role: role\n-        }), $.proxy(function (err, materialUser) {\n-          callback(err, materialUser);\n+        }), $.proxy(function (err, shareUser) {\n+          callback(err, shareUser);\n+        }, this));\n+      }, this);\n+    },\n+    \n+    _createRemoveMaterialShareGroup: function (id) {\n+      return $.proxy(function (callback) {\n+        this._restCall(this._getMaterialClient().materials.shareGroups.del(this.options.materialId, id), $.proxy(function (err) {\n+          callback(err);\n+        }, this));\n+      }, this);\n+    },\n+    ","path":"webapp/src/main/webapp/resources/scripts/gui/material-share-dialog.js","position":53,"original_position":53,"commit_id":"d493f008051d49838a0bf64bc3e24f17a81eba77","original_commit_id":"d493f008051d49838a0bf64bc3e24f17a81eba77","user":{"login":"anttileppa","id":1730736,"avatar_url":"https://avatars.githubusercontent.com/u/1730736?v=3","gravatar_id":"","url":"https://api.github.com/users/anttileppa","html_url":"https://github.com/anttileppa","followers_url":"https://api.github.com/users/anttileppa/followers","following_url":"https://api.github.com/users/anttileppa/following{/other_user}","gists_url":"https://api.github.com/users/anttileppa/gists{/gist_id}","starred_url":"https://api.github.com/users/anttileppa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anttileppa/subscriptions","organizations_url":"https://api.github.com/users/anttileppa/orgs","repos_url":"https://api.github.com/users/anttileppa/repos","events_url":"https://api.github.com/users/anttileppa/events{/privacy}","received_events_url":"https://api.github.com/users/anttileppa/received_events","type":"User","site_admin":false},"body":"![MINOR](https://raw.githubusercontent.com/SonarCommunity/sonar-github/master/images/severity-minor.png) Remove the useless trailing whitespaces at the end of this line. [![rule](https://raw.githubusercontent.com/SonarCommunity/sonar-github/master/images/rule.png)](https://sonar.forgeandillusion.net/coding_rules#rule_key=javascript%3ATrailingWhitespace)\n","created_at":"2016-06-05T16:14:50Z","updated_at":"2016-06-05T16:14:50Z","html_url":"https://github.com/foyt/fni/pull/436#discussion_r65820083","pull_request_url":"https://api.github.com/repos/foyt/fni/pulls/436","_links":{"self":{"href":"https://api.github.com/repos/foyt/fni/pulls/comments/65820083"},"html":{"href":"https://github.com/foyt/fni/pull/436#discussion_r65820083"},"pull_request":{"href":"https://api.github.com/repos/foyt/fni/pulls/436"}}},"pull_request":{"url":"https://api.github.com/repos/foyt/fni/pulls/436","id":72624677,"html_url":"https://github.com/foyt/fni/pull/436","diff_url":"https://github.com/foyt/fni/pull/436.diff","patch_url":"https://github.com/foyt/fni/pull/436.patch","issue_url":"https://api.github.com/repos/foyt/fni/issues/436","number":436,"state":"open","locked":false,"title":"Ftr 167 group shares","user":{"login":"anttileppa","id":1730736,"avatar_url":"https://avatars.githubusercontent.com/u/1730736?v=3","gravatar_id":"","url":"https://api.github.com/users/anttileppa","html_url":"https://github.com/anttileppa","followers_url":"https://api.github.com/users/anttileppa/followers","following_url":"https://api.github.com/users/anttileppa/following{/other_user}","gists_url":"https://api.github.com/users/anttileppa/gists{/gist_id}","starred_url":"https://api.github.com/users/anttileppa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anttileppa/subscriptions","organizations_url":"https://api.github.com/users/anttileppa/orgs","repos_url":"https://api.github.com/users/anttileppa/repos","events_url":"https://api.github.com/users/anttileppa/events{/privacy}","received_events_url":"https://api.github.com/users/anttileppa/received_events","type":"User","site_admin":false},"body":"Fixes #167 ","created_at":"2016-06-05T09:17:44Z","updated_at":"2016-06-05T16:14:50Z","closed_at":null,"merged_at":null,"merge_commit_sha":"af05daf3a4139fe0671d41f7a3eb9fd85e57d140","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/foyt/fni/pulls/436/commits","review_comments_url":"https://api.github.com/repos/foyt/fni/pulls/436/comments","review_comment_url":"https://api.github.com/repos/foyt/fni/pulls/comments{/number}","comments_url":"https://api.github.com/repos/foyt/fni/issues/436/comments","statuses_url":"https://api.github.com/repos/foyt/fni/statuses/d493f008051d49838a0bf64bc3e24f17a81eba77","head":{"label":"foyt:FTR-167_group_shares","ref":"FTR-167_group_shares","sha":"d493f008051d49838a0bf64bc3e24f17a81eba77","user":{"login":"foyt","id":4209126,"avatar_url":"https://avatars.githubusercontent.com/u/4209126?v=3","gravatar_id":"","url":"https://api.github.com/users/foyt","html_url":"https://github.com/foyt","followers_url":"https://api.github.com/users/foyt/followers","following_url":"https://api.github.com/users/foyt/following{/other_user}","gists_url":"https://api.github.com/users/foyt/gists{/gist_id}","starred_url":"https://api.github.com/users/foyt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/foyt/subscriptions","organizations_url":"https://api.github.com/users/foyt/orgs","repos_url":"https://api.github.com/users/foyt/repos","events_url":"https://api.github.com/users/foyt/events{/privacy}","received_events_url":"https://api.github.com/users/foyt/received_events","type":"Organization","site_admin":false},"repo":{"id":10878758,"name":"fni","full_name":"foyt/fni","owner":{"login":"foyt","id":4209126,"avatar_url":"https://avatars.githubusercontent.com/u/4209126?v=3","gravatar_id":"","url":"https://api.github.com/users/foyt","html_url":"https://github.com/foyt","followers_url":"https://api.github.com/users/foyt/followers","following_url":"https://api.github.com/users/foyt/following{/other_user}","gists_url":"https://api.github.com/users/foyt/gists{/gist_id}","starred_url":"https://api.github.com/users/foyt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/foyt/subscriptions","organizations_url":"https://api.github.com/users/foyt/orgs","repos_url":"https://api.github.com/users/foyt/repos","events_url":"https://api.github.com/users/foyt/events{/privacy}","received_events_url":"https://api.github.com/users/foyt/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/foyt/fni","description":"Forge & Illusion","fork":false,"url":"https://api.github.com/repos/foyt/fni","forks_url":"https://api.github.com/repos/foyt/fni/forks","keys_url":"https://api.github.com/repos/foyt/fni/keys{/key_id}","collaborators_url":"https://api.github.com/repos/foyt/fni/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/foyt/fni/teams","hooks_url":"https://api.github.com/repos/foyt/fni/hooks","issue_events_url":"https://api.github.com/repos/foyt/fni/issues/events{/number}","events_url":"https://api.github.com/repos/foyt/fni/events","assignees_url":"https://api.github.com/repos/foyt/fni/assignees{/user}","branches_url":"https://api.github.com/repos/foyt/fni/branches{/branch}","tags_url":"https://api.github.com/repos/foyt/fni/tags","blobs_url":"https://api.github.com/repos/foyt/fni/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/foyt/fni/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/foyt/fni/git/refs{/sha}","trees_url":"https://api.github.com/repos/foyt/fni/git/trees{/sha}","statuses_url":"https://api.github.com/repos/foyt/fni/statuses/{sha}","languages_url":"https://api.github.com/repos/foyt/fni/languages","stargazers_url":"https://api.github.com/repos/foyt/fni/stargazers","contributors_url":"https://api.github.com/repos/foyt/fni/contributors","subscribers_url":"https://api.github.com/repos/foyt/fni/subscribers","subscription_url":"https://api.github.com/repos/foyt/fni/subscription","commits_url":"https://api.github.com/repos/foyt/fni/commits{/sha}","git_commits_url":"https://api.github.com/repos/foyt/fni/git/commits{/sha}","comments_url":"https://api.github.com/repos/foyt/fni/comments{/number}","issue_comment_url":"https://api.github.com/repos/foyt/fni/issues/comments{/number}","contents_url":"https://api.github.com/repos/foyt/fni/contents/{+path}","compare_url":"https://api.github.com/repos/foyt/fni/compare/{base}...{head}","merges_url":"https://api.github.com/repos/foyt/fni/merges","archive_url":"https://api.github.com/repos/foyt/fni/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/foyt/fni/downloads","issues_url":"https://api.github.com/repos/foyt/fni/issues{/number}","pulls_url":"https://api.github.com/repos/foyt/fni/pulls{/number}","milestones_url":"https://api.github.com/repos/foyt/fni/milestones{/number}","notifications_url":"https://api.github.com/repos/foyt/fni/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/foyt/fni/labels{/name}","releases_url":"https://api.github.com/repos/foyt/fni/releases{/id}","deployments_url":"https://api.github.com/repos/foyt/fni/deployments","created_at":"2013-06-23T05:48:36Z","updated_at":"2016-02-07T10:24:24Z","pushed_at":"2016-06-05T11:24:12Z","git_url":"git://github.com/foyt/fni.git","ssh_url":"git@github.com:foyt/fni.git","clone_url":"https://github.com/foyt/fni.git","svn_url":"https://github.com/foyt/fni","homepage":null,"size":18162,"stargazers_count":1,"watchers_count":1,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":71,"forks":1,"open_issues":71,"watchers":1,"default_branch":"devel"}},"base":{"label":"foyt:devel","ref":"devel","sha":"c21971045bd13d8fa0071efcc61eac50baa5d9d0","user":{"login":"foyt","id":4209126,"avatar_url":"https://avatars.githubusercontent.com/u/4209126?v=3","gravatar_id":"","url":"https://api.github.com/users/foyt","html_url":"https://github.com/foyt","followers_url":"https://api.github.com/users/foyt/followers","following_url":"https://api.github.com/users/foyt/following{/other_user}","gists_url":"https://api.github.com/users/foyt/gists{/gist_id}","starred_url":"https://api.github.com/users/foyt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/foyt/subscriptions","organizations_url":"https://api.github.com/users/foyt/orgs","repos_url":"https://api.github.com/users/foyt/repos","events_url":"https://api.github.com/users/foyt/events{/privacy}","received_events_url":"https://api.github.com/users/foyt/received_events","type":"Organization","site_admin":false},"repo":{"id":10878758,"name":"fni","full_name":"foyt/fni","owner":{"login":"foyt","id":4209126,"avatar_url":"https://avatars.githubusercontent.com/u/4209126?v=3","gravatar_id":"","url":"https://api.github.com/users/foyt","html_url":"https://github.com/foyt","followers_url":"https://api.github.com/users/foyt/followers","following_url":"https://api.github.com/users/foyt/following{/other_user}","gists_url":"https://api.github.com/users/foyt/gists{/gist_id}","starred_url":"https://api.github.com/users/foyt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/foyt/subscriptions","organizations_url":"https://api.github.com/users/foyt/orgs","repos_url":"https://api.github.com/users/foyt/repos","events_url":"https://api.github.com/users/foyt/events{/privacy}","received_events_url":"https://api.github.com/users/foyt/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/foyt/fni","description":"Forge & Illusion","fork":false,"url":"https://api.github.com/repos/foyt/fni","forks_url":"https://api.github.com/repos/foyt/fni/forks","keys_url":"https://api.github.com/repos/foyt/fni/keys{/key_id}","collaborators_url":"https://api.github.com/repos/foyt/fni/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/foyt/fni/teams","hooks_url":"https://api.github.com/repos/foyt/fni/hooks","issue_events_url":"https://api.github.com/repos/foyt/fni/issues/events{/number}","events_url":"https://api.github.com/repos/foyt/fni/events","assignees_url":"https://api.github.com/repos/foyt/fni/assignees{/user}","branches_url":"https://api.github.com/repos/foyt/fni/branches{/branch}","tags_url":"https://api.github.com/repos/foyt/fni/tags","blobs_url":"https://api.github.com/repos/foyt/fni/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/foyt/fni/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/foyt/fni/git/refs{/sha}","trees_url":"https://api.github.com/repos/foyt/fni/git/trees{/sha}","statuses_url":"https://api.github.com/repos/foyt/fni/statuses/{sha}","languages_url":"https://api.github.com/repos/foyt/fni/languages","stargazers_url":"https://api.github.com/repos/foyt/fni/stargazers","contributors_url":"https://api.github.com/repos/foyt/fni/contributors","subscribers_url":"https://api.github.com/repos/foyt/fni/subscribers","subscription_url":"https://api.github.com/repos/foyt/fni/subscription","commits_url":"https://api.github.com/repos/foyt/fni/commits{/sha}","git_commits_url":"https://api.github.com/repos/foyt/fni/git/commits{/sha}","comments_url":"https://api.github.com/repos/foyt/fni/comments{/number}","issue_comment_url":"https://api.github.com/repos/foyt/fni/issues/comments{/number}","contents_url":"https://api.github.com/repos/foyt/fni/contents/{+path}","compare_url":"https://api.github.com/repos/foyt/fni/compare/{base}...{head}","merges_url":"https://api.github.com/repos/foyt/fni/merges","archive_url":"https://api.github.com/repos/foyt/fni/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/foyt/fni/downloads","issues_url":"https://api.github.com/repos/foyt/fni/issues{/number}","pulls_url":"https://api.github.com/repos/foyt/fni/pulls{/number}","milestones_url":"https://api.github.com/repos/foyt/fni/milestones{/number}","notifications_url":"https://api.github.com/repos/foyt/fni/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/foyt/fni/labels{/name}","releases_url":"https://api.github.com/repos/foyt/fni/releases{/id}","deployments_url":"https://api.github.com/repos/foyt/fni/deployments","created_at":"2013-06-23T05:48:36Z","updated_at":"2016-02-07T10:24:24Z","pushed_at":"2016-06-05T11:24:12Z","git_url":"git://github.com/foyt/fni.git","ssh_url":"git@github.com:foyt/fni.git","clone_url":"https://github.com/foyt/fni.git","svn_url":"https://github.com/foyt/fni","homepage":null,"size":18162,"stargazers_count":1,"watchers_count":1,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":71,"forks":1,"open_issues":71,"watchers":1,"default_branch":"devel"}},"_links":{"self":{"href":"https://api.github.com/repos/foyt/fni/pulls/436"},"html":{"href":"https://github.com/foyt/fni/pull/436"},"issue":{"href":"https://api.github.com/repos/foyt/fni/issues/436"},"comments":{"href":"https://api.github.com/repos/foyt/fni/issues/436/comments"},"review_comments":{"href":"https://api.github.com/repos/foyt/fni/pulls/436/comments"},"review_comment":{"href":"https://api.github.com/repos/foyt/fni/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/foyt/fni/pulls/436/commits"},"statuses":{"href":"https://api.github.com/repos/foyt/fni/statuses/d493f008051d49838a0bf64bc3e24f17a81eba77"}}}}
{"actor":{"display_login":"anttileppa"}}