Account deletion: endpoint + student branch
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 55/100
Línea de trabajo
Start in api/routers/employee.py and read the existing JWT and role dispatch patterns, plus the file deletion helpers in api/utils.py. The student branch must capture petition and file data before deleting the Employee and committing, then clean up files, schedule the required emails, and refresh the clerk list when applicable. Check the endpoint behavior for each role and confirm the student branch returns 204; the issue also requires a frontend logout change, but does not name its files or tests.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Part of the Account deletion parent (#181). Depends on (a) #178.
Tasks
-
DELETE /employees/meinapi/routers/employee.py, usingdecode_user_jwt(notget_current_student) and dispatching onuser_role:- student → this issue
- supervisor → (c), returns
204until then - clerk →
403
- Student branch (handler):
- Load the Employee by
sub, or404if none exists - Capture the non-completed petitions linked via
student_user_account(id, student_username, start/end date, status, supervisor_mail, budget approvers) and all uploaded file names (StudentDocuments*_file, PrevEmploymentproof) - Delete the Employee (DB cascade removes documents, prev employments, petitions, budget positions) and commit
- Delete the files via
delete_student_doc_file/delete_prev_emp_file(api/utils.py), best effort with logging - Mail the supervisor + all budget approvers per captured petition (new DE+EN template via
EmailHandler+BackgroundTasks) - If any deleted petition had a clerk-relevant status, push the refreshed clerk list via
send_serialized_data_to_clerks - Return
204
- Load the Employee by
- Frontend changes doc: logout right after
204
- Lenguaje dominante
- Python
- Estrellas
- 0
- Forks
- 0
- Merge medio
- 12 h 7 min
- PR fusionados (30 d)
- 18
Preparar el entorno
- Incluye un Dockerfile o un archivo de Docker Compose
- Sin plantilla de pull request
- Sin guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de ClockGU/clockwork-backend
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
ClockGU/clockwork-backend#189 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 64/100
ClockGU/clockwork-backend#183 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
ClockGU/clockwork-backend#182 ·
Los mantenedores suelen responder en 1 día
-
Add alembic upgrade predeployAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
ClockGU/clockwork-backend#169 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 20/100
ClockGU/clockwork-backend#181 ·
Los mantenedores suelen responder en 1 día
Todos los issues de ClockGU/clockwork-backend
Issues similares
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
mloda-ai/mloda-plugin-template#206 ·
Los mantenedores suelen responder en 1 día
-
integration: websocket_api
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
home-assistant/core#194618 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
Shorten and organize the README around reader tasksPosiblemente ocupada @msaad00 la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
-
Hidden joints can't be re-shownAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
5hyuns/maya-workflow-kit-for-blender#568 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 80/100
letsrevel/revel-backend#1558 ·
Los mantenedores suelen responder en 1 día