Account deletion: supervisor branch

Đang mở
#180 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
48/100
Loại issue
Tính năng
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
fastapi, python
Lĩnh vực
api, backend, database

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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)
Ngôn ngữ chính
Python
Star
0
Fork
0
Merge trung bình
12 giờ 7 phút
Pull request đã merge (30 ngày)
18

Chuẩn bị môi trường

  • Có Dockerfile hoặc tệp Docker Compose
  • Không có mẫu pull request
  • Không có hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của ClockGU/clockwork-backend

Tất cả issue của ClockGU/clockwork-backend

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.