Repository navigation
fix(dataset): preserve disabled RAPTOR and GraphRAG settings - #17665
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
💤 Files with no reviewable changes (1)
📝 WalkthroughWalkthroughThe dataset configuration hook now preserves saved RAPTOR and GraphRAG enablement values. Tests cover explicitly disabled settings and defaults used when saved enable flags are missing. ChangesDataset configuration flags
Estimated code review effort: 2 (Simple) | ~10 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
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 |
|
Current head 4ee051f is mergeable, with no unresolved review threads and no contributor-side follow-up remaining from my side. The visible current-head automation is the skipped sep-tests workflow plus a successful CodeRabbit pass, so this looks ready for maintainer review if that check state is expected for this path. |
Summary
Preserve explicitly saved
falsevalues for RAPTOR and GraphRAG when hydrating the dataset Configuration form. The existing form defaults still apply when either enable flag is absent.Adds hook-level regression coverage for both explicit disablement and default fallback behavior.
Fixes #17654
Verification
npx jest --runInBand --runTestsByPath src/pages/dataset/dataset-setting/hooks.test.tsx src/hooks/tests/parser-config-utils.test.tsnpx oxfmt --check src/pages/dataset/dataset-setting/hooks.ts src/pages/dataset/dataset-setting/hooks.test.tsxnpx oxlint src/pages/dataset/dataset-setting/hooks.ts src/pages/dataset/dataset-setting/hooks.test.tsxnpm run buildgit diff HEAD^ --checkRepository-wide
npm run type-check,npm run lint, andnpm run format:checkremain red on pre-existing files outside this change; the touched files pass their focused checks.