-
Notifications
You must be signed in to change notification settings - Fork 107
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
Problem: publication's distributions are full URLs #58
Conversation
|
Thanks for testing @ipanova. I reproduced the failure and fixed it. |
i take it back. it looks like I can't specify BaseDistribution.objects.all() as the queryset. I will hold off on implementing a fix until after we make a decision on implementing this: https://pulp.plan.io/issues/4647 If that story is implemented then docker plugin will be able to define the '_distributions' field on it's own with the DockerDistribution.objects.all() as the queryset. |
fa68b1a
to
61c8c30
Compare
I've updated the PR. All the tests should be passing on Travis. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This makes sense to me. Thanks @dkliban !
Codecov Report
@@ Coverage Diff @@
## master #58 +/- ##
==========================================
+ Coverage 67.82% 67.86% +0.03%
==========================================
Files 65 65
Lines 3015 3015
==========================================
+ Hits 2045 2046 +1
+ Misses 970 969 -1
Continue to review full report at Codecov.
|
Solution: use RelatedField instead of HyperlinkedRelatedField The serializer was using the wrong type of field for serializing the Publication's distrubtions field. fixes: pulp#4590 https://pulp.plan.io/issues/4590
Solution: use RelatedField instead of HyperlinkedRelatedField
The serializer was using the wrong type of field for serializing the Publication's distrubtions field.
fixes: #4590
https://pulp.plan.io/issues/4590