Skip to content

refactor(frontend): remove unused workflow endpoint constants - #8896

Merged
aglinxinyuan merged 1 commit into
apache:mainfrom
aglinxinyuan:refactor/fe-execute-workflow-endpoints
Oct 8, 2026
Merged

aglinxinyuan merged 1 commit into
apache:mainfrom
aglinxinyuan:refactor/fe-execute-workflow-endpoints

Conversation

@aglinxinyuan

Copy link
Copy Markdown
Contributor

What changes were proposed in this PR?

Removes three exported REST endpoint constants from execute-workflow.service.ts that nothing imports: EXECUTE_WORKFLOW_ENDPOINT, PAUSE_WORKFLOW_ENDPOINT and RESUME_WORKFLOW_ENDPOINT. −5 lines. There is no behaviour change. Execute, pause and resume are sent over the websocket (WorkflowExecuteRequest / WorkflowPauseRequest / WorkflowResumeRequest), and the backend has no queryplan/execute, pause or resume REST routes.

History

Introduced by #622 (2018-06-21), the first execute-workflow service: EXECUTE_WORKFLOW_ENDPOINT. #684 (2019-03-10), pause/resume buttons: the other two
Usage removed by #811 (2020-08-21), the Amber merge, which moved pause/resume to websocket requests and removed their http.post calls. #982 (2021-01-25), "Improves multiple ports support in Texera operators (Step 4)", which removed the last REST execute call

The pause/resume constants have been unused for six years, and the execute one for nearly five.

Any related issues, documentation, discussions?

Closes #8895

How was this PR tested?

No new tests; no spec imported the constants.

From frontend/:

  • npx ng test --watch=false, covering execute-workflow.service.spec.ts plus all 17 specs that import the service (18 files): 1363 tests pass, 1 is skipped (an existing it.skip).
  • yarn format:ci: clean.
  • npx ng build: success.

To re-check:

git grep -n -w -E "EXECUTE_WORKFLOW_ENDPOINT|PAUSE_WORKFLOW_ENDPOINT|RESUME_WORKFLOW_ENDPOINT"   # no hits

Was this PR authored or co-authored using generative AI tooling?

Generated-by: Claude Code (Claude Opus 5.5)

🤖 Generated with Claude Code

Execute, pause and resume have gone over the websocket since apache#811 (pause
and resume) and apache#982 (execute) removed their http.post calls, leaving
EXECUTE_WORKFLOW_ENDPOINT, PAUSE_WORKFLOW_ENDPOINT and
RESUME_WORKFLOW_ENDPOINT unused. Drop them.
Copilot AI balanced review requested due to automatic review settings October 7, 2026 05:45

Copilot AI 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.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@github-actions github-actions Bot added refactor Refactor the code frontend Changes related to the frontend GUI labels Oct 7, 2026
@github-actions

github-actions Bot commented Oct 7, 2026

Copy link
Copy Markdown
Contributor

Automated Reviewer Suggestions

Based on the git blame history of the changed files, we recommend the following reviewers:

  • Contributors with relevant context: @eugenegujing
    You can notify them by mentioning @eugenegujing in a comment.

@aglinxinyuan
aglinxinyuan requested a review from kunwp1 October 7, 2026 05:52
@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.59%. Comparing base (b760489) to head (d75c81c).

Additional details and impacted files
@@            Coverage Diff            @@
##               main    #8896   +/-   ##
=========================================
  Coverage     92.59%   92.59%           
  Complexity     5043     5043           
=========================================
  Files          1252     1252           
  Lines         53583    53583           
  Branches       6672     6672           
=========================================
  Hits          49615    49615           
  Misses         2319     2319           
  Partials       1649     1649           
Flag Coverage Δ *Carryforward flag
access-control-service 77.38% <ø> (ø) Carriedforward from b760489
agent-service 99.16% <ø> (ø) Carriedforward from b760489
amber 88.07% <ø> (ø) Carriedforward from b760489
computing-unit-managing-service 60.41% <ø> (ø) Carriedforward from b760489
config-service 87.37% <ø> (ø) Carriedforward from b760489
file-service 81.53% <ø> (ø) Carriedforward from b760489
frontend 96.58% <ø> (ø)
notebook-migration-service 83.73% <ø> (ø) Carriedforward from b760489
pyamber 98.58% <ø> (ø) Carriedforward from b760489
workflow-compiling-service 74.09% <ø> (ø) Carriedforward from b760489

*This pull request uses carry forward flags. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copilot AI 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.

🟢 Approval recommended

No unresolved issues were identified, and all changes preserve existing behavior.

0 open findings

🧠 Review effort: Lite


Give feedback about Copilot approvals in this survey to enter a drawing for a $150 gift card.

@aglinxinyuan
aglinxinyuan added this pull request to the merge queue Oct 8, 2026
Merged via the queue into apache:main with commit a42c573 Oct 8, 2026
27 checks passed
@aglinxinyuan
aglinxinyuan deleted the refactor/fe-execute-workflow-endpoints branch October 8, 2026 08:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

frontend Changes related to the frontend GUI refactor Refactor the code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove unused workflow REST endpoint constants

4 participants