app/views/katello/api/v2/capsule_content/sync_status.json.rabl in katello-4.2.2 vs app/views/katello/api/v2/capsule_content/sync_status.json.rabl in katello-4.3.0.rc1
- old
+ new
@@ -34,10 +34,10 @@
:composite => content_view.composite,
:last_published => content_view.versions.empty? ? nil : content_view.versions.last.created_at,
:default => content_view.default,
:up_to_date => @capsule.repos_pending_sync(env, content_view).empty?,
:counts => {
- :repositories => @capsule.current_repositories_data(env, content_view).try(:count)
+ :repositories => ::Katello::ContentViewVersion.in_environment(env).find_by(:content_view => content_view)&.archived_repos&.count
}
}
attributes
end
end