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
Updated by pulpbot over 3 years ago
- Status changed from NEW to POST
Added by Andrew Crosby over 3 years ago
Updated by Anonymous over 3 years ago
- Status changed from POST to MODIFIED
Applied in changeset pulpcore|a23f0bf2f1dce78e820cb2b931440ea49d0c7653.
Updated by pulpbot over 3 years ago
- Status changed from MODIFIED to CLOSED - CURRENTRELEASE
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