fix(unplugin): do not flag same-url routes as conflicts - #2792
Conversation
Group duplicated route nodes by node identity instead of their path + string representation so that two distinct nodes resolving to the same URL (e.g. a `path` override in `definePage()`) are not reported as conflicting files. Fix #2791 Claude-Session: https://claude.ai/code/session_01HcJAHtxXzGdsjPLzWUezRb
✅ Deploy Preview for vue-router canceled.
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
Included review availability: Your plan provides up to 8 included reviews per hour; 7 remain after this review. 📝 WalkthroughWalkthroughThe duplicate-route collector now excludes intentional same-URL routes created by explicit path overrides while preserving convention-based conflict detection. Regression tests cover overlays, nested routes, direct routes, and route groups. ChangesDuplicate route detection
Estimated code review effort: 3 (Moderate) | ~20 minutes Merge Risk: ⚪ Minimal · up to This PR narrows duplicate-route conflict detection to distinct route nodes, with accompanying tests; no actionable merge-blocking risk remains beyond normal checks and review. Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ 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 |
commit: |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2792 +/- ##
==========================================
+ Coverage 86.05% 86.09% +0.03%
==========================================
Files 74 74
Lines 5896 5898 +2
Branches 1874 1876 +2
==========================================
+ Hits 5074 5078 +4
+ Misses 726 724 -2
Partials 96 96 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Group duplicated route nodes by node identity instead of
fullPath::toString(), so two distinct nodes resolving to the same URL (e.g. apathoverride indefinePage()) are no longer reported as conflicting files.Fix #2791
Summary by CodeRabbit