fix(table-core): preserve grouped flatRows preorder - #6576
Conversation
Co-authored-by: Lazizbek Ergashev <lazerg2@gmail.com>
|
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 (7)
Included review availability: Your plan provides up to 10 included reviews per hour; 8 remain after this review. 📝 WalkthroughWalkthroughGrouped and worker row models now emit ChangesFlat row ordering
Estimated code review effort: 3 (Moderate) | ~20 minutes Merge Risk: ⚪ Minimal · up to The change preserves parent-first row ordering across grouped and worker-backed models with focused regression coverage; no actionable merge-blocking risk remains beyond normal checks and review. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Linked Issues checkExplanation The implementation addresses issue Full details: Docstring CoverageExplanation Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 4 functions across 5 files. (2 skipped: 2 unsupported.) ✨ Finishing Touches 💡 1📝 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 |
🚀 Changeset Version Preview1 package(s) bumped directly, 11 bumped as dependents. 🟩 Patch bumps
|
|
View your CI Pipeline Execution ↗ for commit 4df2ce9
☁️ Nx Cloud last updated this comment at |
🎯 Changes
Fixes #6551. Supersedes #6552 while retaining Lazizbek Ergashev's contribution via co-author credit.
flatRowsin parent-first preorder for flat and hierarchical data without adding another grouping traversal.flatRowsfrom the completed tree, fixing an additional downstream ordering failure found during the pipeline audit.Performance and bundle impact: the synchronous grouping path remains O(rows) and uses its existing recursive pass; synthetic groups reserve their output slot before descendants are built. Expanded worker reconstruction adds one O(rows) traversal and a temporary
Setonly when rebuilding an expanded tree payload, replacing duplicated output entries with one parent-first entry per row. The production change is small and introduces no dependency or public API changes.Validation:
pnpm test— 871 tasks passedpnpm test:e2e— 407 tasks passed after the repository retry runner resolved nine flaky example taskspnpm --filter @tanstack/table-core test:typesgit diff --check✅ Checklist
pnpm testandpnpm test:e2e, or these tests do not apply to this pull request.🚀 Release Impact
Summary by CodeRabbit
Bug Fixes
Tests
Documentation