Skip to content

fix: add fallback parser list for empty parser_ids#12632

Merged
KevinHuSh merged 2 commits intoinfiniflow:mainfrom
MkDev11:fix/issue-12570-parser-list-fallback
Jan 15, 2026
Merged

fix: add fallback parser list for empty parser_ids#12632
KevinHuSh merged 2 commits intoinfiniflow:mainfrom
MkDev11:fix/issue-12570-parser-list-fallback

Conversation

@MkDev11
Copy link
Contributor

@MkDev11 MkDev11 commented Jan 15, 2026

What problem does this PR solve?

Fixes #12570 - The slicing method dropdown was empty when deploying RAGFlow v0.23.1 from source code.

The issue occurred because parser_ids from the tenant info was empty or undefined, causing useSelectParserList to return an empty array. This PR adds a fallback to a default parser list when parser_ids is empty, ensuring the dropdown always has options.

Type of change

  • Bug Fix (non-breaking change which fixes an issue)

Contribution by Gittensor, see my contribution statistics at https://gittensor.io/miners/details?githubId=94194147

@dosubot dosubot bot added size:XL This PR changes 500-999 lines, ignoring generated files. 🐞 bug Something isn't working, pull request that fix bug. labels Jan 15, 2026
@MkDev11 MkDev11 force-pushed the fix/issue-12570-parser-list-fallback branch from ecb5ce8 to 8ac3fff Compare January 15, 2026 04:43
@dosubot dosubot bot added size:S This PR changes 10-29 lines, ignoring generated files. and removed size:XL This PR changes 500-999 lines, ignoring generated files. labels Jan 15, 2026
@KevinHuSh KevinHuSh requested a review from dcc123456 January 15, 2026 04:46
@MkDev11
Copy link
Contributor Author

MkDev11 commented Jan 15, 2026

@dcc123456 please have a look at the PR and let me know the result

@KevinHuSh KevinHuSh merged commit 97b983f into infiniflow:main Jan 15, 2026
1 check passed
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. size:S This PR changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: The slicing method cannot be selected

2 participants