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

Forbid the methods PATCH and PUT for push repositories #127

Merged
merged 1 commit into from Aug 5, 2020

Conversation

lubosmj
Copy link
Member

@lubosmj lubosmj commented Jul 20, 2020

closes #7013

lubosmj added a commit to lubosmj/pulpcore that referenced this pull request Jul 20, 2020
@pulpbot
Copy link
Member

pulpbot commented Jul 20, 2020

Attached issue: https://pulp.plan.io/issues/7013

@@ -401,9 +404,27 @@ class ContainerRepositoryVersionViewSet(RepositoryVersionViewSet):
parent_viewset = ContainerRepositoryViewSet


class ContainerPushRepositoryViewSet(RepositoryViewSet):
class NoUpdateRepositoryViewSet(
Copy link
Member

Choose a reason for hiding this comment

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

Just an idea: How about ImmutableRepositoryViewSet?

lubosmj added a commit to lubosmj/pulpcore that referenced this pull request Jul 22, 2020
@lubosmj lubosmj force-pushed the forbid-push-repo-update-7013 branch 3 times, most recently from 94db9a4 to 0eed716 Compare July 22, 2020 14:47
lubosmj added a commit to lubosmj/pulpcore that referenced this pull request Jul 22, 2020
@lubosmj
Copy link
Member Author

lubosmj commented Jul 23, 2020

This PR will be converted back to a normal PR after the next release of pulpcore. Refer to pulp/pulpcore#795 to learn more.

@lubosmj lubosmj changed the base branch from 2.0 to master August 5, 2020 13:46
@lubosmj lubosmj marked this pull request as ready for review August 5, 2020 13:46
@lubosmj lubosmj force-pushed the forbid-push-repo-update-7013 branch from 0eed716 to 030cf92 Compare August 5, 2020 13:48
Copy link
Member

@mdellweg mdellweg left a comment

Choose a reason for hiding this comment

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

Now that turned into a nice and small one. ;)
I know, the hard work is just hidden in the other repository.

@dkliban dkliban merged commit 1cc9231 into pulp:master Aug 5, 2020
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

4 participants