{"action":"created","comment":{"url":"https://api.github.com/repos/Alfresco/alfresco-ng2-components/pulls/comments/234637464","pull_request_review_id":176318604,"id":234637464,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzNDYzNzQ2NA==","diff_hunk":"@@ -72,58 +75,47 @@ export class UserInfoComponent implements OnInit {\n     }\n \n     getUserInfo() {\n-        this.loadEcmUserInfo();\n-        this.loadBpmUserInfo();\n+        if (this.authService.isOauth()) {\n+            this.loadIdentityUserInfo();\n+        } else if (this.authService.isEcmLoggedIn() && this.authService.isBpmLoggedIn()) {\n+            this.loadEcmUserInfo();\n+            this.loadBpmUserInfo();\n+        } else if (this.authService.isEcmLoggedIn()) {\n+            this.loadEcmUserInfo();\n+        } else if (this.authService.isBpmLoggedIn()) {\n+            this.loadBpmUserInfo();\n+        }\n     }\n \n     isLoggedIn() {\n         return this.authService.isLoggedIn();\n     }\n \n     loadEcmUserInfo(): void {","path":"lib/core/userinfo/components/user-info.component.ts","position":53,"original_position":53,"commit_id":"8db3073d1832d56c290a6573c51185ad5b754341","original_commit_id":"8db3073d1832d56c290a6573c51185ad5b754341","user":{"login":"eromano","id":1030050,"node_id":"MDQ6VXNlcjEwMzAwNTA=","avatar_url":"https://avatars1.githubusercontent.com/u/1030050?v=4","gravatar_id":"","url":"https://api.github.com/users/eromano","html_url":"https://github.com/eromano","followers_url":"https://api.github.com/users/eromano/followers","following_url":"https://api.github.com/users/eromano/following{/other_user}","gists_url":"https://api.github.com/users/eromano/gists{/gist_id}","starred_url":"https://api.github.com/users/eromano/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eromano/subscriptions","organizations_url":"https://api.github.com/users/eromano/orgs","repos_url":"https://api.github.com/users/eromano/repos","events_url":"https://api.github.com/users/eromano/events{/privacy}","received_events_url":"https://api.github.com/users/eromano/received_events","type":"User","site_admin":false},"body":"void return type not needed","created_at":"2018-11-19T14:27:34Z","updated_at":"2018-11-19T14:32:54Z","html_url":"https://github.com/Alfresco/alfresco-ng2-components/pull/3976#discussion_r234637464","pull_request_url":"https://api.github.com/repos/Alfresco/alfresco-ng2-components/pulls/3976","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/Alfresco/alfresco-ng2-components/pulls/comments/234637464"},"html":{"href":"https://github.com/Alfresco/alfresco-ng2-components/pull/3976#discussion_r234637464"},"pull_request":{"href":"https://api.github.com/repos/Alfresco/alfresco-ng2-components/pulls/3976"}}},"pull_request":{"url":"https://api.github.com/repos/Alfresco/alfresco-ng2-components/pulls/3976","id":231197788,"node_id":"MDExOlB1bGxSZXF1ZXN0MjMxMTk3Nzg4","html_url":"https://github.com/Alfresco/alfresco-ng2-components/pull/3976","diff_url":"https://github.com/Alfresco/alfresco-ng2-components/pull/3976.diff","patch_url":"https://github.com/Alfresco/alfresco-ng2-components/pull/3976.patch","issue_url":"https://api.github.com/repos/Alfresco/alfresco-ng2-components/issues/3976","number":3976,"state":"open","locked":false,"title":"[ADF-3666] User Profile - Provide a way to show SSO Logged-In User","user":{"login":"sivakumar414ram","id":25585550,"node_id":"MDQ6VXNlcjI1NTg1NTUw","avatar_url":"https://avatars1.githubusercontent.com/u/25585550?v=4","gravatar_id":"","url":"https://api.github.com/users/sivakumar414ram","html_url":"https://github.com/sivakumar414ram","followers_url":"https://api.github.com/users/sivakumar414ram/followers","following_url":"https://api.github.com/users/sivakumar414ram/following{/other_user}","gists_url":"https://api.github.com/users/sivakumar414ram/gists{/gist_id}","starred_url":"https://api.github.com/users/sivakumar414ram/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sivakumar414ram/subscriptions","organizations_url":"https://api.github.com/users/sivakumar414ram/orgs","repos_url":"https://api.github.com/users/sivakumar414ram/repos","events_url":"https://api.github.com/users/sivakumar414ram/events{/privacy}","received_events_url":"https://api.github.com/users/sivakumar414ram/received_events","type":"User","site_admin":false},"body":"**Please check if the PR fulfills these requirements**\r\n\r\n> - [x] The commit message follows our [guidelines](https://github.com/Alfresco/alfresco-ng2-components/wiki/Commit-format)\r\n> - [x] Tests for the changes have been added (for bug fixes / features)\r\n> - [ ] Docs have been added / updated (for bug fixes / features)\r\n\r\n<!--\r\n Before submitting your PR, please check that your code follows our contribution guidelines:\r\n https://github.com/Alfresco/alfresco-ng2-components/wiki/Code-contribution-acceptance-criteria\r\n -->\r\n\r\n**What kind of change does this PR introduce?** (check one with \"x\")\r\n\r\n> - [ ] Bugfix\r\n> - [x] Feature\r\n> - [x] Code style update (formatting, local variables)\r\n> - [ ] Refactoring (no functional changes, no api changes)\r\n> - [ ] Build related changes\r\n> - [ ] Documentation\r\n> - [ ] Other... Please describe:\r\n\r\n\r\n**What is the current behaviour?** (You can also link to an open issue here)\r\n\r\nhttps://issues.alfresco.com/jira/browse/ADF-3666\r\n\r\n**What is the new behaviour?**\r\n\r\nhttps://issues.alfresco.com/jira/browse/ADF-3666\r\n\r\n**Does this PR introduce a breaking change?** (check one with \"x\")\r\n\r\n> - [ ] Yes\r\n> - [x] No\r\n\r\n\r\nIf this PR contains a breaking change, please describe the impact and migration path for existing applications: ...\r\n\r\n**Other information**:\r\n","created_at":"2018-11-15T13:40:19Z","updated_at":"2018-11-19T14:32:54Z","closed_at":null,"merged_at":null,"merge_commit_sha":"75ddcad9c80b0fe5445bc846d8c30a5def4df0ef","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/Alfresco/alfresco-ng2-components/pulls/3976/commits","review_comments_url":"https://api.github.com/repos/Alfresco/alfresco-ng2-components/pulls/3976/comments","review_comment_url":"https://api.github.com/repos/Alfresco/alfresco-ng2-components/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Alfresco/alfresco-ng2-components/issues/3976/comments","statuses_url":"https://api.github.com/repos/Alfresco/alfresco-ng2-components/statuses/8db3073d1832d56c290a6573c51185ad5b754341","head":{"label":"Alfresco:dev-siva-sso-user-info-ADF-3666","ref":"dev-siva-sso-user-info-ADF-3666","sha":"8db3073d1832d56c290a6573c51185ad5b754341","user":{"login":"Alfresco","id":391127,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM5MTEyNw==","avatar_url":"https://avatars2.githubusercontent.com/u/391127?v=4","gravatar_id":"","url":"https://api.github.com/users/Alfresco","html_url":"https://github.com/Alfresco","followers_url":"https://api.github.com/users/Alfresco/followers","following_url":"https://api.github.com/users/Alfresco/following{/other_user}","gists_url":"https://api.github.com/users/Alfresco/gists{/gist_id}","starred_url":"https://api.github.com/users/Alfresco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Alfresco/subscriptions","organizations_url":"https://api.github.com/users/Alfresco/orgs","repos_url":"https://api.github.com/users/Alfresco/repos","events_url":"https://api.github.com/users/Alfresco/events{/privacy}","received_events_url":"https://api.github.com/users/Alfresco/received_events","type":"Organization","site_admin":false},"repo":{"id":55400726,"node_id":"MDEwOlJlcG9zaXRvcnk1NTQwMDcyNg==","name":"alfresco-ng2-components","full_name":"Alfresco/alfresco-ng2-components","private":false,"owner":{"login":"Alfresco","id":391127,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM5MTEyNw==","avatar_url":"https://avatars2.githubusercontent.com/u/391127?v=4","gravatar_id":"","url":"https://api.github.com/users/Alfresco","html_url":"https://github.com/Alfresco","followers_url":"https://api.github.com/users/Alfresco/followers","following_url":"https://api.github.com/users/Alfresco/following{/other_user}","gists_url":"https://api.github.com/users/Alfresco/gists{/gist_id}","starred_url":"https://api.github.com/users/Alfresco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Alfresco/subscriptions","organizations_url":"https://api.github.com/users/Alfresco/orgs","repos_url":"https://api.github.com/users/Alfresco/repos","events_url":"https://api.github.com/users/Alfresco/events{/privacy}","received_events_url":"https://api.github.com/users/Alfresco/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/Alfresco/alfresco-ng2-components","description":"Alfresco Angular Components","fork":false,"url":"https://api.github.com/repos/Alfresco/alfresco-ng2-components","forks_url":"https://api.github.com/repos/Alfresco/alfresco-ng2-components/forks","keys_url":"https://api.github.com/repos/Alfresco/alfresco-ng2-components/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Alfresco/alfresco-ng2-components/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Alfresco/alfresco-ng2-components/teams","hooks_url":"https://api.github.com/repos/Alfresco/alfresco-ng2-components/hooks","issue_events_url":"https://api.github.com/repos/Alfresco/alfresco-ng2-components/issues/events{/number}","events_url":"https://api.github.com/repos/Alfresco/alfresco-ng2-components/events","assignees_url":"https://api.github.com/repos/Alfresco/alfresco-ng2-components/assignees{/user}","branches_url":"https://api.github.com/repos/Alfresco/alfresco-ng2-components/branches{/branch}","tags_url":"https://api.github.com/repos/Alfresco/alfresco-ng2-components/tags","blobs_url":"https://api.github.com/repos/Alfresco/alfresco-ng2-components/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Alfresco/alfresco-ng2-components/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Alfresco/alfresco-ng2-components/git/refs{/sha}","trees_url":"https://api.github.com/repos/Alfresco/alfresco-ng2-components/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Alfresco/alfresco-ng2-components/statuses/{sha}","languages_url":"https://api.github.com/repos/Alfresco/alfresco-ng2-components/languages","stargazers_url":"https://api.github.com/repos/Alfresco/alfresco-ng2-components/stargazers","contributors_url":"https://api.github.com/repos/Alfresco/alfresco-ng2-components/contributors","subscribers_url":"https://api.github.com/repos/Alfresco/alfresco-ng2-components/subscribers","subscription_url":"https://api.github.com/repos/Alfresco/alfresco-ng2-components/subscription","commits_url":"https://api.github.com/repos/Alfresco/alfresco-ng2-components/commits{/sha}","git_commits_url":"https://api.github.com/repos/Alfresco/alfresco-ng2-components/git/commits{/sha}","comments_url":"https://api.github.com/repos/Alfresco/alfresco-ng2-components/comments{/number}","issue_comment_url":"https://api.github.com/repos/Alfresco/alfresco-ng2-components/issues/comments{/number}","contents_url":"https://api.github.com/repos/Alfresco/alfresco-ng2-components/contents/{+path}","compare_url":"https://api.github.com/repos/Alfresco/alfresco-ng2-components/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Alfresco/alfresco-ng2-components/merges","archive_url":"https://api.github.com/repos/Alfresco/alfresco-ng2-components/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Alfresco/alfresco-ng2-components/downloads","issues_url":"https://api.github.com/repos/Alfresco/alfresco-ng2-components/issues{/number}","pulls_url":"https://api.github.com/repos/Alfresco/alfresco-ng2-components/pulls{/number}","milestones_url":"https://api.github.com/repos/Alfresco/alfresco-ng2-components/milestones{/number}","notifications_url":"https://api.github.com/repos/Alfresco/alfresco-ng2-components/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Alfresco/alfresco-ng2-components/labels{/name}","releases_url":"https://api.github.com/repos/Alfresco/alfresco-ng2-components/releases{/id}","deployments_url":"https://api.github.com/repos/Alfresco/alfresco-ng2-components/deployments","created_at":"2016-04-04T09:54:25Z","updated_at":"2018-11-19T13:28:07Z","pushed_at":"2018-11-19T14:22:45Z","git_url":"git://github.com/Alfresco/alfresco-ng2-components.git","ssh_url":"git@github.com:Alfresco/alfresco-ng2-components.git","clone_url":"https://github.com/Alfresco/alfresco-ng2-components.git","svn_url":"https://github.com/Alfresco/alfresco-ng2-components","homepage":"https://alfresco.github.io/adf-component-catalog/","size":401456,"stargazers_count":185,"watchers_count":185,"language":"TypeScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":97,"mirror_url":null,"archived":false,"open_issues_count":68,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":97,"open_issues":68,"watchers":185,"default_branch":"development"}},"base":{"label":"Alfresco:development","ref":"development","sha":"465e55acb554495272f0552c6b819235d0d2d139","user":{"login":"Alfresco","id":391127,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM5MTEyNw==","avatar_url":"https://avatars2.githubusercontent.com/u/391127?v=4","gravatar_id":"","url":"https://api.github.com/users/Alfresco","html_url":"https://github.com/Alfresco","followers_url":"https://api.github.com/users/Alfresco/followers","following_url":"https://api.github.com/users/Alfresco/following{/other_user}","gists_url":"https://api.github.com/users/Alfresco/gists{/gist_id}","starred_url":"https://api.github.com/users/Alfresco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Alfresco/subscriptions","organizations_url":"https://api.github.com/users/Alfresco/orgs","repos_url":"https://api.github.com/users/Alfresco/repos","events_url":"https://api.github.com/users/Alfresco/events{/privacy}","received_events_url":"https://api.github.com/users/Alfresco/received_events","type":"Organization","site_admin":false},"repo":{"id":55400726,"node_id":"MDEwOlJlcG9zaXRvcnk1NTQwMDcyNg==","name":"alfresco-ng2-components","full_name":"Alfresco/alfresco-ng2-components","private":false,"owner":{"login":"Alfresco","id":391127,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM5MTEyNw==","avatar_url":"https://avatars2.githubusercontent.com/u/391127?v=4","gravatar_id":"","url":"https://api.github.com/users/Alfresco","html_url":"https://github.com/Alfresco","followers_url":"https://api.github.com/users/Alfresco/followers","following_url":"https://api.github.com/users/Alfresco/following{/other_user}","gists_url":"https://api.github.com/users/Alfresco/gists{/gist_id}","starred_url":"https://api.github.com/users/Alfresco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Alfresco/subscriptions","organizations_url":"https://api.github.com/users/Alfresco/orgs","repos_url":"https://api.github.com/users/Alfresco/repos","events_url":"https://api.github.com/users/Alfresco/events{/privacy}","received_events_url":"https://api.github.com/users/Alfresco/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/Alfresco/alfresco-ng2-components","description":"Alfresco Angular Components","fork":false,"url":"https://api.github.com/repos/Alfresco/alfresco-ng2-components","forks_url":"https://api.github.com/repos/Alfresco/alfresco-ng2-components/forks","keys_url":"https://api.github.com/repos/Alfresco/alfresco-ng2-components/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Alfresco/alfresco-ng2-components/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Alfresco/alfresco-ng2-components/teams","hooks_url":"https://api.github.com/repos/Alfresco/alfresco-ng2-components/hooks","issue_events_url":"https://api.github.com/repos/Alfresco/alfresco-ng2-components/issues/events{/number}","events_url":"https://api.github.com/repos/Alfresco/alfresco-ng2-components/events","assignees_url":"https://api.github.com/repos/Alfresco/alfresco-ng2-components/assignees{/user}","branches_url":"https://api.github.com/repos/Alfresco/alfresco-ng2-components/branches{/branch}","tags_url":"https://api.github.com/repos/Alfresco/alfresco-ng2-components/tags","blobs_url":"https://api.github.com/repos/Alfresco/alfresco-ng2-components/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Alfresco/alfresco-ng2-components/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Alfresco/alfresco-ng2-components/git/refs{/sha}","trees_url":"https://api.github.com/repos/Alfresco/alfresco-ng2-components/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Alfresco/alfresco-ng2-components/statuses/{sha}","languages_url":"https://api.github.com/repos/Alfresco/alfresco-ng2-components/languages","stargazers_url":"https://api.github.com/repos/Alfresco/alfresco-ng2-components/stargazers","contributors_url":"https://api.github.com/repos/Alfresco/alfresco-ng2-components/contributors","subscribers_url":"https://api.github.com/repos/Alfresco/alfresco-ng2-components/subscribers","subscription_url":"https://api.github.com/repos/Alfresco/alfresco-ng2-components/subscription","commits_url":"https://api.github.com/repos/Alfresco/alfresco-ng2-components/commits{/sha}","git_commits_url":"https://api.github.com/repos/Alfresco/alfresco-ng2-components/git/commits{/sha}","comments_url":"https://api.github.com/repos/Alfresco/alfresco-ng2-components/comments{/number}","issue_comment_url":"https://api.github.com/repos/Alfresco/alfresco-ng2-components/issues/comments{/number}","contents_url":"https://api.github.com/repos/Alfresco/alfresco-ng2-components/contents/{+path}","compare_url":"https://api.github.com/repos/Alfresco/alfresco-ng2-components/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Alfresco/alfresco-ng2-components/merges","archive_url":"https://api.github.com/repos/Alfresco/alfresco-ng2-components/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Alfresco/alfresco-ng2-components/downloads","issues_url":"https://api.github.com/repos/Alfresco/alfresco-ng2-components/issues{/number}","pulls_url":"https://api.github.com/repos/Alfresco/alfresco-ng2-components/pulls{/number}","milestones_url":"https://api.github.com/repos/Alfresco/alfresco-ng2-components/milestones{/number}","notifications_url":"https://api.github.com/repos/Alfresco/alfresco-ng2-components/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Alfresco/alfresco-ng2-components/labels{/name}","releases_url":"https://api.github.com/repos/Alfresco/alfresco-ng2-components/releases{/id}","deployments_url":"https://api.github.com/repos/Alfresco/alfresco-ng2-components/deployments","created_at":"2016-04-04T09:54:25Z","updated_at":"2018-11-19T13:28:07Z","pushed_at":"2018-11-19T14:22:45Z","git_url":"git://github.com/Alfresco/alfresco-ng2-components.git","ssh_url":"git@github.com:Alfresco/alfresco-ng2-components.git","clone_url":"https://github.com/Alfresco/alfresco-ng2-components.git","svn_url":"https://github.com/Alfresco/alfresco-ng2-components","homepage":"https://alfresco.github.io/adf-component-catalog/","size":401456,"stargazers_count":185,"watchers_count":185,"language":"TypeScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":97,"mirror_url":null,"archived":false,"open_issues_count":68,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":97,"open_issues":68,"watchers":185,"default_branch":"development"}},"_links":{"self":{"href":"https://api.github.com/repos/Alfresco/alfresco-ng2-components/pulls/3976"},"html":{"href":"https://github.com/Alfresco/alfresco-ng2-components/pull/3976"},"issue":{"href":"https://api.github.com/repos/Alfresco/alfresco-ng2-components/issues/3976"},"comments":{"href":"https://api.github.com/repos/Alfresco/alfresco-ng2-components/issues/3976/comments"},"review_comments":{"href":"https://api.github.com/repos/Alfresco/alfresco-ng2-components/pulls/3976/comments"},"review_comment":{"href":"https://api.github.com/repos/Alfresco/alfresco-ng2-components/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Alfresco/alfresco-ng2-components/pulls/3976/commits"},"statuses":{"href":"https://api.github.com/repos/Alfresco/alfresco-ng2-components/statuses/8db3073d1832d56c290a6573c51185ad5b754341"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"eromano"}}