{"action":"created","comment":{"url":"https://api.github.com/repos/theforeman/foreman-tasks/pulls/comments/165600109","pull_request_review_id":93567048,"id":165600109,"diff_hunk":"@@ -97,16 +103,38 @@ def cli_example\n \n     def main_action\n       return @main_action if defined?(@main_action)\n-      @main_action = execution_plan && execution_plan.root_plan_step.try(:action, execution_plan)\n+      if active_job?\n+        action = execution_plan_action\n+        active_job_action(action.input['job_class'], action.input['job_arguments'])","path":"app/models/foreman_tasks/task/dynflow_task.rb","position":37,"original_position":37,"commit_id":"07fdbc7a5cf1ba8221b3dc8fa79bbd6288749a73","original_commit_id":"80ff1ff9b069f8fff316874031c51d221b3590b5","user":{"login":"adamruzicka","id":7326770,"avatar_url":"https://avatars0.githubusercontent.com/u/7326770?v=4","gravatar_id":"","url":"https://api.github.com/users/adamruzicka","html_url":"https://github.com/adamruzicka","followers_url":"https://api.github.com/users/adamruzicka/followers","following_url":"https://api.github.com/users/adamruzicka/following{/other_user}","gists_url":"https://api.github.com/users/adamruzicka/gists{/gist_id}","starred_url":"https://api.github.com/users/adamruzicka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adamruzicka/subscriptions","organizations_url":"https://api.github.com/users/adamruzicka/orgs","repos_url":"https://api.github.com/users/adamruzicka/repos","events_url":"https://api.github.com/users/adamruzicka/events{/privacy}","received_events_url":"https://api.github.com/users/adamruzicka/received_events","type":"User","site_admin":false},"body":"I think I scheduled an active job to be executed in the future and went to look into the tasks index before it was started","created_at":"2018-02-02T09:49:11Z","updated_at":"2018-02-02T09:49:11Z","html_url":"https://github.com/theforeman/foreman-tasks/pull/238#discussion_r165600109","pull_request_url":"https://api.github.com/repos/theforeman/foreman-tasks/pulls/238","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/theforeman/foreman-tasks/pulls/comments/165600109"},"html":{"href":"https://github.com/theforeman/foreman-tasks/pull/238#discussion_r165600109"},"pull_request":{"href":"https://api.github.com/repos/theforeman/foreman-tasks/pulls/238"}},"in_reply_to_id":163177186},"pull_request":{"url":"https://api.github.com/repos/theforeman/foreman-tasks/pulls/238","id":108599630,"html_url":"https://github.com/theforeman/foreman-tasks/pull/238","diff_url":"https://github.com/theforeman/foreman-tasks/pull/238.diff","patch_url":"https://github.com/theforeman/foreman-tasks/pull/238.patch","issue_url":"https://api.github.com/repos/theforeman/foreman-tasks/issues/238","number":238,"state":"open","locked":false,"title":"Fixes #18758 - Allow ActiveJobs to be displayed in the tasks lists","user":{"login":"dLobatog","id":598891,"avatar_url":"https://avatars2.githubusercontent.com/u/598891?v=4","gravatar_id":"","url":"https://api.github.com/users/dLobatog","html_url":"https://github.com/dLobatog","followers_url":"https://api.github.com/users/dLobatog/followers","following_url":"https://api.github.com/users/dLobatog/following{/other_user}","gists_url":"https://api.github.com/users/dLobatog/gists{/gist_id}","starred_url":"https://api.github.com/users/dLobatog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dLobatog/subscriptions","organizations_url":"https://api.github.com/users/dLobatog/orgs","repos_url":"https://api.github.com/users/dLobatog/repos","events_url":"https://api.github.com/users/dLobatog/events{/privacy}","received_events_url":"https://api.github.com/users/dLobatog/received_events","type":"User","site_admin":false},"body":"The jobs created by ActiveJob would not show up properly in the tasks\r\nlist. Small adaptions should be made to allow foreman-tasks to pick up\r\nthe 'humanized' methods and display it.\r\n\r\nCan be merged at any point, before or after: https://github.com/theforeman/foreman-tasks/pull/235","created_at":"2017-03-01T18:28:28Z","updated_at":"2018-02-02T09:49:11Z","closed_at":null,"merged_at":null,"merge_commit_sha":"40a3fcbf653ea978ef504fe7e3db725076d8f35e","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"milestone":null,"commits_url":"https://api.github.com/repos/theforeman/foreman-tasks/pulls/238/commits","review_comments_url":"https://api.github.com/repos/theforeman/foreman-tasks/pulls/238/comments","review_comment_url":"https://api.github.com/repos/theforeman/foreman-tasks/pulls/comments{/number}","comments_url":"https://api.github.com/repos/theforeman/foreman-tasks/issues/238/comments","statuses_url":"https://api.github.com/repos/theforeman/foreman-tasks/statuses/07fdbc7a5cf1ba8221b3dc8fa79bbd6288749a73","head":{"label":"dLobatog:18758","ref":"18758","sha":"07fdbc7a5cf1ba8221b3dc8fa79bbd6288749a73","user":{"login":"dLobatog","id":598891,"avatar_url":"https://avatars2.githubusercontent.com/u/598891?v=4","gravatar_id":"","url":"https://api.github.com/users/dLobatog","html_url":"https://github.com/dLobatog","followers_url":"https://api.github.com/users/dLobatog/followers","following_url":"https://api.github.com/users/dLobatog/following{/other_user}","gists_url":"https://api.github.com/users/dLobatog/gists{/gist_id}","starred_url":"https://api.github.com/users/dLobatog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dLobatog/subscriptions","organizations_url":"https://api.github.com/users/dLobatog/orgs","repos_url":"https://api.github.com/users/dLobatog/repos","events_url":"https://api.github.com/users/dLobatog/events{/privacy}","received_events_url":"https://api.github.com/users/dLobatog/received_events","type":"User","site_admin":false},"repo":{"id":29601172,"name":"foreman-tasks","full_name":"dLobatog/foreman-tasks","owner":{"login":"dLobatog","id":598891,"avatar_url":"https://avatars2.githubusercontent.com/u/598891?v=4","gravatar_id":"","url":"https://api.github.com/users/dLobatog","html_url":"https://github.com/dLobatog","followers_url":"https://api.github.com/users/dLobatog/followers","following_url":"https://api.github.com/users/dLobatog/following{/other_user}","gists_url":"https://api.github.com/users/dLobatog/gists{/gist_id}","starred_url":"https://api.github.com/users/dLobatog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dLobatog/subscriptions","organizations_url":"https://api.github.com/users/dLobatog/orgs","repos_url":"https://api.github.com/users/dLobatog/repos","events_url":"https://api.github.com/users/dLobatog/events{/privacy}","received_events_url":"https://api.github.com/users/dLobatog/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dLobatog/foreman-tasks","description":"Tasks management engine and plugin for Foreman","fork":true,"url":"https://api.github.com/repos/dLobatog/foreman-tasks","forks_url":"https://api.github.com/repos/dLobatog/foreman-tasks/forks","keys_url":"https://api.github.com/repos/dLobatog/foreman-tasks/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dLobatog/foreman-tasks/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dLobatog/foreman-tasks/teams","hooks_url":"https://api.github.com/repos/dLobatog/foreman-tasks/hooks","issue_events_url":"https://api.github.com/repos/dLobatog/foreman-tasks/issues/events{/number}","events_url":"https://api.github.com/repos/dLobatog/foreman-tasks/events","assignees_url":"https://api.github.com/repos/dLobatog/foreman-tasks/assignees{/user}","branches_url":"https://api.github.com/repos/dLobatog/foreman-tasks/branches{/branch}","tags_url":"https://api.github.com/repos/dLobatog/foreman-tasks/tags","blobs_url":"https://api.github.com/repos/dLobatog/foreman-tasks/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dLobatog/foreman-tasks/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dLobatog/foreman-tasks/git/refs{/sha}","trees_url":"https://api.github.com/repos/dLobatog/foreman-tasks/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dLobatog/foreman-tasks/statuses/{sha}","languages_url":"https://api.github.com/repos/dLobatog/foreman-tasks/languages","stargazers_url":"https://api.github.com/repos/dLobatog/foreman-tasks/stargazers","contributors_url":"https://api.github.com/repos/dLobatog/foreman-tasks/contributors","subscribers_url":"https://api.github.com/repos/dLobatog/foreman-tasks/subscribers","subscription_url":"https://api.github.com/repos/dLobatog/foreman-tasks/subscription","commits_url":"https://api.github.com/repos/dLobatog/foreman-tasks/commits{/sha}","git_commits_url":"https://api.github.com/repos/dLobatog/foreman-tasks/git/commits{/sha}","comments_url":"https://api.github.com/repos/dLobatog/foreman-tasks/comments{/number}","issue_comment_url":"https://api.github.com/repos/dLobatog/foreman-tasks/issues/comments{/number}","contents_url":"https://api.github.com/repos/dLobatog/foreman-tasks/contents/{+path}","compare_url":"https://api.github.com/repos/dLobatog/foreman-tasks/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dLobatog/foreman-tasks/merges","archive_url":"https://api.github.com/repos/dLobatog/foreman-tasks/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dLobatog/foreman-tasks/downloads","issues_url":"https://api.github.com/repos/dLobatog/foreman-tasks/issues{/number}","pulls_url":"https://api.github.com/repos/dLobatog/foreman-tasks/pulls{/number}","milestones_url":"https://api.github.com/repos/dLobatog/foreman-tasks/milestones{/number}","notifications_url":"https://api.github.com/repos/dLobatog/foreman-tasks/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dLobatog/foreman-tasks/labels{/name}","releases_url":"https://api.github.com/repos/dLobatog/foreman-tasks/releases{/id}","deployments_url":"https://api.github.com/repos/dLobatog/foreman-tasks/deployments","created_at":"2015-01-21T17:13:59Z","updated_at":"2016-01-22T09:47:15Z","pushed_at":"2018-01-30T18:20:22Z","git_url":"git://github.com/dLobatog/foreman-tasks.git","ssh_url":"git@github.com:dLobatog/foreman-tasks.git","clone_url":"https://github.com/dLobatog/foreman-tasks.git","svn_url":"https://github.com/dLobatog/foreman-tasks","homepage":"http://projects.theforeman.org/projects/foreman-tasks/","size":695,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"gpl-3.0","name":"GNU General Public License v3.0","spdx_id":"GPL-3.0","url":"https://api.github.com/licenses/gpl-3.0"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"theforeman:master","ref":"master","sha":"0abbab94d7d5e7cb195ecbc4e5b850e85137fd28","user":{"login":"theforeman","id":1439844,"avatar_url":"https://avatars2.githubusercontent.com/u/1439844?v=4","gravatar_id":"","url":"https://api.github.com/users/theforeman","html_url":"https://github.com/theforeman","followers_url":"https://api.github.com/users/theforeman/followers","following_url":"https://api.github.com/users/theforeman/following{/other_user}","gists_url":"https://api.github.com/users/theforeman/gists{/gist_id}","starred_url":"https://api.github.com/users/theforeman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/theforeman/subscriptions","organizations_url":"https://api.github.com/users/theforeman/orgs","repos_url":"https://api.github.com/users/theforeman/repos","events_url":"https://api.github.com/users/theforeman/events{/privacy}","received_events_url":"https://api.github.com/users/theforeman/received_events","type":"Organization","site_admin":false},"repo":{"id":14981691,"name":"foreman-tasks","full_name":"theforeman/foreman-tasks","owner":{"login":"theforeman","id":1439844,"avatar_url":"https://avatars2.githubusercontent.com/u/1439844?v=4","gravatar_id":"","url":"https://api.github.com/users/theforeman","html_url":"https://github.com/theforeman","followers_url":"https://api.github.com/users/theforeman/followers","following_url":"https://api.github.com/users/theforeman/following{/other_user}","gists_url":"https://api.github.com/users/theforeman/gists{/gist_id}","starred_url":"https://api.github.com/users/theforeman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/theforeman/subscriptions","organizations_url":"https://api.github.com/users/theforeman/orgs","repos_url":"https://api.github.com/users/theforeman/repos","events_url":"https://api.github.com/users/theforeman/events{/privacy}","received_events_url":"https://api.github.com/users/theforeman/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/theforeman/foreman-tasks","description":"Tasks management engine and plugin for Foreman","fork":false,"url":"https://api.github.com/repos/theforeman/foreman-tasks","forks_url":"https://api.github.com/repos/theforeman/foreman-tasks/forks","keys_url":"https://api.github.com/repos/theforeman/foreman-tasks/keys{/key_id}","collaborators_url":"https://api.github.com/repos/theforeman/foreman-tasks/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/theforeman/foreman-tasks/teams","hooks_url":"https://api.github.com/repos/theforeman/foreman-tasks/hooks","issue_events_url":"https://api.github.com/repos/theforeman/foreman-tasks/issues/events{/number}","events_url":"https://api.github.com/repos/theforeman/foreman-tasks/events","assignees_url":"https://api.github.com/repos/theforeman/foreman-tasks/assignees{/user}","branches_url":"https://api.github.com/repos/theforeman/foreman-tasks/branches{/branch}","tags_url":"https://api.github.com/repos/theforeman/foreman-tasks/tags","blobs_url":"https://api.github.com/repos/theforeman/foreman-tasks/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/theforeman/foreman-tasks/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/theforeman/foreman-tasks/git/refs{/sha}","trees_url":"https://api.github.com/repos/theforeman/foreman-tasks/git/trees{/sha}","statuses_url":"https://api.github.com/repos/theforeman/foreman-tasks/statuses/{sha}","languages_url":"https://api.github.com/repos/theforeman/foreman-tasks/languages","stargazers_url":"https://api.github.com/repos/theforeman/foreman-tasks/stargazers","contributors_url":"https://api.github.com/repos/theforeman/foreman-tasks/contributors","subscribers_url":"https://api.github.com/repos/theforeman/foreman-tasks/subscribers","subscription_url":"https://api.github.com/repos/theforeman/foreman-tasks/subscription","commits_url":"https://api.github.com/repos/theforeman/foreman-tasks/commits{/sha}","git_commits_url":"https://api.github.com/repos/theforeman/foreman-tasks/git/commits{/sha}","comments_url":"https://api.github.com/repos/theforeman/foreman-tasks/comments{/number}","issue_comment_url":"https://api.github.com/repos/theforeman/foreman-tasks/issues/comments{/number}","contents_url":"https://api.github.com/repos/theforeman/foreman-tasks/contents/{+path}","compare_url":"https://api.github.com/repos/theforeman/foreman-tasks/compare/{base}...{head}","merges_url":"https://api.github.com/repos/theforeman/foreman-tasks/merges","archive_url":"https://api.github.com/repos/theforeman/foreman-tasks/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/theforeman/foreman-tasks/downloads","issues_url":"https://api.github.com/repos/theforeman/foreman-tasks/issues{/number}","pulls_url":"https://api.github.com/repos/theforeman/foreman-tasks/pulls{/number}","milestones_url":"https://api.github.com/repos/theforeman/foreman-tasks/milestones{/number}","notifications_url":"https://api.github.com/repos/theforeman/foreman-tasks/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/theforeman/foreman-tasks/labels{/name}","releases_url":"https://api.github.com/repos/theforeman/foreman-tasks/releases{/id}","deployments_url":"https://api.github.com/repos/theforeman/foreman-tasks/deployments","created_at":"2013-12-06T11:52:00Z","updated_at":"2017-12-04T18:04:19Z","pushed_at":"2018-01-31T11:32:54Z","git_url":"git://github.com/theforeman/foreman-tasks.git","ssh_url":"git@github.com:theforeman/foreman-tasks.git","clone_url":"https://github.com/theforeman/foreman-tasks.git","svn_url":"https://github.com/theforeman/foreman-tasks","homepage":"http://projects.theforeman.org/projects/foreman-tasks/","size":708,"stargazers_count":16,"watchers_count":16,"language":"Ruby","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":49,"mirror_url":null,"archived":false,"open_issues_count":13,"license":{"key":"gpl-3.0","name":"GNU General Public License v3.0","spdx_id":"GPL-3.0","url":"https://api.github.com/licenses/gpl-3.0"},"forks":49,"open_issues":13,"watchers":16,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/theforeman/foreman-tasks/pulls/238"},"html":{"href":"https://github.com/theforeman/foreman-tasks/pull/238"},"issue":{"href":"https://api.github.com/repos/theforeman/foreman-tasks/issues/238"},"comments":{"href":"https://api.github.com/repos/theforeman/foreman-tasks/issues/238/comments"},"review_comments":{"href":"https://api.github.com/repos/theforeman/foreman-tasks/pulls/238/comments"},"review_comment":{"href":"https://api.github.com/repos/theforeman/foreman-tasks/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/theforeman/foreman-tasks/pulls/238/commits"},"statuses":{"href":"https://api.github.com/repos/theforeman/foreman-tasks/statuses/07fdbc7a5cf1ba8221b3dc8fa79bbd6288749a73"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"adamruzicka"}}