Sha256: f18ee3c6f6c375bf4b17a2c7b528cd117d02b421ba07f48a1d45e0a5fc0909e9

Contents?: true

Size: 307 Bytes

Versions: 18

Compression:

Stored size: 307 Bytes

Contents

totals = @object.relation.group(:errata_type).count.with_indifferent_access

node :security do |_presenter|
  totals[:security]
end

node :bugfix do |_presenter|
  totals[:bugfix]
end

node :enhancement do |_presenter|
  totals[:enhancement]
end

node :total do |_presenter|
  totals.values.inject(:+)
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
katello-3.9.1 app/views/katello/api/v2/errata/_counts.json.rabl
katello-3.9.0 app/views/katello/api/v2/errata/_counts.json.rabl
katello-3.8.1 app/views/katello/api/v2/errata/_counts.json.rabl
katello-3.9.0.rc2 app/views/katello/api/v2/errata/_counts.json.rabl
katello-3.9.0.rc1 app/views/katello/api/v2/errata/_counts.json.rabl
katello-3.7.1.1 app/views/katello/api/v2/errata/_counts.json.rabl
katello-3.7.1 app/views/katello/api/v2/errata/_counts.json.rabl
katello-3.8.0 app/views/katello/api/v2/errata/_counts.json.rabl
katello-3.8.0.rc3 app/views/katello/api/v2/errata/_counts.json.rabl
katello-3.8.0.rc2 app/views/katello/api/v2/errata/_counts.json.rabl
katello-3.7.0 app/views/katello/api/v2/errata/_counts.json.rabl
katello-3.8.0.rc1 app/views/katello/api/v2/errata/_counts.json.rabl
katello-3.7.0.rc2 app/views/katello/api/v2/errata/_counts.json.rabl
katello-3.7.0.rc1 app/views/katello/api/v2/errata/_counts.json.rabl
katello-3.6.0 app/views/katello/api/v2/errata/_counts.json.rabl
katello-3.6.0.1.rc2 app/views/katello/api/v2/errata/_counts.json.rabl
katello-3.6.0.rc2 app/views/katello/api/v2/errata/_counts.json.rabl
katello-3.6.0.rc1 app/views/katello/api/v2/errata/_counts.json.rabl