{"action":"created","comment":{"url":"https://api.github.com/repos/eclipse/sw360/pulls/comments/231073468","pull_request_review_id":171954787,"id":231073468,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzMTA3MzQ2OA==","diff_hunk":"@@ -12,42 +12,65 @@\n \n import org.eclipse.sw360.datahandler.common.CommonUtils;\n import org.eclipse.sw360.datahandler.thrift.projects.Project;\n+import org.eclipse.sw360.datahandler.thrift.projects.ProjectService;\n+import org.eclipse.sw360.datahandler.thrift.users.User;\n import org.eclipse.sw360.portal.portlets.Sw360Portlet;\n import org.eclipse.sw360.portal.users.LifeRayUserSession;\n import org.apache.log4j.Logger;\n import org.apache.thrift.TException;\n+import org.eclipse.sw360.portal.users.UserCacheHolder;\n \n import javax.portlet.PortletException;\n import javax.portlet.RenderRequest;\n import javax.portlet.RenderResponse;\n import java.io.IOException;\n+import java.util.ArrayList;\n+import java.util.Collections;\n import java.util.List;\n \n-import static org.apache.log4j.Logger.getLogger;\n-\n /**\n  * Small homepage portlet\n  *\n  * @author cedric.bodet@tngtech.com\n  * @author gerrit.grenzebach@tngtech.com\n+ * @author ksoranko@verifa.io\n  */\n public class MyProjectsPortlet extends Sw360Portlet {\n \n-    private static final Logger log = getLogger(MyProjectsPortlet.class);\n+    private static final Logger LOGGER = Logger.getLogger(MyProjectsPortlet.class);\n \n     @Override\n     public void doView(RenderRequest request, RenderResponse response) throws IOException, PortletException {\n-        List<Project> projects=null;\n-\n+        List<Project> myProjects = new ArrayList<>();\n+        List<String> ids = new ArrayList<>();","path":"frontend/sw360-portlet/src/main/java/org/eclipse/sw360/portal/portlets/homepage/MyProjectsPortlet.java","position":39,"original_position":39,"commit_id":"9c0375d21f5a14089986a26818bfc1495ffce069","original_commit_id":"9c0375d21f5a14089986a26818bfc1495ffce069","user":{"login":"maierthomas","id":29916928,"node_id":"MDQ6VXNlcjI5OTE2OTI4","avatar_url":"https://avatars1.githubusercontent.com/u/29916928?v=4","gravatar_id":"","url":"https://api.github.com/users/maierthomas","html_url":"https://github.com/maierthomas","followers_url":"https://api.github.com/users/maierthomas/followers","following_url":"https://api.github.com/users/maierthomas/following{/other_user}","gists_url":"https://api.github.com/users/maierthomas/gists{/gist_id}","starred_url":"https://api.github.com/users/maierthomas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maierthomas/subscriptions","organizations_url":"https://api.github.com/users/maierthomas/orgs","repos_url":"https://api.github.com/users/maierthomas/repos","events_url":"https://api.github.com/users/maierthomas/events{/privacy}","received_events_url":"https://api.github.com/users/maierthomas/received_events","type":"User","site_admin":false},"body":"maybe `projectIds`","created_at":"2018-11-06T10:38:30Z","updated_at":"2018-11-06T10:56:05Z","html_url":"https://github.com/eclipse/sw360/pull/392#discussion_r231073468","pull_request_url":"https://api.github.com/repos/eclipse/sw360/pulls/392","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/eclipse/sw360/pulls/comments/231073468"},"html":{"href":"https://github.com/eclipse/sw360/pull/392#discussion_r231073468"},"pull_request":{"href":"https://api.github.com/repos/eclipse/sw360/pulls/392"}}},"pull_request":{"url":"https://api.github.com/repos/eclipse/sw360/pulls/392","id":227536337,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI3NTM2MzM3","html_url":"https://github.com/eclipse/sw360/pull/392","diff_url":"https://github.com/eclipse/sw360/pull/392.diff","patch_url":"https://github.com/eclipse/sw360/pull/392.patch","issue_url":"https://api.github.com/repos/eclipse/sw360/issues/392","number":392,"state":"open","locked":false,"title":"feat(homepage): show accepted releases in MyProjects portlet","user":{"login":"kallesoranko","id":35808136,"node_id":"MDQ6VXNlcjM1ODA4MTM2","avatar_url":"https://avatars1.githubusercontent.com/u/35808136?v=4","gravatar_id":"","url":"https://api.github.com/users/kallesoranko","html_url":"https://github.com/kallesoranko","followers_url":"https://api.github.com/users/kallesoranko/followers","following_url":"https://api.github.com/users/kallesoranko/following{/other_user}","gists_url":"https://api.github.com/users/kallesoranko/gists{/gist_id}","starred_url":"https://api.github.com/users/kallesoranko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kallesoranko/subscriptions","organizations_url":"https://api.github.com/users/kallesoranko/orgs","repos_url":"https://api.github.com/users/kallesoranko/repos","events_url":"https://api.github.com/users/kallesoranko/events{/privacy}","received_events_url":"https://api.github.com/users/kallesoranko/received_events","type":"User","site_admin":false},"body":"This PR adds accepted releases column to MyProjects portlet.\r\nLet's test the performance of this feature first and if necessary lets't do modifications.\r\n\r\nSigned-off-by: Kalle Soranko <ksoranko@verifa.io>","created_at":"2018-11-01T07:33:57Z","updated_at":"2018-11-06T10:56:05Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e4e05d588d24fdd163731c87030e7ae86da10cf9","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":910986147,"node_id":"MDU6TGFiZWw5MTA5ODYxNDc=","url":"https://api.github.com/repos/eclipse/sw360/labels/needs%20code%20review","name":"needs code review","color":"006000","default":false},{"id":910986254,"node_id":"MDU6TGFiZWw5MTA5ODYyNTQ=","url":"https://api.github.com/repos/eclipse/sw360/labels/needs%20test","name":"needs test","color":"0e8a16","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/eclipse/sw360/pulls/392/commits","review_comments_url":"https://api.github.com/repos/eclipse/sw360/pulls/392/comments","review_comment_url":"https://api.github.com/repos/eclipse/sw360/pulls/comments{/number}","comments_url":"https://api.github.com/repos/eclipse/sw360/issues/392/comments","statuses_url":"https://api.github.com/repos/eclipse/sw360/statuses/9c0375d21f5a14089986a26818bfc1495ffce069","head":{"label":"kallesoranko:kallesoranko/#391/accepted-releases-myprojects","ref":"kallesoranko/#391/accepted-releases-myprojects","sha":"9c0375d21f5a14089986a26818bfc1495ffce069","user":{"login":"kallesoranko","id":35808136,"node_id":"MDQ6VXNlcjM1ODA4MTM2","avatar_url":"https://avatars1.githubusercontent.com/u/35808136?v=4","gravatar_id":"","url":"https://api.github.com/users/kallesoranko","html_url":"https://github.com/kallesoranko","followers_url":"https://api.github.com/users/kallesoranko/followers","following_url":"https://api.github.com/users/kallesoranko/following{/other_user}","gists_url":"https://api.github.com/users/kallesoranko/gists{/gist_id}","starred_url":"https://api.github.com/users/kallesoranko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kallesoranko/subscriptions","organizations_url":"https://api.github.com/users/kallesoranko/orgs","repos_url":"https://api.github.com/users/kallesoranko/repos","events_url":"https://api.github.com/users/kallesoranko/events{/privacy}","received_events_url":"https://api.github.com/users/kallesoranko/received_events","type":"User","site_admin":false},"repo":{"id":149271625,"node_id":"MDEwOlJlcG9zaXRvcnkxNDkyNzE2MjU=","name":"sw360","full_name":"kallesoranko/sw360","private":false,"owner":{"login":"kallesoranko","id":35808136,"node_id":"MDQ6VXNlcjM1ODA4MTM2","avatar_url":"https://avatars1.githubusercontent.com/u/35808136?v=4","gravatar_id":"","url":"https://api.github.com/users/kallesoranko","html_url":"https://github.com/kallesoranko","followers_url":"https://api.github.com/users/kallesoranko/followers","following_url":"https://api.github.com/users/kallesoranko/following{/other_user}","gists_url":"https://api.github.com/users/kallesoranko/gists{/gist_id}","starred_url":"https://api.github.com/users/kallesoranko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kallesoranko/subscriptions","organizations_url":"https://api.github.com/users/kallesoranko/orgs","repos_url":"https://api.github.com/users/kallesoranko/repos","events_url":"https://api.github.com/users/kallesoranko/events{/privacy}","received_events_url":"https://api.github.com/users/kallesoranko/received_events","type":"User","site_admin":false},"html_url":"https://github.com/kallesoranko/sw360","description":"SW360 project","fork":true,"url":"https://api.github.com/repos/kallesoranko/sw360","forks_url":"https://api.github.com/repos/kallesoranko/sw360/forks","keys_url":"https://api.github.com/repos/kallesoranko/sw360/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kallesoranko/sw360/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kallesoranko/sw360/teams","hooks_url":"https://api.github.com/repos/kallesoranko/sw360/hooks","issue_events_url":"https://api.github.com/repos/kallesoranko/sw360/issues/events{/number}","events_url":"https://api.github.com/repos/kallesoranko/sw360/events","assignees_url":"https://api.github.com/repos/kallesoranko/sw360/assignees{/user}","branches_url":"https://api.github.com/repos/kallesoranko/sw360/branches{/branch}","tags_url":"https://api.github.com/repos/kallesoranko/sw360/tags","blobs_url":"https://api.github.com/repos/kallesoranko/sw360/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kallesoranko/sw360/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kallesoranko/sw360/git/refs{/sha}","trees_url":"https://api.github.com/repos/kallesoranko/sw360/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kallesoranko/sw360/statuses/{sha}","languages_url":"https://api.github.com/repos/kallesoranko/sw360/languages","stargazers_url":"https://api.github.com/repos/kallesoranko/sw360/stargazers","contributors_url":"https://api.github.com/repos/kallesoranko/sw360/contributors","subscribers_url":"https://api.github.com/repos/kallesoranko/sw360/subscribers","subscription_url":"https://api.github.com/repos/kallesoranko/sw360/subscription","commits_url":"https://api.github.com/repos/kallesoranko/sw360/commits{/sha}","git_commits_url":"https://api.github.com/repos/kallesoranko/sw360/git/commits{/sha}","comments_url":"https://api.github.com/repos/kallesoranko/sw360/comments{/number}","issue_comment_url":"https://api.github.com/repos/kallesoranko/sw360/issues/comments{/number}","contents_url":"https://api.github.com/repos/kallesoranko/sw360/contents/{+path}","compare_url":"https://api.github.com/repos/kallesoranko/sw360/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kallesoranko/sw360/merges","archive_url":"https://api.github.com/repos/kallesoranko/sw360/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kallesoranko/sw360/downloads","issues_url":"https://api.github.com/repos/kallesoranko/sw360/issues{/number}","pulls_url":"https://api.github.com/repos/kallesoranko/sw360/pulls{/number}","milestones_url":"https://api.github.com/repos/kallesoranko/sw360/milestones{/number}","notifications_url":"https://api.github.com/repos/kallesoranko/sw360/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kallesoranko/sw360/labels{/name}","releases_url":"https://api.github.com/repos/kallesoranko/sw360/releases{/id}","deployments_url":"https://api.github.com/repos/kallesoranko/sw360/deployments","created_at":"2018-09-18T10:40:42Z","updated_at":"2018-11-01T08:08:24Z","pushed_at":"2018-11-06T06:58:23Z","git_url":"git://github.com/kallesoranko/sw360.git","ssh_url":"git@github.com:kallesoranko/sw360.git","clone_url":"https://github.com/kallesoranko/sw360.git","svn_url":"https://github.com/kallesoranko/sw360","homepage":null,"size":1739,"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":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"eclipse:master","ref":"master","sha":"db60f4ba1eeffa35c90d39f00d9822eb2529dc69","user":{"login":"eclipse","id":56974,"node_id":"MDEyOk9yZ2FuaXphdGlvbjU2OTc0","avatar_url":"https://avatars1.githubusercontent.com/u/56974?v=4","gravatar_id":"","url":"https://api.github.com/users/eclipse","html_url":"https://github.com/eclipse","followers_url":"https://api.github.com/users/eclipse/followers","following_url":"https://api.github.com/users/eclipse/following{/other_user}","gists_url":"https://api.github.com/users/eclipse/gists{/gist_id}","starred_url":"https://api.github.com/users/eclipse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eclipse/subscriptions","organizations_url":"https://api.github.com/users/eclipse/orgs","repos_url":"https://api.github.com/users/eclipse/repos","events_url":"https://api.github.com/users/eclipse/events{/privacy}","received_events_url":"https://api.github.com/users/eclipse/received_events","type":"Organization","site_admin":false},"repo":{"id":129769092,"node_id":"MDEwOlJlcG9zaXRvcnkxMjk3NjkwOTI=","name":"sw360","full_name":"eclipse/sw360","private":false,"owner":{"login":"eclipse","id":56974,"node_id":"MDEyOk9yZ2FuaXphdGlvbjU2OTc0","avatar_url":"https://avatars1.githubusercontent.com/u/56974?v=4","gravatar_id":"","url":"https://api.github.com/users/eclipse","html_url":"https://github.com/eclipse","followers_url":"https://api.github.com/users/eclipse/followers","following_url":"https://api.github.com/users/eclipse/following{/other_user}","gists_url":"https://api.github.com/users/eclipse/gists{/gist_id}","starred_url":"https://api.github.com/users/eclipse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eclipse/subscriptions","organizations_url":"https://api.github.com/users/eclipse/orgs","repos_url":"https://api.github.com/users/eclipse/repos","events_url":"https://api.github.com/users/eclipse/events{/privacy}","received_events_url":"https://api.github.com/users/eclipse/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/eclipse/sw360","description":"SW360 project","fork":false,"url":"https://api.github.com/repos/eclipse/sw360","forks_url":"https://api.github.com/repos/eclipse/sw360/forks","keys_url":"https://api.github.com/repos/eclipse/sw360/keys{/key_id}","collaborators_url":"https://api.github.com/repos/eclipse/sw360/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/eclipse/sw360/teams","hooks_url":"https://api.github.com/repos/eclipse/sw360/hooks","issue_events_url":"https://api.github.com/repos/eclipse/sw360/issues/events{/number}","events_url":"https://api.github.com/repos/eclipse/sw360/events","assignees_url":"https://api.github.com/repos/eclipse/sw360/assignees{/user}","branches_url":"https://api.github.com/repos/eclipse/sw360/branches{/branch}","tags_url":"https://api.github.com/repos/eclipse/sw360/tags","blobs_url":"https://api.github.com/repos/eclipse/sw360/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/eclipse/sw360/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/eclipse/sw360/git/refs{/sha}","trees_url":"https://api.github.com/repos/eclipse/sw360/git/trees{/sha}","statuses_url":"https://api.github.com/repos/eclipse/sw360/statuses/{sha}","languages_url":"https://api.github.com/repos/eclipse/sw360/languages","stargazers_url":"https://api.github.com/repos/eclipse/sw360/stargazers","contributors_url":"https://api.github.com/repos/eclipse/sw360/contributors","subscribers_url":"https://api.github.com/repos/eclipse/sw360/subscribers","subscription_url":"https://api.github.com/repos/eclipse/sw360/subscription","commits_url":"https://api.github.com/repos/eclipse/sw360/commits{/sha}","git_commits_url":"https://api.github.com/repos/eclipse/sw360/git/commits{/sha}","comments_url":"https://api.github.com/repos/eclipse/sw360/comments{/number}","issue_comment_url":"https://api.github.com/repos/eclipse/sw360/issues/comments{/number}","contents_url":"https://api.github.com/repos/eclipse/sw360/contents/{+path}","compare_url":"https://api.github.com/repos/eclipse/sw360/compare/{base}...{head}","merges_url":"https://api.github.com/repos/eclipse/sw360/merges","archive_url":"https://api.github.com/repos/eclipse/sw360/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/eclipse/sw360/downloads","issues_url":"https://api.github.com/repos/eclipse/sw360/issues{/number}","pulls_url":"https://api.github.com/repos/eclipse/sw360/pulls{/number}","milestones_url":"https://api.github.com/repos/eclipse/sw360/milestones{/number}","notifications_url":"https://api.github.com/repos/eclipse/sw360/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/eclipse/sw360/labels{/name}","releases_url":"https://api.github.com/repos/eclipse/sw360/releases{/id}","deployments_url":"https://api.github.com/repos/eclipse/sw360/deployments","created_at":"2018-04-16T15:54:19Z","updated_at":"2018-11-02T12:04:03Z","pushed_at":"2018-11-06T09:17:50Z","git_url":"git://github.com/eclipse/sw360.git","ssh_url":"git@github.com:eclipse/sw360.git","clone_url":"https://github.com/eclipse/sw360.git","svn_url":"https://github.com/eclipse/sw360","homepage":null,"size":1709,"stargazers_count":15,"watchers_count":15,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":8,"mirror_url":null,"archived":false,"open_issues_count":182,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":8,"open_issues":182,"watchers":15,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/eclipse/sw360/pulls/392"},"html":{"href":"https://github.com/eclipse/sw360/pull/392"},"issue":{"href":"https://api.github.com/repos/eclipse/sw360/issues/392"},"comments":{"href":"https://api.github.com/repos/eclipse/sw360/issues/392/comments"},"review_comments":{"href":"https://api.github.com/repos/eclipse/sw360/pulls/392/comments"},"review_comment":{"href":"https://api.github.com/repos/eclipse/sw360/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/eclipse/sw360/pulls/392/commits"},"statuses":{"href":"https://api.github.com/repos/eclipse/sw360/statuses/9c0375d21f5a14089986a26818bfc1495ffce069"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"maierthomas"}}