Actions
Issue #8438
closedAllow plugins to unset attribute in NamedModelViewSet
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version:
Platform Release:
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Sprint:
Quarter:
Description
Today if a ViewSet sets the NamedModelViewSet queryset_filtering_required_permission
the plugin must use the attribute as-is or replace it and must use it. Since this is an optional attribute, pulpcore should support a plugin unsetting this attribute via setting to None
, which is checked here: https://github.com/pulp/pulpcore/blob/master/pulpcore/app/viewsets/base.py#L331
Actions
Allow plugins to unset attribute in NamedModelViewSet
Allow plugins to set queryset_filtering_required_permission attribute to None and have it behave the same way as if the attribute were not present.
fixes #8438 https://pulp.plan.io/issues/8438