Project

General

Profile

Actions

Feature #36750

closed

Add content counts to API results and add aggregated CV version content counts to smart proxy content counts

Added by Samir Jha about 1 year ago. Updated 12 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Foreman Proxy Content
Target version:
Difficulty:
Triaged:
Yes
Fixed in Releases:
Found in Releases:

Description

Add content counts to API results and add aggregated CV version content counts to Capsule content counts.

The cv_version will look something like below. Note the aggregated cv_version_content_counts key which holds the aggregated sum of all content counts in the CV version repositories.

cv_version: {
repositories: {
8: {
ansible.collection_version: 10
},
9: {
docker_tag: 1,
container.blob: 3,
docker_manifest: 1
},
47: {
rpm: 22,
erratum: 7,
rpm.modulemd: 14,
package_group: 2,
rpm.packagecategory: 1,
rpm.distribution_tree: 1,
rpm.modulemd_defaults: 3
},
48: {
python_package: 243
}
},
cv_version_content_counts: {
rpm: 22,
erratum: 7,
docker_tag: 1,
rpm.modulemd: 14,
package_group: 2,
container.blob: 3,
python_package: 243,
docker_manifest: 1,
rpm.packagecategory: 1,
rpm.distribution_tree: 1,
rpm.modulemd_defaults: 3,
ansible.collection_version: 10
}
}

Once this is available, we can add the capsule content count to API return and make it available for the UI.

Actions

Also available in: Atom PDF