-
Notifications
You must be signed in to change notification settings - Fork 94
feat(orchestrator-form-react): allow conditional omitFromWorkflowInput #2245
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(orchestrator-form-react): allow conditional omitFromWorkflowInput #2245
Conversation
Changed Packages
|
PR Compliance Guide 🔍Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label |
||||||||||||||||||||||||
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
|||||||||
mareklibra
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So many small sneaky conditions :-O
But it makes sense.
|
/cherrypick orchestrator-1.8 |
|
@lokanandaprabhu: new pull request created: #2288 DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |



User description
Hey, I just made a Pull Request!
Fixes:
https://issues.redhat.com/browse/RHDHBUGS-2590
Summary:
✔️ Checklist
PR Type
Enhancement
Description
Allow
omitFromWorkflowInputto accept conditional expressionsSupport same condition format as
ui:hiddenfor dynamic field omissionEvaluate conditions against form data during payload building
Add comprehensive tests and documentation for feature
Diagram Walkthrough
File Walkthrough
pruneFormData.ts
Support conditional omitFromWorkflowInput with expression evaluationworkspaces/orchestrator/plugins/orchestrator-form-react/src/utils/pruneFormData.ts
omitFromWorkflowInputtype frombooleantoHiddenConditiontosupport conditional expressions
shouldOmitFromWorkflowInputfunction to evaluate conditionsusing
evaluateHiddenConditionrootFormDataparameter toomitFromWorkflowInputfunction forcondition evaluation
rootFormDatathrough recursive calls for nested objects andarrays
pruneFormData.test.ts
Add tests for conditional omitFromWorkflowInput behaviorworkspaces/orchestrator/plugins/orchestrator-form-react/src/utils/pruneFormData.test.ts
omitFromWorkflowInputmatchesomitFromWorkflowInputdoes not matchwhen/ispattern
omit-from-workflow-input-conditions.md
Add changeset for conditional omitFromWorkflowInput featureworkspaces/orchestrator/.changeset/omit-from-workflow-input-conditions.md
omitFromWorkflowInputfeatureui:hiddenorchestratorFormWidgets.md
Document omitFromWorkflowInput static and conditional usageworkspaces/orchestrator/docs/orchestratorFormWidgets.md
omitFromWorkflowInputfunctionalityformats
ui:hiddensyntax