{"action":"created","comment":{"url":"https://api.github.com/repos/Katello/katello/pulls/comments/41018735","id":41018735,"diff_hunk":"@@ -0,0 +1,82 @@\n+module Katello\n+  module Host\n+    class ContentAspect < Katello::Model\n+      self.table_name = 'katello_content_aspects'\n+\n+      belongs_to :host, :inverse_of => :content_aspect, :class_name => \"::Host::Managed\"\n+      belongs_to :content_view, :inverse_of => :content_aspects, :class_name => \"Katello::ContentView\"\n+      belongs_to :lifecycle_environment, :inverse_of => :content_aspects, :class_name => \"Katello::KTEnvironment\"\n+\n+      has_many :applicable_errata, :through => :content_aspect_errata, :class_name => \"Katello::Erratum\", :source => :erratum\n+      has_many :content_aspect_errata, :class_name => \"Katello::ContentAspectErratum\", :dependent => :destroy, :inverse_of => :content_aspect\n+\n+      has_many :bound_repositories, :through => :content_aspect_repositories, :class_name => \"Katello::Repository\", :source => :repository\n+      has_many :content_aspect_repositories, :class_name => \"Katello::ContentAspectRepository\", :dependent => :destroy, :inverse_of => :content_aspect\n+\n+      validates :content_view, :presence => true, :allow_blank => false","path":"app/models/katello/host/content_aspect.rb","position":16,"original_position":16,"commit_id":"e2152ac5d88fe36aa773a79ae0c5c9cef7c8f72d","original_commit_id":"ce98521174d630c7f79c25d92830518bf8f5d250","user":{"login":"jlsherrill","id":395077,"avatar_url":"https://avatars.githubusercontent.com/u/395077?v=3","gravatar_id":"","url":"https://api.github.com/users/jlsherrill","html_url":"https://github.com/jlsherrill","followers_url":"https://api.github.com/users/jlsherrill/followers","following_url":"https://api.github.com/users/jlsherrill/following{/other_user}","gists_url":"https://api.github.com/users/jlsherrill/gists{/gist_id}","starred_url":"https://api.github.com/users/jlsherrill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jlsherrill/subscriptions","organizations_url":"https://api.github.com/users/jlsherrill/orgs","repos_url":"https://api.github.com/users/jlsherrill/repos","events_url":"https://api.github.com/users/jlsherrill/events{/privacy}","received_events_url":"https://api.github.com/users/jlsherrill/received_events","type":"User","site_admin":false},"body":"done","created_at":"2015-10-02T13:06:02Z","updated_at":"2015-10-02T13:06:02Z","html_url":"https://github.com/Katello/katello/pull/5495#discussion_r41018735","pull_request_url":"https://api.github.com/repos/Katello/katello/pulls/5495","_links":{"self":{"href":"https://api.github.com/repos/Katello/katello/pulls/comments/41018735"},"html":{"href":"https://github.com/Katello/katello/pull/5495#discussion_r41018735"},"pull_request":{"href":"https://api.github.com/repos/Katello/katello/pulls/5495"}}},"pull_request":{"url":"https://api.github.com/repos/Katello/katello/pulls/5495","id":45681765,"html_url":"https://github.com/Katello/katello/pull/5495","diff_url":"https://github.com/Katello/katello/pull/5495.diff","patch_url":"https://github.com/Katello/katello/pull/5495.patch","issue_url":"https://api.github.com/repos/Katello/katello/issues/5495","number":5495,"state":"open","locked":false,"title":"Fixes #11509,#11510,#11511 - adding content and subscription aspect","user":{"login":"jlsherrill","id":395077,"avatar_url":"https://avatars.githubusercontent.com/u/395077?v=3","gravatar_id":"","url":"https://api.github.com/users/jlsherrill","html_url":"https://github.com/jlsherrill","followers_url":"https://api.github.com/users/jlsherrill/followers","following_url":"https://api.github.com/users/jlsherrill/following{/other_user}","gists_url":"https://api.github.com/users/jlsherrill/gists{/gist_id}","starred_url":"https://api.github.com/users/jlsherrill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jlsherrill/subscriptions","organizations_url":"https://api.github.com/users/jlsherrill/orgs","repos_url":"https://api.github.com/users/jlsherrill/repos","events_url":"https://api.github.com/users/jlsherrill/events{/privacy}","received_events_url":"https://api.github.com/users/jlsherrill/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-09-22T15:56:27Z","updated_at":"2015-10-02T13:06:02Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4089c8e5a065d9429d81a46c70195bb5f40c5d57","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Katello/katello/pulls/5495/commits","review_comments_url":"https://api.github.com/repos/Katello/katello/pulls/5495/comments","review_comment_url":"https://api.github.com/repos/Katello/katello/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Katello/katello/issues/5495/comments","statuses_url":"https://api.github.com/repos/Katello/katello/statuses/e2152ac5d88fe36aa773a79ae0c5c9cef7c8f72d","head":{"label":"jlsherrill:host_uni","ref":"host_uni","sha":"e2152ac5d88fe36aa773a79ae0c5c9cef7c8f72d","user":{"login":"jlsherrill","id":395077,"avatar_url":"https://avatars.githubusercontent.com/u/395077?v=3","gravatar_id":"","url":"https://api.github.com/users/jlsherrill","html_url":"https://github.com/jlsherrill","followers_url":"https://api.github.com/users/jlsherrill/followers","following_url":"https://api.github.com/users/jlsherrill/following{/other_user}","gists_url":"https://api.github.com/users/jlsherrill/gists{/gist_id}","starred_url":"https://api.github.com/users/jlsherrill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jlsherrill/subscriptions","organizations_url":"https://api.github.com/users/jlsherrill/orgs","repos_url":"https://api.github.com/users/jlsherrill/repos","events_url":"https://api.github.com/users/jlsherrill/events{/privacy}","received_events_url":"https://api.github.com/users/jlsherrill/received_events","type":"User","site_admin":false},"repo":{"id":4041376,"name":"katello","full_name":"jlsherrill/katello","owner":{"login":"jlsherrill","id":395077,"avatar_url":"https://avatars.githubusercontent.com/u/395077?v=3","gravatar_id":"","url":"https://api.github.com/users/jlsherrill","html_url":"https://github.com/jlsherrill","followers_url":"https://api.github.com/users/jlsherrill/followers","following_url":"https://api.github.com/users/jlsherrill/following{/other_user}","gists_url":"https://api.github.com/users/jlsherrill/gists{/gist_id}","starred_url":"https://api.github.com/users/jlsherrill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jlsherrill/subscriptions","organizations_url":"https://api.github.com/users/jlsherrill/orgs","repos_url":"https://api.github.com/users/jlsherrill/repos","events_url":"https://api.github.com/users/jlsherrill/events{/privacy}","received_events_url":"https://api.github.com/users/jlsherrill/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jlsherrill/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/jlsherrill/katello","forks_url":"https://api.github.com/repos/jlsherrill/katello/forks","keys_url":"https://api.github.com/repos/jlsherrill/katello/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jlsherrill/katello/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jlsherrill/katello/teams","hooks_url":"https://api.github.com/repos/jlsherrill/katello/hooks","issue_events_url":"https://api.github.com/repos/jlsherrill/katello/issues/events{/number}","events_url":"https://api.github.com/repos/jlsherrill/katello/events","assignees_url":"https://api.github.com/repos/jlsherrill/katello/assignees{/user}","branches_url":"https://api.github.com/repos/jlsherrill/katello/branches{/branch}","tags_url":"https://api.github.com/repos/jlsherrill/katello/tags","blobs_url":"https://api.github.com/repos/jlsherrill/katello/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jlsherrill/katello/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jlsherrill/katello/git/refs{/sha}","trees_url":"https://api.github.com/repos/jlsherrill/katello/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jlsherrill/katello/statuses/{sha}","languages_url":"https://api.github.com/repos/jlsherrill/katello/languages","stargazers_url":"https://api.github.com/repos/jlsherrill/katello/stargazers","contributors_url":"https://api.github.com/repos/jlsherrill/katello/contributors","subscribers_url":"https://api.github.com/repos/jlsherrill/katello/subscribers","subscription_url":"https://api.github.com/repos/jlsherrill/katello/subscription","commits_url":"https://api.github.com/repos/jlsherrill/katello/commits{/sha}","git_commits_url":"https://api.github.com/repos/jlsherrill/katello/git/commits{/sha}","comments_url":"https://api.github.com/repos/jlsherrill/katello/comments{/number}","issue_comment_url":"https://api.github.com/repos/jlsherrill/katello/issues/comments{/number}","contents_url":"https://api.github.com/repos/jlsherrill/katello/contents/{+path}","compare_url":"https://api.github.com/repos/jlsherrill/katello/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jlsherrill/katello/merges","archive_url":"https://api.github.com/repos/jlsherrill/katello/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jlsherrill/katello/downloads","issues_url":"https://api.github.com/repos/jlsherrill/katello/issues{/number}","pulls_url":"https://api.github.com/repos/jlsherrill/katello/pulls{/number}","milestones_url":"https://api.github.com/repos/jlsherrill/katello/milestones{/number}","notifications_url":"https://api.github.com/repos/jlsherrill/katello/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jlsherrill/katello/labels{/name}","releases_url":"https://api.github.com/repos/jlsherrill/katello/releases{/id}","created_at":"2012-04-16T14:06:55Z","updated_at":"2014-07-31T00:15:04Z","pushed_at":"2015-10-02T13:03:20Z","git_url":"git://github.com/jlsherrill/katello.git","ssh_url":"git@github.com:jlsherrill/katello.git","clone_url":"https://github.com/jlsherrill/katello.git","svn_url":"https://github.com/jlsherrill/katello","homepage":"katello.org","size":75121,"stargazers_count":2,"watchers_count":2,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":2,"default_branch":"master"}},"base":{"label":"Katello:host_unification","ref":"host_unification","sha":"c018a8096c807f32bbc6d226171a3a0d416c9e1e","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-09-30T17:27:59Z","pushed_at":"2015-10-02T13:03:21Z","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":238329,"stargazers_count":169,"watchers_count":169,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":114,"mirror_url":null,"open_issues_count":100,"forks":114,"open_issues":100,"watchers":169,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Katello/katello/pulls/5495"},"html":{"href":"https://github.com/Katello/katello/pull/5495"},"issue":{"href":"https://api.github.com/repos/Katello/katello/issues/5495"},"comments":{"href":"https://api.github.com/repos/Katello/katello/issues/5495/comments"},"review_comments":{"href":"https://api.github.com/repos/Katello/katello/pulls/5495/comments"},"review_comment":{"href":"https://api.github.com/repos/Katello/katello/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Katello/katello/pulls/5495/commits"},"statuses":{"href":"https://api.github.com/repos/Katello/katello/statuses/e2152ac5d88fe36aa773a79ae0c5c9cef7c8f72d"}}}}