Bug 1578022
| Summary: | [RFE] As an API user, I should be able to compare the Packages of a Content View Version to the Packages in Library. | ||
|---|---|---|---|
| Product: | Red Hat Satellite | Reporter: | Satellite Program <pm-sat> |
| Component: | Content Management | Assignee: | satellite6-bugs <satellite6-bugs> |
| Status: | CLOSED ERRATA | QA Contact: | Lai <ltran> |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 6.3.0 | CC: | andrew.schofield, bkearney, jsherril, kabbott, pcreech |
| Target Milestone: | 6.5.0 | Keywords: | FutureFeature, Triaged |
| Target Release: | Unused | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2019-05-14 12:37:19 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Satellite Program
2018-05-14 16:11:32 UTC
Created from redmine issue http://projects.theforeman.org/issues/23320 Upstream bug assigned to None Moving this bug to POST for triage into Satellite 6 since the upstream issue http://projects.theforeman.org/issues/23320 has been resolved. To test, this will involve publishing two content views with different sets of content (you probably want to use content view filters to block different packages within the same repo across two different content views). Once you've got two content view versions published, you're going to want perform an api request to: GET /katello/api/v2/rpms/compare/?content_view_version_ids[]=1&content_view_version_ids[]=2 (where 1 and 2 are examples of your content view version ids). This should return you some sort of comparison between the two versions. Verification steps.
1. Setup a content view
2. Add rpm
3. publish new version
4. filter by earlier date
5. publish new version
6. GET /katello/api/v2/packages/compare/?content_view_version_ids[]=1&content_view_version_ids[]=2
Was able to see the comparisons of packages between versions. The content_view_version_ids I had were 14 and 15.
Below is a snippet of the results of one being in 14, one being in 15, and one being in both. Check "comparison" portion.
{
"total": 283,
"subtotal": 283,
"page": 1,
"per_page": 20,
"error": null,
"search": null,
"sort": {
"by": null,
"order": null
},
"results": [
{
"id": 78327,
"uuid": "08b39048-c2f6-49e0-a506-5027259f797e",
"name": "ansible",
"version": "2.4.1.0",
"release": "1.el7ae",
"arch": "noarch",
"epoch": "0",
"summary": "SSH-based configuration management, deployment, and task execution system",
"filename": "ansible-2.4.1.0-1.el7ae.noarch.rpm",
"sourcerpm": "ansible-2.4.1.0-1.el7ae.src.rpm",
"checksum": "9c90c4103f928f04762941dd1c33e24615055397cb25e732ef2ea742a8686e32",
"nvrea": "ansible-2.4.1.0-1.el7ae.noarch",
"nvra": "ansible-2.4.1.0-1.el7ae.noarch",
"hosts_available_count": 0,
"hosts_applicable_count": 0,
"comparison": [
14
]
},
{
"id": 78510,
"uuid": "b98e0c0f-1cac-4e3c-8a27-ac0b1601e240",
"name": "ceph-common",
"version": "12.2.4",
"release": "30.el7cp",
"arch": "x86_64",
"epoch": "2",
"summary": "Ceph Common",
"filename": "ceph-common-12.2.4-30.el7cp.x86_64.rpm",
"sourcerpm": "ceph-12.2.4-30.el7cp.src.rpm",
"checksum": "dc561f1db96dc42c5c4221da59c6a9df8ed0b8f709da6dd9eff6aef20a902042",
"nvrea": "ceph-common-2:12.2.4-30.el7cp.x86_64",
"nvra": "ceph-common-12.2.4-30.el7cp.x86_64",
"hosts_available_count": 0,
"hosts_applicable_count": 0,
"comparison": [
15
]
},
"id": 78547,
"uuid": "da80004e-31a0-4af6-8b7b-6184e6de01f7",
"name": "babeltrace",
"version": "1.2.4",
"release": "5.el7cp",
"arch": "x86_64",
"epoch": "0",
"summary": "Trace Viewer and Converter, mainly for the Common Trace Format",
"filename": "babeltrace-1.2.4-5.el7cp.x86_64.rpm",
"sourcerpm": "babeltrace-1.2.4-5.el7cp.src.rpm",
"checksum": "44fd349522504ccfe33dbb13dd62f16d8b10ae020f74c57355af3a7b090f8871",
"nvrea": "babeltrace-1.2.4-5.el7cp.x86_64",
"nvra": "babeltrace-1.2.4-5.el7cp.x86_64",
"hosts_available_count": 0,
"hosts_applicable_count": 0,
"comparison": [
14,
15
]
},
Verified in 6.5.0 Snap 7.0
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2019:1222 |