Repository navigation
Fix Pipeline.Run callers and rename SetupOverrides - #16973
Conversation
- Adapt all Pipeline.Run call sites to the new signature (override_params arg); previously-variadic setups were never passed, so nil preserves behavior. - Restore unexported canvas ctx-helper that was mistakenly exported as WithOverrideParams, clashing with the exported CompileOption. - Rename the SetupOverrides family to OverrideParams for consistency with the WithOverrideParams option.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughWalkthroughCanvas override plumbing is renamed from setup overrides to override parameters. ChangesOverride parameter application
Estimated code review effort: 2 (Simple) | ~10 minutes Possibly related PRs
Suggested labels: Suggested reviewers: Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
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. Comment |
There was a problem hiding this comment.
🧹 Nitpick comments (1)
internal/ingestion/pipeline/pipeline.go (1)
215-221: 📐 Maintainability & Code Quality | 🔵 Trivial | 💤 Low valueUse
camelCasefor Go variables and parameters.In Go, variables and parameters should be named using
camelCaserather thansnake_case. Both the function signature and its references should be updated.
internal/ingestion/pipeline/pipeline.go#L215-L221: Rename the parameteroverride_paramstooverrideParams.internal/ingestion/pipeline/pipeline.go#L262-L265: Update the reference fromoverride_paramstooverrideParams.🤖 Prompt for 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. In `@internal/ingestion/pipeline/pipeline.go` around lines 215 - 221, Rename the Run method parameter override_params to overrideParams and update every reference accordingly, including internal/ingestion/pipeline/pipeline.go lines 215-221 and 262-265. No other behavior changes are needed.
🤖 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.
Nitpick comments:
In `@internal/ingestion/pipeline/pipeline.go`:
- Around line 215-221: Rename the Run method parameter override_params to
overrideParams and update every reference accordingly, including
internal/ingestion/pipeline/pipeline.go lines 215-221 and 262-265. No other
behavior changes are needed.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: 0e813f2e-af68-4d4b-908e-e101e5afc49e
📒 Files selected for processing (10)
internal/agent/canvas/compile.gointernal/agent/canvas/compile_setup_override_test.gointernal/agent/canvas/node_body.gointernal/agent/canvas/node_body_setup_override_test.gointernal/ingestion/pipeline/pipeline.gointernal/ingestion/pipeline/pipeline_test.gointernal/ingestion/pipeline/real_storage_integration_test.gointernal/ingestion/pipeline/template_integration_test.gointernal/ingestion/task/pipeline_executor_defaults.gointernal/ingestion/task/pipeline_real_integration_test.go
Adapt Pipeline.Run call sites to the new signature and rename the SetupOverrides family to OverrideParams for consistency.