{"action":"created","comment":{"url":"https://api.github.com/repos/Katello/katello/pulls/comments/54603726","id":54603726,"diff_hunk":"@@ -102,6 +100,30 @@ def successor\n       self.organization.promotion_paths[0][0] unless self.organization.promotion_paths.empty?\n     end\n \n+    # creates new env from create_params with self as a prior\n+    def insert_successor(create_params, path)\n+      binding.pry","path":"app/models/katello/kt_environment.rb","position":27,"original_position":27,"commit_id":"978e63900606213f09fc3a2b5aafb936cd02ef3c","original_commit_id":"978e63900606213f09fc3a2b5aafb936cd02ef3c","user":{"login":"daviddavis","id":86290,"avatar_url":"https://avatars.githubusercontent.com/u/86290?v=3","gravatar_id":"","url":"https://api.github.com/users/daviddavis","html_url":"https://github.com/daviddavis","followers_url":"https://api.github.com/users/daviddavis/followers","following_url":"https://api.github.com/users/daviddavis/following{/other_user}","gists_url":"https://api.github.com/users/daviddavis/gists{/gist_id}","starred_url":"https://api.github.com/users/daviddavis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daviddavis/subscriptions","organizations_url":"https://api.github.com/users/daviddavis/orgs","repos_url":"https://api.github.com/users/daviddavis/repos","events_url":"https://api.github.com/users/daviddavis/events{/privacy}","received_events_url":"https://api.github.com/users/daviddavis/received_events","type":"User","site_admin":false},"body":"Hello.","created_at":"2016-03-01T17:38:24Z","updated_at":"2016-03-01T17:38:24Z","html_url":"https://github.com/Katello/katello/pull/5827#discussion_r54603726","pull_request_url":"https://api.github.com/repos/Katello/katello/pulls/5827","_links":{"self":{"href":"https://api.github.com/repos/Katello/katello/pulls/comments/54603726"},"html":{"href":"https://github.com/Katello/katello/pull/5827#discussion_r54603726"},"pull_request":{"href":"https://api.github.com/repos/Katello/katello/pulls/5827"}}},"pull_request":{"url":"https://api.github.com/repos/Katello/katello/pulls/5827","id":61273532,"html_url":"https://github.com/Katello/katello/pull/5827","diff_url":"https://github.com/Katello/katello/pull/5827.diff","patch_url":"https://github.com/Katello/katello/pull/5827.patch","issue_url":"https://api.github.com/repos/Katello/katello/issues/5827","number":5827,"state":"open","locked":false,"title":"Fixes #13983 - Environment can be inserted into Environments Path","user":{"login":"xprazak2","id":2664090,"avatar_url":"https://avatars.githubusercontent.com/u/2664090?v=3","gravatar_id":"","url":"https://api.github.com/users/xprazak2","html_url":"https://github.com/xprazak2","followers_url":"https://api.github.com/users/xprazak2/followers","following_url":"https://api.github.com/users/xprazak2/following{/other_user}","gists_url":"https://api.github.com/users/xprazak2/gists{/gist_id}","starred_url":"https://api.github.com/users/xprazak2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xprazak2/subscriptions","organizations_url":"https://api.github.com/users/xprazak2/orgs","repos_url":"https://api.github.com/users/xprazak2/repos","events_url":"https://api.github.com/users/xprazak2/events{/privacy}","received_events_url":"https://api.github.com/users/xprazak2/received_events","type":"User","site_admin":false},"body":"\r\n","created_at":"2016-03-01T16:59:06Z","updated_at":"2016-03-01T17:38:24Z","closed_at":null,"merged_at":null,"merge_commit_sha":"45f4cc1e25ed10b93679b5a7d9c9a678d08efd4b","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Katello/katello/pulls/5827/commits","review_comments_url":"https://api.github.com/repos/Katello/katello/pulls/5827/comments","review_comment_url":"https://api.github.com/repos/Katello/katello/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Katello/katello/issues/5827/comments","statuses_url":"https://api.github.com/repos/Katello/katello/statuses/978e63900606213f09fc3a2b5aafb936cd02ef3c","head":{"label":"xprazak2:insert-env","ref":"insert-env","sha":"978e63900606213f09fc3a2b5aafb936cd02ef3c","user":{"login":"xprazak2","id":2664090,"avatar_url":"https://avatars.githubusercontent.com/u/2664090?v=3","gravatar_id":"","url":"https://api.github.com/users/xprazak2","html_url":"https://github.com/xprazak2","followers_url":"https://api.github.com/users/xprazak2/followers","following_url":"https://api.github.com/users/xprazak2/following{/other_user}","gists_url":"https://api.github.com/users/xprazak2/gists{/gist_id}","starred_url":"https://api.github.com/users/xprazak2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xprazak2/subscriptions","organizations_url":"https://api.github.com/users/xprazak2/orgs","repos_url":"https://api.github.com/users/xprazak2/repos","events_url":"https://api.github.com/users/xprazak2/events{/privacy}","received_events_url":"https://api.github.com/users/xprazak2/received_events","type":"User","site_admin":false},"repo":{"id":22336896,"name":"katello","full_name":"xprazak2/katello","owner":{"login":"xprazak2","id":2664090,"avatar_url":"https://avatars.githubusercontent.com/u/2664090?v=3","gravatar_id":"","url":"https://api.github.com/users/xprazak2","html_url":"https://github.com/xprazak2","followers_url":"https://api.github.com/users/xprazak2/followers","following_url":"https://api.github.com/users/xprazak2/following{/other_user}","gists_url":"https://api.github.com/users/xprazak2/gists{/gist_id}","starred_url":"https://api.github.com/users/xprazak2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xprazak2/subscriptions","organizations_url":"https://api.github.com/users/xprazak2/orgs","repos_url":"https://api.github.com/users/xprazak2/repos","events_url":"https://api.github.com/users/xprazak2/events{/privacy}","received_events_url":"https://api.github.com/users/xprazak2/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/xprazak2/katello","description":"Katello integrates open source systems management tools into a single solution for controlling the lifecycle of your machines.","fork":true,"url":"https://api.github.com/repos/xprazak2/katello","forks_url":"https://api.github.com/repos/xprazak2/katello/forks","keys_url":"https://api.github.com/repos/xprazak2/katello/keys{/key_id}","collaborators_url":"https://api.github.com/repos/xprazak2/katello/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/xprazak2/katello/teams","hooks_url":"https://api.github.com/repos/xprazak2/katello/hooks","issue_events_url":"https://api.github.com/repos/xprazak2/katello/issues/events{/number}","events_url":"https://api.github.com/repos/xprazak2/katello/events","assignees_url":"https://api.github.com/repos/xprazak2/katello/assignees{/user}","branches_url":"https://api.github.com/repos/xprazak2/katello/branches{/branch}","tags_url":"https://api.github.com/repos/xprazak2/katello/tags","blobs_url":"https://api.github.com/repos/xprazak2/katello/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/xprazak2/katello/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/xprazak2/katello/git/refs{/sha}","trees_url":"https://api.github.com/repos/xprazak2/katello/git/trees{/sha}","statuses_url":"https://api.github.com/repos/xprazak2/katello/statuses/{sha}","languages_url":"https://api.github.com/repos/xprazak2/katello/languages","stargazers_url":"https://api.github.com/repos/xprazak2/katello/stargazers","contributors_url":"https://api.github.com/repos/xprazak2/katello/contributors","subscribers_url":"https://api.github.com/repos/xprazak2/katello/subscribers","subscription_url":"https://api.github.com/repos/xprazak2/katello/subscription","commits_url":"https://api.github.com/repos/xprazak2/katello/commits{/sha}","git_commits_url":"https://api.github.com/repos/xprazak2/katello/git/commits{/sha}","comments_url":"https://api.github.com/repos/xprazak2/katello/comments{/number}","issue_comment_url":"https://api.github.com/repos/xprazak2/katello/issues/comments{/number}","contents_url":"https://api.github.com/repos/xprazak2/katello/contents/{+path}","compare_url":"https://api.github.com/repos/xprazak2/katello/compare/{base}...{head}","merges_url":"https://api.github.com/repos/xprazak2/katello/merges","archive_url":"https://api.github.com/repos/xprazak2/katello/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/xprazak2/katello/downloads","issues_url":"https://api.github.com/repos/xprazak2/katello/issues{/number}","pulls_url":"https://api.github.com/repos/xprazak2/katello/pulls{/number}","milestones_url":"https://api.github.com/repos/xprazak2/katello/milestones{/number}","notifications_url":"https://api.github.com/repos/xprazak2/katello/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/xprazak2/katello/labels{/name}","releases_url":"https://api.github.com/repos/xprazak2/katello/releases{/id}","deployments_url":"https://api.github.com/repos/xprazak2/katello/deployments","created_at":"2014-07-28T09:08:37Z","updated_at":"2014-08-08T11:42:17Z","pushed_at":"2016-03-01T16:56:50Z","git_url":"git://github.com/xprazak2/katello.git","ssh_url":"git@github.com:xprazak2/katello.git","clone_url":"https://github.com/xprazak2/katello.git","svn_url":"https://github.com/xprazak2/katello","homepage":"katello.org","size":86904,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"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":"Katello:master","ref":"master","sha":"00dc16e84fe8b52f73e81913cb673e502b32ace9","user":{"login":"Katello","id":1316386,"avatar_url":"https://avatars.githubusercontent.com/u/1316386?v=3","gravatar_id":"","url":"https://api.github.com/users/Katello","html_url":"https://github.com/Katello","followers_url":"https://api.github.com/users/Katello/followers","following_url":"https://api.github.com/users/Katello/following{/other_user}","gists_url":"https://api.github.com/users/Katello/gists{/gist_id}","starred_url":"https://api.github.com/users/Katello/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Katello/subscriptions","organizations_url":"https://api.github.com/users/Katello/orgs","repos_url":"https://api.github.com/users/Katello/repos","events_url":"https://api.github.com/users/Katello/events{/privacy}","received_events_url":"https://api.github.com/users/Katello/received_events","type":"Organization","site_admin":false},"repo":{"id":4007018,"name":"katello","full_name":"Katello/katello","owner":{"login":"Katello","id":1316386,"avatar_url":"https://avatars.githubusercontent.com/u/1316386?v=3","gravatar_id":"","url":"https://api.github.com/users/Katello","html_url":"https://github.com/Katello","followers_url":"https://api.github.com/users/Katello/followers","following_url":"https://api.github.com/users/Katello/following{/other_user}","gists_url":"https://api.github.com/users/Katello/gists{/gist_id}","starred_url":"https://api.github.com/users/Katello/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Katello/subscriptions","organizations_url":"https://api.github.com/users/Katello/orgs","repos_url":"https://api.github.com/users/Katello/repos","events_url":"https://api.github.com/users/Katello/events{/privacy}","received_events_url":"https://api.github.com/users/Katello/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Katello/katello","description":"Katello integrates open source systems management tools into a single solution for controlling the lifecycle of your machines.","fork":false,"url":"https://api.github.com/repos/Katello/katello","forks_url":"https://api.github.com/repos/Katello/katello/forks","keys_url":"https://api.github.com/repos/Katello/katello/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Katello/katello/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Katello/katello/teams","hooks_url":"https://api.github.com/repos/Katello/katello/hooks","issue_events_url":"https://api.github.com/repos/Katello/katello/issues/events{/number}","events_url":"https://api.github.com/repos/Katello/katello/events","assignees_url":"https://api.github.com/repos/Katello/katello/assignees{/user}","branches_url":"https://api.github.com/repos/Katello/katello/branches{/branch}","tags_url":"https://api.github.com/repos/Katello/katello/tags","blobs_url":"https://api.github.com/repos/Katello/katello/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Katello/katello/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Katello/katello/git/refs{/sha}","trees_url":"https://api.github.com/repos/Katello/katello/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Katello/katello/statuses/{sha}","languages_url":"https://api.github.com/repos/Katello/katello/languages","stargazers_url":"https://api.github.com/repos/Katello/katello/stargazers","contributors_url":"https://api.github.com/repos/Katello/katello/contributors","subscribers_url":"https://api.github.com/repos/Katello/katello/subscribers","subscription_url":"https://api.github.com/repos/Katello/katello/subscription","commits_url":"https://api.github.com/repos/Katello/katello/commits{/sha}","git_commits_url":"https://api.github.com/repos/Katello/katello/git/commits{/sha}","comments_url":"https://api.github.com/repos/Katello/katello/comments{/number}","issue_comment_url":"https://api.github.com/repos/Katello/katello/issues/comments{/number}","contents_url":"https://api.github.com/repos/Katello/katello/contents/{+path}","compare_url":"https://api.github.com/repos/Katello/katello/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Katello/katello/merges","archive_url":"https://api.github.com/repos/Katello/katello/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Katello/katello/downloads","issues_url":"https://api.github.com/repos/Katello/katello/issues{/number}","pulls_url":"https://api.github.com/repos/Katello/katello/pulls{/number}","milestones_url":"https://api.github.com/repos/Katello/katello/milestones{/number}","notifications_url":"https://api.github.com/repos/Katello/katello/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Katello/katello/labels{/name}","releases_url":"https://api.github.com/repos/Katello/katello/releases{/id}","deployments_url":"https://api.github.com/repos/Katello/katello/deployments","created_at":"2012-04-12T16:59:08Z","updated_at":"2016-02-20T06:49:26Z","pushed_at":"2016-03-01T16:59:07Z","git_url":"git://github.com/Katello/katello.git","ssh_url":"git@github.com:Katello/katello.git","clone_url":"https://github.com/Katello/katello.git","svn_url":"https://github.com/Katello/katello","homepage":"katello.org","size":95509,"stargazers_count":174,"watchers_count":174,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":121,"mirror_url":null,"open_issues_count":95,"forks":121,"open_issues":95,"watchers":174,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Katello/katello/pulls/5827"},"html":{"href":"https://github.com/Katello/katello/pull/5827"},"issue":{"href":"https://api.github.com/repos/Katello/katello/issues/5827"},"comments":{"href":"https://api.github.com/repos/Katello/katello/issues/5827/comments"},"review_comments":{"href":"https://api.github.com/repos/Katello/katello/pulls/5827/comments"},"review_comment":{"href":"https://api.github.com/repos/Katello/katello/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Katello/katello/pulls/5827/commits"},"statuses":{"href":"https://api.github.com/repos/Katello/katello/statuses/978e63900606213f09fc3a2b5aafb936cd02ef3c"}}}}