[Feat] 문서 새 버전 업로드 API 추가 - #26
Merged
Merged
Conversation
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (21)
📝 WalkthroughWalkthrough문서 버전 업로드 API와 처리 서비스를 추가했습니다. 파일 해시·크기 기반 재사용, 버전 번호 동시성 제어, 업로드 메타데이터 저장, PENDING EmbeddingJob 생성을 구현하고, 중복·되돌리기·저장소 재사용 시나리오를 테스트와 문서로 검증했습니다. Changes문서 버전 업로드
Estimated code review effort: 4 (Complex) | ~60 minutes Possibly related issues
Possibly related PRs
Suggested labels: ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Gimini-3
marked this pull request as ready for review
July 16, 2026 09:20
This was referenced Jul 16, 2026
Merged
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.
변경 사항
POST /api/documents/{documentId}/versions새 버전 업로드 API를 추가했습니다.409 DOCUMENT_VERSION_SAME_CONTENT로 거절합니다.current_version_id를 유지합니다.original_filename,content_type저장과 기존 데이터 백필을 추가했습니다.배경
기존
POST /api/documents는 모든 업로드를 새로운 논리 Document로 생성하므로 기존 문서의 수정 파일을 버전으로 등록할 수 없었습니다. 문서의 동일성은documentId와 호출 API로, 파일의 동일성은 전체 바이트의 SHA-256과file_size로 분리했습니다.문서
검증
./gradlew test— BUILD SUCCESSFUL영향
새 버전 접수까지만 포함하며 파싱·청킹·임베딩과
current_version_id완료 전환은 후속 PR에서 처리합니다.Closes #25
Summary by CodeRabbit
새로운 기능
오류 처리
테스트 및 문서