The GitHub Actions job "Required Checks" on texera.git/main has failed.
Run started by GitHub user github-merge-queue[bot] (triggered by 
github-merge-queue[bot]).

Head commit for run:
b4c5ae1824e6b67b24ef55c708dceb6fa26ea9c9 / Xinyuan Lin <[email protected]>
refactor(agent-service): drop unused state and helper methods (#9239)

### What changes were proposed in this PR?

Removes obsolete validation state management and unused helper methods
in `agent-service`:
- **`WorkflowState`**:
- Drops internal validation state tracking (`validationErrors`,
`workflowEmpty`, `validationChangedSubject`) and associated methods
(`getValidationChangedStream`, `getValidationOutput`,
`setValidationError`, `clearValidationError`, `setAllValidationErrors`,
`updateWorkflowEmptyState`, `emitValidationChanged`). Property
validation is handled directly by
`WorkflowSystemMetadata.validateOperatorProperties` during tool
execution.
- Drops unused `updateOperatorInputPorts`, `getLink`, and
`getFrontierOperators`.
- **`TexeraAgent`**:
  - Drops unused helper `getStepsById()`.
- **`WorkflowSystemMetadata`**:
- Drops unused helper methods `getAllSchemasAsJson()` and
`operatorTypeExists()`, along with private interface
`OperatorSchemaInfo`.
- **`types/workflow.ts`**:
  - Drops unused `OperatorDetail` interface.
- **`WorkflowResultState`**:
  - Drops unused helper method `getOperatorInfo()`.

### Any related issues, documentation, discussions?

Closes #9238

### How was this PR tested?

Tested with Bun test runner in `agent-service`:
```bash
cd agent-service
bun test
```
Output:
```
313 pass
0 fail
765 expect() calls
Ran 313 tests across 19 files. [2.10s]
```

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

Generated-by: Antigravity 2.0

Report URL: https://github.com/apache/texera/actions/runs/41396564520

With regards,
GitHub Actions via GitBox

Reply via email to