Conversation
@BrnoPCmaniak, thanks for your PR! By analyzing the history of the files in this pull request, we identified @seandst, @goosemania and @asmacdo to be potential reviewers. |
745b9e6
to
db79815
Compare
@werwty Just letting you know I fixed the merge conflict. |
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.
I tried running this PR as is, and got
ImproperlyConfigured at /api/v3/downloadcatalog/
Could not resolve URL for hyperlinked relationship using view name "artifact-details". You may have failed to include the related model in your API, or incorrectly configured the `lookup_field` attribute on this field.
There's two things in the catalog serializer:
- There is not going to be a Artifact ViewSet: https://pulp.plan.io/issues/2305#note-6
This should be content instead view_name
should be plural endpoint - singular detail. In this caseview_name=importers-detail
|
||
|
||
class DownloadCatalogViewSet(NamedModelViewSet): | ||
endpoint_name = 'downloadcatalog' |
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.
s/downloadcatalog/downloadcatalogs/
Endpoint names (the endpoint_name attribute) should plural, not singular
[0]
from pulp.app.viewsets import NamedModelViewSet | ||
|
||
|
||
class DownloadCatalogPagination(pagination.CursorPagination): |
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.
I think the pagination should be moved to here
8d3f7e9
to
82e9526
Compare
82e9526
to
ff71589
Compare
Hello @BrnoPCmaniak! Thanks for updating the PR. Cheers ! There are no PEP8 issues in this Pull Request. 🍻 Comment last updated on August 02, 2017 at 18:14 Hours UTC |
ff71589
to
2a5c57b
Compare
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.
The viewset looks good, there are some separate problems with the download catalog serializers, and I will file a redmine issue for that.
2a5c57b
to
93ad49b
Compare
The This issue: 2968 removes the |
Since this object has been replaced, I'm closing this issue. |
closes #2303
https://pulp.plan.io/issues/2303