seatunnel icon indicating copy to clipboard operation
seatunnel copied to clipboard

[Feature][Zeta] Add common operation controls to Web UI

Open davidzollo opened this issue 4 months ago • 5 comments

Background

SeaTunnel Engine already exposes many operational capabilities through REST API and CLI. The built-in Web UI currently focuses on visual inspection of cluster overview, jobs, job details, logs, realtime metrics, workers, and master status.

It would be useful to add common operation controls to the Web UI so operators can complete frequent Zeta workflows without leaving the console.

Proposed capabilities

  • Submit a job from configuration text.
  • Submit a job by uploading a configuration file.
  • Stop a running job gracefully.
  • Cancel a running job when force termination is required.
  • Stop a job with savepoint.
  • Restart or resubmit a job from checkpoint or savepoint state.
  • View checkpoint overview and checkpoint history from the job detail page.
  • Browse connector OptionRule metadata for UI-driven dynamic forms.
  • Update worker node tags from the UI when supported by the backend API.
  • Show HTTP, HTTPS, and authentication status in a safe read-only operations view.

Notes

  • The UI should reuse the existing Zeta REST API where possible.
  • Destructive or state-changing actions should include confirmation and clear status feedback.
  • Sensitive values such as credentials, tokens, and passwords must not be displayed in the UI.
  • The first implementation can split these items into smaller PRs if that is easier to review.

Related docs

  • REST API V2: https://seatunnel.apache.org/docs/engines/zeta/rest-api-v2
  • Job Lifecycle API: https://seatunnel.apache.org/docs/engines/zeta/rest-api-job-lifecycle
  • Web UI: https://seatunnel.apache.org/docs/engines/zeta/web-ui

davidzollo avatar Jul 28 '26 03:07 davidzollo

This looks like a useful operator-focused feature track rather than a bug.

The workflows listed here are reasonable, but I would avoid landing them as one large Web UI change because they mix several different risk levels: job submission and control, savepoint and restart flows, checkpoint observability, OptionRule-driven dynamic forms, and worker/admin settings.

A safer path would be to split this into phases:

  1. first PR: submit job from text/file, plus stop/cancel with confirmation and clear status feedback;
  2. second PR: savepoint / restore / restart flows, once the backend contract and failure states are explicit;
  3. later PRs: checkpoint history and OptionRule-driven forms;
  4. worker tag updates and cluster security/status views only when the backend API boundary is stable enough.

The main review boundary is that the Web UI should stay a thin client over the existing Zeta APIs, and sensitive values must never be exposed back to the page.

If someone wants to pick this up, a smaller first PR will be much easier to review and merge than one umbrella implementation.

DanielLeens avatar Jul 29 '26 01:07 DanielLeens

I will pick up the first reviewable phase of this issue: add Web UI controls for submitting jobs from configuration text/file and stopping/canceling running jobs by reusing the existing Zeta REST APIs. I will keep savepoint/restart/checkpoint/OptionRule/admin views out of this first PR so the change remains easier to review.

danielnadean avatar Jul 31 '26 15:07 danielnadean

Submitted the full Web UI operation controls implementation in #11613. The PR covers job text/file submission, stop/cancel/savepoint controls, latest-state restore entry from checkpoints, checkpoint overview/history, OptionRule metadata including condition rules and value constraints, local-node worker tag updates with uuid validation, and safe HTTP service status.

danielnadean avatar Jul 31 '26 23:07 danielnadean

Thanks for opening #11613 and linking it back here.

The PR gives this issue a concrete implementation path, but because it covers more than the first phase originally suggested here, the review should be especially strict about the operational boundaries: job submission, stop/cancel, savepoint, restore, checkpoint history, OptionRule metadata, worker tags, and HTTP service status are not all the same risk level.

For the issue status, I would keep this open until #11613 is reviewed and its Build check is green. On the PR side, the key thing is to keep destructive operations guarded by confirmation, keep the Web UI as a thin client over existing Zeta REST contracts, and make failure/permission states visible instead of silently swallowing backend errors.

DanielLeens avatar Aug 01 '26 00:08 DanielLeens

Thanks for the well-structured proposal. Since it covers many capabilities, splitting into smaller PRs is strongly encouraged — a suggested first slice: job submit (text + file upload) plus stop/cancel with confirmation dialogs, since these map directly to existing REST API v2 endpoints.

Please confirm whether the Web UI actions should respect the engine's HTTPS/authentication configuration; state-changing endpoints must pass through the same auth layer as the REST API, and the UI should degrade gracefully (read-only) when auth is not satisfied.

For worker tag updates and OptionRule browsing, please verify the backend REST endpoints exist and are stable before building UI on top; if any are missing, consider filing separate issues to add them first.

SEZ9 avatar Aug 01 '26 05:08 SEZ9