Repository navigation
[#64] [Feat] 문서 버전 삭제 API 및 삭제 후 최신 버전 조회 처리 - #67
Merged
Merged
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the
|
snowballourown
force-pushed
the
feature/64-api
branch
from
November 19, 2026 09:28
ff5434b to
2e07dae
Compare
|
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.



변경 내용
선택한 DocumentVersion을 삭제하는 API를 추가하고,
삭제 후 문서 목록과 최신 PDF 조회가 남은 DocumentVersion을 기준으로 동작하도록 수정했습니다.
삭제 API
DELETE /api/v1/workspaces/{workspaceId}/documents/{documentId}/versions/{documentVersionId}
204는 DB 삭제와 S3ObjectDeletionTask 등록 완료를 의미합니다.
실제 S3 파일 삭제는 기존 작업자가 이후 처리합니다.
삭제 후 최신 버전 조회
예를 들어 V3 삭제 후에는 V2를 조회하지만,
Document.revision은 3으로 유지하여 다음 업로드에는 V4를 발급합니다.
문서
검증
단계별 검증에 별도 임시 MySQL DB와 모의 S3를 사용했습니다.
실제 S3 파일 삭제와 브라우저 화면은 검증하지 않았습니다.
후속 작업
버전 히스토리에 삭제 버튼·확인창·삭제 후 목록 갱신을 연결합니다.