[07/10] refactor: introduce delivery package - #95
Conversation
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
📝 WalkthroughWalkthroughThe PR introduces a dedicated delivery package containing rendering, publishing, diagnostics, Telegram error classification, and message chunking. Legacy publisher and renderer modules become compatibility re-exports, while reference-data loading and related tests move to their new module boundaries. ChangesDelivery layer extraction
Estimated code review effort: 4 (Complex) | ~60 minutes Sequence Diagram(s)sequenceDiagram
participant DeliveryProvider
participant TelegramPublisher
participant TelegramBotAPI
DeliveryProvider->>TelegramPublisher: Publish rendered message
TelegramPublisher->>TelegramPublisher: Split HTML when required
TelegramPublisher->>TelegramBotAPI: Send HTML chunks
TelegramBotAPI-->>TelegramPublisher: Return response
TelegramPublisher-->>DeliveryProvider: Report success or DeliveryError
Possibly related PRs
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ 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 |
|
/agentic_review |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #95 +/- ##
=======================================
Coverage 99.81% 99.81%
=======================================
Files 70 76 +6
Lines 9323 9358 +35
Branches 553 554 +1
=======================================
+ Hits 9306 9341 +35
Misses 12 12
Partials 5 5 ☔ View full report in Codecov by Harness. |
Code Review by Qodo
Context used✅ Compliance rules (platform):
46 rules 1.
|
f1223f9 to
4ef5927
Compare
b3fa6f7 to
0a6e946
Compare
f31b80d to
4f4fb4d
Compare
0a6e946 to
a5dbf7c
Compare
|
/agentic_review |
|
Code review by qodo was updated up to the latest commit a5dbf7c |
|
/agentic_review |
|
Code review by qodo was updated up to the latest commit 8af30ee |
PR Summary by QodoRefactor delivery into dedicated package; harden Telegram chunking and metadata validation
AI Description
Diagram
High-Level Assessment
Files changed (12)
|
|
Code review by qodo was updated up to the latest commit 8af30ee |
|
/agentic_review |
|
Code review by qodo was updated up to the latest commit c8b323b |
|
/agentic_review |
|
Code review by qodo was updated up to the latest commit c8b323b |
|
/agentic_review |
|
Code review by qodo was updated up to the latest commit ef9da17 |
|
Code review by qodo was updated up to the latest commit ef9da17 |
Summary
Dependency
Based on #94. Merge as step 07 after #94.
Verification
prek run --all-filesSummary by CodeRabbit
New Features
Bug Fixes