Project

Profile

Help

Issue #8438

Allow plugins to unset attribute in NamedModelViewSet

Added by awcrosby 4 months ago. Updated 4 months ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Assignee:
-
Category:
-
Sprint/Milestone:
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

Associated revisions

Revision a23f0bf2 View on GitHub
Added by Andrew Crosby 4 months ago

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

History

#2 Updated by pulpbot 4 months ago

  • Status changed from NEW to POST

#3 Updated by fao89 4 months ago

  • Triaged changed from No to Yes

#4 Updated by Anonymous 4 months ago

  • Status changed from POST to MODIFIED

#5 Updated by mdellweg 4 months ago

  • Sprint/Milestone set to 3.12.0

#6 Updated by pulpbot 4 months ago

  • Status changed from MODIFIED to CLOSED - CURRENTRELEASE

Please register to edit this issue

Also available in: Atom PDF