Skip to content

fix: unable to add metadata in dataset - #17359

Merged
JinHai-CN merged 1 commit into
infiniflow:mainfrom
Haruko386:major
Jul 24, 2026
Merged

JinHai-CN merged 1 commit into
infiniflow:mainfrom
Haruko386:major

Conversation

@Haruko386

Copy link
Copy Markdown
Member

Summary

As title

@Haruko386 Haruko386 added the 🐞 bug Something isn't working, pull request that fix bug. label Jul 24, 2026
@dosubot dosubot Bot added the size:S This PR changes 10-29 lines, ignoring generated files. label Jul 24, 2026
@Haruko386
Haruko386 marked this pull request as draft July 24, 2026 10:06
@Haruko386
Haruko386 marked this pull request as ready for review July 24, 2026 10:06
@Haruko386 Haruko386 added the ci Continue Integration label Jul 24, 2026
@coderabbitai

coderabbitai Bot commented Jul 24, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

📝 Walkthrough

Walkthrough

Dataset updates now preserve metadata, built_in_metadata, and enable_metadata when parser configurations are rebuilt or resolved. Tests cover both incoming metadata and metadata already stored on the dataset.

Changes

Dataset parser metadata preservation

Layer / File(s) Summary
Metadata merge and update flow
internal/service/dataset/helpers.go, internal/service/dataset/update.go
Adds metadata merging with incoming values preferred and existing values used as fallback across parser configuration update paths.
Metadata preservation tests
internal/service/dataset/update_test.go
Verifies incoming metadata persists and existing metadata remains unchanged when omitted from an update request.

Estimated code review effort: 3 (Moderate) | ~20 minutes

Suggested reviewers: xugangqiang, jinhai-cn

Poem

A rabbit hops through parser lands,
Saving metadata in gentle hands.
New fields stay, old fields remain,
Through every update’s winding lane.
“Hop!” says the bunny—“All preserved!”

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 inconclusive)

Check name Status Explanation Resolution
Description check ❓ Inconclusive The description only says 'As title' and does not provide the required summary or background context. Expand the Summary with the issue, why it occurs, and what this PR changes so reviewers can understand the fix.
✅ Passed checks (4 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 matches the change: preserving dataset metadata during parser_config updates.

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.

@JinHai-CN
JinHai-CN merged commit 0471fd5 into infiniflow:main Jul 24, 2026
9 checks passed
@Haruko386
Haruko386 deleted the major branch July 27, 2026 01:42
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:S This PR changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants