Skip to content

Fix 0 chunk datasets not show, cause cannot scroll to fetch more datasets - #18810

Merged
wangq8 merged 1 commit into
infiniflow:mainfrom
wangq8:bugfix/fix-0-chunk-datasets-not-show
Aug 26, 2026
Merged

wangq8 merged 1 commit into
infiniflow:mainfrom
wangq8:bugfix/fix-0-chunk-datasets-not-show

Conversation

@wangq8

@wangq8 wangq8 commented Aug 26, 2026

Copy link
Copy Markdown
Collaborator

No description provided.

@wangq8
wangq8 requested a review from cike8899 August 26, 2026 11:33
@dosubot dosubot Bot added size:M This PR changes 30-99 lines, ignoring generated files. 🐞 bug Something isn't working, pull request that fix bug. 🧰 typescript Pull requests that update Typescript code labels Aug 26, 2026
@coderabbitai

coderabbitai Bot commented Aug 26, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 065e9c15-c0c3-4a22-905d-6e378d1c6f1a

📥 Commits

Reviewing files that changed from the base of the PR and between 28ce77f and 569230b.

📒 Files selected for processing (1)
  • web/src/components/knowledge-base-item.tsx

Included review availability: Your plan provides up to 10 included reviews per hour; 8 remain after this review.


📝 Walkthrough

Walkthrough

Dataset option generation now retains all datasets. Options are disabled when a dataset has no chunks, uses the Tag parser, or has a different embedding base model from the selected dataset.

Changes

Dataset option availability

Layer / File(s) Summary
Dataset option generation
web/src/components/knowledge-base-item.tsx
All datasets now map to options. Options retain their labels, avatars, metadata, and values. Selection is disabled for zero-chunk datasets, Tag-parser datasets, and datasets with a different embedding base model.

Estimated code review effort: 2 (Simple) | ~10 minutes

Merge Risk: ⚪ Minimal · up to 56923

This localized TypeScript change addresses datasets with zero chunks, and no actionable merge-blocking risk remains based on the supplied evidence; it is merge-ready after normal checks and review.

Suggested reviewers: cike8899, dcc123456, euvre

Poem

A rabbit mapped each dataset bright,

And marked the empty ones just right.
Tag parsers pause beside the way,
Mismatched models wait another day,
While every option joins the sight.

🚥 Pre-merge checks | ✅ 3 | ❌ 2

❌ Failed checks (2 warnings)

Check name Status Explanation Resolution
Description check ⚠️ Warning The pull request has no description, but the repository template requires a Summary section with a brief explanation of the problem and background context. Add a Summary section that explains why zero-chunk datasets were hidden, how this prevented loading more datasets, and how the change resolves the issue.
Docstring Coverage ⚠️ Warning 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 1 functions across 1 files. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly identifies the main bug: datasets with zero chunks were hidden, which prevented loading more datasets. The wording is somewhat awkward but remains specific and relevant.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
  • Fix all pre-merge checks with AI

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@wangq8 wangq8 added the ci Continue Integration label Aug 26, 2026
@wangq8
wangq8 merged commit 608ee09 into infiniflow:main Aug 26, 2026
12 checks passed
mill413 pushed a commit to mill413/ragflow that referenced this pull request Sep 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🐞 bug Something isn't working, pull request that fix bug. ci Continue Integration size:M This PR changes 30-99 lines, ignoring generated files. 🧰 typescript Pull requests that update Typescript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant