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

Combining role and role version into a single content unit #91

Merged
merged 1 commit into from
Apr 17, 2019

Conversation

daviddavis
Copy link
Contributor

@pep8speaks
Copy link

pep8speaks commented Apr 17, 2019

Hello @daviddavis! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻

Comment last updated at 2019-04-17 15:52:39 UTC

@daviddavis daviddavis force-pushed the issue3818 branch 4 times, most recently from 864a359 to 019affb Compare April 17, 2019 15:32
@bmbouter
Copy link
Member

I went through the entire readme and everything worked for me! It also makes this conceptually simpler for users.

@@ -10,30 +10,14 @@

class AnsibleRole(Content):
"""
A model representing an Ansible Role.
A content type representing an Ansible Role version.
"""

TYPE = 'ansible-role'
Copy link
Member

Choose a reason for hiding this comment

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

This causes the API serializer to have "_type": "ansible.ansible-role", What about renaming AnsibleRole to Role throughout and this to 'role'?

Copy link
Member

Choose a reason for hiding this comment

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

We can handle this separately. I wrote this issue and put it onto the 0.1 release. https://pulp.plan.io/issues/4709

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 PR works great @daviddavis thank you! I think this is a big step in the right direction.

@daviddavis daviddavis merged commit e2d7198 into pulp:master Apr 17, 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