Actions
Story #7464
closedAs a plugin writer, I can subclass and re-use ArtifactDownloader
Status:
CLOSED - DUPLICATE
Priority:
Normal
Assignee:
-
Category:
-
Sprint/Milestone:
-
Start date:
Due date:
% Done:
0%
Estimated time:
Platform Release:
Groomed:
No
Sprint Candidate:
No
Tags:
Sprint:
Quarter:
Description
Ticket moved to GitHub: "pulp/pulpcore/1931":https://github.com/pulp/pulpcore/issues/1931
Background¶
Other plugin code wants to have "downloading" stages too! For example pulp_ansible needs to download DocsBlogs
and has a custom stage for it.
The Issue¶
-
The ArtifactDownloader doesn't have customized progress reporting here.
-
The
ArtifactDownloader
is not a great name when you're not techinically downlading artifacts.
Proposal¶
- Rename
ArtifactDownloader
toGenericDownloader
- Have the progress reporting "message" be a class attribute named
PROGRESS_REPORTING_MESSAGE
onGenericDownloader
- Have the
ArtifactDownloader
subclassGenericDownloader
and set thePROGRESS_REPORTING_MESSAGE
.
Related issues
Actions