Conversation
- ChatService에 남아 있던 direct 생성/재사용, SYSTEM_ADMIN 문의방 재사용, group 생성 흐름을 ChatRoomCreationService로 이동 - direct 재오픈과 SYSTEM_ADMIN 멤버십 예외 정책을 생성 서비스 안에서 보존 - ChatService는 생성 요청을 위임하도록 줄여 메시지/목록/멤버 명령 책임과의 경계를 명확히 함
|
Warning Rate limit exceeded
To keep reviews running without waiting, you can enable usage-based add-on for your organization. This allows additional reviews beyond the hourly cap. Account admins can enable it under billing. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (4)
✨ 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 |
🧪 JaCoCo Coverage Report (Changed Files)Summary
Coverage by File
|
There was a problem hiding this comment.
Pull request overview
ChatService에 남아 있던 direct/문의방(SYSTEM_ADMIN)/group 채팅방 생성 및 재사용 책임을 ChatRoomCreationService로 분리해 생성 흐름을 단일 서비스로 모으는 리팩터링입니다.
Changes:
ChatRoomCreationService신설: direct 생성/재사용, SYSTEM_ADMIN 문의방 재사용 정책, group 생성 로직 이동ChatService의 채팅방 생성 관련 API 메서드들을 새 서비스로 위임하도록 축소ChatServiceTest에서 새 서비스 주입 및 생성/재사용 관련 테스트 흐름 유지
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| src/main/java/gg/agit/konect/domain/chat/service/ChatService.java | 채팅방 생성/재사용 로직을 ChatRoomCreationService로 위임하도록 정리 |
| src/main/java/gg/agit/konect/domain/chat/service/ChatRoomCreationService.java | 채팅방 생성/재사용 책임을 담당하는 신규 서비스 추가 |
| src/test/java/gg/agit/konect/unit/domain/chat/service/ChatServiceTest.java | ChatService 구성 변경에 맞춰 ChatRoomCreationService를 생성/주입하도록 수정 |
- develop의 채팅 서비스 분리 변경을 병합해 생성 서비스 브랜치 충돌을 해소 - 채팅방 생성 경로의 멤버 보장 처리를 ChatRoomMembershipService로 위임해 중복키 처리와 lastReadAt 보정 정책을 한 곳에서 관리 - direct 방 재오픈과 SYSTEM_ADMIN 문의방 admin 멤버 제외 정책도 공통 멤버십 서비스에 모아 경로별 정책 불일치를 방지
🔍 개요
🚀 주요 변경 내용
💬 참고 사항
checkstyleTest는 기존 테스트 파일의 120자 초과 위반 12건으로 실패합니다. 이번 변경 파일에서는 신규 위반이 없습니다.✅ Checklist (완료 조건)