Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace ProgressBar with ProgressReport #255

Merged
merged 1 commit into from
Sep 20, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGES/5471.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Replace `ProgressBar` with `ProgressReport`.
4 changes: 2 additions & 2 deletions pulp_python/app/tasks/sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from packaging import specifiers
from rest_framework import serializers

from pulpcore.plugin.models import Artifact, ProgressBar, Remote, Repository
from pulpcore.plugin.models import Artifact, ProgressReport, Remote, Repository
from pulpcore.plugin.stages import (
DeclarativeArtifact,
DeclarativeContent,
Expand Down Expand Up @@ -88,7 +88,7 @@ async def run(self):

deferred_download = (self.remote.policy != Remote.IMMEDIATE)

with ProgressBar(message='Fetching Project Metadata') as pb:
with ProgressReport(message='Fetching Project Metadata', code='fetching.project') as pb:
# Group multiple specifiers to the same project together, so that we only have to fetch
# the metadata once, and can re-use it if there are multiple specifiers.
for name, project_specifiers in groupby_unsorted(ps, key=lambda x: x.name):
Expand Down