-
Notifications
You must be signed in to change notification settings - Fork 0
refactor: unify ThreadingContext and EntityContext #87
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
- Migrate eventThreads table data into messageMappings and drop it - Replace ThreadingContext with unified EntityContext (isAnchor, parentType, parentNumber) - Consolidate getAnchorMessageId into getMessageId - Move cleanup logging into cleanupExpired and make it private - Remove duplicate code in startPeriodicCleanup 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
WalkthroughThe changes implement a migration from an event-threading model to a unified message-mapping model. The event_threads table is migrated to message_mappings using a SQL migration with upsert logic, then dropped. The codebase is refactored to remove ThreadingContext and related threading infrastructure, replacing anchor-based identifiers with GitHub entity types and IDs, while using parent type/number to express resource context. This affects the event processor, message delivery service, and database schema. Estimated code review effort🎯 4 (Complex) | ⏱️ ~50 minutes
Possibly related PRs
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (6)
💤 Files with no reviewable changes (1)
🧰 Additional context used📓 Path-based instructions (2)**/*.ts📄 CodeRabbit inference engine (AGENTS.md)
Files:
**/*.{ts,tsx,js,jsx}📄 CodeRabbit inference engine (AGENTS.md)
Files:
🧠 Learnings (3)📚 Learning: 2025-11-18T23:35:49.436ZApplied to files:
📚 Learning: 2025-11-25T03:24:12.463ZApplied to files:
📚 Learning: 2025-11-25T03:24:12.463ZApplied to files:
🧬 Code graph analysis (1)src/services/message-delivery-service.ts (2)
🔇 Additional comments (13)
Comment |
🤖 Generated with Claude Code
Summary by CodeRabbit
Release Notes
✏️ Tip: You can customize this high-level summary in your review settings.