Account deletion: endpoint + student branch
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 55/100
調査の方向性
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.
索引モデルが issue の本文から書いたものです。
説明
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
- 主要言語
- Python
- スター
- 0
- フォーク
- 0
- 平均マージ
- 12時間 7分
- マージ済み PR(30日)
- 18
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートなし
- コントリビューションガイドなし
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
ClockGU/clockwork-backend のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
ClockGU/clockwork-backend#189 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 64/100
ClockGU/clockwork-backend#183 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
ClockGU/clockwork-backend#182 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
ClockGU/clockwork-backend#169 ·
メンテナーはふだん 1 日以内に返信
-
難易度 5/5 1週間以上 初心者へのやさしさ 20/100
ClockGU/clockwork-backend#181 ·
メンテナーはふだん 1 日以内に返信
ClockGU/clockwork-backend の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
メンテナーはふだん 1 日以内に返信
-
bug (unverified)
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
scikit-hep/awkward#4581 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
ci-cd priority: low
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
LearningCircuit/local-deep-research#9163 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
supersonic-lumina/ENM156#50 ·
メンテナーはふだん 2 日以内に返信