{"action":"created","comment":{"url":"https://api.github.com/repos/bwsw/cloudstack-ui/pulls/comments/182302397","pull_request_review_id":113069848,"id":182302397,"diff_hunk":"@@ -0,0 +1,5 @@\n+import { User, Account } from '../models';\n+\n+export function isHaveSameAccount(user: User, account: Account) {\n+  return user.account === account.user[0].account;","path":"src/app/shared/utils/account.ts","position":4,"original_position":4,"commit_id":"90285e6e9fdfa408154e6f380474dfb1ed0b1c13","original_commit_id":"90285e6e9fdfa408154e6f380474dfb1ed0b1c13","user":{"login":"zolotyx","id":2853979,"avatar_url":"https://avatars0.githubusercontent.com/u/2853979?v=4","gravatar_id":"","url":"https://api.github.com/users/zolotyx","html_url":"https://github.com/zolotyx","followers_url":"https://api.github.com/users/zolotyx/followers","following_url":"https://api.github.com/users/zolotyx/following{/other_user}","gists_url":"https://api.github.com/users/zolotyx/gists{/gist_id}","starred_url":"https://api.github.com/users/zolotyx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zolotyx/subscriptions","organizations_url":"https://api.github.com/users/zolotyx/orgs","repos_url":"https://api.github.com/users/zolotyx/repos","events_url":"https://api.github.com/users/zolotyx/events{/privacy}","received_events_url":"https://api.github.com/users/zolotyx/received_events","type":"User","site_admin":false},"body":"yes, and please, rename function to represent the meaning \"User belongs to the account\"","created_at":"2018-04-18T03:53:49Z","updated_at":"2018-04-18T03:53:49Z","html_url":"https://github.com/bwsw/cloudstack-ui/pull/1056#discussion_r182302397","pull_request_url":"https://api.github.com/repos/bwsw/cloudstack-ui/pulls/1056","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/bwsw/cloudstack-ui/pulls/comments/182302397"},"html":{"href":"https://github.com/bwsw/cloudstack-ui/pull/1056#discussion_r182302397"},"pull_request":{"href":"https://api.github.com/repos/bwsw/cloudstack-ui/pulls/1056"}},"in_reply_to_id":182027558},"pull_request":{"url":"https://api.github.com/repos/bwsw/cloudstack-ui/pulls/1056","id":180816431,"html_url":"https://github.com/bwsw/cloudstack-ui/pull/1056","diff_url":"https://github.com/bwsw/cloudstack-ui/pull/1056.diff","patch_url":"https://github.com/bwsw/cloudstack-ui/pull/1056.patch","issue_url":"https://api.github.com/repos/bwsw/cloudstack-ui/issues/1056","number":1056,"state":"open","locked":false,"title":"fix(account): fix the ability to delete the current account from sidebar","user":{"login":"tamazlykar","id":18456914,"avatar_url":"https://avatars2.githubusercontent.com/u/18456914?v=4","gravatar_id":"","url":"https://api.github.com/users/tamazlykar","html_url":"https://github.com/tamazlykar","followers_url":"https://api.github.com/users/tamazlykar/followers","following_url":"https://api.github.com/users/tamazlykar/following{/other_user}","gists_url":"https://api.github.com/users/tamazlykar/gists{/gist_id}","starred_url":"https://api.github.com/users/tamazlykar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tamazlykar/subscriptions","organizations_url":"https://api.github.com/users/tamazlykar/orgs","repos_url":"https://api.github.com/users/tamazlykar/repos","events_url":"https://api.github.com/users/tamazlykar/events{/privacy}","received_events_url":"https://api.github.com/users/tamazlykar/received_events","type":"User","site_admin":false},"body":"This is a fix for the [previous PR](https://github.com/bwsw/cloudstack-ui/pull/1043) that was merged by mistake","created_at":"2018-04-11T07:47:47Z","updated_at":"2018-04-18T03:53:49Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7ad3a1c9ddc11d3c40cfed70def19d1f313069df","assignee":{"login":"zolotyx","id":2853979,"avatar_url":"https://avatars0.githubusercontent.com/u/2853979?v=4","gravatar_id":"","url":"https://api.github.com/users/zolotyx","html_url":"https://github.com/zolotyx","followers_url":"https://api.github.com/users/zolotyx/followers","following_url":"https://api.github.com/users/zolotyx/following{/other_user}","gists_url":"https://api.github.com/users/zolotyx/gists{/gist_id}","starred_url":"https://api.github.com/users/zolotyx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zolotyx/subscriptions","organizations_url":"https://api.github.com/users/zolotyx/orgs","repos_url":"https://api.github.com/users/zolotyx/repos","events_url":"https://api.github.com/users/zolotyx/events{/privacy}","received_events_url":"https://api.github.com/users/zolotyx/received_events","type":"User","site_admin":false},"assignees":[{"login":"zolotyx","id":2853979,"avatar_url":"https://avatars0.githubusercontent.com/u/2853979?v=4","gravatar_id":"","url":"https://api.github.com/users/zolotyx","html_url":"https://github.com/zolotyx","followers_url":"https://api.github.com/users/zolotyx/followers","following_url":"https://api.github.com/users/zolotyx/following{/other_user}","gists_url":"https://api.github.com/users/zolotyx/gists{/gist_id}","starred_url":"https://api.github.com/users/zolotyx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zolotyx/subscriptions","organizations_url":"https://api.github.com/users/zolotyx/orgs","repos_url":"https://api.github.com/users/zolotyx/repos","events_url":"https://api.github.com/users/zolotyx/events{/privacy}","received_events_url":"https://api.github.com/users/zolotyx/received_events","type":"User","site_admin":false},{"login":"vanekbr","id":9375213,"avatar_url":"https://avatars0.githubusercontent.com/u/9375213?v=4","gravatar_id":"","url":"https://api.github.com/users/vanekbr","html_url":"https://github.com/vanekbr","followers_url":"https://api.github.com/users/vanekbr/followers","following_url":"https://api.github.com/users/vanekbr/following{/other_user}","gists_url":"https://api.github.com/users/vanekbr/gists{/gist_id}","starred_url":"https://api.github.com/users/vanekbr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vanekbr/subscriptions","organizations_url":"https://api.github.com/users/vanekbr/orgs","repos_url":"https://api.github.com/users/vanekbr/repos","events_url":"https://api.github.com/users/vanekbr/events{/privacy}","received_events_url":"https://api.github.com/users/vanekbr/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/bwsw/cloudstack-ui/pulls/1056/commits","review_comments_url":"https://api.github.com/repos/bwsw/cloudstack-ui/pulls/1056/comments","review_comment_url":"https://api.github.com/repos/bwsw/cloudstack-ui/pulls/comments{/number}","comments_url":"https://api.github.com/repos/bwsw/cloudstack-ui/issues/1056/comments","statuses_url":"https://api.github.com/repos/bwsw/cloudstack-ui/statuses/90285e6e9fdfa408154e6f380474dfb1ed0b1c13","head":{"label":"tamazlykar:1020-account-delete","ref":"1020-account-delete","sha":"90285e6e9fdfa408154e6f380474dfb1ed0b1c13","user":{"login":"tamazlykar","id":18456914,"avatar_url":"https://avatars2.githubusercontent.com/u/18456914?v=4","gravatar_id":"","url":"https://api.github.com/users/tamazlykar","html_url":"https://github.com/tamazlykar","followers_url":"https://api.github.com/users/tamazlykar/followers","following_url":"https://api.github.com/users/tamazlykar/following{/other_user}","gists_url":"https://api.github.com/users/tamazlykar/gists{/gist_id}","starred_url":"https://api.github.com/users/tamazlykar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tamazlykar/subscriptions","organizations_url":"https://api.github.com/users/tamazlykar/orgs","repos_url":"https://api.github.com/users/tamazlykar/repos","events_url":"https://api.github.com/users/tamazlykar/events{/privacy}","received_events_url":"https://api.github.com/users/tamazlykar/received_events","type":"User","site_admin":false},"repo":{"id":125457068,"name":"cloudstack-ui","full_name":"tamazlykar/cloudstack-ui","owner":{"login":"tamazlykar","id":18456914,"avatar_url":"https://avatars2.githubusercontent.com/u/18456914?v=4","gravatar_id":"","url":"https://api.github.com/users/tamazlykar","html_url":"https://github.com/tamazlykar","followers_url":"https://api.github.com/users/tamazlykar/followers","following_url":"https://api.github.com/users/tamazlykar/following{/other_user}","gists_url":"https://api.github.com/users/tamazlykar/gists{/gist_id}","starred_url":"https://api.github.com/users/tamazlykar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tamazlykar/subscriptions","organizations_url":"https://api.github.com/users/tamazlykar/orgs","repos_url":"https://api.github.com/users/tamazlykar/repos","events_url":"https://api.github.com/users/tamazlykar/events{/privacy}","received_events_url":"https://api.github.com/users/tamazlykar/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tamazlykar/cloudstack-ui","description":"Modern UI for Apache Cloudstack User Self Service Portal","fork":true,"url":"https://api.github.com/repos/tamazlykar/cloudstack-ui","forks_url":"https://api.github.com/repos/tamazlykar/cloudstack-ui/forks","keys_url":"https://api.github.com/repos/tamazlykar/cloudstack-ui/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tamazlykar/cloudstack-ui/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tamazlykar/cloudstack-ui/teams","hooks_url":"https://api.github.com/repos/tamazlykar/cloudstack-ui/hooks","issue_events_url":"https://api.github.com/repos/tamazlykar/cloudstack-ui/issues/events{/number}","events_url":"https://api.github.com/repos/tamazlykar/cloudstack-ui/events","assignees_url":"https://api.github.com/repos/tamazlykar/cloudstack-ui/assignees{/user}","branches_url":"https://api.github.com/repos/tamazlykar/cloudstack-ui/branches{/branch}","tags_url":"https://api.github.com/repos/tamazlykar/cloudstack-ui/tags","blobs_url":"https://api.github.com/repos/tamazlykar/cloudstack-ui/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tamazlykar/cloudstack-ui/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tamazlykar/cloudstack-ui/git/refs{/sha}","trees_url":"https://api.github.com/repos/tamazlykar/cloudstack-ui/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tamazlykar/cloudstack-ui/statuses/{sha}","languages_url":"https://api.github.com/repos/tamazlykar/cloudstack-ui/languages","stargazers_url":"https://api.github.com/repos/tamazlykar/cloudstack-ui/stargazers","contributors_url":"https://api.github.com/repos/tamazlykar/cloudstack-ui/contributors","subscribers_url":"https://api.github.com/repos/tamazlykar/cloudstack-ui/subscribers","subscription_url":"https://api.github.com/repos/tamazlykar/cloudstack-ui/subscription","commits_url":"https://api.github.com/repos/tamazlykar/cloudstack-ui/commits{/sha}","git_commits_url":"https://api.github.com/repos/tamazlykar/cloudstack-ui/git/commits{/sha}","comments_url":"https://api.github.com/repos/tamazlykar/cloudstack-ui/comments{/number}","issue_comment_url":"https://api.github.com/repos/tamazlykar/cloudstack-ui/issues/comments{/number}","contents_url":"https://api.github.com/repos/tamazlykar/cloudstack-ui/contents/{+path}","compare_url":"https://api.github.com/repos/tamazlykar/cloudstack-ui/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tamazlykar/cloudstack-ui/merges","archive_url":"https://api.github.com/repos/tamazlykar/cloudstack-ui/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tamazlykar/cloudstack-ui/downloads","issues_url":"https://api.github.com/repos/tamazlykar/cloudstack-ui/issues{/number}","pulls_url":"https://api.github.com/repos/tamazlykar/cloudstack-ui/pulls{/number}","milestones_url":"https://api.github.com/repos/tamazlykar/cloudstack-ui/milestones{/number}","notifications_url":"https://api.github.com/repos/tamazlykar/cloudstack-ui/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tamazlykar/cloudstack-ui/labels{/name}","releases_url":"https://api.github.com/repos/tamazlykar/cloudstack-ui/releases{/id}","deployments_url":"https://api.github.com/repos/tamazlykar/cloudstack-ui/deployments","created_at":"2018-03-16T03:13:46Z","updated_at":"2018-04-11T03:18:12Z","pushed_at":"2018-04-18T03:09:46Z","git_url":"git://github.com/tamazlykar/cloudstack-ui.git","ssh_url":"git@github.com:tamazlykar/cloudstack-ui.git","clone_url":"https://github.com/tamazlykar/cloudstack-ui.git","svn_url":"https://github.com/tamazlykar/cloudstack-ui","homepage":"","size":25597,"stargazers_count":0,"watchers_count":0,"language":"TypeScript","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":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"bwsw:master","ref":"master","sha":"3bdfa3df3aa9d51db76c2321e68cc8264b1d61fe","user":{"login":"bwsw","id":15047882,"avatar_url":"https://avatars2.githubusercontent.com/u/15047882?v=4","gravatar_id":"","url":"https://api.github.com/users/bwsw","html_url":"https://github.com/bwsw","followers_url":"https://api.github.com/users/bwsw/followers","following_url":"https://api.github.com/users/bwsw/following{/other_user}","gists_url":"https://api.github.com/users/bwsw/gists{/gist_id}","starred_url":"https://api.github.com/users/bwsw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bwsw/subscriptions","organizations_url":"https://api.github.com/users/bwsw/orgs","repos_url":"https://api.github.com/users/bwsw/repos","events_url":"https://api.github.com/users/bwsw/events{/privacy}","received_events_url":"https://api.github.com/users/bwsw/received_events","type":"User","site_admin":false},"repo":{"id":72411100,"name":"cloudstack-ui","full_name":"bwsw/cloudstack-ui","owner":{"login":"bwsw","id":15047882,"avatar_url":"https://avatars2.githubusercontent.com/u/15047882?v=4","gravatar_id":"","url":"https://api.github.com/users/bwsw","html_url":"https://github.com/bwsw","followers_url":"https://api.github.com/users/bwsw/followers","following_url":"https://api.github.com/users/bwsw/following{/other_user}","gists_url":"https://api.github.com/users/bwsw/gists{/gist_id}","starred_url":"https://api.github.com/users/bwsw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bwsw/subscriptions","organizations_url":"https://api.github.com/users/bwsw/orgs","repos_url":"https://api.github.com/users/bwsw/repos","events_url":"https://api.github.com/users/bwsw/events{/privacy}","received_events_url":"https://api.github.com/users/bwsw/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bwsw/cloudstack-ui","description":"Modern UI for Apache Cloudstack User Self Service Portal","fork":false,"url":"https://api.github.com/repos/bwsw/cloudstack-ui","forks_url":"https://api.github.com/repos/bwsw/cloudstack-ui/forks","keys_url":"https://api.github.com/repos/bwsw/cloudstack-ui/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bwsw/cloudstack-ui/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bwsw/cloudstack-ui/teams","hooks_url":"https://api.github.com/repos/bwsw/cloudstack-ui/hooks","issue_events_url":"https://api.github.com/repos/bwsw/cloudstack-ui/issues/events{/number}","events_url":"https://api.github.com/repos/bwsw/cloudstack-ui/events","assignees_url":"https://api.github.com/repos/bwsw/cloudstack-ui/assignees{/user}","branches_url":"https://api.github.com/repos/bwsw/cloudstack-ui/branches{/branch}","tags_url":"https://api.github.com/repos/bwsw/cloudstack-ui/tags","blobs_url":"https://api.github.com/repos/bwsw/cloudstack-ui/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bwsw/cloudstack-ui/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bwsw/cloudstack-ui/git/refs{/sha}","trees_url":"https://api.github.com/repos/bwsw/cloudstack-ui/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bwsw/cloudstack-ui/statuses/{sha}","languages_url":"https://api.github.com/repos/bwsw/cloudstack-ui/languages","stargazers_url":"https://api.github.com/repos/bwsw/cloudstack-ui/stargazers","contributors_url":"https://api.github.com/repos/bwsw/cloudstack-ui/contributors","subscribers_url":"https://api.github.com/repos/bwsw/cloudstack-ui/subscribers","subscription_url":"https://api.github.com/repos/bwsw/cloudstack-ui/subscription","commits_url":"https://api.github.com/repos/bwsw/cloudstack-ui/commits{/sha}","git_commits_url":"https://api.github.com/repos/bwsw/cloudstack-ui/git/commits{/sha}","comments_url":"https://api.github.com/repos/bwsw/cloudstack-ui/comments{/number}","issue_comment_url":"https://api.github.com/repos/bwsw/cloudstack-ui/issues/comments{/number}","contents_url":"https://api.github.com/repos/bwsw/cloudstack-ui/contents/{+path}","compare_url":"https://api.github.com/repos/bwsw/cloudstack-ui/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bwsw/cloudstack-ui/merges","archive_url":"https://api.github.com/repos/bwsw/cloudstack-ui/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bwsw/cloudstack-ui/downloads","issues_url":"https://api.github.com/repos/bwsw/cloudstack-ui/issues{/number}","pulls_url":"https://api.github.com/repos/bwsw/cloudstack-ui/pulls{/number}","milestones_url":"https://api.github.com/repos/bwsw/cloudstack-ui/milestones{/number}","notifications_url":"https://api.github.com/repos/bwsw/cloudstack-ui/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bwsw/cloudstack-ui/labels{/name}","releases_url":"https://api.github.com/repos/bwsw/cloudstack-ui/releases{/id}","deployments_url":"https://api.github.com/repos/bwsw/cloudstack-ui/deployments","created_at":"2016-10-31T06:59:33Z","updated_at":"2018-04-18T03:09:46Z","pushed_at":"2018-04-18T03:09:41Z","git_url":"git://github.com/bwsw/cloudstack-ui.git","ssh_url":"git@github.com:bwsw/cloudstack-ui.git","clone_url":"https://github.com/bwsw/cloudstack-ui.git","svn_url":"https://github.com/bwsw/cloudstack-ui","homepage":"","size":25507,"stargazers_count":89,"watchers_count":89,"language":"TypeScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":21,"mirror_url":null,"archived":false,"open_issues_count":99,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":21,"open_issues":99,"watchers":89,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/bwsw/cloudstack-ui/pulls/1056"},"html":{"href":"https://github.com/bwsw/cloudstack-ui/pull/1056"},"issue":{"href":"https://api.github.com/repos/bwsw/cloudstack-ui/issues/1056"},"comments":{"href":"https://api.github.com/repos/bwsw/cloudstack-ui/issues/1056/comments"},"review_comments":{"href":"https://api.github.com/repos/bwsw/cloudstack-ui/pulls/1056/comments"},"review_comment":{"href":"https://api.github.com/repos/bwsw/cloudstack-ui/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/bwsw/cloudstack-ui/pulls/1056/commits"},"statuses":{"href":"https://api.github.com/repos/bwsw/cloudstack-ui/statuses/90285e6e9fdfa408154e6f380474dfb1ed0b1c13"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"zolotyx"}}