Account deletion: supervisor branch

Aperta
#180 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
48/100
Tipo di issue
Funzionalità
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
fastapi, python
Ambito
api, backend, database

Direzione di ricerca

Start from the handler for DELETE /employees/me and inspect the petition models, existing transaction and deletion patterns, EmailHandler templates, BackgroundTasks, and send_serialized_data_to_clerks. Implement the listed supervisor branch and check the related tests for deletion, notifications, clerk updates, and the 204 response, including the no-petitions case. Done means the specified petition changes, emails, and clerk refresh occur as required.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Part of the Account deletion parent (#181). Depends on (b) #179.

Tasks

  • Supervisor branch of DELETE /employees/me (handler), in one transaction:
    1. Capture the supervisor's non-completed petitions (Petition.user_account == sub): id, student_username/student_mail, start/end date, status, budget approvers
    2. Delete those petitions (budget positions cascade)
    3. On the supervisor's completed petitions, set user_account = NULL and supervisor_mail = NULL
    4. Commit
  • Mail the student + all budget approvers per deleted petition (DE+EN template via EmailHandler + BackgroundTasks)
  • If any affected petition had a clerk-relevant status, push the refreshed clerk list via send_serialized_data_to_clerks
  • Always return 204 (also when the supervisor has no petitions)
Lingua principale
Python
Stelle
0
Fork
0
Merge medio
12h 7m
PR unite (30g)
18

Preparare l'ambiente

  • Include un Dockerfile o un file Docker Compose
  • Nessun modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di ClockGU/clockwork-backend

Tutte le issue di ClockGU/clockwork-backend

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.