-
Notifications
You must be signed in to change notification settings - Fork 826
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(ui): allow importing external workflows and copying flow nodes in next generation New Workflow
#3368
Conversation
Signed-off-by: Yue Yang <g1enyy0ung@gmail.com>
Signed-off-by: Yue Yang <g1enyy0ung@gmail.com>
Signed-off-by: Yue Yang <g1enyy0ung@gmail.com>
Signed-off-by: Yue Yang <g1enyy0ung@gmail.com>
[REVIEW NOTIFICATION] This pull request has been approved by:
To complete the pull request process, please ask the reviewers in the list to review by filling The full list of commands accepted by this bot can be found here. Reviewer can indicate their review by submitting an approval review. |
Signed-off-by: Yue Yang <g1enyy0ung@gmail.com>
https://lodash.com/docs/4.17.15#merge Signed-off-by: Yue Yang <g1enyy0ung@gmail.com>
6802ad8
to
fd5c5c8
Compare
Codecov Report
@@ Coverage Diff @@
## master #3368 +/- ##
==========================================
+ Coverage 40.90% 41.13% +0.22%
==========================================
Files 166 165 -1
Lines 13985 13853 -132
==========================================
- Hits 5721 5698 -23
+ Misses 7835 7723 -112
- Partials 429 432 +3
Continue to review full report at Codecov.
|
Signed-off-by: Yue Yang <g1enyy0ung@gmail.com>
In fe24730, I added an arrow at the end of the edge to identify the next node, and the workflow flow is now a bit clearer. |
Signed-off-by: Yue Yang <g1enyy0ung@gmail.com>
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.
rest LGTM! Awesome! |
Signed-off-by: Yue Yang <g1enyy0ung@gmail.com>
Signed-off-by: Yue Yang <g1enyy0ung@gmail.com>
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!
I have tried to use it on my own machine with the example workflow yaml files.
Signed-off-by: Yue Yang <g1enyy0ung@gmail.com>
This place needs to be improved. Currently, I haven't limited users to connect nodes when they aren't permitted to connect. I will open an issue to track it later. |
Fixed in bdc8b8d. |
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
/merge |
This pull request has been accepted and is ready to merge. Commit hash: 48654cd
|
…n next generation `New Workflow` (chaos-mesh#3368) * feat(ui): import external workflows Signed-off-by: Yue Yang <g1enyy0ung@gmail.com> * refactor: rewrite flowToWorkflow Signed-off-by: Yue Yang <g1enyy0ung@gmail.com> * fix: isolate flow nodes and real templates Signed-off-by: Yue Yang <g1enyy0ung@gmail.com> * feat: allow copying flow nodes Signed-off-by: Yue Yang <g1enyy0ung@gmail.com> * chore: update CHANGELOG Signed-off-by: Yue Yang <g1enyy0ung@gmail.com> * fix: mutate state https://lodash.com/docs/4.17.15#merge Signed-off-by: Yue Yang <g1enyy0ung@gmail.com> * chore: add marker-end arrow Signed-off-by: Yue Yang <g1enyy0ung@gmail.com> * chore: remove network.target.podsPreviewHelper Signed-off-by: Yue Yang <g1enyy0ung@gmail.com> * fix: build Signed-off-by: Yue Yang <g1enyy0ung@gmail.com> * fix: support copy/delete group nodes Signed-off-by: Yue Yang <g1enyy0ung@gmail.com> * fix: replace default entry when entry exists Signed-off-by: Yue Yang <g1enyy0ung@gmail.com> Signed-off-by: STRRL <im@strrl.dev>
What problem does this PR solve?
Close #3364.
Close #3365.
What's changed and how it works?
This PR modifies the way nodes are connected in the flowchart. Since Workflow is "flexible" (for example, if there are currently two parallel nodes, one with 3 children and the other with 4, they cannot be connected one-to-one), I created separate
Serial
andParallel
nodes to contain the children. Then I finished this PR based on that.Demos
a-serial-node.mp4
import-a-external-workflow.mp4
copy-a-node.mp4
Related changes
chaos-mesh/website
Dashboard UI
Checklist
CHANGELOG
CHANGELOG.md
Tests
Side effects
DCO
If you find the DCO check fails, please run commands like below (Depends on the actual situations. For example, if the failed commit isn't the most recent) to fix it: