Backend: delete custom role

Aperta
#581 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
48/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
python

Direzione di ricerca

Start with issue #469 and ADR 0021, then inspect the persistence model and existing role management APIs and tests to locate role definitions, Casbin p rows, relationships, assignments, and audit behavior. Implement and test both deletion paths: revoke all members, or reassign them to a chosen replacement before deletion. Done means custom role data and assignments are removed, standard roles remain protected, and deletion plus member changes are audited.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

willow

Add an API operation to delete a custom role, removing its Casbin p rows and definition/relationship rows (per the persistence model). The UI drives two deletion paths the contract must support (define in #469):

  1. Delete + revoke ("Delete anyway"): delete the role and unassign all its members.
  2. Reassign + delete ("Reassign & Delete"): first reassign all members to a chosen replacement role, then delete the original.

Superuser-only. Standard roles are not deletable (ADR 0021).

Acceptance
  • Deleting a custom role removes its definition, role-permission and policy rows and its assignments.
  • Both the revoke-all and reassign-then-delete paths implemented and tested.
  • Audit recorded for the deletion and the member changes.
Lingua principale
Python
Stelle
0
Fork
10
Merge medio
5g 12h
PR unite (30g)
23

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di openedx/openedx-authz

Tutte le issue di openedx/openedx-authz

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.