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.7.1 app/views/katello/api/v2/errata/_counts.json.rabl
katello-4.6.2.1 app/views/katello/api/v2/errata/_counts.json.rabl
katello-4.6.2 app/views/katello/api/v2/errata/_counts.json.rabl
katello-4.7.0 app/views/katello/api/v2/errata/_counts.json.rabl
katello-4.6.1 app/views/katello/api/v2/errata/_counts.json.rabl
katello-4.7.0.rc2 app/views/katello/api/v2/errata/_counts.json.rabl
katello-4.7.0.rc1 app/views/katello/api/v2/errata/_counts.json.rabl
katello-4.5.1 app/views/katello/api/v2/errata/_counts.json.rabl
katello-4.6.0 app/views/katello/api/v2/errata/_counts.json.rabl
katello-4.6.0.rc2 app/views/katello/api/v2/errata/_counts.json.rabl
katello-4.6.0.rc1 app/views/katello/api/v2/errata/_counts.json.rabl
katello-4.5.0 app/views/katello/api/v2/errata/_counts.json.rabl
katello-4.5.0.rc2 app/views/katello/api/v2/errata/_counts.json.rabl
katello-4.5.0.rc1 app/views/katello/api/v2/errata/_counts.json.rabl