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

Validates that repository has a version to publish #85

Merged
merged 1 commit into from
Apr 26, 2018

Conversation

dralley
Copy link
Collaborator

@dralley dralley commented Apr 26, 2018

Raise a ValidationError if you try to publish a repository which
does not have any versions.

closes #3583
https://pulp.plan.io/issues/3583

@daviddavis
Copy link
Contributor

Since this is validation, what about moving this into the serializer?

@dralley
Copy link
Collaborator Author

dralley commented Apr 26, 2018

We could do it this way.

@dralley
Copy link
Collaborator Author

dralley commented Apr 26, 2018

Is there a way to, inside the serializer, just set the "repository_version" and then only use that for the publish? That would be ideal.

@dralley dralley force-pushed the 3587-versions-exist branch 2 times, most recently from 32c8d67 to 01e716f Compare April 26, 2018 22:07
Raise a ValidationError if you try to publish a repository which
does not have any versions.

closes #3583
https://pulp.plan.io/issues/3583
@dralley
Copy link
Collaborator Author

dralley commented Apr 26, 2018

@daviddavis please re-review

@daviddavis
Copy link
Contributor

Works great. Thanks @dralley.

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.

2 participants