Repository navigation
refactor(pipeline): extract _models.py from ingest_batch _core.py (#781) - #796
Conversation
Extract 234 lines of SQL constants, protocol classes, and dataclasses into ingest_batch/_models.py. _core.py reduced from 1326 to 1123 lines. Private symbols re-exported in __init__.py for test compatibility. Co-Authored-By: Claude Opus 4.7 <[email protected]>
|
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 (5)
✨ 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. Review rate limit: 0/1 reviews remaining, refill in 16 minutes and 50 seconds.Comment |
There was a problem hiding this comment.
Pull request overview
Refactors the batch ingest service by extracting SQL strings and supporting type/protocol/dataclass definitions out of the large _core.py module into a new _models.py, and updates topology tracking docs accordingly.
Changes:
- Added
polylogue.pipeline.services.ingest_batch._modelsto host SQL constants + protocol/type/dataclass “models”. - Updated
_core.pyand package__init__.pyimports/exports to reference the extracted definitions. - Updated topology plan/status docs to reflect the new file and adjusted LOC totals.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| polylogue/pipeline/services/ingest_batch/_models.py | New module containing extracted SQL constants and internal typing/dataclass helpers. |
| polylogue/pipeline/services/ingest_batch/_core.py | Removes inlined SQL/types and imports them from _models. |
| polylogue/pipeline/services/ingest_batch/init.py | Re-exports moved internal types from _models for test access. |
| docs/topology-status.md | Regenerated topology status counts after adding the new module. |
| docs/plans/topology-target.yaml | Adds _models.py to the plan and updates _core.py LOC. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| from typing import TYPE_CHECKING, Protocol | ||
|
|
||
| from polylogue.pipeline.services.ingest_worker import ConversationData | ||
| from polylogue.storage.raw.models import RawConversationStateUpdate |
…) (#796) Extract 234 lines of SQL constants, protocols, and dataclasses into _models.py. _core.py: 1326→1123 lines. Co-authored-by: Claude Opus 4.7 <[email protected]>
Extract 234 lines of SQL constants, protocols, and dataclasses into _models.py. _core.py: 1326→1123 lines.