Skip to content

Remove Operator Group - #3033

Merged
aglinxinyuan merged 14 commits into
masterfrom
xinyuan-remove-group
Nov 13, 2024
Merged

aglinxinyuan merged 14 commits into
masterfrom
xinyuan-remove-group

Conversation

@aglinxinyuan

@aglinxinyuan aglinxinyuan commented Nov 13, 2024 •

Copy link
Copy Markdown
Contributor

Remove the unused Operator Group components on the front end and related dangling functions in the other components and services. There is no change in functionality.

@aglinxinyuan aglinxinyuan self-assigned this Nov 13, 2024

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

Some more to clean:

  1. WorkflowPersistServiceSpec has content with groups
  2. Some comments still have group.
  3. Some test cases still have group

@aglinxinyuan aglinxinyuan added frontend Changes related to the frontend GUI refactor Refactor the code labels Nov 13, 2024
@aglinxinyuan
aglinxinyuan merged commit 663c022 into master Nov 13, 2024
@aglinxinyuan
aglinxinyuan deleted the xinyuan-remove-group branch November 13, 2024 10:17
PurelyBlank pushed a commit that referenced this pull request Dec 4, 2024
Remove the unused Operator Group components on the front end and related
dangling functions in the other components and services. There is no
change in functionality.
SarahAsad23 pushed a commit to madisonmlin/texera that referenced this pull request May 20, 2026
Remove the unused Operator Group components on the front end and related
dangling functions in the other components and services. There is no
change in functionality.
yangzhang75 pushed a commit to yangzhang75/texera that referenced this pull request Jun 22, 2026
Remove the unused Operator Group components on the front end and related
dangling functions in the other components and services. There is no
change in functionality.
renovate-bot pushed a commit to renovate-bot/apache-_-texera that referenced this pull request Sep 24, 2026
### What changes were proposed in this PR?

Removes the plumbing left behind when the link-breakpoint feature was
deleted from the UI. None of these streams can emit — there is no
`.next()` on any of them anywhere in production, so the getters hand out
streams that never fire and `linksWithBreakpoints` is permanently empty.
Pure deletion, no behaviour change: **−100 lines**.

### History

| | |
| --- | --- |
| **Introduced by** | the original breakpoint implementation, commit
`f80c9a43db` (2020-03-29) — predates the PR workflow |
| **Usage removed by** | apache#2392 (2024-02-19) — "Remove breakpoint
feature" deleted `setLinkBreakpoint` and the
`breakpointChangeStream.next` producers. apache#3033 (2024-11-13) — "Remove
Operator Group" then removed the last
`jointLinkBreakpointShowStream.next` / `HideStream.next` calls |

Since apache#3033 there has been no producer at all.

| Removed | Where |
| --- | --- |
| `jointLinkBreakpointShowStream` / `HideStream` + their getters, and
the `linkIDType` alias only they used | `joint-graph-wrapper.ts` |
| `linksWithBreakpoints` + `getLinkIDsWithBreakpoint` |
`joint-graph-wrapper.ts` |
| `breakpointChangeStream` + `getBreakpointChangeStream`, and the
`"setLinkBreakpoint"` / `"breakpointChangeStream"` entries in the
restricted-method union | `workflow-graph.ts` |
| the merge operand | `workflow-action.service.ts` |
| `handleLinkBreakpointToggleEvents` + its call |
`workflow-editor.component.ts` |

> Reviewer note — one guard collapses rather than disappearing. The
`link:mouseleave` handler skipped `hideTools()` for links that had a
breakpoint; since `getLinkIDsWithBreakpoint()` always returns empty,
that branch was always taken, so the call is now unconditional. Same
behaviour, one branch fewer. The doc comment above it, which explained
the breakpoint exception, is updated to match.

> The `"setLinkBreakpoint"` union entry names a method that no longer
exists — it is a string in a restricted-method union, not a call site.

> These picked up coverage in apache#7481 (2026-08-09) and apache#6586 (2026-07-20),
which is why they look live; those tests poke the dead subjects directly
through `(wrapper as any)` rather than exercising a feature.

### Any related issues, documentation, discussions?

Closes apache#8612

### How was this PR tested?

Existing tests only — this PR removes code and the tests that poked it.

From `frontend/`:

- `npx ng build` — **success**. This PR edits a component, so the AOT
build is the gate that proves no template still binds to a removed
member.
- `npx ng test --watch=false --include='**/joint-graph-wrapper.spec.ts'
--include='**/workflow-graph.spec.ts'
--include='**/workflow-editor.component.spec.ts'` — 251 tests pass
across the three files.
- `yarn --cwd frontend format:ci` — clean.

Verification, re-runnable by a reviewer:

```
git grep -n "LinkBreakpoint\|breakpointChangeStream\|linksWithBreakpoints\|linkIDType"
```

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

Generated-by: Claude Code (Claude Opus 5)

