{"action":"created","comment":{"url":"https://api.github.com/repos/bwsw/cloudstack-ui/pulls/comments/241680024","pull_request_review_id":185012631,"id":241680024,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI0MTY4MDAyNA==","diff_hunk":"@@ -211,8 +254,59 @@ export class VmSnapshotsEffects {\n   );\n \n   @Effect()\n-  revertConfirmation$: Observable<Action> = this.actions$.pipe(\n+  checkRevertPossibility$: Observable<Action> = this.actions$.pipe(\n     ofType<Revert>(VmSnapshotActionTypes.Revert),\n+    withLatestFrom(\n+      this.store.pipe(select(vmSnapshotSelectors.selectEntities)),\n+      this.store.pipe(select(fromVM.selectEntities)),\n+    ),\n+    map(([action, vmSnapshotsEntities, vmEntities]) => {\n+      const vmSnapshot = vmSnapshotsEntities[action.payload.id];\n+      const vm = vmEntities[vmSnapshot.virtualmachineid];\n+      return {\n+        vm,\n+        vmSnapshotId: vmSnapshot.id,\n+      };\n+    }),\n+    exhaustMap(({ vmSnapshotId, vm }) => {\n+      const params = {\n+        resourceid: vmSnapshotId,\n+        resourcetype: vmSnapshotEntityName,\n+        key: vmSnapshotOfferingTagKey,\n+      };\n+      return this.tagService.getList(params).pipe(\n+        /**\n+         * if we unable to verify is revert allowed then we dispatch RevertAllowed in this case","path":"src/app/root-store/server-data/vm-snapshots/vm-snapshots.effects.ts","position":101,"original_position":101,"commit_id":"d1110acced7ffeb8f0b40348777e87e111988fd6","original_commit_id":"d1110acced7ffeb8f0b40348777e87e111988fd6","user":{"login":"wowshakhov","id":22027198,"node_id":"MDQ6VXNlcjIyMDI3MTk4","avatar_url":"https://avatars0.githubusercontent.com/u/22027198?v=4","gravatar_id":"","url":"https://api.github.com/users/wowshakhov","html_url":"https://github.com/wowshakhov","followers_url":"https://api.github.com/users/wowshakhov/followers","following_url":"https://api.github.com/users/wowshakhov/following{/other_user}","gists_url":"https://api.github.com/users/wowshakhov/gists{/gist_id}","starred_url":"https://api.github.com/users/wowshakhov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wowshakhov/subscriptions","organizations_url":"https://api.github.com/users/wowshakhov/orgs","repos_url":"https://api.github.com/users/wowshakhov/repos","events_url":"https://api.github.com/users/wowshakhov/events{/privacy}","received_events_url":"https://api.github.com/users/wowshakhov/received_events","type":"User","site_admin":false},"body":"         * If we ARE unable to verify IF revert IS allowed, then we dispatch RevertAllowed\r\n         * In this case, the user will get a server error if the revert is not allowed\r\n","created_at":"2018-12-14T08:49:37Z","updated_at":"2018-12-14T08:49:37Z","html_url":"https://github.com/bwsw/cloudstack-ui/pull/1495#discussion_r241680024","pull_request_url":"https://api.github.com/repos/bwsw/cloudstack-ui/pulls/1495","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/bwsw/cloudstack-ui/pulls/comments/241680024"},"html":{"href":"https://github.com/bwsw/cloudstack-ui/pull/1495#discussion_r241680024"},"pull_request":{"href":"https://api.github.com/repos/bwsw/cloudstack-ui/pulls/1495"}}},"pull_request":{"url":"https://api.github.com/repos/bwsw/cloudstack-ui/pulls/1495","id":238645614,"node_id":"MDExOlB1bGxSZXF1ZXN0MjM4NjQ1NjE0","html_url":"https://github.com/bwsw/cloudstack-ui/pull/1495","diff_url":"https://github.com/bwsw/cloudstack-ui/pull/1495.diff","patch_url":"https://github.com/bwsw/cloudstack-ui/pull/1495.patch","issue_url":"https://api.github.com/repos/bwsw/cloudstack-ui/issues/1495","number":1495,"state":"open","locked":false,"title":"feat(vm-snapshots): add validation for ability to revert a vm","user":{"login":"tamazlykar","id":18456914,"node_id":"MDQ6VXNlcjE4NDU2OTE0","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":"Implements #943 ","created_at":"2018-12-14T08:34:33Z","updated_at":"2018-12-14T08:49:37Z","closed_at":null,"merged_at":null,"merge_commit_sha":"129830d0f93cc935d30b239d7f3cb282dd565140","assignee":{"login":"wowshakhov","id":22027198,"node_id":"MDQ6VXNlcjIyMDI3MTk4","avatar_url":"https://avatars0.githubusercontent.com/u/22027198?v=4","gravatar_id":"","url":"https://api.github.com/users/wowshakhov","html_url":"https://github.com/wowshakhov","followers_url":"https://api.github.com/users/wowshakhov/followers","following_url":"https://api.github.com/users/wowshakhov/following{/other_user}","gists_url":"https://api.github.com/users/wowshakhov/gists{/gist_id}","starred_url":"https://api.github.com/users/wowshakhov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wowshakhov/subscriptions","organizations_url":"https://api.github.com/users/wowshakhov/orgs","repos_url":"https://api.github.com/users/wowshakhov/repos","events_url":"https://api.github.com/users/wowshakhov/events{/privacy}","received_events_url":"https://api.github.com/users/wowshakhov/received_events","type":"User","site_admin":false},"assignees":[{"login":"wowshakhov","id":22027198,"node_id":"MDQ6VXNlcjIyMDI3MTk4","avatar_url":"https://avatars0.githubusercontent.com/u/22027198?v=4","gravatar_id":"","url":"https://api.github.com/users/wowshakhov","html_url":"https://github.com/wowshakhov","followers_url":"https://api.github.com/users/wowshakhov/followers","following_url":"https://api.github.com/users/wowshakhov/following{/other_user}","gists_url":"https://api.github.com/users/wowshakhov/gists{/gist_id}","starred_url":"https://api.github.com/users/wowshakhov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wowshakhov/subscriptions","organizations_url":"https://api.github.com/users/wowshakhov/orgs","repos_url":"https://api.github.com/users/wowshakhov/repos","events_url":"https://api.github.com/users/wowshakhov/events{/privacy}","received_events_url":"https://api.github.com/users/wowshakhov/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/1495/commits","review_comments_url":"https://api.github.com/repos/bwsw/cloudstack-ui/pulls/1495/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/1495/comments","statuses_url":"https://api.github.com/repos/bwsw/cloudstack-ui/statuses/d1110acced7ffeb8f0b40348777e87e111988fd6","head":{"label":"tamazlykar:943-compute-offering-change-limitation","ref":"943-compute-offering-change-limitation","sha":"d1110acced7ffeb8f0b40348777e87e111988fd6","user":{"login":"tamazlykar","id":18456914,"node_id":"MDQ6VXNlcjE4NDU2OTE0","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,"node_id":"MDEwOlJlcG9zaXRvcnkxMjU0NTcwNjg=","name":"cloudstack-ui","full_name":"tamazlykar/cloudstack-ui","private":false,"owner":{"login":"tamazlykar","id":18456914,"node_id":"MDQ6VXNlcjE4NDU2OTE0","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},"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-12-14T01:56:16Z","pushed_at":"2018-12-14T08:33:49Z","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":43358,"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":2,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"bwsw:master","ref":"master","sha":"cc4de0ac03f16d68647e1c9ee083a7c80cacb5af","user":{"login":"bwsw","id":15047882,"node_id":"MDQ6VXNlcjE1MDQ3ODgy","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,"node_id":"MDEwOlJlcG9zaXRvcnk3MjQxMTEwMA==","name":"cloudstack-ui","full_name":"bwsw/cloudstack-ui","private":false,"owner":{"login":"bwsw","id":15047882,"node_id":"MDQ6VXNlcjE1MDQ3ODgy","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},"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-12-14T01:55:08Z","pushed_at":"2018-12-14T08:34:34Z","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":"https://bitworks.software/","size":43270,"stargazers_count":97,"watchers_count":97,"language":"TypeScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":35,"mirror_url":null,"archived":false,"open_issues_count":90,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":35,"open_issues":90,"watchers":97,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/bwsw/cloudstack-ui/pulls/1495"},"html":{"href":"https://github.com/bwsw/cloudstack-ui/pull/1495"},"issue":{"href":"https://api.github.com/repos/bwsw/cloudstack-ui/issues/1495"},"comments":{"href":"https://api.github.com/repos/bwsw/cloudstack-ui/issues/1495/comments"},"review_comments":{"href":"https://api.github.com/repos/bwsw/cloudstack-ui/pulls/1495/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/1495/commits"},"statuses":{"href":"https://api.github.com/repos/bwsw/cloudstack-ui/statuses/d1110acced7ffeb8f0b40348777e87e111988fd6"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"wowshakhov"}}