Project

Profile

Help

Refactor #1508

closed

Story #1150: As a user, I can lazily fetch repositories

Refactor the lazy download tasks to avoid the Step pattern

Added by jcline@redhat.com over 8 years ago. Updated about 5 years ago.

Status:
CLOSED - WONTFIX
Priority:
Normal
Assignee:
-
Category:
-
Sprint/Milestone:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Platform Release:
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Quarter:

Description

Until recently, the lazy download task made use of the Step pattern to do things like progress reporting. However, this has changed and the LazyDownloadStep in pulp/server/controllers/repository.py is still written in the Step pattern.

This involves turning the LazyDownloadStep class into a pure Listener class and moving the progress reporting into a place accessible outside the class. This will also allow the task to report progress on things like building the download requests, which can take quite a while and would be nice to know about.

Also available in: Atom PDF