🤖 Generated with [Claude Code](https://claude.com/claude-code)
renovate-bot pushed a commit to renovate-bot/apache-_-texera that referenced this pull request Sep 27, 2026
)

### What changes were proposed in this PR?

Deletes the group-highlight streams from `JointGraphWrapper`: the two
subjects and the `getJointGroupHighlightStream()` /
`getJointGroupUnhighlightStream()` getters. It also drops those streams
from the four `merge(...)` calls that subscribe to them: one in the
property editor, two in the workflow editor, and one in the operator
menu. There is no behaviour change: **+6/−54 lines**.

### History

| | |
| --- | --- |
| **Introduced by** | apache#754 (2020-12-11), "Added operator grouping
feature", for selecting operator groups on the canvas |
| **Usage removed by** | apache#3033 (2024-11-13), "Remove Operator Group". It
deleted the feature and every `.next()` on these subjects, but kept the
subjects, the getters and the subscribers |

It has been dead for nearly two years. Each dropped `merge(...)` operand
was a stream that never emits, so removing it changes nothing the
subscribers can observe. No production code calls `.next()` or
`.complete()` on either subject.

> Reviewer note: the other streams in those `merge(...)` calls are live
and unchanged. The only other edits are comments that still mentioned
groups. `joint-graph-wrapper.spec.ts` loses its one case, which asserted
that these streams stay silent when operators are highlighted.

### Any related issues, documentation, discussions?

Closes apache#8685

### How was this PR tested?

No new tests. The one removed case only covered the deleted getters.

From `frontend/`:

- `npx ng test --watch=false --include='**/joint-graph-wrapper.spec.ts'
--include='**/property-editor.component.spec.ts'
--include='**/workflow-editor.component.spec.ts'
--include='**/operator-menu.service.spec.ts'`: 4 files, 250 tests, all
pass.
- `yarn format:ci`: clean.
- `npx ng build`: success.

To re-check:

```
git grep -n -i "JointGroup"   # 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](https://claude.com/claude-code)
renovate-bot pushed a commit to renovate-bot/apache-_-texera that referenced this pull request Sep 28, 2026
)

### What changes were proposed in this PR?

Deletes four unused members of `WorkflowUtilService`, plus the rxjs
import and the three spec cases that existed only for them. **+1/−85
lines.** There is no behaviour change. The constructor still fills
`operatorSchemaList` from the metadata subscription; only the
`.next(true)` to a Subject with no subscriber goes.

### History

| | |
| --- | --- |
| **Introduced by** | apache#712 (2019-06-06):
`operatorSchemaListCreatedSubject` + getter. apache#754 (2020-12-11), "Added
operator grouping feature": `getGroupRandomUUID`. apache#1309 (2021-08-28),
"Re-enabling breakpoints": `getBreakpointRandomUUID`. apache#4020
(2025-11-25), "feat: introduce the LLM-based workflow copilot":
`getOperatorTypeList` |
| **Usage removed by** | apache#1674 (2022-10-05), the Yjs shared-editing
frontend, removed the last live path to `getGroupRandomUUID` (apache#3033
later deleted its last textual call, inside a dead `getNewGroup`). apache#4495
(2026-04-27) removed the copilot tool that called `getOperatorTypeList`.
The stream and `getBreakpointRandomUUID` were **never used** |

The oldest of these has been dead for seven years, and the newest for
five months.

### Any related issues, documentation, discussions?

Closes apache#8716

### How was this PR tested?

No new tests. The 15 remaining service cases cover what is left.

From `frontend/`:

- `npx ng test --watch=false`, with one `--include` per spec that
imports `workflow-util.service` (20 files): 724 tests, all pass.
- `yarn format:ci`: clean.
- `npx ng build`: success.

To re-check:

```
git grep -n -E "getOperatorTypeList|getGroupRandomUUID|getBreakpointRandomUUID|OperatorSchemaListCreated" -- frontend   # 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](https://claude.com/claude-code)
renovate-bot pushed a commit to renovate-bot/apache-_-texera that referenced this pull request Nov 27, 2026
### What changes were proposed in this PR?

Remove code that nothing uses from the dataset service, the dataset file
uploader, the Hub component and service, and the canvas glyph service
(**+154/−578 lines**). There is no behavior change.

