feat: 퇴사 근로자 안전 보관과 업무 차단 구현 - #199
Merged
Merged
Conversation
This was referenced Aug 16, 2026
hywznn
force-pushed
the
feat/193-worker-archive
branch
from
August 16, 2026 23:25
8f290ab to
08ba97a
Compare
hywznn
marked this pull request as ready for review
August 16, 2026 23:30
5 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
왜 필요한가요?
체류기간 경과 확인과 실제 퇴사·고용종료는 서로 다른 판단입니다. 근로자를 자동 삭제하지 않으면서, HR이 고용종료와 남은 업무 정리를 확인한 뒤 운영 대상에서 안전하게 분리할 필요가 있습니다.
Depends on #198
Closes #193
무엇이 바뀌나요?
GET /api/v1/workers/{workerId}/archive-eligibility로 보관 차단 사유를 확인합니다.POST /api/v1/workers/{workerId}/archive로 HR·ADMIN이 사유와expected_version을 제출합니다.ACTIVE·ON_LEAVE, 미완료 Task, 대기 승인, 유효 Worker Link가 있으면 보관을 거부합니다.WORKER_ARCHIVED감사로그를 저장합니다.안전장치
검증
./gradlew test --tests com.fowoco.server.worker.WorkerArchiveIntegrationTestgit diff --check병합 순서
main으로 변경