apache / apache/texera

Remove the unused search-by-operators workflow endpoint

Open
#8,328 0 comments 0 reactions 1 assignee Claimed by @aglinxinyuan View on GitHub
Dominant language
Scala
Stars
314
Forks
187
Avg merge
1d 21h
Merged PRs (30d)
214

Description

### Task Summary

`WorkflowResource.searchWorkflowByOperator` (`GET /workflow/search-by-operators`) has no client. Workflow search in the UI goes to the unified `/dashboard/search` resource; nothing calls this path.

**Provenance.** Introduced by #1611 (2022-08-07, "Search Workflows Feature") and genuinely used at the time — the frontend held `WORKFLOW_OPERATOR_URL = WORKFLOW_BASE_URL + "/search-by-operators"` and called it. #2038 (2023-07-07, "Allow users to cascade the sharing") deleted that constant when search moved to the dashboard resource; from that commit on, the only file mentioning the path is the backend resource itself. Dead for about three years.

The frontend's `searchByOperators` test in `user-workflow.component.spec.ts` is a name coincidence — it drives the filter UI (`component.filters.operators`), which queries `/dashboard/search`, not this endpoint.

Removing the method also frees `Condition` and `noCondition`, which no other method in `WorkflowResource` uses.

Pure deletion, no behaviour change: −66 lines.

### Task Type

- [x] Refactor / Cleanup

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.