Skip to content
This repository has been archived by the owner on Oct 28, 2019. It is now read-only.

adding code on progress bar #123

Merged
merged 1 commit into from Sep 13, 2019
Merged

adding code on progress bar #123

merged 1 commit into from Sep 13, 2019

Conversation

fao89
Copy link
Member

@fao89 fao89 commented Sep 10, 2019

ref #5184
https://pulp.plan.io/issues/5184
Required PR: pulp/pulpcore#289
Required PR: pulp/pulp_file#272

Please be sure you have read our documentation on creating PRs:
https://docs.pulpproject.org/en/3.0/nightly/contributing/pull-request-walkthrough.html

fao89 added a commit to fao89/pulpcore that referenced this pull request Sep 10, 2019
fao89 added a commit to fao89/pulp_file that referenced this pull request Sep 10, 2019
@codecov
Copy link

codecov bot commented Sep 10, 2019

Codecov Report

Merging #123 into master will decrease coverage by 0.59%.
The diff coverage is 33.33%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master     #123     +/-   ##
=========================================
- Coverage   42.68%   42.09%   -0.6%     
=========================================
  Files          22       21      -1     
  Lines         738      727     -11     
=========================================
- Hits          315      306      -9     
+ Misses        423      421      -2
Impacted Files Coverage Δ
pulpcore/plugin/stages/association_stages.py 22.64% <0%> (ø) ⬆️
pulpcore/plugin/stages/artifact_stages.py 49.52% <100%> (ø) ⬆️
pulpcore/plugin/models/content.py

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update da2db73...b4f59de. Read the comment docs.

fao89 added a commit to fao89/pulp_rpm that referenced this pull request Sep 10, 2019
fao89 added a commit to fao89/pulp_rpm that referenced this pull request Sep 10, 2019
@goosemania
Copy link
Member

Does it make sense to create a pre-defined set of codes which will be likely used by plugins as well? The goal is to make it easier to have at least some consistency in the code names across plugins. E.g. sync, publish, parsing metadata, etc.

@fao89
Copy link
Member Author

fao89 commented Sep 11, 2019

Does it make sense to create a pre-defined set of codes which will be likely used by plugins as well? The goal is to make it easier to have at least some consistency in the code names across plugins. E.g. sync, publish, parsing metadata, etc.

@goosemania I believe it makes sense, but I don't know what would be these set of codes, and in some cases, it is hard to define what would be the code to differentiate the progress bars, like in this case: https://github.com/pulp/pulp_rpm/pull/1437/files

@@ -0,0 +1 @@
Adding `code` on `ProgressBar`.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This needs to probably be a feature.

@@ -78,7 +78,7 @@ def __init__(self, new_version, *args, **kwargs):
Returns:
The coroutine for this stage.
"""
with ProgressBar(message='Un-Associating Content') as pb:
with ProgressBar(message='Un-Associating Content', code='un-associating.content') as pb:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/un-associating/unassociating/

fao89 added a commit to fao89/pulp_file that referenced this pull request Sep 13, 2019
fao89 added a commit to fao89/pulp_rpm that referenced this pull request Sep 13, 2019
fao89 added a commit to fao89/pulpcore that referenced this pull request Sep 13, 2019
daviddavis pushed a commit to pulp/pulpcore that referenced this pull request Sep 13, 2019
daviddavis pushed a commit to pulp/pulp_ansible that referenced this pull request Sep 13, 2019
daviddavis pushed a commit to pulp/pulp_file that referenced this pull request Sep 13, 2019
@daviddavis daviddavis merged commit 76a8f97 into pulp:master Sep 13, 2019
daviddavis pushed a commit to daviddavis/pulp_rpm that referenced this pull request Sep 13, 2019
daviddavis pushed a commit to daviddavis/pulp_rpm that referenced this pull request Sep 13, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
3 participants