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

Fix Detail viewsets erroneous namespacing #319

Merged
merged 1 commit into from Oct 3, 2019

Conversation

daviddavis
Copy link
Contributor

@daviddavis daviddavis commented Oct 2, 2019

If there is no Master viewset, don't automatically try to namespace the
viewset endpoint as it erroneously namespaces the endpoint with the
detail viewset's endpoint_name.

fixes #5533
https://pulp.plan.io/issues/5533

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

daviddavis pushed a commit to daviddavis/pulp_rpm that referenced this pull request Oct 2, 2019
daviddavis pushed a commit to daviddavis/pulp_rpm that referenced this pull request Oct 2, 2019
@daviddavis daviddavis changed the title Don't automatically try to namespace viewsets for Detail models Don't namespace viewsets for Detail models without Master viewsets Oct 2, 2019
daviddavis pushed a commit to daviddavis/pulp_rpm that referenced this pull request Oct 2, 2019
@daviddavis daviddavis force-pushed the issue5533 branch 2 times, most recently from 16966e7 to 309332f Compare October 2, 2019 19:09
@daviddavis daviddavis changed the title Don't namespace viewsets for Detail models without Master viewsets Fix Detail viewsets erroneous namespacing Oct 2, 2019
If there is no Master viewset, don't automatically try to namespace the
viewset endpoint as it erroneously namespaces the endpoint with the
detail viewset's endpoint_name.

fixes #5533
https://pulp.plan.io/issues/5533
Copy link
Member

@goosemania goosemania 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 right to me, thank for the fix!

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 thank you!

@daviddavis daviddavis merged commit 0aa99ad into pulp:master Oct 3, 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.

None yet

3 participants