{"action":"created","comment":{"url":"https://api.github.com/repos/Katello/katello/pulls/comments/47225682","id":47225682,"diff_hunk":"@@ -36,10 +36,14 @@ def test_promotable_without_environments2\n \n     def test_of_version\n       version = @cvv\n+      content_view = version.content_view\n+      content_view.versions << @cvv_minor\n+\n       assert_equal [version], version.content_view.versions.for_version(\"1.0\")\n       assert_equal [version], version.content_view.versions.for_version(\"1\")\n       assert_equal [version], version.content_view.versions.for_version(1)\n       assert_equal [version], version.content_view.versions.for_version(1.0)\n+      assert_equal [minor_version], version.content_view.versions.for_version(1.1)","path":"test/models/content_view_version_test.rb","position":11,"original_position":11,"commit_id":"6ba4b745c07dd7071db616917c6727a79a13f86a","original_commit_id":"6ba4b745c07dd7071db616917c6727a79a13f86a","user":{"login":"johnpmitsch","id":5964462,"avatar_url":"https://avatars.githubusercontent.com/u/5964462?v=3","gravatar_id":"","url":"https://api.github.com/users/johnpmitsch","html_url":"https://github.com/johnpmitsch","followers_url":"https://api.github.com/users/johnpmitsch/followers","following_url":"https://api.github.com/users/johnpmitsch/following{/other_user}","gists_url":"https://api.github.com/users/johnpmitsch/gists{/gist_id}","starred_url":"https://api.github.com/users/johnpmitsch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johnpmitsch/subscriptions","organizations_url":"https://api.github.com/users/johnpmitsch/orgs","repos_url":"https://api.github.com/users/johnpmitsch/repos","events_url":"https://api.github.com/users/johnpmitsch/events{/privacy}","received_events_url":"https://api.github.com/users/johnpmitsch/received_events","type":"User","site_admin":false},"body":"@neoseele hey sorry, I edited my comment after I posted it, you may have seen the original one. This should be\r\n```assert_equal [@cvv_minor], version.content_view.versions.for_version(1.1)```","created_at":"2015-12-10T13:33:48Z","updated_at":"2015-12-10T13:33:48Z","html_url":"https://github.com/Katello/katello/pull/5636#discussion_r47225682","pull_request_url":"https://api.github.com/repos/Katello/katello/pulls/5636","_links":{"self":{"href":"https://api.github.com/repos/Katello/katello/pulls/comments/47225682"},"html":{"href":"https://github.com/Katello/katello/pull/5636#discussion_r47225682"},"pull_request":{"href":"https://api.github.com/repos/Katello/katello/pulls/5636"}}},"pull_request":{"url":"https://api.github.com/repos/Katello/katello/pulls/5636","id":52197199,"html_url":"https://github.com/Katello/katello/pull/5636","diff_url":"https://github.com/Katello/katello/pull/5636.diff","patch_url":"https://github.com/Katello/katello/pull/5636.patch","issue_url":"https://api.github.com/repos/Katello/katello/issues/5636","number":5636,"state":"open","locked":false,"title":"Fixes #12628 bugfix for content view version query","user":{"login":"neoseele","id":3453782,"avatar_url":"https://avatars.githubusercontent.com/u/3453782?v=3","gravatar_id":"","url":"https://api.github.com/users/neoseele","html_url":"https://github.com/neoseele","followers_url":"https://api.github.com/users/neoseele/followers","following_url":"https://api.github.com/users/neoseele/following{/other_user}","gists_url":"https://api.github.com/users/neoseele/gists{/gist_id}","starred_url":"https://api.github.com/users/neoseele/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/neoseele/subscriptions","organizations_url":"https://api.github.com/users/neoseele/orgs","repos_url":"https://api.github.com/users/neoseele/repos","events_url":"https://api.github.com/users/neoseele/events{/privacy}","received_events_url":"https://api.github.com/users/neoseele/received_events","type":"User","site_admin":false},"body":"Refined from PR #5633  :)","created_at":"2015-11-30T23:52:24Z","updated_at":"2015-12-10T13:33:48Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e8cf7a4ed7f8d34a1a7d4d45947ca3b0a27652a5","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Katello/katello/pulls/5636/commits","review_comments_url":"https://api.github.com/repos/Katello/katello/pulls/5636/comments","review_comment_url":"https://api.github.com/repos/Katello/katello/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Katello/katello/issues/5636/comments","statuses_url":"https://api.github.com/repos/Katello/katello/statuses/6ba4b745c07dd7071db616917c6727a79a13f86a","head":{"label":"neoseele:fixes-12628","ref":"fixes-12628","sha":"6ba4b745c07dd7071db616917c6727a79a13f86a","user":{"login":"neoseele","id":3453782,"avatar_url":"https://avatars.githubusercontent.com/u/3453782?v=3","gravatar_id":"","url":"https://api.github.com/users/neoseele","html_url":"https://github.com/neoseele","followers_url":"https://api.github.com/users/neoseele/followers","following_url":"https://api.github.com/users/neoseele/following{/other_user}","gists_url":"https://api.github.com/users/neoseele/gists{/gist_id}","starred_url":"https://api.github.com/users/neoseele/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/neoseele/subscriptions","organizations_url":"https://api.github.com/users/neoseele/orgs","repos_url":"https://api.github.com/users/neoseele/repos","events_url":"https://api.github.com/users/neoseele/events{/privacy}","received_events_url":"https://api.github.com/users/neoseele/received_events","type":"User","site_admin":false},"repo":{"id":47100175,"name":"katello","full_name":"neoseele/katello","owner":{"login":"neoseele","id":3453782,"avatar_url":"https://avatars.githubusercontent.com/u/3453782?v=3","gravatar_id":"","url":"https://api.github.com/users/neoseele","html_url":"https://github.com/neoseele","followers_url":"https://api.github.com/users/neoseele/followers","following_url":"https://api.github.com/users/neoseele/following{/other_user}","gists_url":"https://api.github.com/users/neoseele/gists{/gist_id}","starred_url":"https://api.github.com/users/neoseele/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/neoseele/subscriptions","organizations_url":"https://api.github.com/users/neoseele/orgs","repos_url":"https://api.github.com/users/neoseele/repos","events_url":"https://api.github.com/users/neoseele/events{/privacy}","received_events_url":"https://api.github.com/users/neoseele/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/neoseele/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/neoseele/katello","forks_url":"https://api.github.com/repos/neoseele/katello/forks","keys_url":"https://api.github.com/repos/neoseele/katello/keys{/key_id}","collaborators_url":"https://api.github.com/repos/neoseele/katello/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/neoseele/katello/teams","hooks_url":"https://api.github.com/repos/neoseele/katello/hooks","issue_events_url":"https://api.github.com/repos/neoseele/katello/issues/events{/number}","events_url":"https://api.github.com/repos/neoseele/katello/events","assignees_url":"https://api.github.com/repos/neoseele/katello/assignees{/user}","branches_url":"https://api.github.com/repos/neoseele/katello/branches{/branch}","tags_url":"https://api.github.com/repos/neoseele/katello/tags","blobs_url":"https://api.github.com/repos/neoseele/katello/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/neoseele/katello/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/neoseele/katello/git/refs{/sha}","trees_url":"https://api.github.com/repos/neoseele/katello/git/trees{/sha}","statuses_url":"https://api.github.com/repos/neoseele/katello/statuses/{sha}","languages_url":"https://api.github.com/repos/neoseele/katello/languages","stargazers_url":"https://api.github.com/repos/neoseele/katello/stargazers","contributors_url":"https://api.github.com/repos/neoseele/katello/contributors","subscribers_url":"https://api.github.com/repos/neoseele/katello/subscribers","subscription_url":"https://api.github.com/repos/neoseele/katello/subscription","commits_url":"https://api.github.com/repos/neoseele/katello/commits{/sha}","git_commits_url":"https://api.github.com/repos/neoseele/katello/git/commits{/sha}","comments_url":"https://api.github.com/repos/neoseele/katello/comments{/number}","issue_comment_url":"https://api.github.com/repos/neoseele/katello/issues/comments{/number}","contents_url":"https://api.github.com/repos/neoseele/katello/contents/{+path}","compare_url":"https://api.github.com/repos/neoseele/katello/compare/{base}...{head}","merges_url":"https://api.github.com/repos/neoseele/katello/merges","archive_url":"https://api.github.com/repos/neoseele/katello/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/neoseele/katello/downloads","issues_url":"https://api.github.com/repos/neoseele/katello/issues{/number}","pulls_url":"https://api.github.com/repos/neoseele/katello/pulls{/number}","milestones_url":"https://api.github.com/repos/neoseele/katello/milestones{/number}","notifications_url":"https://api.github.com/repos/neoseele/katello/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/neoseele/katello/labels{/name}","releases_url":"https://api.github.com/repos/neoseele/katello/releases{/id}","created_at":"2015-11-30T06:43:16Z","updated_at":"2015-11-30T06:43:30Z","pushed_at":"2015-12-10T12:19:10Z","git_url":"git://github.com/neoseele/katello.git","ssh_url":"git@github.com:neoseele/katello.git","clone_url":"https://github.com/neoseele/katello.git","svn_url":"https://github.com/neoseele/katello","homepage":"katello.org","size":76016,"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":"de352b4bb1935c893e0c648cd42c25a7c96ada43","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}","created_at":"2012-04-12T16:59:08Z","updated_at":"2015-11-30T10:16:12Z","pushed_at":"2015-12-10T12:19:11Z","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":88840,"stargazers_count":170,"watchers_count":170,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":118,"mirror_url":null,"open_issues_count":101,"forks":118,"open_issues":101,"watchers":170,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Katello/katello/pulls/5636"},"html":{"href":"https://github.com/Katello/katello/pull/5636"},"issue":{"href":"https://api.github.com/repos/Katello/katello/issues/5636"},"comments":{"href":"https://api.github.com/repos/Katello/katello/issues/5636/comments"},"review_comments":{"href":"https://api.github.com/repos/Katello/katello/pulls/5636/comments"},"review_comment":{"href":"https://api.github.com/repos/Katello/katello/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Katello/katello/pulls/5636/commits"},"statuses":{"href":"https://api.github.com/repos/Katello/katello/statuses/6ba4b745c07dd7071db616917c6727a79a13f86a"}}}}