Skip to content

fix(go): add missing 'resume' chunk method for new tenants - #16660

Merged
wangq8 merged 2 commits into
infiniflow:mainfrom
euvre:fix/missing-resume-chunk-method
Jul 6, 2026
Merged

wangq8 merged 2 commits into
infiniflow:mainfrom
euvre:fix/missing-resume-chunk-method

Conversation

@euvre

@euvre euvre commented Jul 6, 2026 •

Copy link
Copy Markdown
Contributor

Summary

The default tenant parser_ids string used when registering new users was missing the 'resume' chunk method. As a result, the built-in chunking method dropdown in the dataset creation dialog did not offer 'Resume'.

This PR adds 'resume:Resume' to the default parser_ids in both the password registration path and the OAuth registration path, aligning them with the admin initialization string and the existing frontend parser list.

Related issue

Fixes missing 'resume' option when creating a dataset.

Type of change

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

Tests

  • Verified the default parser_ids string now includes 'resume'.
image

The default parser_ids string used when registering new tenants was
missing the 'resume' chunk method. This caused the built-in chunking
method dropdown in the dataset creation dialog to not offer 'Resume'.

Add 'resume:Resume' to the default parser_ids in both the password
registration path and the OAuth registration path.

Fixes the missing 'resume' option when creating a dataset.
@dosubot dosubot Bot added the size:XS This PR changes 0-9 lines, ignoring generated files. label Jul 6, 2026
@euvre euvre added the ci Continue Integration label Jul 6, 2026
@dosubot dosubot Bot added the 🐞 bug Something isn't working, pull request that fix bug. label Jul 6, 2026
@coderabbitai

coderabbitai Bot commented Jul 6, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

📝 Walkthrough

Walkthrough

The default tenant ParserIDs configuration string is updated in both registerOAuthUser (internal/service/oauth_login.go) and Register (internal/service/user.go) to include the resume:Resume parser mapping in the comma-separated list of enabled parsers.

Changes

Default Parser Configuration Update

Layer / File(s) Summary
Add resume parser to default tenant config
internal/service/oauth_login.go, internal/service/user.go
Default ParserIDs strings for new tenants now include resume:Resume in both the OAuth registration and standard registration flows.

Estimated code review effort: 1 (Trivial) | ~3 minutes

Possibly related PRs

  • infiniflow/ragflow#16530: Both PRs modify the default tenant ParserIDs string in the same two initialization functions, changing enabled parser mappings.

Poem

A new parser hops into the list,
Resume joins in, it won't be missed 🐇
Two files updated, tenants anew,
Default configs now see it through,
Hip-hop hooray, the fields review!

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
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.
Title check ✅ Passed The title clearly states the main fix: adding the missing resume chunk method for new tenants.
Description check ✅ Passed The description includes the required Summary section and provides enough context, impact, and verification details.

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.

@dosubot dosubot Bot added the lgtm This PR has been approved by a maintainer label Jul 6, 2026
@wangq8
wangq8 merged commit 3044283 into infiniflow:main Jul 6, 2026
3 checks 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. ci Continue Integration lgtm This PR has been approved by a maintainer size:XS This PR changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants