Frontend: Revoke role assignment modal + toast

Đang mở
#586 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ó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
67/100
Loại issue
Tính năng
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
python
Lĩnh vực
authorization, frontend

Hướng nghiên cứu

Start in the Members tab and trace the trash icon’s existing role-assignment actions, then find the frontend call for unassign_role_from_subject_in_scope. Follow the project’s modal and toast patterns and identify how the member list refreshes. Done when the confirmation shows the correct username, role, and scope, both standard and custom roles revoke successfully, feedback appears, and the list refreshes.

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

Mô tả

willow

Build the revoke flow — unassigning a single member from the role in a single scope, triggered by the trash (revoke) icon in the Members tab. Modal (per design):

  • Title "Revoke role assignment?"
  • Body: "Are you sure you want to remove {username} from the {role} role in {scope}? This user will immediately lose all permissions associated with this role for this resource."
  • Actions: Cancel / "Revoke access" (destructive).

Maps directly to the existing unassign_role_from_subject_in_scope — no new backend primitive; the only work is the modal and wiring.

Acceptance
  • Trash icon opens the modal with the correct username/role/scope interpolated.
  • "Revoke access" calls unassign_role_from_subject_in_scope; success/error toast; member list refreshes.
  • Works identically for standard and custom roles.

Design: https://www.figma.com/design/xnmQJq1cTRVqNrs31R8zDM/AuthZ---v2?node-id=40000174-2&p=f&t=AfaPxKGH7lD48V93-0

Ngôn ngữ chính
Python
Star
0
Fork
10
Merge trung bình
5 ngày 5 giờ
Pull request đã merge (30 ngày)
22

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.