Backend: delete custom role

Đang mở
#581 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
48/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
python

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.
Ngôn ngữ chính
Python
Star
0
Fork
10
Merge trung bình
5 ngày 12 giờ
Pull request đã merge (30 ngày)
23

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của openedx/openedx-authz

Tất cả issue của openedx/openedx-authz

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.