Skip to content

Conversation

@Kiryous
Copy link
Contributor

@Kiryous Kiryous commented Jun 16, 2025

Closes #4996

@vercel
Copy link

vercel bot commented Jun 16, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
keep ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 18, 2025 1:26pm

…each and conditions

(cherry picked from commit e952987)
@Kiryous Kiryous marked this pull request as ready for review June 17, 2025 06:45
@dosubot dosubot bot added size:L This PR changes 100-499 lines, ignoring generated files. UI User interface related issues labels Jun 17, 2025
Copy link
Member

@shahargl shahargl left a comment

Choose a reason for hiding this comment

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

lgtm

@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Jun 17, 2025
@Kiryous
Copy link
Contributor Author

Kiryous commented Jun 18, 2025

@greptileai

Copy link
Contributor

@greptile-apps greptile-apps bot left a 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.ts to 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.ts verifying 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

@Kiryous Kiryous merged commit 6298732 into main Jun 18, 2025
25 of 28 checks passed
@Kiryous Kiryous deleted the fix/4996-foreach-jumps-to-end branch June 18, 2025 16:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lgtm This PR has been approved by a maintainer size:L This PR changes 100-499 lines, ignoring generated files. UI User interface related issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[🐛 Bug]: foreach jumps to end of workflow

2 participants