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
Conversation
6124254
to
0191bd8
Compare
ref #4720 https://pulp.plan.io/issues/4720 Required PR: pulp/pulpcore-plugin#93 Required PR: https://github.com/pulp/pulpcore/pull/103/files Required PR: pulp/pulp_file#207
Required PR: pulp/pulpcore-plugin#93 Required PR: pulp/pulp_file#207 Required PR: pulp/pulp-certguard#19 ref pulp#4678 https://pulp.plan.io/issues/4678
ref #4720 https://pulp.plan.io/issues/4720 Required PR: pulp/pulpcore-plugin#93 Required PR: https://github.com/pulp/pulpcore/pull/103/files Required PR: pulp/pulp_file#207
ref #4720 https://pulp.plan.io/issues/4720 Required PR: pulp/pulpcore-plugin#93 Required PR: https://github.com/pulp/pulpcore/pull/103/files Required PR: pulp/pulp_file#207
Required PR: pulp/pulpcore-plugin#93 Required PR: pulp/pulp_file#207 Required PR: pulp/pulp-certguard#19 ref pulp#4678 https://pulp.plan.io/issues/4678
ref #4720 https://pulp.plan.io/issues/4720 Required PR: pulp/pulpcore-plugin#93 Required PR: https://github.com/pulp/pulpcore/pull/103/files Required PR: pulp/pulp_file#207
Required PR: pulp/pulpcore-plugin#93 Required PR: pulp/pulp_file#207 Required PR: pulp/pulp-certguard#19 ref pulp#4678 https://pulp.plan.io/issues/4678
ref #4678 Required PR: pulp/pulpcore#103 Required PR: pulp/pulp_file#207
ref #4720 https://pulp.plan.io/issues/4720 Required PR: pulp/pulpcore-plugin#93 Required PR: https://github.com/pulp/pulpcore/pull/103/files Required PR: pulp/pulp_file#207 Required PR: pulp/pulp-openapi-generator#3
ref #4720 https://pulp.plan.io/issues/4720 Required PR: pulp/pulpcore-plugin#93 Required PR: https://github.com/pulp/pulpcore/pull/103/files Required PR: pulp/pulp_file#207
Required PR: pulp/pulpcore-plugin#93 Required PR: pulp/pulp_file#207 Required PR: pulp/pulp-certguard#19 Required PR: pulp/pulp-openapi-generator#3 ref pulp#4678 https://pulp.plan.io/issues/4678
Required PR: pulp/pulpcore-plugin#93 Required PR: pulp/pulp_file#207 Required PR: pulp/pulp-certguard#19 ref pulp#4678 https://pulp.plan.io/issues/4678
@@ -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: |
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.
Are we removing Publishers in a separate PR? IIRC, there was a ticket for that?
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.
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.
Thank you.
Required PR: pulp/pulpcore-plugin#93 Required PR: pulp/pulp_file#207 Required PR: pulp/pulp-certguard#19 ref pulp#4678 https://pulp.plan.io/issues/4678
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 looks good to me. Thanks you @daviddavis !
pulp_file/tests/functional/utils.py
Outdated
@@ -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): |
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.
recommend s/create_publication/create_file_publication/
ref #4720 https://pulp.plan.io/issues/4720 Required PR: pulp/pulpcore-plugin#93 Required PR: https://github.com/pulp/pulpcore/pull/103/files Required PR: pulp/pulp_file#207
ref #4720 https://pulp.plan.io/issues/4720 Required PR: pulp/pulpcore-plugin#93 Required PR: https://github.com/pulp/pulpcore/pull/103/files Required PR: pulp/pulp_file#207
ref #4720 https://pulp.plan.io/issues/4720 Required PR: pulp/pulpcore-plugin#93 Required PR: https://github.com/pulp/pulpcore/pull/103/files Required PR: pulp/pulp_file#207
ref #4720 https://pulp.plan.io/issues/4720 Required PR: pulp/pulpcore-plugin#93 Required PR: https://github.com/pulp/pulpcore/pull/103/files Required PR: pulp/pulp_file#207
ref #4720 https://pulp.plan.io/issues/4720 Required PR: pulp/pulpcore-plugin#93 Required PR: https://github.com/pulp/pulpcore/pull/103/files Required PR: pulp/pulp_file#207
ref #4720 https://pulp.plan.io/issues/4720 Required PR: pulp/pulpcore-plugin#93 Required PR: https://github.com/pulp/pulpcore/pull/103/files Required PR: pulp/pulp_file#207
Required PR: pulp/pulpcore-plugin#93 Required PR: https://github.com/pulp/pulpcore/pull/103/files ref #4678 https://pulp.plan.io/issues/4678
Required PR: pulp/pulpcore-plugin#93 Required PR: pulp/pulp_file#207 Required PR: pulp/pulp-certguard#19 ref pulp#4678 https://pulp.plan.io/issues/4678
ref #4720 https://pulp.plan.io/issues/4720 Required PR: pulp/pulpcore-plugin#93 Required PR: https://github.com/pulp/pulpcore/pull/103/files Required PR: pulp/pulp_file#207
Required PR: pulp/pulpcore-plugin#93 Required PR: pulp/pulp_file#207 Required PR: pulp/pulp-certguard#19 ref pulp#4678 https://pulp.plan.io/issues/4678
ref #4678
https://pulp.plan.io/issues/4678