Project

Profile

Help

Task #8182

closed

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

Added by bmbouter almost 4 years ago. Updated almost 4 years 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 - CURRENTRELEASEbmbouter

Actions
Actions #1

Updated by bmbouter almost 4 years ago

  • Description updated (diff)
Actions #2

Updated by ipanova@redhat.com almost 4 years ago

  • Sprint/Milestone set to 3.10.0

let's use customized as agreed per open floor

Actions #3

Updated by bmbouter almost 4 years ago

  • Status changed from NEW to ASSIGNED
  • Assignee set to bmbouter
Actions #4

Updated by bmbouter almost 4 years 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)
Actions #5

Updated by bmbouter almost 4 years ago

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

Updated by pulpbot almost 4 years ago

  • Status changed from ASSIGNED to POST

Added by bmbouter almost 4 years ago

Revision d5ce8e6f | View on GitHub

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

Actions #7

Updated by bmbouter almost 4 years ago

  • Status changed from POST to MODIFIED
  • % Done changed from 0 to 100
Actions #8

Updated by pulpbot almost 4 years ago

  • Status changed from MODIFIED to CLOSED - CURRENTRELEASE

Also available in: Atom PDF