{"action":"created","comment":{"url":"https://api.github.com/repos/ManageIQ/manageiq/pulls/comments/90095918","pull_request_review_id":10620350,"id":90095918,"diff_hunk":"@@ -1,70 +1,113 @@\n #\n-# Description: This method checks to see if the stack has been provisioned\n+# Description: This class checks to see if the stack has been provisioned\n #   and whether the refresh has completed\n #\n+module ManageIQ\n+  module Automate\n+    module Cloud\n+      module Orchestration\n+        module Provisioning\n+          module StateMachines\n+            class CheckProvisioned\n+              def initialize(handle = $evm)\n+                @handle = handle\n+              end\n \n-def refresh_provider(service)\n-  provider = service.orchestration_manager\n+              def main\n+                task = @handle.root[\"service_template_provision_task\"]\n+                service = task.try(:destination)","path":"db/fixtures/ae_datastore/ManageIQ/Cloud/Orchestration/Provisioning/StateMachines/Methods.class/__methods__/check_provisioned.rb","position":21,"original_position":21,"commit_id":"f003adf3150fc9b26d377d5fcc19614426d82087","original_commit_id":"f003adf3150fc9b26d377d5fcc19614426d82087","user":{"login":"bzwei","id":7047579,"avatar_url":"https://avatars.githubusercontent.com/u/7047579?v=3","gravatar_id":"","url":"https://api.github.com/users/bzwei","html_url":"https://github.com/bzwei","followers_url":"https://api.github.com/users/bzwei/followers","following_url":"https://api.github.com/users/bzwei/following{/other_user}","gists_url":"https://api.github.com/users/bzwei/gists{/gist_id}","starred_url":"https://api.github.com/users/bzwei/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bzwei/subscriptions","organizations_url":"https://api.github.com/users/bzwei/orgs","repos_url":"https://api.github.com/users/bzwei/repos","events_url":"https://api.github.com/users/bzwei/events{/privacy}","received_events_url":"https://api.github.com/users/bzwei/received_events","type":"User","site_admin":false},"body":"We want to test whether service exists and is a type of ServiceOrchestration. Log and exit if not.","created_at":"2016-11-29T19:46:54Z","updated_at":"2016-11-29T19:46:54Z","html_url":"https://github.com/ManageIQ/manageiq/pull/12712#discussion_r90095918","pull_request_url":"https://api.github.com/repos/ManageIQ/manageiq/pulls/12712","_links":{"self":{"href":"https://api.github.com/repos/ManageIQ/manageiq/pulls/comments/90095918"},"html":{"href":"https://github.com/ManageIQ/manageiq/pull/12712#discussion_r90095918"},"pull_request":{"href":"https://api.github.com/repos/ManageIQ/manageiq/pulls/12712"}}},"pull_request":{"url":"https://api.github.com/repos/ManageIQ/manageiq/pulls/12712","id":94176655,"html_url":"https://github.com/ManageIQ/manageiq/pull/12712","diff_url":"https://github.com/ManageIQ/manageiq/pull/12712.diff","patch_url":"https://github.com/ManageIQ/manageiq/pull/12712.patch","issue_url":"https://api.github.com/repos/ManageIQ/manageiq/issues/12712","number":12712,"state":"open","locked":false,"title":"Refactoring the cloud orchestration check_provisioned method","user":{"login":"pkomanek","id":19405716,"avatar_url":"https://avatars.githubusercontent.com/u/19405716?v=3","gravatar_id":"","url":"https://api.github.com/users/pkomanek","html_url":"https://github.com/pkomanek","followers_url":"https://api.github.com/users/pkomanek/followers","following_url":"https://api.github.com/users/pkomanek/following{/other_user}","gists_url":"https://api.github.com/users/pkomanek/gists{/gist_id}","starred_url":"https://api.github.com/users/pkomanek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pkomanek/subscriptions","organizations_url":"https://api.github.com/users/pkomanek/orgs","repos_url":"https://api.github.com/users/pkomanek/repos","events_url":"https://api.github.com/users/pkomanek/events{/privacy}","received_events_url":"https://api.github.com/users/pkomanek/received_events","type":"User","site_admin":false},"body":"Purpose or Intent\r\n----------------------\r\n\r\nRefactoring the check_provisioned method for the miq_ae_orchestration based on the issue below.\r\n\r\nLinks [Optional]\r\n-------------------\r\n#12038\r\n","created_at":"2016-11-17T14:24:16Z","updated_at":"2016-11-29T19:46:54Z","closed_at":null,"merged_at":null,"merge_commit_sha":"86097e8cc374e40848aee0173f13b9ebb5a5313d","assignee":{"login":"mkanoor","id":6452699,"avatar_url":"https://avatars.githubusercontent.com/u/6452699?v=3","gravatar_id":"","url":"https://api.github.com/users/mkanoor","html_url":"https://github.com/mkanoor","followers_url":"https://api.github.com/users/mkanoor/followers","following_url":"https://api.github.com/users/mkanoor/following{/other_user}","gists_url":"https://api.github.com/users/mkanoor/gists{/gist_id}","starred_url":"https://api.github.com/users/mkanoor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mkanoor/subscriptions","organizations_url":"https://api.github.com/users/mkanoor/orgs","repos_url":"https://api.github.com/users/mkanoor/repos","events_url":"https://api.github.com/users/mkanoor/events{/privacy}","received_events_url":"https://api.github.com/users/mkanoor/received_events","type":"User","site_admin":false},"assignees":[{"login":"mkanoor","id":6452699,"avatar_url":"https://avatars.githubusercontent.com/u/6452699?v=3","gravatar_id":"","url":"https://api.github.com/users/mkanoor","html_url":"https://github.com/mkanoor","followers_url":"https://api.github.com/users/mkanoor/followers","following_url":"https://api.github.com/users/mkanoor/following{/other_user}","gists_url":"https://api.github.com/users/mkanoor/gists{/gist_id}","starred_url":"https://api.github.com/users/mkanoor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mkanoor/subscriptions","organizations_url":"https://api.github.com/users/mkanoor/orgs","repos_url":"https://api.github.com/users/mkanoor/repos","events_url":"https://api.github.com/users/mkanoor/events{/privacy}","received_events_url":"https://api.github.com/users/mkanoor/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/ManageIQ/manageiq/pulls/12712/commits","review_comments_url":"https://api.github.com/repos/ManageIQ/manageiq/pulls/12712/comments","review_comment_url":"https://api.github.com/repos/ManageIQ/manageiq/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ManageIQ/manageiq/issues/12712/comments","statuses_url":"https://api.github.com/repos/ManageIQ/manageiq/statuses/f003adf3150fc9b26d377d5fcc19614426d82087","head":{"label":"pkomanek:refactoring_cloud_orchestration_check_provisioned_method","ref":"refactoring_cloud_orchestration_check_provisioned_method","sha":"f003adf3150fc9b26d377d5fcc19614426d82087","user":{"login":"pkomanek","id":19405716,"avatar_url":"https://avatars.githubusercontent.com/u/19405716?v=3","gravatar_id":"","url":"https://api.github.com/users/pkomanek","html_url":"https://github.com/pkomanek","followers_url":"https://api.github.com/users/pkomanek/followers","following_url":"https://api.github.com/users/pkomanek/following{/other_user}","gists_url":"https://api.github.com/users/pkomanek/gists{/gist_id}","starred_url":"https://api.github.com/users/pkomanek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pkomanek/subscriptions","organizations_url":"https://api.github.com/users/pkomanek/orgs","repos_url":"https://api.github.com/users/pkomanek/repos","events_url":"https://api.github.com/users/pkomanek/events{/privacy}","received_events_url":"https://api.github.com/users/pkomanek/received_events","type":"User","site_admin":false},"repo":{"id":59008944,"name":"manageiq","full_name":"pkomanek/manageiq","owner":{"login":"pkomanek","id":19405716,"avatar_url":"https://avatars.githubusercontent.com/u/19405716?v=3","gravatar_id":"","url":"https://api.github.com/users/pkomanek","html_url":"https://github.com/pkomanek","followers_url":"https://api.github.com/users/pkomanek/followers","following_url":"https://api.github.com/users/pkomanek/following{/other_user}","gists_url":"https://api.github.com/users/pkomanek/gists{/gist_id}","starred_url":"https://api.github.com/users/pkomanek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pkomanek/subscriptions","organizations_url":"https://api.github.com/users/pkomanek/orgs","repos_url":"https://api.github.com/users/pkomanek/repos","events_url":"https://api.github.com/users/pkomanek/events{/privacy}","received_events_url":"https://api.github.com/users/pkomanek/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/pkomanek/manageiq","description":"ManageIQ Cloud Management Platform","fork":true,"url":"https://api.github.com/repos/pkomanek/manageiq","forks_url":"https://api.github.com/repos/pkomanek/manageiq/forks","keys_url":"https://api.github.com/repos/pkomanek/manageiq/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pkomanek/manageiq/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pkomanek/manageiq/teams","hooks_url":"https://api.github.com/repos/pkomanek/manageiq/hooks","issue_events_url":"https://api.github.com/repos/pkomanek/manageiq/issues/events{/number}","events_url":"https://api.github.com/repos/pkomanek/manageiq/events","assignees_url":"https://api.github.com/repos/pkomanek/manageiq/assignees{/user}","branches_url":"https://api.github.com/repos/pkomanek/manageiq/branches{/branch}","tags_url":"https://api.github.com/repos/pkomanek/manageiq/tags","blobs_url":"https://api.github.com/repos/pkomanek/manageiq/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pkomanek/manageiq/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pkomanek/manageiq/git/refs{/sha}","trees_url":"https://api.github.com/repos/pkomanek/manageiq/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pkomanek/manageiq/statuses/{sha}","languages_url":"https://api.github.com/repos/pkomanek/manageiq/languages","stargazers_url":"https://api.github.com/repos/pkomanek/manageiq/stargazers","contributors_url":"https://api.github.com/repos/pkomanek/manageiq/contributors","subscribers_url":"https://api.github.com/repos/pkomanek/manageiq/subscribers","subscription_url":"https://api.github.com/repos/pkomanek/manageiq/subscription","commits_url":"https://api.github.com/repos/pkomanek/manageiq/commits{/sha}","git_commits_url":"https://api.github.com/repos/pkomanek/manageiq/git/commits{/sha}","comments_url":"https://api.github.com/repos/pkomanek/manageiq/comments{/number}","issue_comment_url":"https://api.github.com/repos/pkomanek/manageiq/issues/comments{/number}","contents_url":"https://api.github.com/repos/pkomanek/manageiq/contents/{+path}","compare_url":"https://api.github.com/repos/pkomanek/manageiq/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pkomanek/manageiq/merges","archive_url":"https://api.github.com/repos/pkomanek/manageiq/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pkomanek/manageiq/downloads","issues_url":"https://api.github.com/repos/pkomanek/manageiq/issues{/number}","pulls_url":"https://api.github.com/repos/pkomanek/manageiq/pulls{/number}","milestones_url":"https://api.github.com/repos/pkomanek/manageiq/milestones{/number}","notifications_url":"https://api.github.com/repos/pkomanek/manageiq/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pkomanek/manageiq/labels{/name}","releases_url":"https://api.github.com/repos/pkomanek/manageiq/releases{/id}","deployments_url":"https://api.github.com/repos/pkomanek/manageiq/deployments","created_at":"2016-05-17T09:28:36Z","updated_at":"2016-05-17T09:28:57Z","pushed_at":"2016-11-24T09:18:35Z","git_url":"git://github.com/pkomanek/manageiq.git","ssh_url":"git@github.com:pkomanek/manageiq.git","clone_url":"https://github.com/pkomanek/manageiq.git","svn_url":"https://github.com/pkomanek/manageiq","homepage":"manageiq.org","size":169750,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"ManageIQ:master","ref":"master","sha":"3ad0ff569874fc7eacb7e0f59c34d175fcd6e4a4","user":{"login":"ManageIQ","id":1125575,"avatar_url":"https://avatars.githubusercontent.com/u/1125575?v=3","gravatar_id":"","url":"https://api.github.com/users/ManageIQ","html_url":"https://github.com/ManageIQ","followers_url":"https://api.github.com/users/ManageIQ/followers","following_url":"https://api.github.com/users/ManageIQ/following{/other_user}","gists_url":"https://api.github.com/users/ManageIQ/gists{/gist_id}","starred_url":"https://api.github.com/users/ManageIQ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ManageIQ/subscriptions","organizations_url":"https://api.github.com/users/ManageIQ/orgs","repos_url":"https://api.github.com/users/ManageIQ/repos","events_url":"https://api.github.com/users/ManageIQ/events{/privacy}","received_events_url":"https://api.github.com/users/ManageIQ/received_events","type":"Organization","site_admin":false},"repo":{"id":20789757,"name":"manageiq","full_name":"ManageIQ/manageiq","owner":{"login":"ManageIQ","id":1125575,"avatar_url":"https://avatars.githubusercontent.com/u/1125575?v=3","gravatar_id":"","url":"https://api.github.com/users/ManageIQ","html_url":"https://github.com/ManageIQ","followers_url":"https://api.github.com/users/ManageIQ/followers","following_url":"https://api.github.com/users/ManageIQ/following{/other_user}","gists_url":"https://api.github.com/users/ManageIQ/gists{/gist_id}","starred_url":"https://api.github.com/users/ManageIQ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ManageIQ/subscriptions","organizations_url":"https://api.github.com/users/ManageIQ/orgs","repos_url":"https://api.github.com/users/ManageIQ/repos","events_url":"https://api.github.com/users/ManageIQ/events{/privacy}","received_events_url":"https://api.github.com/users/ManageIQ/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ManageIQ/manageiq","description":"ManageIQ Open-Source Management Platform","fork":false,"url":"https://api.github.com/repos/ManageIQ/manageiq","forks_url":"https://api.github.com/repos/ManageIQ/manageiq/forks","keys_url":"https://api.github.com/repos/ManageIQ/manageiq/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ManageIQ/manageiq/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ManageIQ/manageiq/teams","hooks_url":"https://api.github.com/repos/ManageIQ/manageiq/hooks","issue_events_url":"https://api.github.com/repos/ManageIQ/manageiq/issues/events{/number}","events_url":"https://api.github.com/repos/ManageIQ/manageiq/events","assignees_url":"https://api.github.com/repos/ManageIQ/manageiq/assignees{/user}","branches_url":"https://api.github.com/repos/ManageIQ/manageiq/branches{/branch}","tags_url":"https://api.github.com/repos/ManageIQ/manageiq/tags","blobs_url":"https://api.github.com/repos/ManageIQ/manageiq/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ManageIQ/manageiq/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ManageIQ/manageiq/git/refs{/sha}","trees_url":"https://api.github.com/repos/ManageIQ/manageiq/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ManageIQ/manageiq/statuses/{sha}","languages_url":"https://api.github.com/repos/ManageIQ/manageiq/languages","stargazers_url":"https://api.github.com/repos/ManageIQ/manageiq/stargazers","contributors_url":"https://api.github.com/repos/ManageIQ/manageiq/contributors","subscribers_url":"https://api.github.com/repos/ManageIQ/manageiq/subscribers","subscription_url":"https://api.github.com/repos/ManageIQ/manageiq/subscription","commits_url":"https://api.github.com/repos/ManageIQ/manageiq/commits{/sha}","git_commits_url":"https://api.github.com/repos/ManageIQ/manageiq/git/commits{/sha}","comments_url":"https://api.github.com/repos/ManageIQ/manageiq/comments{/number}","issue_comment_url":"https://api.github.com/repos/ManageIQ/manageiq/issues/comments{/number}","contents_url":"https://api.github.com/repos/ManageIQ/manageiq/contents/{+path}","compare_url":"https://api.github.com/repos/ManageIQ/manageiq/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ManageIQ/manageiq/merges","archive_url":"https://api.github.com/repos/ManageIQ/manageiq/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ManageIQ/manageiq/downloads","issues_url":"https://api.github.com/repos/ManageIQ/manageiq/issues{/number}","pulls_url":"https://api.github.com/repos/ManageIQ/manageiq/pulls{/number}","milestones_url":"https://api.github.com/repos/ManageIQ/manageiq/milestones{/number}","notifications_url":"https://api.github.com/repos/ManageIQ/manageiq/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ManageIQ/manageiq/labels{/name}","releases_url":"https://api.github.com/repos/ManageIQ/manageiq/releases{/id}","deployments_url":"https://api.github.com/repos/ManageIQ/manageiq/deployments","created_at":"2014-06-13T02:31:26Z","updated_at":"2016-11-25T19:55:34Z","pushed_at":"2016-11-29T19:39:40Z","git_url":"git://github.com/ManageIQ/manageiq.git","ssh_url":"git@github.com:ManageIQ/manageiq.git","clone_url":"https://github.com/ManageIQ/manageiq.git","svn_url":"https://github.com/ManageIQ/manageiq","homepage":"manageiq.org","size":226456,"stargazers_count":357,"watchers_count":357,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":386,"mirror_url":null,"open_issues_count":912,"forks":386,"open_issues":912,"watchers":357,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ManageIQ/manageiq/pulls/12712"},"html":{"href":"https://github.com/ManageIQ/manageiq/pull/12712"},"issue":{"href":"https://api.github.com/repos/ManageIQ/manageiq/issues/12712"},"comments":{"href":"https://api.github.com/repos/ManageIQ/manageiq/issues/12712/comments"},"review_comments":{"href":"https://api.github.com/repos/ManageIQ/manageiq/pulls/12712/comments"},"review_comment":{"href":"https://api.github.com/repos/ManageIQ/manageiq/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ManageIQ/manageiq/pulls/12712/commits"},"statuses":{"href":"https://api.github.com/repos/ManageIQ/manageiq/statuses/f003adf3150fc9b26d377d5fcc19614426d82087"}}}}
{"actor":{"display_login":"bzwei"}}