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

Allow users to remove all content units from repo versions #172

Merged
merged 1 commit into from
Jun 20, 2019

Conversation

daviddavis
Copy link
Contributor

@codecov
Copy link

codecov bot commented Jun 11, 2019

Codecov Report

Merging #172 into master will decrease coverage by 0.07%.
The diff coverage is 62.5%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master    #172      +/-   ##
=========================================
- Coverage   67.38%   67.3%   -0.08%     
=========================================
  Files          65      65              
  Lines        3078    3089      +11     
=========================================
+ Hits         2074    2079       +5     
- Misses       1004    1010       +6
Impacted Files Coverage Δ
pulpcore/app/tasks/repository.py 30.3% <0%> (-3.04%) ⬇️
pulpcore/app/viewsets/repository.py 98.58% <83.33%> (+0.04%) ⬆️
pulpcore/app/serializers/repository.py 98.75% <83.33%> (-1.25%) ⬇️
pulpcore/app/serializers/task.py 98.24% <0%> (-1.76%) ⬇️
pulpcore/app/viewsets/task.py 93.42% <0%> (-1.32%) ⬇️

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 f917fd3...5c5bbfa. Read the comment docs.

@daviddavis daviddavis force-pushed the issue4901 branch 2 times, most recently from 9dce3cb to d62cd88 Compare June 18, 2019 18:02
write_only=True
)
remove_content_units = serializers.ListField(
help_text=_('A list of content units to remove from the latest repository version'),
help_text=_("A list of content units to remove from the latest repository version. "
Copy link
Member

Choose a reason for hiding this comment

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

I imagined that ['*'] would be valid but ['someurlhere/UUID', '*'] to not be. It's not a big deal but since all other entries are ignored perhaps this should fail hard? what do you think?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done. Can you check out the change?

Copy link
Member

@bmbouter bmbouter left a comment

Choose a reason for hiding this comment

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

@daviddavis ty for this PR! I can see that it will work as is. I left a few ideas w/ some optional suggestions. Since they are all optional I'll lgtm now and you can decide what we should do if that's ok.

Copy link
Member

@bmbouter bmbouter left a comment

Choose a reason for hiding this comment

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

This looks great! Thanks @daviddavis I can see all the changes represented here.

@bmbouter bmbouter merged commit dc27d7d into pulp:master Jun 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants