fix(db-sqlite-persistence-core): rows marked with metadata prior to insert get reset causing stale data#1619
fix(db-sqlite-persistence-core): rows marked with metadata prior to insert get reset causing stale data#1619tombryden wants to merge 2 commits into
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (3)
📝 WalkthroughWalkthroughAdjusts SQLite persistence insert handling so a metadata-less insert only clears row metadata when no row-metadata write is already queued for that key. Adds regression tests for preserved metadata and stale metadata clearing, plus a patch changeset. ChangesSQLite row-metadata insert fix
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ 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 |
🎯 Changes
Fixes #1618 - rows in the same transaction marked with metadata get their metadata reset on insert, causing bugs like stale data when used with
queryCollectionOptions✅ Checklist
pnpm test.🚀 Release Impact
Summary by CodeRabbit