-
Notifications
You must be signed in to change notification settings - Fork 4
Fix/message spam #313
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
Fix/message spam #313
Conversation
Caution Review failedThe pull request is closed. WalkthroughUpdated system-message detection in two Postgres subscriber handlers: checks now use data.text.includes('$$system-message$$') instead of data.content.startsWith('$$system-message$$'). Non-system messages continue to be skipped with a log and early return; system messages continue through existing processing. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
participant PG as Postgres
participant Sub as Subscriber
participant Log as Logger
participant Proc as SystemMsgProcessor
PG->>Sub: NOTIFY Message change (row data)
Sub->>Sub: Extract data.text
alt Contains "$$system-message$$"
Note right of Sub: Detection changed to substring match on text
Sub->>Proc: Process system message
Proc-->>Sub: Done
else Not a system message
Sub->>Log: Debug: skip non-system message
Sub-->>PG: Return
end
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 💡 Knowledge Base configuration:
You can enable these sources in your CodeRabbit configuration. 📒 Files selected for processing (2)
✨ Finishing Touches
🧪 Generate unit tests
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. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. CodeRabbit Commands (Invoked using PR/Issue comments)Type Other keywords and placeholders
CodeRabbit Configuration File (
|
Description of change
Issue Number
Type of change
How the change has been tested
Change checklist
Summary by CodeRabbit