Account deletion: supervisor branch

Offen
#180 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Anfängerfreundlichkeit
48/100
Issue-Typ
Feature
Klarheit
Klar beschrieben
Aktivitätsstatus
Aktiv
Tech-Stack
fastapi, python
Bereich
api, backend, database

Rechercherichtung

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.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

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)
Vorherrschende Sprache
Python
Sterne
0
Forks
0
Ø Merge
12 Std. 7 Min.
Gemergte PRs (30 T.)
18

Entwicklungsumgebung

  • Enthält ein Dockerfile oder eine Docker-Compose-Datei
  • Keine Pull-Request-Vorlage
  • Kein Beitragsleitfaden

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus ClockGU/clockwork-backend

Alle Issues in ClockGU/clockwork-backend

Ähnliche Issues

Weitere Issues zu Python

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.