-
Notifications
You must be signed in to change notification settings - Fork 1.1k
test: foreach jumps to the end of workflow in UI Builder #5031
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
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
…each and conditions (cherry picked from commit e952987)
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.
lgtm
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.
PR Summary
Fixed workflow step ordering in the UI Builder, specifically addressing an issue where steps after a foreach loop were incorrectly jumping above it during YAML conversion.
- Modified
keep-ui/entities/workflows/lib/parser.tsto use sequential processing via for...of loop instead of filter/map to preserve step order - Added special handling in withParams to prevent parsing of 'code' parameters for python-step providers
- Added test case in
keep-ui/entities/workflows/lib/__tests__/parser.test.tsverifying correct step ordering with foreach loops - Improved foreach step handling by skipping processing when stepOrAction is invalid
2 files reviewed, no comments
Edit PR Review Bot Settings | Greptile
Closes #4996