๐๏ธ [๊ธด๊ธ ์์ ] : ๊ฒ์๋ ๋ด์ค๊ฐ 5๊ฐ ์ดํ์ผ ์, 7์ผ๊ฐ์ ๋ด์ค ๋ฐ์ดํฐ๋ฅผ Searchํ๋ ๋ก์ง ์ถ๊ฐ#157
Conversation
|
Caution Review failedThe pull request is closed. Walkthrough์ด๋ฒ ๋ณ๊ฒฝ์ ์นด์นด์คํก ๋ด์ค ๋ฉ์์ง ๋ฐ์ก ๊ธฐ๋ฅ์ ๊ตฌ์กฐ๋ฅผ ๋ํญ ๊ฐ์ ํ๋ ๊ฒ์ผ๋ก, ๋ฉ์์ง ์ ์ก, ํ ํฐ ๊ฐฑ์ , ๋ด์ค ๊ฒ์, ์ด๋ ฅ ์ ์ฅ ๋ฑ์ ์ฑ ์์ ๊ฐ๊ฐ Manager, Helper, Service ํด๋์ค๋ก ๋ถ๋ฆฌํ์์ต๋๋ค. ์ถ๊ฐ๋ก ๋ด์ค ๊ฒ์ ์๋น์ค์ fallback ๋ก์ง์ด ๋์ ๋์์ผ๋ฉฐ, ๊ธฐ์กด ์๋น์ค์ ์ง์ ๊ตฌํ ์ฝ๋๋ ์ญ์ ๋๊ณ ์์ ๋ฐฉ์์ผ๋ก ๋ณ๊ฒฝ๋์์ต๋๋ค. Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant KakaoMessageService
participant KakaoMessageManager
participant KakaoMessageHelper
participant SettingService
participant KakaoNewsService
participant HistoryRepository
participant KakaoAPI
User->>KakaoMessageService: sendKakaoMessage(refreshToken, userId)
KakaoMessageService->>KakaoMessageManager: getKakaoUserAccessToken(refreshToken, userId)
KakaoMessageManager->>KakaoAPI: POST /oauth/token (refresh)
KakaoAPI-->>KakaoMessageManager: accessToken
KakaoMessageManager-->>KakaoMessageService: accessToken
KakaoMessageService->>SettingService: getUserSettings(userId)
SettingService-->>KakaoMessageService: List<SettingDTO>
KakaoMessageService->>KakaoMessageHelper: filterCurrentSettings(settings, now)
KakaoMessageHelper-->>KakaoMessageService: filteredSettings
loop ๊ฐ ์ค์ ๋ณ
KakaoMessageService->>KakaoMessageManager: processSetting(accessToken, setting)
KakaoMessageManager->>KakaoNewsService: searchNewsWithFallback(keywords, blockKeywords)
KakaoNewsService-->>KakaoMessageManager: newsList
KakaoMessageManager->>HistoryRepository: saveHistory(newsList, setting)
KakaoMessageManager->>KakaoMessageHelper: createTemplateData(newsList)
KakaoMessageManager->>KakaoAPI: POST /v2/api/talk/memo/default/send (๋ด์ค ๋ฉ์์ง)
KakaoAPI-->>KakaoMessageManager: ์๋ต
end
Estimated code review effort๐ฏ 4 (Complex) | โฑ๏ธ ~40๋ถ
Note โก๏ธ Unit Test Generation is now available in beta!Learn more here, or try it out under "Finishing Touches" below. ๐ Recent review detailsConfiguration used: CodeRabbit UI ๐ Files selected for processing (7)
โจ Finishing Touches
๐งช Generate unit tests
๐ชง TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
๐๏ธ [๊ธด๊ธ ์์ ] : ๊ฒ์๋ ๋ด์ค๊ฐ 5๊ฐ ์ดํ์ผ ์, 7์ผ๊ฐ์ ๋ด์ค ๋ฐ์ดํฐ๋ฅผ Searchํ๋ ๋ก์ง ์ถ๊ฐ
Summary by CodeRabbit
์ ๊ท ๊ธฐ๋ฅ
๋ฒ๊ทธ ์์
๋ฆฌํฉํฐ๋ง
๊ธฐํ