Sha256: 00223d0decdaab0fb7f8c09e30708b0a6a826a295e0068da5e78038fa93fced7

Contents?: true

Size: 1.44 KB

Versions: 20

Compression:

Stored size: 1.44 KB

Contents

attributes :id, :uuid
attributes :content_source_id, :content_source_name
attributes :kickstart_repository_id, :kickstart_repository_name
attributes :errata_counts
attributes :applicable_deb_count => :applicable_deb_count
attributes :upgradable_deb_count => :upgradable_deb_count
attributes :applicable_rpm_count => :applicable_package_count
attributes :upgradable_rpm_count => :upgradable_package_count
attributes :applicable_module_stream_count, :upgradable_module_stream_count

child :content_view_environments => :content_view_environments do
  node :content_view do |cve|
    { id: cve.content_view.id, name: cve.content_view.name, composite: cve.content_view.composite }
  end
  node :lifecycle_environment do |cve|
    { id: cve.lifecycle_environment.id, name: cve.lifecycle_environment.name }
  end
end

node :content_view do |content_facet|
  content_view = content_facet.single_content_view
  if content_view.present?
    {
      :id => content_view.id,
      :name => content_view.name,
      :composite => content_view.composite?
    }
  end
end

node :lifecycle_environment do |content_facet|
  lifecycle_environment = content_facet.single_lifecycle_environment
  if lifecycle_environment.present?
    {
      :id => lifecycle_environment.id,
      :name => lifecycle_environment.name
    }
  end
end

child :content_source => :content_source do
  attributes :id, :name, :url
end

child :kickstart_repository => :kickstart_repository do
  attributes :id, :name
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
katello-4.13.1 app/views/katello/api/v2/content_facet/base.json.rabl
katello-4.13.0 app/views/katello/api/v2/content_facet/base.json.rabl
katello-4.12.1 app/views/katello/api/v2/content_facet/base.json.rabl
katello-4.13.0.rc1 app/views/katello/api/v2/content_facet/base.json.rabl
katello-4.12.0 app/views/katello/api/v2/content_facet/base.json.rabl
katello-4.12.0.rc3 app/views/katello/api/v2/content_facet/base.json.rabl
katello-4.12.0.rc2 app/views/katello/api/v2/content_facet/base.json.rabl
katello-4.12.0.rc1 app/views/katello/api/v2/content_facet/base.json.rabl
katello-4.11.1 app/views/katello/api/v2/content_facet/base.json.rabl
katello-4.11.0 app/views/katello/api/v2/content_facet/base.json.rabl
katello-4.11.0.rc2 app/views/katello/api/v2/content_facet/base.json.rabl
katello-4.11.0.rc1 app/views/katello/api/v2/content_facet/base.json.rabl
katello-4.10.0 app/views/katello/api/v2/content_facet/base.json.rabl
katello-4.9.2 app/views/katello/api/v2/content_facet/base.json.rabl
katello-4.10.0.rc2 app/views/katello/api/v2/content_facet/base.json.rabl
katello-4.10.0.rc1 app/views/katello/api/v2/content_facet/base.json.rabl
katello-4.8.4 app/views/katello/api/v2/content_facet/base.json.rabl
katello-4.9.1 app/views/katello/api/v2/content_facet/base.json.rabl
katello-4.8.3 app/views/katello/api/v2/content_facet/base.json.rabl
katello-4.9.0 app/views/katello/api/v2/content_facet/base.json.rabl