{"action":"created","issue":{"url":"https://api.github.com/repos/ManageIQ/manageiq/issues/7252","repository_url":"https://api.github.com/repos/ManageIQ/manageiq","labels_url":"https://api.github.com/repos/ManageIQ/manageiq/issues/7252/labels{/name}","comments_url":"https://api.github.com/repos/ManageIQ/manageiq/issues/7252/comments","events_url":"https://api.github.com/repos/ManageIQ/manageiq/issues/7252/events","html_url":"https://github.com/ManageIQ/manageiq/pull/7252","id":140317473,"number":7252,"title":"[WIP] Convert service to use ancestry","user":{"login":"kbrock","id":1930,"avatar_url":"https://avatars.githubusercontent.com/u/1930?v=3","gravatar_id":"","url":"https://api.github.com/users/kbrock","html_url":"https://github.com/kbrock","followers_url":"https://api.github.com/users/kbrock/followers","following_url":"https://api.github.com/users/kbrock/following{/other_user}","gists_url":"https://api.github.com/users/kbrock/gists{/gist_id}","starred_url":"https://api.github.com/users/kbrock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kbrock/subscriptions","organizations_url":"https://api.github.com/users/kbrock/orgs","repos_url":"https://api.github.com/users/kbrock/repos","events_url":"https://api.github.com/users/kbrock/events{/privacy}","received_events_url":"https://api.github.com/users/kbrock/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ManageIQ/manageiq/labels/performance","name":"performance","color":"fad8c7"},{"url":"https://api.github.com/repos/ManageIQ/manageiq/labels/services","name":"services","color":"5319e7"},{"url":"https://api.github.com/repos/ManageIQ/manageiq/labels/wip","name":"wip","color":"eeeeee"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-03-11T23:26:29Z","updated_at":"2016-03-15T19:29:09Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/ManageIQ/manageiq/pulls/7252","html_url":"https://github.com/ManageIQ/manageiq/pull/7252","diff_url":"https://github.com/ManageIQ/manageiq/pull/7252.diff","patch_url":"https://github.com/ManageIQ/manageiq/pull/7252.patch"},"body":"On 5.4, we use recursive queries.\r\nIn the process of porting that code to master, @Fryguy asked if it were just easier to convert to ancestry. So here we go...\r\n\r\nhad a tough time using ancestry from the migrations, so manually rolled the ids.\r\n\r\n/cc @Fryguy Think this is pretty straight forward\r\n/cc @bzwei fyi"},"comment":{"url":"https://api.github.com/repos/ManageIQ/manageiq/issues/comments/196986139","html_url":"https://github.com/ManageIQ/manageiq/pull/7252#issuecomment-196986139","issue_url":"https://api.github.com/repos/ManageIQ/manageiq/issues/7252","id":196986139,"user":{"login":"kbrock","id":1930,"avatar_url":"https://avatars.githubusercontent.com/u/1930?v=3","gravatar_id":"","url":"https://api.github.com/users/kbrock","html_url":"https://github.com/kbrock","followers_url":"https://api.github.com/users/kbrock/followers","following_url":"https://api.github.com/users/kbrock/following{/other_user}","gists_url":"https://api.github.com/users/kbrock/gists{/gist_id}","starred_url":"https://api.github.com/users/kbrock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kbrock/subscriptions","organizations_url":"https://api.github.com/users/kbrock/orgs","repos_url":"https://api.github.com/users/kbrock/repos","events_url":"https://api.github.com/users/kbrock/events{/privacy}","received_events_url":"https://api.github.com/users/kbrock/received_events","type":"User","site_admin":false},"created_at":"2016-03-15T19:29:09Z","updated_at":"2016-03-15T19:29:09Z","body":"@bzwei Where does `service_template` store the parent relationship?\r\n\r\n`service.service_id` points to the parent service.\r\n\r\nDoes `service_template.service_template` point to the parent service template (that will later be transformed into a `service` reference in the created service?"}}