[Feat] 문서 인덱싱 상태 조회 API 구현 - #37
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 (14)
📝 WalkthroughWalkthrough문서 인덱싱 상태 조회 API가 추가되었다. 읽기 권한을 검증하고, 현재 Changes문서 인덱싱 상태 조회
Estimated code review effort: 3 (Moderate) | ~25 minutes Sequence Diagram(s)sequenceDiagram
participant Client
participant DocumentQueryController
participant DocumentQueryService
participant DocumentRepository
participant DocumentStatusConverter
Client->>DocumentQueryController: GET /api/documents/{documentId}/status
DocumentQueryController->>DocumentQueryService: getDocumentStatus(userId, documentId)
DocumentQueryService->>DocumentRepository: findDocumentStatus(...)
DocumentRepository-->>DocumentQueryService: DocumentStatusProjection
DocumentQueryService->>DocumentStatusConverter: toResponse(projection)
DocumentStatusConverter-->>DocumentQueryService: DocumentStatusResponse
DocumentQueryService-->>DocumentQueryController: DocumentStatusResponse
DocumentQueryController-->>Client: 200 OK or mapped error
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 20, 2026 05:56
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.
🔍 작업 내용
GET /api/documents/{documentId}/status문서 인덱싱 상태 조회 API 추가INDEXED버전과 처리 중 버전·EmbeddingJob 상태 반환PermissionQueryService.canReadDocument()를 통한 읽기 권한 검증✨ 상세 설명
조회 응답 계약
currentVersion=null, Version 1을processingVersion으로 반환INDEXED currentVersion과 새processingVersion을 함께 반환processingVersion=null조회 일관성
Document, 현재 Version, 처리 중 Version, 활성 EmbeddingJob을 하나의 JPQL Projection 쿼리로 조회합니다. Worker 상태 전환 중 서로 다른 시점의 Version과 Job 상태가 섞이지 않도록 한 SQL 조회 스냅샷을 사용합니다.
처리 중 Version에 활성 Job이 없거나 활성 Job이 중복되면
DOCUMENT-STATUS-001오류로 처리해 데이터 불일치를 정상 응답으로 숨기지 않습니다.🧪 테스트
./gradlew test— 143개 통과, 실패 0, 오류 0./gradlew build— BUILD SUCCESSFUL📚 문서
docs/gimin-#36-document-indexing-status.md💬 리뷰 요청사항
currentVersion을 null로 반환하는 계약Summary by CodeRabbit
새 기능
문서화
버그 수정