Frontend: Revoke role assignment modal + toast

Abierto
#586 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
67/100
Tipo de issue
Nueva funcionalidad
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
python

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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

Lenguaje dominante
Python
Estrellas
0
Forks
10
Merge medio
5 d 5 h
PR fusionados (30 d)
22

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de openedx/openedx-authz

Todos los issues de openedx/openedx-authz

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.