Backend: delete custom role
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
- Lĩnh vực
- api, authorization, backend, databases
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ả
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):
- Delete + revoke ("Delete anyway"): delete the role and unassign all its members.
- 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
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của openedx/openedx-authz
-
Add a course permission check to ContainerChildrenViewCó thể đã có người làm @BryanttV đã nhận 5 ngày trước. Đang mởwillow
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
openedx/openedx-authz#604 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Allow Course Editors to import YouTube transcripts and surface errorsCó thể đã có người làm @efortish đã nhận 5 ngày trước. Đang mởwillow
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
openedx/openedx-authz#597 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
willow
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
openedx/openedx-authz#579 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Bugs & MaintenanceĐang mởwillow
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 20/100
openedx/openedx-authz#616 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
discovery documentation
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 15/100
openedx/openedx-authz#613 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của openedx/openedx-authz
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
can4hou6joeng4/boss-agent-cli#1487 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 64/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
btclib-org/btclib-wallet#1045 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area-templates triage:bot-seen triage:needs-human
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
microsoft/aspire#22356 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100