Project

Profile

Help

Task #8182

Add an `AccessPolicy.customized` field to tell if a user has customized one or not

Added by bmbouter 6 months ago. Updated 6 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

Problem

Developers ship a default access policy and users can customize it. At some point later developers will need to adjust the default policy, but this should only happen if a user has not already customized it. Right now it would be difficult to determine if the user customized it or not.

Solution

Add a field to AccessPolicy called customized which defaults to False. Any user change to the policy will set this to True.


Related issues

Blocked by Pulp - Task #8203: Fix all migrations to use `apps.get_model(...)` instead of directly importing the modelCLOSED - CURRENTRELEASE

<a title="Actions" class="icon-only icon-actions js-contextmenu" href="#">Actions</a>

Associated revisions

Revision d5ce8e6f View on GitHub
Added by bmbouter 6 months ago

Adds the AccessPolicy.customized field.

The AccessPolicy.customized fields is a read-only field that defaults to False. If True, it indicates that the user has modified the policy.

This will be useful for:

  • Users to see how a system's RBAC has been modified
  • Plugin writers who want to ship changes or bugfixes to default policies they previously shipped and don't want to overwrite a user's custom policy.

closes #8182

History

#1 Updated by bmbouter 6 months ago

  • Description updated (diff)

#2 Updated by ipanova@redhat.com 6 months ago

  • Sprint/Milestone set to 3.10.0

let's use customized as agreed per open floor

#3 Updated by bmbouter 6 months ago

  • Status changed from NEW to ASSIGNED
  • Assignee set to bmbouter

#4 Updated by bmbouter 6 months ago

  • Subject changed from Add an `AccessPolicy.modified` field to tell if a user has customized one or not to Add an `AccessPolicy.customized` field to tell if a user has customized one or not
  • Description updated (diff)

#5 Updated by bmbouter 6 months ago

  • Blocked by Task #8203: Fix all migrations to use `apps.get_model(...)` instead of directly importing the model added

#6 Updated by pulpbot 6 months ago

  • Status changed from ASSIGNED to POST

#7 Updated by bmbouter 6 months ago

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

#8 Updated by pulpbot 6 months ago

  • Status changed from MODIFIED to CLOSED - CURRENTRELEASE

Please register to edit this issue

Also available in: Atom PDF