Skip to content

Fix: Fixed metadata issue - #15226

Merged
yingfeng merged 1 commit into
infiniflow:mainfrom
dcc123456:fix/bug-0526
May 26, 2026
Merged

yingfeng merged 1 commit into
infiniflow:mainfrom
dcc123456:fix/bug-0526

Conversation

@dcc123456

Copy link
Copy Markdown
Collaborator

What problem does this PR solve?

Fix: Fixed metadata issue

  • The dataset's built-in metadata is now active, but it appears to be disabled in the individual file configuration.

Type of change

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

- The dataset's built-in metadata is now active, but it appears to be disabled in the individual file configuration.
@dosubot dosubot Bot added the size:XS This PR changes 0-9 lines, ignoring generated files. label May 26, 2026
@coderabbitai

coderabbitai Bot commented May 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

Run ID: 59b7650c-63b7-40f8-948b-f3a3f003c900

📥 Commits

Reviewing files that changed from the base of the PR and between c3b38d3 and 56fef11.

📒 Files selected for processing (1)
  • web/src/components/chunk-method-dialog/use-default-parser-values.ts

📝 Walkthrough

Walkthrough

This PR adds a new default configuration field built_in_metadata as an empty array to the useDefaultParserValues hook in the chunk method dialog component. The field is initialized alongside other default parser values without altering the hook's external API or behavior.

Changes

Parser defaults configuration

Layer / File(s) Summary
Default parser configuration with built_in_metadata field
web/src/components/chunk-method-dialog/use-default-parser-values.ts
The defaultParserValues object is expanded with a new built_in_metadata field initialized to an empty array, allowing parser configuration to include metadata definitions.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Possibly related PRs

  • infiniflow/ragflow#14250: Adds backend change to read and merge parser_config["built_in_metadata"] when generating chunk metadata, directly complementing this frontend default field.
  • infiniflow/ragflow#14480: Updates API schema and metadata handling to include built_in_metadata array support alongside this default value addition.
  • infiniflow/ragflow#14383: Updates backend metadata_conf construction to handle the built_in_metadata field schema-safely, directly connected at the data handling level.

Suggested labels

🐞 bug

Suggested reviewers

  • yingfeng
  • yuzhichang
  • wangq8

Poem

🐰 A metadata field takes its place,
Built-in, empty, setting the pace,
Default values now complete,
Parser config's fresh heartbeat!

🚥 Pre-merge checks | ✅ 2 | ❌ 3

❌ Failed checks (1 warning, 2 inconclusive)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
Title check ❓ Inconclusive The title 'Fix: Fixed metadata issue' is vague and generic; it lacks specificity about what metadata issue was fixed or which component/feature is affected. Replace with a more specific title such as 'Add built_in_metadata default field to parser configuration' to clearly describe the actual change made.
Description check ❓ Inconclusive The PR description includes the required template sections with a bug fix classification, but the explanation of the problem is vague and doesn't clearly articulate why adding built_in_metadata to default parser values solves the stated issue. Clarify the problem statement to explain how the metadata field initialization addresses the disabled metadata in file configuration and provide more context about the fix.
✅ Passed checks (2 passed)
Check name Status Explanation
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.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.


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 and usage tips.

@dcc123456 dcc123456 added 🐞 bug Something isn't working, pull request that fix bug. ci Continue Integration labels May 26, 2026
@dcc123456
dcc123456 marked this pull request as draft May 26, 2026 02:27
@dcc123456
dcc123456 marked this pull request as ready for review May 26, 2026 02:27
@codecov

codecov Bot commented May 26, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 93.12%. Comparing base (4b36801) to head (56fef11).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #15226      +/-   ##
==========================================
- Coverage   94.53%   93.12%   -1.41%     
==========================================
  Files          10       10              
  Lines         713      713              
  Branches      116      116              
==========================================
- Hits          674      664      -10     
- Misses         25       29       +4     
- Partials       14       20       +6     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@yingfeng
yingfeng merged commit bce1152 into infiniflow:main May 26, 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. ci Continue Integration 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