fix(delete): preserve parent type for non-empty subtree deletes#732
fix(delete): preserve parent type for non-empty subtree deletes#732QuantumExplorer wants to merge 9 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 (2)
📝 WalkthroughWalkthroughThis PR enables ChangesDelete operation v1 versioning and aggregation fix
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes 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 docstrings
🧪 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 |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #732 +/- ##
===========================================
+ Coverage 91.42% 91.47% +0.04%
===========================================
Files 236 236
Lines 67053 67321 +268
===========================================
+ Hits 61305 61580 +275
+ Misses 5748 5741 -7
🚀 New features to boost your workflow:
|
5fceb53 to
ec1442c
Compare
…tion Replace the inline `if version == 0` branch with the established mod.rs-dispatcher + v0.rs/v1.rs pattern used elsewhere (e.g. merk add_average_case_merk_propagate). v0 preserves grove v1/v2 behavior (reopen parent with child tree type); v1 (grove v3+) reuses the open parent merk so aggregate propagation uses the parent tree type. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
cost_return_on_error_into, ElementCostExtensions and ElementDeleteFromStorageExtensions are no longer used in delete/mod.rs (moved into v0/v1); StorageContext is unused in v0/v1 since clear() is inherent. Required for CI's clippy -D warnings. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
The legacy reopen path now lives in v0.rs; route its map_err through the shared helper added in cbdded1 so the helper is exercised by production code (not just its unit test). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Summary
Fixes #686.
Verification
Summary by CodeRabbit
New Features
Improvements
Tests