-
Notifications
You must be signed in to change notification settings - Fork 1
챗봇&게스트 수정 #56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Caution Review failedThe pull request is closed. Walkthrough메시지 타입을 BOT에서 BOT_REQUEST/BOT_RESPONSE로 분리하고 컨트롤러 설명을 갱신. ChatMongoService에 챗봇 아바타 이미지 주입 및 BOT 요청/응답 처리 로직 추가. 사용자 게스트 로그인에 기본 이미지 주입 및 닉네임 규칙 변경. MongoDB KST 시간대 변환기 2종 추가 및 커스텀 컨버전 등록. 설정에 이미지 키 추가. 기타 불필요한 import 정리와 주석화된 Mongo 설정 파일 추가. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
actor User
participant Controller as ChatRestController
participant Service as ChatMongoService
participant OpenAI as OpenAI Service
participant Mongo as MongoDB
participant WS as WebSocket Broker
User->>Controller: POST /send (message, userId)
Controller->>Service: handleSend(message, userId)
alt message starts with "/"
note over Service: Classify as BOT_REQUEST
Service->>Mongo: Save ChatMessage (type=BOT_REQUEST)
Service->>OpenAI: chatToOpenAI(message)
OpenAI-->>Service: bot reply
Service->>Mongo: Save ChatMessage (type=BOT_RESPONSE, image=chat-bot)
note over WS: No publish for BOT_REQUEST/BOT_RESPONSE per current logic
else normal message
note over Service: Classify as CHAT
Service->>Mongo: Save ChatMessage (type=CHAT)
Service-->>WS: Publish ReceiveDto (type=CHAT)
end
sequenceDiagram
autonumber
actor Guest as Anonymous User
participant UserSvc as UserCommandService
participant Mongo as MongoDB
Guest->>UserSvc: guestLogin()
note over UserSvc: nickname = "guest" + 4-char suffix
note over UserSvc: profileImageUrl = ${image.guest}
UserSvc->>Mongo: Save Guest User
UserSvc-->>Guest: Return tokens + user profile
sequenceDiagram
autonumber
participant App as Application
participant MongoCfg as MongoConfig
participant ConvW as LocalDateTime→Date
participant ConvR as Date→LocalDateTime
participant Mongo as MongoDB
App->>MongoCfg: init()
MongoCfg->>App: MongoCustomConversions([ConvW, ConvR])
App->>Mongo: Write LocalDateTime
Mongo-->>App: Uses ConvW (Asia/Seoul)
App->>Mongo: Read Date
Mongo-->>App: Uses ConvR (Asia/Seoul)
Estimated code review effort🎯 4 (Complex) | ⏱️ ~60 minutes Poem
Tip 🔌 Remote MCP (Model Context Protocol) integration is now available!Pro plan users can now connect to remote MCP servers from the Integrations page. Connect with popular remote MCPs such as Notion and Linear to add more context to your reviews and chats. 📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Free 💡 Knowledge Base configuration:
You can enable these sources in your CodeRabbit configuration. 📒 Files selected for processing (10)
Note 🎁 Summarized by CodeRabbit FreeYour organization is on the Free plan. CodeRabbit will generate a high-level summary and a walkthrough for each pull request. For a comprehensive line-by-line review, please upgrade your subscription to CodeRabbit Pro by visiting https://app.coderabbit.ai/login. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Join our Discord community for assistance with any issues or questions. CodeRabbit Commands (Invoked using PR/Issue comments)Type Other keywords and placeholders
CodeRabbit Configuration File (
|
Summary by CodeRabbit