[FEAT] 분석 상태 조회 API 구현#37
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
📝 Walkthrough안내이 PR은 분석 상태 조회 기능을 구현하며, 프론트엔드에서 폴링 방식으로 분석 진행 상황을 확인할 수 있도록 합니다. 변경 사항분석 상태 조회 API
예상 코드 리뷰 난이도🎯 2 (Simple) | ⏱️ ~12 분 관련 PR
축하 시
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 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 |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In
`@src/main/java/SeCause/SeCause_be/domain/analysis/dto/AnalysisRequestStatusResponse.java`:
- Around line 13-18: The response currently uses
analysis.getAnalysisStatus().getDescription() (e.g., a localized label); change
AnalysisRequestStatusResponse.from(Analysis) to return the contract enum value
instead — use analysis.getAnalysisStatus().name() or include the AnalysisStatus
value itself rather than getDescription() so the API emits codes like
IN_PROGRESS/FAILED; keep display labels (getDescription()) out of this DTO and
move them to the UI or a separate field if needed.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro Plus
Run ID: 99782cd1-2fcc-42a5-b753-02b544891d6e
📒 Files selected for processing (5)
src/main/java/SeCause/SeCause_be/domain/analysis/controller/AnalysisRequestApi.javasrc/main/java/SeCause/SeCause_be/domain/analysis/controller/AnalysisRequestController.javasrc/main/java/SeCause/SeCause_be/domain/analysis/dto/AnalysisRequestStatusResponse.javasrc/main/java/SeCause/SeCause_be/domain/analysis/repository/AnalysisRepository.javasrc/main/java/SeCause/SeCause_be/domain/analysis/service/AnalysisRequestService.java
boogiewooki02
left a comment
There was a problem hiding this comment.
고생하셨습니다!
코드리뷰 부분은 따로 없어 이대로 머지하시면 될 것 같아요!
close #32
🔎 개요
분석 요청 생성 이후 프론트에서 폴링으로 분석 진행 상태를 조회할 수 있도록 분석 상태 조회 API를 구현했습니다.
📝 작업 내용
GET /api/analysis/request/{analysisId}/statusAPI 추가analysisId를 기준으로 상태 조회하도록 구현analyses테이블의 분석 상태, 진행률, 실패 사유 반환👀 변경 사항
repositoryId기준 조회로 작성되어 있었지만, 현재 분석 요청 생성 API가analysisId를 반환하므로analysisId기준으로 API를 구현했습니다.analysisId,analysisStatus,progressPercent,failureReason입니다.analysisId를 저장한 뒤 해당 ID로 폴링하면 됩니다.📸 스크린샷 (Optional)
✅ 체크리스트
💬 고민사항 및 리뷰 요구사항 (Optional)
Summary by CodeRabbit
GET /api/analysis/request/{analysisId}/status가 추가되었습니다.