feat(insertion)!: split strict and best-effort insertion statistics#405
Conversation
- Make insert_with_statistics return typed insertion errors for skipped duplicate or retry-exhausted vertices so callers using ? cannot silently ignore skipped inputs. - Add insert_best_effort_with_statistics for diagnostic and bulk-ingestion workflows that intentionally preserve skipped insertions as outcomes with telemetry. - Derive the default validation policy from the active topology guarantee so PLManifold starts in ExplicitOnly mode while Pseudomanifold keeps OnSuspicion. - Document skipped-input observability across construction, workflows, and robustness guidance. BREAKING CHANGE: insert_with_statistics now reports skipped insertions as Err(InsertionError) instead of Ok(InsertionOutcome::Skipped).
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (19)
WalkthroughThis PR refactors the public insertion API to make skipped insertions explicit to callers and updates validation policy defaults. ChangesInsertion and Validation Refactor
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related issues
Possibly related PRs
Suggested labels
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)
Comment |
Up to standards ✅🟢 Issues
|
| Metric | Results |
|---|---|
| Complexity | -12 |
🟢 Coverage 97.48% diff coverage · +0.00% coverage variation
Metric Results Coverage variation ✅ +0.00% coverage variation (-1.00%) Diff coverage ✅ 97.48% diff coverage Coverage variation details
Coverable lines Covered lines Coverage Common ancestor commit (e5a74a1) 62378 56460 90.51% Head commit (823b8a5) 62391 (+13) 56472 (+12) 90.51% (+0.00%) Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch:
<coverage of head commit> - <coverage of common ancestor commit>Diff coverage details
Coverable lines Covered lines Diff coverage Pull request (#405) 119 116 97.48% Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified:
<covered lines added or modified>/<coverable lines added or modified> * 100%
NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #405 +/- ##
=======================================
Coverage 90.50% 90.50%
=======================================
Files 71 71
Lines 62174 62187 +13
=======================================
+ Hits 56270 56282 +12
- Misses 5904 5905 +1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
BREAKING CHANGE: insert_with_statistics now reports skipped insertions as Err(InsertionError) instead of Ok(InsertionOutcome::Skipped).
Closes #386