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

Move the publish endpoint to publications #207

Merged
merged 1 commit into from Apr 29, 2019

Conversation

daviddavis
Copy link
Contributor

@daviddavis daviddavis requested a review from a team April 26, 2019 14:52
@daviddavis daviddavis force-pushed the issue4678 branch 2 times, most recently from 6124254 to 0191bd8 Compare April 26, 2019 15:01
daviddavis pushed a commit to daviddavis/pulp-certguard that referenced this pull request Apr 26, 2019
daviddavis pushed a commit to daviddavis/pulp-certguard that referenced this pull request Apr 26, 2019
daviddavis pushed a commit to daviddavis/pulp-certguard that referenced this pull request Apr 26, 2019
daviddavis pushed a commit to daviddavis/pulp-certguard that referenced this pull request Apr 26, 2019
daviddavis pushed a commit to daviddavis/pulpcore-plugin that referenced this pull request Apr 26, 2019
daviddavis pushed a commit to daviddavis/pulp-certguard that referenced this pull request Apr 26, 2019
daviddavis pushed a commit to daviddavis/pulp-certguard that referenced this pull request Apr 26, 2019
@@ -27,18 +27,26 @@ def publish(publisher_pk, repository_version_pk):
repository_version_pk (str): Create a publication from this repository version.

"""
publisher = FilePublisher.objects.get(pk=publisher_pk)
if publisher_pk:
Copy link
Member

Choose a reason for hiding this comment

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

Are we removing Publishers in a separate PR? IIRC, there was a ticket for that?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Member

Choose a reason for hiding this comment

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

Thank you.

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 good to me. Thanks you @daviddavis !

@@ -91,6 +92,31 @@ def populate_pulp(cfg, url=FILE_FIXTURE_MANIFEST_URL):
return client.get(FILE_CONTENT_PATH)['results']


def create_publication(cfg, repo, version_href=None, publisher=None):
Copy link
Contributor

Choose a reason for hiding this comment

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

recommend s/create_publication/create_file_publication/

daviddavis pushed a commit to daviddavis/pulp-certguard that referenced this pull request Apr 29, 2019
daviddavis pushed a commit to daviddavis/pulp-certguard that referenced this pull request Apr 29, 2019
daviddavis pushed a commit to daviddavis/pulp-certguard that referenced this pull request Apr 29, 2019
daviddavis pushed a commit to daviddavis/pulp-certguard that referenced this pull request Apr 29, 2019
daviddavis pushed a commit to daviddavis/pulp-certguard that referenced this pull request Apr 29, 2019
daviddavis pushed a commit to daviddavis/pulp-certguard that referenced this pull request Apr 29, 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
4 participants