feat: 문서 안전 보관과 업무 조회 제외 구현 - #194
Merged
Merged
Conversation
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.
한 줄 요약
문서를 즉시 지우지 않고 안전하게 보관하여 일반 문서함·업무 계산·AI/OCR 신규 처리에서는 제외하되, 원본 파일과 과거 이력은 유지합니다.
Closes #192
왜 필요한가요?
worker_document는 Stored File, OCR 실행, Task와 연결되어 있습니다. DB 행이나 파일을 바로 삭제하면 승인·업무·감사 이력을 다시 확인하기 어렵고 연결 무결성도 깨질 수 있습니다.따라서 화면의 "삭제" 의미를 MVP에서는 보관(soft delete) 으로 구현했습니다.
무엇이 바뀌나요?
POST /api/v1/documents/{documentId}/archiveexpected_version,reasonworker_document에 저장DOCUMENT_ARCHIVED감사로그 저장DB
V52__archive_worker_document.sqlarchived_at,archived_by,archive_reason검증·병합 체크리스트
./gradlew clean test성공PostgreSqlMigrationTests성공영향 범위