Skip to content

fix(agent): restore DataOperations input form - #16928

Closed
LauraGPT wants to merge 1 commit into
infiniflow:mainfrom
LauraGPT:codex/fix-ragflow-go-duplicate
Closed

LauraGPT wants to merge 1 commit into
infiniflow:mainfrom
LauraGPT:codex/fix-ragflow-go-duplicate

Conversation

@LauraGPT

@LauraGPT LauraGPT commented Jul 15, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • return the input form collected by DataOperationsComponent.GetInputForm
  • add a regression test covering system variables, component outputs, and duplicate references

Root cause

DataOperationsComponent.GetInputForm builds its result map from configured query placeholders but returns a new empty map instead, so callers never receive the discovered input fields.

#16927 has now removed the duplicate helper that briefly broke the Go build. This PR is rebased on that fix and is intentionally limited to the remaining GetInputForm behavior bug and its regression coverage.

Validation

  • go test ./internal/agent/component -count=1
  • go vet ./internal/agent/component
  • ./build.sh --go

@coderabbitai

coderabbitai Bot commented Jul 15, 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: 5c94efd8-0b24-4386-98b8-fdb208e2e487

📥 Commits

Reviewing files that changed from the base of the PR and between a19af34 and 6ac12d5.

📒 Files selected for processing (2)
  • internal/agent/component/data_operations.go
  • internal/agent/component/data_operations_test.go
💤 Files with no reviewable changes (1)
  • internal/agent/component/data_operations.go

📝 Walkthrough

Walkthrough

DataOperationsComponent.GetInputForm now parses configured query placeholders into an input schema. A unit test verifies entries for sys.query and CodeExec:Run@result.

Changes

Data operations input form

Layer / File(s) Summary
Parse query placeholders and validate the schema
internal/agent/component/data_operations.go, internal/agent/component/data_operations_test.go
GetInputForm returns entries generated from param.Query via getInputElementsFromText; the test verifies system and code-execution placeholders with deep equality.

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

Possibly related PRs

  • infiniflow/ragflow#16900: Introduces related placeholder-parsing input introspection for StringTransformComponent.GetInputForm.

Poem

A bunny found queries tucked in a form,
With placeholders hopping through each norm.
sys.query danced, CodeExec ran,
Tests checked the map as only they can.
“Input shapes bloom!” cheered the rabbit clan.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly summarizes the main change: restoring the DataOperations input form.
Description check ✅ Passed The description matches the template's Summary section and includes useful context, root cause, and validation details.
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.

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.

@LauraGPT
LauraGPT marked this pull request as ready for review July 15, 2026 03:33
@dosubot dosubot Bot added size:M This PR changes 30-99 lines, ignoring generated files. ☯️ refactor Pull request that refactor/refine code 🐞 bug Something isn't working, pull request that fix bug. labels Jul 15, 2026
@LauraGPT

Copy link
Copy Markdown
Contributor Author

@yuzhichang could you please add the ci label when convenient? This fixes the current main Go compile regression that is causing both Go jobs on #16844 to fail. The exact ./build.sh --go build and the component test suite pass locally.

@yuzhichang

Copy link
Copy Markdown
Member

Replaced by #16927

@yuzhichang yuzhichang closed this Jul 15, 2026
@LauraGPT

Copy link
Copy Markdown
Contributor Author

Thanks. #16927 fixes the duplicate-symbol build. I rebased on it and opened #16930 for the distinct remaining bug on current main: DataOperationsComponent.GetInputForm still builds res but returns a new empty map. The follow-up is limited to that one-line behavior fix and its regression test.

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. ☯️ refactor Pull request that refactor/refine code size:M This PR changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants