Task #7021
closedThe artifacts property on repo version doesn't return all repo version artifacts
100%
Description
The artifacts property on RepositoryVersion assumes that artifacts are all directly attached to RepositoryVersion Content:
RepositoryVersion
|
Content
|
Artifacts
But with DistributionTrees, this is not the case. There are also artifacts nested in repos:
RepositoryVersion
|
DistributionTree
|
Repository/RepositoryVersion
|
Content
|
Artifacts
This means that not all artifacts will get exported when the DistributionTree is exported.
Solution¶
Have the artifacts property method call a Repository method to determine what artifacts it has. This is needed since RepositoryVersion is not typed. Then pulp_rpm (and other plugins) can override this method to add in artifacts from DistributionTrees.
Possible Alternative(s)¶
Add a hook to the artifact export code that will allow plugins to define what artifacts belong to a repo version.
Related issues
Updated by daviddavis over 4 years ago
- Blocks Story #6739: As a user, I can export and import kickstart trees added
Updated by daviddavis over 4 years ago
- Tracker changed from Issue to Task
- % Done set to 0
- Severity deleted (
2. Medium) - Triaged deleted (
No)
Updated by daviddavis over 4 years ago
- Status changed from NEW to ASSIGNED
- Assignee set to daviddavis
Updated by pulpbot over 4 years ago
- Status changed from ASSIGNED to POST
Added by daviddavis over 4 years ago
Updated by daviddavis over 4 years ago
- Status changed from POST to MODIFIED
- % Done changed from 0 to 100
Applied in changeset pulpcore|4fc288eeef2c73e31f0c664d93421add722a08ab.
Updated by pulpbot over 4 years ago
- Status changed from MODIFIED to CLOSED - CURRENTRELEASE
Allow plugins to modify logic for repo version artifacts
fixes #7021