fix(channels): exclude attachments from deleted messages#2322
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughSummary by CodeRabbit
WalkthroughUpdated channel attachments endpoint to exclude attachments whose parent messages are soft-deleted. Adjusted SQL in Changes
Possibly related PRs
🚥 Pre-merge checks | ✅ 1 | ❌ 1❌ Failed checks (1 inconclusive)
✅ Passed checks (1 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@rust/cloud-storage/channels/fixtures/channels_repo.sql`:
- Around line 89-93: The fixture added attaches attachment
'00000000-0000-0000-0000-00000000a004' to MSG2, which conflicts with the test
assertion map.get(&MSG2).is_none(); update the test in outbound/pg_channels_repo
tests to expect MSG2 to have that attachment (replace map.get(&MSG2).is_none()
with an assertion that the entry exists, e.g., map.get(&MSG2).is_some()) and
adjust the expected attachment list for MSG2 to include the new attachment id
'00000000-0000-0000-0000-00000000a004' so the test reflects the updated fixture.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: ASSERTIVE
Plan: Pro
Run ID: 3ba336da-7175-42b3-8112-2a3fcd4b0837
⛔ Files ignored due to path filters (1)
rust/cloud-storage/channels/.sqlx/query-6958dcc3ad28334546d21a169c3724111cd93d5304bf2d9da4dac7a1cc5ad77d.jsonis excluded by!**/.sqlx/**
📒 Files selected for processing (3)
rust/cloud-storage/channels/fixtures/channels_repo.sqlrust/cloud-storage/channels/src/outbound/pg_channels_repo.rsrust/cloud-storage/channels/src/outbound/pg_channels_repo/tests.rs
No description provided.