Skip to content

fix: workflow ui removes conditions and foreach - #3955

Merged
Kiryous merged 4 commits into
mainfrom
fix/3953-wf-ui-conditions
Mar 10, 2025
Merged

Kiryous merged 4 commits into
mainfrom
fix/3953-wf-ui-conditions

Conversation

@Kiryous

@Kiryous Kiryous commented Mar 10, 2025

Copy link
Copy Markdown
Contributor

Closes #3953

@vercel

vercel Bot commented Mar 10, 2025 •

Copy link
Copy Markdown

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 Mar 10, 2025 6:36pm

@Kiryous
Kiryous marked this pull request as ready for review March 10, 2025 16:28
@dosubot dosubot Bot added size:L This PR changes 100-499 lines, ignoring generated files. Bug Something isn't working UI User interface related issues labels Mar 10, 2025
@Kiryous

Kiryous commented Mar 10, 2025

Copy link
Copy Markdown
Contributor Author

@greptileai

@greptile-apps greptile-apps Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

PR Summary

This PR fixes workflow UI issues where conditions and foreach loops were being dropped during workflow editing by enhancing the parser's handling of nested workflow structures.

  • Added proper handling of nested foreach/condition combinations in getActionsFromCondition function
  • Updated getYamlStepFromStep and getYamlActionFromAction to preserve condition and foreach parameters
  • Added comprehensive test coverage for complex workflow structures with nested conditions and foreach loops
  • Fixed YAML serialization to maintain workflow structure integrity during UI edits

💡 (3/5) Reply to the bot's comments like "Can you suggest a fix for this @greptileai?" or ask follow-up questions!

2 file(s) reviewed, 2 comment(s)
Edit PR Review Bot Settings | Greptile

@Kiryous
Kiryous merged commit c0ec7c8 into main Mar 10, 2025
@Kiryous
Kiryous deleted the fix/3953-wf-ui-conditions branch March 10, 2025 18:55
wsimon1982 pushed a commit to wsimon1982/keep that referenced this pull request May 12, 2026

This branch was successfully deployed

1 active deployment
Preview — 4b090042 Deployed Mar 10, 2025 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Bug Something isn't working 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]: Workflow UI Builder removes conditions

2 participants