Skip to content

Commit

Permalink
RHINENG-2281: update package cache to map json
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelMraka committed Nov 27, 2023
1 parent 6c244b3 commit eb03597
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tasks/caches/refresh_packages_caches.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ func getCounts(pkgSysCounts *[]models.PackageAccountData, accID *int) error {
sp.rh_account_id rh_account_id,
spkg.name_id package_name_id,
count(*) as systems_installed,
count(*) filter (where update_status(spkg.update_data) = 'Installable') as systems_installable,
count(*) filter (where update_status(spkg.update_data) != 'None') as systems_applicable
count(*) filter (where update_data ? 'installable') as systems_installable,
count(*) filter (where (update_data ?| ARRAY['installable', 'applicable'])) as systems_applicable
`).
Joins("JOIN system_package spkg ON sp.id = spkg.system_id AND sp.rh_account_id = spkg.rh_account_id").
Joins("JOIN rh_account acc ON sp.rh_account_id = acc.id").
Expand Down

0 comments on commit eb03597

Please sign in to comment.