Skip to content

fix: add GetInputForm for string_transform - #16900

Merged
yuzhichang merged 3 commits into
infiniflow:mainfrom
Haruko386:mutex
Jul 15, 2026
Merged

yuzhichang merged 3 commits into
infiniflow:mainfrom
Haruko386:mutex

Conversation

@Haruko386

Copy link
Copy Markdown
Member

Summary

As title:

merge:

image

split

image

@Haruko386
Haruko386 requested a review from yuzhichang July 14, 2026 06:50
@Haruko386 Haruko386 added 🐞 bug Something isn't working, pull request that fix bug. ci Continue Integration labels Jul 14, 2026
@dosubot dosubot Bot added the size:M This PR changes 30-99 lines, ignoring generated files. label Jul 14, 2026
@Haruko386
Haruko386 marked this pull request as draft July 14, 2026 06:50
@Haruko386
Haruko386 marked this pull request as ready for review July 14, 2026 06:50
@coderabbitai

coderabbitai Bot commented Jul 14, 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: 758f6fb1-ff63-47c0-b2e3-46b2f24dd064

📥 Commits

Reviewing files that changed from the base of the PR and between 930a4cb and 1505fc3.

📒 Files selected for processing (1)
  • internal/agent/component/string_transform_test.go
🚧 Files skipped from review as they are similar to previous changes (1)
  • internal/agent/component/string_transform_test.go

📝 Walkthrough

Walkthrough

StringTransformComponent now exposes input-form metadata for split and merge modes, including parsed script variables and normalized node references. Tests cover schema generation and placeholder metadata extraction.

Changes

String transform inputs

Layer / File(s) Summary
Dynamic input schema and parsing
internal/agent/component/string_transform.go, internal/agent/component/string_transform_test.go
GetInputForm() describes split-mode line input and merge-mode script variables, while tests verify input metadata and placeholder parsing.

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

Suggested reviewers: yuzhichang

Poem

A rabbit parsed the lines with care,
Found merge vars hiding everywhere.
Split brought one line, neat and bright,
Node keys wore their names just right.
Tests hopped along—what a delight!

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

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.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly matches the main change: adding GetInputForm support for string_transform.
Description check ✅ Passed The description includes the required Summary section and basic context via screenshots, though the written summary is minimal.
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.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@internal/agent/component/string_transform_test.go`:
- Line 186: Fix both GetInputForm call sites in
internal/agent/component/string_transform_test.go at lines 186-186 and 208-208
by type-asserting c to *StringTransformComponent before invoking the method,
preserving the existing test behavior.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 370efb98-48ad-4fcb-9510-62b773d4be09

📥 Commits

Reviewing files that changed from the base of the PR and between 654fc88 and 930a4cb.

📒 Files selected for processing (2)
  • internal/agent/component/string_transform.go
  • internal/agent/component/string_transform_test.go

@yuzhichang
yuzhichang merged commit 3339040 into infiniflow:main Jul 15, 2026
7 of 9 checks passed
@Haruko386
Haruko386 deleted the mutex branch August 18, 2026 05:05
@Haruko386
Haruko386 restored the mutex branch August 18, 2026 05:05
@Haruko386
Haruko386 deleted the mutex branch August 18, 2026 05:06
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: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