feat(ui): add arbitrary template parameters - #16824
Conversation
Signed-off-by: Ruslan Shaydullin <shaydullin.r.d@outlook.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (4)
Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review. 📝 WalkthroughWalkthroughThe UI adds arbitrary name/value parameter entry to workflow template submission. It validates parameter names, preserves parameter ordering, includes custom parameters in the submission payload, and tests add, remove, validation, submission, and navigation behavior. ChangesArbitrary workflow parameters
Estimated code review effort: 3 (Moderate) | ~20 minutes Merge Risk: ⚪ Minimal · up to This change adds validated custom parameter entry to the existing workflow submit panel without changing the backend or API; no actionable merge-blocking risk remains after normal checks and review. Suggested reviewers: Sequence Diagram(s)sequenceDiagram
participant SubmitWorkflowPanel
participant ArbitraryParametersInput
participant WorkflowSubmission
participant Navigation
SubmitWorkflowPanel->>ArbitraryParametersInput: provide parameter rows
ArbitraryParametersInput-->>SubmitWorkflowPanel: return updated name/value rows
SubmitWorkflowPanel->>WorkflowSubmission: submit declared and arbitrary parameters
WorkflowSubmission-->>Navigation: return submitted workflow
Navigation->>Navigation: navigate to submitted workflow
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Linked Issues checkExplanation The changes satisfy issue Full details: Docstring CoverageExplanation Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 4 functions across 3 files. (1 skipped: 1 unsupported.)
✨ Finishing Touches🧪 Generate unit tests (beta)
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 |
make pre-commit -Bmake feature-new)Fixes #13035
Motivation
The submit UI for
WorkflowTemplateandClusterWorkflowTemplatecurrently only allows users to provide parameters declared by the template. The backend already accepts parameters inname=valueformat, but the UI provides no way to add a parameter that was not declared in advance. This change removes that UI limitation.Modifications
name=.=are preserved in full.WorkflowTemplateandClusterWorkflowTemplate.Screenshots
Empty template
Declared and custom parameters
Narrow viewport
Verification
yarn.lockremained unchanged.make features-validatepassed.make features-previewpassed.make pre-commit -Bpassed.git diff --checkpassed.Documentation
Added
.features/pending/workflow-template-arbitrary-parameters.md, which will include the feature in the generated release notes. Users can discover the functionality through the visibleAdd a parametercontrol in the existing Submit Workflow panel, so separate user documentation is not needed. API documentation is not required because the API is unchanged.AI
OpenAI Codex was used to help analyze the relevant code, implement the UI changes, write tests, check accessibility, prepare the feature-file metadata, run local validation, and suggest the commit subject. I personally reviewed and analyzed the resulting code and tests, verified how the changes integrate with the existing submit flow, and checked the validation results. I also wrote and published the issue comment and both lines of the feature note, controlled all external actions, and created the DCO-signed commit. I understand the changes and remain fully responsible for the final implementation and contribution.
Summary by CodeRabbit