Replies: 1 comment 5 replies
-
@fishnux Thanks for the suggestion! :) One thing to consider is that updating YAML programmatically might break the user's intended formatting. If there is a library that can update YAML fields while maintaining the original field order, comments, and blank lines, that would be easy to implement. Alternatively, we would have the option of accepting such a drawback when the user updated YAML by clicking the visual graph. I am wondering if we can use this library for this purpose 🤔 |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The other day I felt it would be nice to click on a step on the graph and allow editing of that step's YAML code (not the whole file)
The same could also be said to apply dependencies, like right-click on a step, click the button "Depends on" (on the context menu that should appear) and select the other step to depend on, and such depends_on would be written to the step's YAML :)
Technically speaking, to edit the step's YAML, we would track the array position of that specific step, and when we submit the form to save the new code it would replace in that array position and re-encode the YAML. The case of someone deciding to write multiple steps in that block of code I haven't thought of yet
Beta Was this translation helpful? Give feedback.
All reactions