Skip to content

Support running workflows without a View Result operator - #2031

Merged
zuozhiw merged 34 commits into
masterfrom
zuozhi-remove-sink
Sep 18, 2023
Merged

zuozhiw merged 34 commits into
masterfrom
zuozhi-remove-sink

Conversation

@zuozhiw

@zuozhiw zuozhiw commented Jun 27, 2023 •

Copy link
Copy Markdown
Contributor

This PR supports running workflows without a View Result operator (view result operator is now optional).

  1. Any operators without an output operator will now be treated as a final operator
  2. For backward compatibility, old workflows with view result operators can still be run
  3. The "View Result" operator is moved to the "Utility" group to discourage its usage, but its kept for backward compatibility
  4. A user can also view the results of intemediate operators by clicking a "view result" button on an operator

Additionaly, the PR also temporarily deletes some workflow cache related code in the backend, this feature will be improved and added back later.

Demo

  • Run without View Results operators.
    2023-07-24 15 27 44

  • Optionally mark an operator to "view result".
    2023-07-24 15 28 19

@Yicong-Huang Yicong-Huang 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.

Test the functionalities, all look good. Please handle the download result issue. Also left some comments in code.

@Yicong-Huang

Copy link
Copy Markdown
Contributor

@zuozhiw I also suggest to include some gifs in the PR description.

@zuozhiw
zuozhiw force-pushed the zuozhi-remove-sink branch from 5cc37aa to 5955e5e Compare July 11, 2023 10:39
@Yicong-Huang
Yicong-Huang changed the base branch from master to yicong-temporarily-remove-operator-cache July 24, 2023 23:28
…emove-sink

# Conflicts:
#	core/amber/src/main/scala/edu/uci/ics/texera/web/model/websocket/request/WorkflowExecuteRequest.scala
#	core/amber/src/main/scala/edu/uci/ics/texera/web/service/JobResultService.scala
#	core/amber/src/main/scala/edu/uci/ics/texera/web/service/WorkflowJobService.scala
#	core/amber/src/main/scala/edu/uci/ics/texera/web/service/WorkflowService.scala
#	core/amber/src/main/scala/edu/uci/ics/texera/web/storage/WorkflowStateStore.scala
#	core/new-gui/src/app/workspace/component/workflow-editor/context-menu/context-menu/context-menu.component.html
#	core/new-gui/src/app/workspace/service/execute-workflow/execute-workflow.service.ts
#	core/new-gui/src/app/workspace/service/execute-workflow/mock-workflow-plan.ts
#	core/new-gui/src/app/workspace/service/joint-ui/joint-ui.service.ts
#	core/new-gui/src/app/workspace/service/operator-menu/operator-menu.service.ts
#	core/new-gui/src/app/workspace/types/execute-workflow.interface.ts
…emove-sink

# Conflicts:
#	core/amber/src/test/scala/edu/uci/ics/texera/workflow/common/workflow/WorkflowRewriterSpec.scala
Base automatically changed from yicong-temporarily-remove-operator-cache to master August 3, 2023 06:36
@zuozhiw
zuozhiw force-pushed the zuozhi-remove-sink branch from 82127f3 to 2cd0319 Compare August 3, 2023 18:58
@zuozhiw
zuozhiw merged commit 4d1499b into master Sep 18, 2023
@zuozhiw
zuozhiw deleted the zuozhi-remove-sink branch September 18, 2023 09:27
shengquan-ni added a commit that referenced this pull request Sep 26, 2023
After #2031, the logic in #2123 for updating mongo collection pointers
is missing when we create sink storages. This PR added the missing code
and should fix #2161.
yangzhang75 pushed a commit to yangzhang75/texera that referenced this pull request Jun 22, 2026
This PR supports running workflows without a View Result operator (view
result operator is now optional).

1. Any operators without an output operator will now be treated as a
final operator
2. For backward compatibility, old workflows with view result operators
can still be run
3. The "View Result" operator is moved to the "Utility" group to
discourage its usage, but its kept for backward compatibility
4. A user can also view the results of intemediate operators by clicking
a "view result" button on an operator

Additionaly, the PR also temporarily deletes some workflow cache related
code in the backend, this feature will be improved and added back later.

### Demo
- Run without `View Results` operators. 
![2023-07-24 15 27
44](https://github.com/Texera/texera/assets/17627829/d8138c4e-0531-491d-bbbe-878f85da080c)

- Optionally mark an operator to "view result".
![2023-07-24 15 28
19](https://github.com/Texera/texera/assets/17627829/b047dcac-7e93-4dfe-982d-99a84304dbc3)

---------

Co-authored-by: Yicong Huang <[email protected]>
yangzhang75 pushed a commit to yangzhang75/texera that referenced this pull request Jun 22, 2026
After apache#2031, the logic in apache#2123 for updating mongo collection pointers
is missing when we create sink storages. This PR added the missing code
and should fix apache#2161.
renovate-bot pushed a commit to renovate-bot/apache-_-texera that referenced this pull request Oct 27, 2026
…9156)

### What changes were proposed in this PR?
Removes the static constant
`ValidationWorkflowService.VALIDATION_OPERATOR_OUTPUT_MESSAGE`. **+0/-1
lines.** There is no behaviour change. The declaration is its only
occurrence in the repo; the `INPUT` sibling stays because it is still
read.

| | Commit / PR |
| --- | --- |
| Introduced by | b77b1a1 (2020-06-04) change how validation works
(direct commit, no PR) |
| Usage removed by | apache#2031 (2023-09-18) Support running workflows
without a View Result operator |

It has been dead for about 3 years.

### Any related issues, documentation, discussions?
Closes apache#9155.

### How was this PR tested?
`npx prettier --check` on the file and `npx tsc --noEmit -p
src/tsconfig.app.json` pass from `frontend/`.
To re-check: `git grep -nw "VALIDATION_OPERATOR_OUTPUT_MESSAGE" --
frontend/src` returns no hits.

### Was this PR authored or co-authored using generative AI tooling?
Generated-by: Antigravity (Claude Opus 5.5)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants