Sha256: 6b47a002fac527c7524d73163408f7473cddbcfcde92f1d0f7bc6f3d3d865631

Contents?: true

Size: 379 Bytes

Versions: 54

Compression:

Stored size: 379 Bytes

Contents

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

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

node :bugfix do |_presenter|
  totals[:bugfix].to_i + totals[:recommended].to_i
end

node :enhancement do |_presenter|
  totals[:enhancement].to_i + totals[:optional].to_i
end

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

Version data entries

54 entries across 54 versions & 1 rubygems

Version Path
katello-4.15.0.rc2 app/views/katello/api/v2/errata/_counts.json.rabl
katello-4.15.0.rc1 app/views/katello/api/v2/errata/_counts.json.rabl
katello-4.14.1 app/views/katello/api/v2/errata/_counts.json.rabl
katello-4.14.0 app/views/katello/api/v2/errata/_counts.json.rabl
katello-4.14.0.rc3 app/views/katello/api/v2/errata/_counts.json.rabl
katello-4.14.0.rc2 app/views/katello/api/v2/errata/_counts.json.rabl
katello-4.14.0.rc1.1 app/views/katello/api/v2/errata/_counts.json.rabl
katello-4.14.0.rc1 app/views/katello/api/v2/errata/_counts.json.rabl
katello-4.13.1 app/views/katello/api/v2/errata/_counts.json.rabl
katello-4.13.0 app/views/katello/api/v2/errata/_counts.json.rabl
katello-4.12.1 app/views/katello/api/v2/errata/_counts.json.rabl
katello-4.13.0.rc1 app/views/katello/api/v2/errata/_counts.json.rabl
katello-4.12.0 app/views/katello/api/v2/errata/_counts.json.rabl
katello-4.12.0.rc3 app/views/katello/api/v2/errata/_counts.json.rabl
katello-4.12.0.rc2 app/views/katello/api/v2/errata/_counts.json.rabl
katello-4.12.0.rc1 app/views/katello/api/v2/errata/_counts.json.rabl
katello-4.11.1 app/views/katello/api/v2/errata/_counts.json.rabl
katello-4.11.0 app/views/katello/api/v2/errata/_counts.json.rabl
katello-4.11.0.rc2 app/views/katello/api/v2/errata/_counts.json.rabl
katello-4.11.0.rc1 app/views/katello/api/v2/errata/_counts.json.rabl