- **`DatasetService`:** four dead pieces go.
- Six forwarders: `multipartUpload`, `listMultipartUploads`,
`findExistingUploadFiles` and `finalizeMultipartUpload` only call
`MultipartUploadService`, and `resetDatasetFileDiff` and
`getDatasetDiff` only call `StagedFileService`. apache#8078 moved every caller
to those services and kept the forwarders "so existing callers are
untouched"; only specs still called or stubbed them.
- The `GuiConfigService` and `MultipartUploadService` constructor
dependencies that the forwarders and nothing else used.
- The re-exported `MultipartUploadProgress` type, which nothing imports
from here.
- URL constants that nothing outside the service imports. The base paths
become file-local, and the ones used once are written at their call
site.
- **Specs:**
- The dataset spec's 15 cases that tested the upload and staging
services through the forwarders go. `multipart-upload.service.spec.ts`
and `staged-file.service.spec.ts` already cover 12 of them.
- The other three move to `multipart-upload.service.spec.ts`: progress
smoothing, the ETA clamp, and the 0% failure for an empty file. They
account for 84 of the added lines.
- The clamp case now stalls at 10 of 100 bytes. At 50, the clamped and
unclamped ETAs both rounded to 3 s, so it passed with any bound.
- The dataset spec's HTTP cases state the URLs they expect, and the
dataset-detail spec drops its stubs of the removed forwarders.
- **`FilesUploaderComponent`:** the `newUploadFileTreeNodes` field and
its import, unused since apache#3296.
- **Hub:** `HubComponent`'s `isLogin` input and `GuiConfigService`
injection are never read. The dashboard stops passing `isLogin`, and
keeps its own login state. `ActionType.Unlike` has no user; `postUnlike`
keeps its literal endpoint.
- **`JointUIService`:**
- Sixteen constants that nothing imports become file-local: eleven glyph
constants and five CSS class names. Their values are unchanged.
- The `DEFAULT_GROUP_MARGIN` and `DEFAULT_GROUP_MARGIN_BOTTOM` statics
go. apache#3033 removed operator groups, their last reader.
- The attribute blocks for the abbreviated, processed and output count
labels go. apache#3558 removed those labels from the markup.

| Event | PR / Commit |
| --- | --- |
| Introduced by | Forwarders and the re-exported type: apache#8078
(2026-08-31); uploader field: apache#2719 (2024-07-23);
`HubComponent.isLogin`: apache#2725 (2024-09-24); `ActionType.Unlike`: apache#3442
(2025-06-28); group margins: apache#754 (2020-12-11); count-label attributes:
apache#1374 (2021-11-23) and apache#3477 (2025-07-08) |
| Usage removed by | Uploader field: apache#3296 (2025-03-11). Group margins:
apache#3033 (2024-11-13). Count-label attributes: apache#3558 (2025-07-11).
Everything else: unused since introduction. |

As of 2026-11-26:
- `HubComponent.isLogin` and the group margins have gone unread for over
2 years.
- The uploader field has been unused for over a year and a half, and the
count-label attributes for over a year.
- `ActionType.Unlike` has been unused for almost a year and a half.
- The forwarders have had no caller in the almost 3 months they have
existed.

### Any related issues, documentation, discussions?

Closes apache#9719.

### How was this PR tested?

Ran on this branch and on `main` at `927379aa28` (Windows 11; Node 24
with Yarn 4.14.1):

```bash
cd frontend
npx ng test --watch=false --include='**/dataset.service.spec.ts' --include='**/dataset-detail.component.spec.ts' --include='**/files-uploader.component.spec.ts' --include='**/hub.component.spec.ts' --include='**/dashboard.component.spec.ts' --include='**/hub.service.spec.ts' --include='**/joint-ui.service.spec.ts' --include='**/multipart-upload.service.spec.ts'
npx tsc --noEmit -p src/tsconfig.app.json
npx tsc --noEmit -p src/tsconfig.spec.json
npx ngc -p src/tsconfig.app.json --noEmit
yarn prettier-eslint --list-different $(git diff --name-only --relative origin/main -- src)
yarn eslint $(git diff --name-only --relative origin/main -- src | grep -E '\.(ts|html)$')
```

- **Specs:** the eight specs run 357 tests on this branch and 371 on
`main`, all passing.
- The branch drops the dataset spec's 15 forwarder cases and runs 3 of
them in the multipart spec.
- It also drops the Hub component's `isLogin` and `GuiConfigService`
checks, and renames one Hub case for the dropped input.
  - Every other test keeps its name and outcome.
- **Controls:** widening or narrowing the engine's 30% ETA bound fails
the moved clamp case (27 s or 20 s instead of 23 s). At 50 bytes, as on
`main`, the widened bound passed. Dropping the empty-file guard fails
the 0% case.
- **Checks:** both typechecks, the AOT compile (the dashboard template
changes), prettier-eslint and ESLint pass.

To re-check, this returns no hits on this branch and 19 on `main`:

```bash
git grep -nE "public (multipartUpload|listMultipartUploads|findExistingUploadFiles|finalizeMultipartUpload|resetDatasetFileDiff|getDatasetDiff)\(|newUploadFileTreeNodes|Unlike = |texera-operator-(abbreviated|processed|output)-count|private config: GuiConfigService|DEFAULT_GROUP_MARGIN|export const operator(ReuseCacheText|ReuseCacheIcon|ViewResultIcon|Icon|FriendlyName)Class" -- frontend/src/app/dashboard/service/user/dataset frontend/src/app/dashboard/component/user/files-uploader frontend/src/app/hub frontend/src/app/workspace/service/joint-ui
```

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

Generated-by: Claude Code (Claude Opus 5.5)
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.

2 participants