[Refactor] analysis async composition 전환 (#271) - #273
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Plus Run ID: 📒 Files selected for processing (4)
📝 WalkthroughWalkthrough비동기 분석 관련 서비스 4개가 상속 구조를 제거하고 내부 유스케이스, 프로세서, 코디네이터, 브리지에 호출을 위임합니다. Changes비동기 분석 서비스 위임 전환
Estimated code review effort: 3 (Moderate) | ~20 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches 💡 1📝 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 |
|
@coderabbitai review korean |
|
✅ Action performedReview finished.
|
✨ 어떤 이유로 PR를 하셨나요?
📋 세부 내용 - 왜 해당 PR이 필요한지 작업 내용을 자세하게 설명해주세요
analysis async 계층에서 service가 infrastructure/usecase를 상속하고 있어 역할 경계와 트랜잭션 경계가 클래스 선언만으로는 잘 드러나지 않는 문제가 있었습니다.
이번 PR에서는 상속 대신 composition으로 전환해서 외부에 노출하는 service는 필요한 public 메서드만 가지도록 정리했습니다.
변경 내용:
AnalysisAsyncFacadeService가AnalysisAsyncUseCase를 상속하지 않고 submit/getTask/cancel만 delegate 하도록 변경AnalysisAsyncProcessor가AnalysisAsyncQueueProcessor를 내부 협력자로 가지도록 변경AnalysisWorkerBridgeService가AnalysisAsyncWorkerBridge를 상속하지 않고 delegate 하도록 변경AnalysisWorkerBridgeService의 delegating method에 트랜잭션 경계를 명시AnalysisAsyncSweepService가AnalysisAsyncTaskSweepCoordinator를 상속하지 않고sweepTimedOutTasks()만 위임하도록 변경기대 효과:
📸 작업 화면 스크린샷
🚨 관련 이슈 번호 [ #271 ]
Summary by CodeRabbit