Frontend: Revoke role assignment modal + toast

オープン
#586 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
67/100
issue の種類
機能追加
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
python

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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

主要言語
Python
スター
0
フォーク
10
平均マージ
5日 9時間
マージ済み PR(30日)
24

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

openedx/openedx-authz のほかの issue

openedx/openedx-authz の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。