[Feat] 문서 업로드 접수 API 구현 - #22
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 (31)
📝 WalkthroughWalkthroughTXT·Markdown 파일 업로드 API가 추가되었다. 파일 검증과 SHA-256 계산, MinIO 저장, 중복 파일 재사용, 문서·버전·임베딩 작업 생성, 실패 시 보상 삭제 및 관련 테스트가 구현되었다. Changes문서 업로드 기능
Estimated code review effort: 4 (Complex) | ~60 minutes Sequence Diagram(s)sequenceDiagram
participant Client
participant DocumentUploadController
participant DocumentUploadFacade
participant FileStorageService
participant DocumentUploadService
participant Database
Client->>DocumentUploadController: multipart 문서 업로드
DocumentUploadController->>DocumentUploadFacade: userId와 요청 전달
DocumentUploadFacade->>FileStorageService: 후보 파일 저장
DocumentUploadFacade->>DocumentUploadService: 업로드 트랜잭션 실행
DocumentUploadService->>Database: FileObject, Document, Version, EmbeddingJob 저장
DocumentUploadService-->>DocumentUploadFacade: 업로드 결과 반환
DocumentUploadFacade-->>DocumentUploadController: 후보 정리 후 응답 반환
DocumentUploadController-->>Client: 201 Created
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 05:42
This was referenced Jul 16, 2026
Merged
Merged
This was referenced Aug 6, 2026
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/documentsmultipart 업로드 API를 추가했습니다.ON CONFLICT DO NOTHING과UNIQUE (file_hash, file_size)로 동시 중복 업로드를 처리합니다.영향 및 제외 범위
업로드 API는 파일 저장과 인덱싱 작업 접수까지만 담당합니다. 파싱, 청킹, 임베딩 호출 및 벡터 저장은 포함하지 않습니다.
검증
./gradlew build -x test: 통과./gradlew cleanTest test: 76개 중 74개 통과CollectionPermissionCommandServiceTest의 캐시 호출 검증 2건이 실패하며, 이번 변경 범위와 무관하게 최신 develop에서 재현됩니다.Closes #15
Summary by CodeRabbit
새로운 기능
버그 수정