-
Notifications
You must be signed in to change notification settings - Fork 104
feat(gui): show region layer on workflow editor #3753
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
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 in general. Left some minor comments.
frontend/src/app/workspace/service/execute-workflow/execute-workflow.service.ts
Outdated
Show resolved
Hide resolved
frontend/src/app/workspace/component/workflow-editor/workflow-editor.component.ts
Outdated
Show resolved
Hide resolved
frontend/src/app/workspace/component/workflow-editor/workflow-editor.component.ts
Outdated
Show resolved
Hide resolved
This is such a nice feature!!! I hope we can use color to indicate region state in the future, e.g., orange means running, green means completed |
Yes, that's a planned follow-up PR. |
@aglinxinyuan Can we add test cases? |
We don't need to add new test cases for the following reason:
|
I disagree. There are new code, there better be new tests. Try use AI to generate tests? At least you can test if this new component can be initialized properly. |
We have quite a few frontend test cases written in the way you described. Honestly, i don't like this approach—because in doing so, we’re essentially adding test cases just for the sake of having test cases. If we can’t find a meaningful way to verify a component’s functionality, then we’re just creating tests that will never fail and can’t actually catch any bugs. If any new code automatically means a new component and test cases, then we should add test cases for the readme file and issue templates. |
First of all, we should start to add more tests. Secondly, those simple initiation tests can at least help us to know if a component can be initialized or not, which is at least helpful when we upgrade dependencies. Anyway, we can blame the existing tests, they can be improved. but that's not a reason not to add test here. |
All I'm asking now is adding tests for source code, I think that's reasonable. Actually spark is also testing docs, but we are not there yet. |
We already have initiation tests and the other tests for the workflow-editor. I'm not adding any new component in this PR. |
That's good. Can we add some tests against your new code? |
Spark is testing docs doesn't automatically mean it's absolutely correct. Also their docs is very different from readme. The point I want to make is that testing markdown files is quite difficult since rendering can vary. |
That's why did I mentioned my second point in my earlier comment. In this PR, I'm drawing some shape in html with a library. It's not easy to compare drawing in joints with our current test framework. Even it's possible, it's hard to define what's a correct drawing. |
@aglinxinyuan Can resolve the conversation so that we can merge it? |
I cannot find any unresolved conversation on my end. There might be a bug on GitHub, I will try to figure it out… |
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 now.
This PR adds a region layer to the workflow editor. The region layer becomes visible after the user clicks the "Run" button on the workflow.

The region layer will be hidden by default, and the user can enable it in the layer dropdown.

Demo:

Fix issue #3904