{"action":"created","comment":{"url":"https://api.github.com/repos/ManageIQ/manageiq/pulls/comments/107375605","pull_request_review_id":28341260,"id":107375605,"diff_hunk":"@@ -32,6 +32,12 @@ def configuration_scripts\n       inventory_object.survey_spec = job_template.survey_spec_hash\n       inventory_object.variables = job_template.extra_vars_hash\n       inventory_object.inventory_root_group = persister.inventory_root_groups.lazy_find(job_template.inventory_id.to_s)\n+      # inventory_object.configuration_script_source = persister.projects.lazy_find(job_template.project_id.to_s)\n+      # project = persister.configuration_script_sources.lazy_find(job_template.project_id.to_s)\n+      inventory_object.parent = persister.configuration_script_payloads.lazy_find(","path":"app/models/manageiq/providers/ansible_tower/shared/inventory/parser/automation_manager.rb","position":6,"original_position":6,"commit_id":"8deb24e5c3d31c0a6ad45b20119a0592a73dfd0b","original_commit_id":"8deb24e5c3d31c0a6ad45b20119a0592a73dfd0b","user":{"login":"durandom","id":161888,"avatar_url":"https://avatars1.githubusercontent.com/u/161888?v=3","gravatar_id":"","url":"https://api.github.com/users/durandom","html_url":"https://github.com/durandom","followers_url":"https://api.github.com/users/durandom/followers","following_url":"https://api.github.com/users/durandom/following{/other_user}","gists_url":"https://api.github.com/users/durandom/gists{/gist_id}","starred_url":"https://api.github.com/users/durandom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/durandom/subscriptions","organizations_url":"https://api.github.com/users/durandom/orgs","repos_url":"https://api.github.com/users/durandom/repos","events_url":"https://api.github.com/users/durandom/events{/privacy}","received_events_url":"https://api.github.com/users/durandom/received_events","type":"User","site_admin":false},"body":"@bzwei this is the right association, right? \r\n\r\n`job_template.parent = playbook`  / `configuration_script.parent = configuration_script_payload`","created_at":"2017-03-22T10:16:21Z","updated_at":"2017-03-22T10:16:21Z","html_url":"https://github.com/ManageIQ/manageiq/pull/14432#discussion_r107375605","pull_request_url":"https://api.github.com/repos/ManageIQ/manageiq/pulls/14432","_links":{"self":{"href":"https://api.github.com/repos/ManageIQ/manageiq/pulls/comments/107375605"},"html":{"href":"https://github.com/ManageIQ/manageiq/pull/14432#discussion_r107375605"},"pull_request":{"href":"https://api.github.com/repos/ManageIQ/manageiq/pulls/14432"}}},"pull_request":{"url":"https://api.github.com/repos/ManageIQ/manageiq/pulls/14432","id":111826554,"html_url":"https://github.com/ManageIQ/manageiq/pull/14432","diff_url":"https://github.com/ManageIQ/manageiq/pull/14432.diff","patch_url":"https://github.com/ManageIQ/manageiq/pull/14432.patch","issue_url":"https://api.github.com/repos/ManageIQ/manageiq/issues/14432","number":14432,"state":"open","locked":false,"title":"[WIP] ansible refresh job_template -> playbook connection","user":{"login":"durandom","id":161888,"avatar_url":"https://avatars1.githubusercontent.com/u/161888?v=3","gravatar_id":"","url":"https://api.github.com/users/durandom","html_url":"https://github.com/durandom","followers_url":"https://api.github.com/users/durandom/followers","following_url":"https://api.github.com/users/durandom/following{/other_user}","gists_url":"https://api.github.com/users/durandom/gists{/gist_id}","starred_url":"https://api.github.com/users/durandom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/durandom/subscriptions","organizations_url":"https://api.github.com/users/durandom/orgs","repos_url":"https://api.github.com/users/durandom/repos","events_url":"https://api.github.com/users/durandom/events{/privacy}","received_events_url":"https://api.github.com/users/durandom/received_events","type":"User","site_admin":false},"body":"attaches Playbook (ConfigurationScriptPayload) to JobTemplate (ConfigurationScript) via `.parent` during refresh\r\n\r\ndo what https://github.com/ManageIQ/manageiq/pull/14419 did in refresh\r\n","created_at":"2017-03-21T16:49:11Z","updated_at":"2017-03-22T10:16:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":"823fc1df3db6465424359f6c05041c22f6fa602c","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/ManageIQ/manageiq/pulls/14432/commits","review_comments_url":"https://api.github.com/repos/ManageIQ/manageiq/pulls/14432/comments","review_comment_url":"https://api.github.com/repos/ManageIQ/manageiq/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ManageIQ/manageiq/issues/14432/comments","statuses_url":"https://api.github.com/repos/ManageIQ/manageiq/statuses/8deb24e5c3d31c0a6ad45b20119a0592a73dfd0b","head":{"label":"durandom:ansible_refresh_jt_playbook","ref":"ansible_refresh_jt_playbook","sha":"8deb24e5c3d31c0a6ad45b20119a0592a73dfd0b","user":{"login":"durandom","id":161888,"avatar_url":"https://avatars1.githubusercontent.com/u/161888?v=3","gravatar_id":"","url":"https://api.github.com/users/durandom","html_url":"https://github.com/durandom","followers_url":"https://api.github.com/users/durandom/followers","following_url":"https://api.github.com/users/durandom/following{/other_user}","gists_url":"https://api.github.com/users/durandom/gists{/gist_id}","starred_url":"https://api.github.com/users/durandom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/durandom/subscriptions","organizations_url":"https://api.github.com/users/durandom/orgs","repos_url":"https://api.github.com/users/durandom/repos","events_url":"https://api.github.com/users/durandom/events{/privacy}","received_events_url":"https://api.github.com/users/durandom/received_events","type":"User","site_admin":false},"repo":{"id":48989151,"name":"manageiq","full_name":"durandom/manageiq","owner":{"login":"durandom","id":161888,"avatar_url":"https://avatars1.githubusercontent.com/u/161888?v=3","gravatar_id":"","url":"https://api.github.com/users/durandom","html_url":"https://github.com/durandom","followers_url":"https://api.github.com/users/durandom/followers","following_url":"https://api.github.com/users/durandom/following{/other_user}","gists_url":"https://api.github.com/users/durandom/gists{/gist_id}","starred_url":"https://api.github.com/users/durandom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/durandom/subscriptions","organizations_url":"https://api.github.com/users/durandom/orgs","repos_url":"https://api.github.com/users/durandom/repos","events_url":"https://api.github.com/users/durandom/events{/privacy}","received_events_url":"https://api.github.com/users/durandom/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/durandom/manageiq","description":"ManageIQ Cloud Management Platform","fork":true,"url":"https://api.github.com/repos/durandom/manageiq","forks_url":"https://api.github.com/repos/durandom/manageiq/forks","keys_url":"https://api.github.com/repos/durandom/manageiq/keys{/key_id}","collaborators_url":"https://api.github.com/repos/durandom/manageiq/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/durandom/manageiq/teams","hooks_url":"https://api.github.com/repos/durandom/manageiq/hooks","issue_events_url":"https://api.github.com/repos/durandom/manageiq/issues/events{/number}","events_url":"https://api.github.com/repos/durandom/manageiq/events","assignees_url":"https://api.github.com/repos/durandom/manageiq/assignees{/user}","branches_url":"https://api.github.com/repos/durandom/manageiq/branches{/branch}","tags_url":"https://api.github.com/repos/durandom/manageiq/tags","blobs_url":"https://api.github.com/repos/durandom/manageiq/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/durandom/manageiq/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/durandom/manageiq/git/refs{/sha}","trees_url":"https://api.github.com/repos/durandom/manageiq/git/trees{/sha}","statuses_url":"https://api.github.com/repos/durandom/manageiq/statuses/{sha}","languages_url":"https://api.github.com/repos/durandom/manageiq/languages","stargazers_url":"https://api.github.com/repos/durandom/manageiq/stargazers","contributors_url":"https://api.github.com/repos/durandom/manageiq/contributors","subscribers_url":"https://api.github.com/repos/durandom/manageiq/subscribers","subscription_url":"https://api.github.com/repos/durandom/manageiq/subscription","commits_url":"https://api.github.com/repos/durandom/manageiq/commits{/sha}","git_commits_url":"https://api.github.com/repos/durandom/manageiq/git/commits{/sha}","comments_url":"https://api.github.com/repos/durandom/manageiq/comments{/number}","issue_comment_url":"https://api.github.com/repos/durandom/manageiq/issues/comments{/number}","contents_url":"https://api.github.com/repos/durandom/manageiq/contents/{+path}","compare_url":"https://api.github.com/repos/durandom/manageiq/compare/{base}...{head}","merges_url":"https://api.github.com/repos/durandom/manageiq/merges","archive_url":"https://api.github.com/repos/durandom/manageiq/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/durandom/manageiq/downloads","issues_url":"https://api.github.com/repos/durandom/manageiq/issues{/number}","pulls_url":"https://api.github.com/repos/durandom/manageiq/pulls{/number}","milestones_url":"https://api.github.com/repos/durandom/manageiq/milestones{/number}","notifications_url":"https://api.github.com/repos/durandom/manageiq/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/durandom/manageiq/labels{/name}","releases_url":"https://api.github.com/repos/durandom/manageiq/releases{/id}","deployments_url":"https://api.github.com/repos/durandom/manageiq/deployments","created_at":"2016-01-04T10:05:53Z","updated_at":"2016-01-13T19:58:57Z","pushed_at":"2017-03-22T10:11:22Z","git_url":"git://github.com/durandom/manageiq.git","ssh_url":"git@github.com:durandom/manageiq.git","clone_url":"https://github.com/durandom/manageiq.git","svn_url":"https://github.com/durandom/manageiq","homepage":"manageiq.org","size":184811,"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":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"ManageIQ:master","ref":"master","sha":"976486006c16f51478718409200b818d509c7a14","user":{"login":"ManageIQ","id":1125575,"avatar_url":"https://avatars3.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://avatars3.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":"2017-03-22T03:59:34Z","pushed_at":"2017-03-22T10:13:05Z","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":189618,"stargazers_count":425,"watchers_count":425,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":445,"mirror_url":null,"open_issues_count":862,"forks":445,"open_issues":862,"watchers":425,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ManageIQ/manageiq/pulls/14432"},"html":{"href":"https://github.com/ManageIQ/manageiq/pull/14432"},"issue":{"href":"https://api.github.com/repos/ManageIQ/manageiq/issues/14432"},"comments":{"href":"https://api.github.com/repos/ManageIQ/manageiq/issues/14432/comments"},"review_comments":{"href":"https://api.github.com/repos/ManageIQ/manageiq/pulls/14432/comments"},"review_comment":{"href":"https://api.github.com/repos/ManageIQ/manageiq/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ManageIQ/manageiq/pulls/14432/commits"},"statuses":{"href":"https://api.github.com/repos/ManageIQ/manageiq/statuses/8deb24e5c3d31c0a6ad45b20119a0592a73dfd0b"}}}}
{"actor":{"display_login":"durandom"}}