Project

Profile

Help

Story #7191

As a plugin writer, I want to have an immutable RepositoryViewSet

Added by lmjachky 2 months ago. Updated about 2 months ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Assignee:
-
Category:
-
Sprint/Milestone:
Start date:
Due date:
% Done:

100%

Estimated time:
Platform Release:
Groomed:
No
Sprint Candidate:
No
Tags:
Sprint:
Quarter:

Description

Create a new ViewSet class similar to RepositoryViewSet that will be immutable.

class ImmutableRepositoryViewSet(
    NamedModelViewSet,
    mixins.CreateModelMixin,
    mixins.RetrieveModelMixin,
    mixins.ListModelMixin,
    AsyncRemoveMixin,
):
    """
    A repository ViewSet that does not allow the usage of the methods PATCH and PUT.
    """

    queryset = Repository.objects.all().order_by("name")
    serializer_class = RepositorySerializer
    endpoint_name = "repositories"
    router_lookup = "repository"
    filterset_class = RepositoryFilter

Associated revisions

Revision 9ba8dfeb View on GitHub
Added by Lubos Mjachky 2 months ago

Enable plugin writers to inherit from ImmutableRepositoryViewSet

Required by https://github.com/pulp/pulp_container/pull/127.

closes #7191

History

#1 Updated by Anonymous 2 months ago

  • Status changed from NEW to MODIFIED
  • % Done changed from 0 to 100

#2 Updated by dkliban@redhat.com about 2 months ago

  • Sprint/Milestone set to 3.6.0

#3 Updated by pulpbot about 2 months ago

  • Status changed from MODIFIED to CLOSED - CURRENTRELEASE

Please register to edit this issue

Also available in: Atom PDF