This is an automated email from the ASF dual-hosted git repository.
github-merge-queue[bot] pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/texera.git
The following commit(s) were added to refs/heads/main by this push:
new 39f0e027cb refactor(frontend): drop dead members in execution history
(#9194)
39f0e027cb is described below
commit 39f0e027cb569dcaec633735c36411188b2fe3c7
Author: Xinyuan Lin <[email protected]>
AuthorDate: Wed Oct 28 00:16:44 2026 +0000
refactor(frontend): drop dead members in execution history (#9194)
### What changes were proposed in this PR?
Removes dead members and unused service injections from
`WorkflowExecutionHistoryComponent` and its test suite:
1. `workflow-execution-history.component.ts`:
- Drops unused `WorkflowActionService` constructor injection and import.
- Drops `currentlyHoveredExecution` field which is never set (its hover
handlers were dropped previously).
2. `workflow-execution-history.component.html`:
- Simplifies the bookmark star icon's `[nzTheme]` condition to
`row.bookmarked ? 'fill' : 'outline'`.
3. `workflow-execution-history.component.spec.ts`:
- Drops `OperatorMetadataService` and `StubOperatorMetadataService`
imports and provider, which were only needed to instantiate the unused
`WorkflowActionService`.
**+1/-9 lines.** Pure cleanup with no behavior change.
### Any related issues, documentation, discussions?
Closes #9193.
### How was this PR tested?
- Prettier check passed:
`npx prettier --check
src/app/dashboard/component/user/user-workflow/ngbd-modal-workflow-executions/workflow-execution-history.component.ts
src/app/dashboard/component/user/user-workflow/ngbd-modal-workflow-executions/workflow-execution-history.component.html
src/app/dashboard/component/user/user-workflow/ngbd-modal-workflow-executions/workflow-execution-history.component.spec.ts`
- TypeScript compilation check (`src/tsconfig.spec.json`): zero errors
in modified files.
- Verified 0 callers repo-wide for `currentlyHoveredExecution`.
### Was this PR authored or co-authored using generative AI tooling?
Generated-by: Antigravity (Claude Opus 5.5)
---
.../workflow-execution-history.component.html | 2 +-
.../workflow-execution-history.component.spec.ts | 5 -----
.../workflow-execution-history.component.ts | 3 ---
3 files changed, 1 insertion(+), 9 deletions(-)
diff --git
a/frontend/src/app/dashboard/component/user/user-workflow/ngbd-modal-workflow-executions/workflow-execution-history.component.html
b/frontend/src/app/dashboard/component/user/user-workflow/ngbd-modal-workflow-executions/workflow-execution-history.component.html
index 6ea319314c..49152402e2 100644
---
a/frontend/src/app/dashboard/component/user/user-workflow/ngbd-modal-workflow-executions/workflow-execution-history.component.html
+++
b/frontend/src/app/dashboard/component/user/user-workflow/ngbd-modal-workflow-executions/workflow-execution-history.component.html
@@ -156,7 +156,7 @@
<td nzEllipsis>
<i
(click)="onBookmarkToggle(row)"
- [nzTheme]="(row.bookmarked || currentlyHoveredExecution ===
row) ? 'fill' : 'outline'"
+ [nzTheme]="row.bookmarked ? 'fill' : 'outline'"
class="bookmark-icon"
nz-icon
nzType="star"></i>
diff --git
a/frontend/src/app/dashboard/component/user/user-workflow/ngbd-modal-workflow-executions/workflow-execution-history.component.spec.ts
b/frontend/src/app/dashboard/component/user/user-workflow/ngbd-modal-workflow-executions/workflow-execution-history.component.spec.ts
index 8fe249275d..033312b469 100644
---
a/frontend/src/app/dashboard/component/user/user-workflow/ngbd-modal-workflow-executions/workflow-execution-history.component.spec.ts
+++
b/frontend/src/app/dashboard/component/user/user-workflow/ngbd-modal-workflow-executions/workflow-execution-history.component.spec.ts
@@ -33,8 +33,6 @@ import { WorkflowRuntimeStatistics } from
"../../../../type/workflow-runtime-sta
import { NotificationService } from
"../../../../../common/service/notification/notification.service";
import { UserService } from "../../../../../common/service/user/user.service";
import { StubUserService } from
"../../../../../common/service/user/stub-user.service";
-import { OperatorMetadataService } from
"../../../../../workspace/service/operator-metadata/operator-metadata.service";
-import { StubOperatorMetadataService } from
"../../../../../workspace/service/operator-metadata/stub-operator-metadata.service";
import { commonTestProviders } from "../../../../../common/testing/test-utils";
import { DebugElement } from "@angular/core";
import { By } from "@angular/platform-browser";
@@ -164,9 +162,6 @@ describe("WorkflowExecutionHistoryComponent", () => {
providers: [
{ provide: WorkflowExecutionsService, useValue: executionsService },
{ provide: NotificationService, useValue: notificationService },
- // WorkflowActionService is injected (though unused by the component
logic);
- // the stub metadata service lets the real one instantiate, as in
menu.component.spec.ts.
- { provide: OperatorMetadataService, useClass:
StubOperatorMetadataService },
// UserService backs the <texera-user-avatar> child in each table row.
{ provide: UserService, useClass: StubUserService },
{ provide: NZ_MODAL_DATA, useValue: options.modalData === null ? null
: options.modalData ?? { wid: 1 } },
diff --git
a/frontend/src/app/dashboard/component/user/user-workflow/ngbd-modal-workflow-executions/workflow-execution-history.component.ts
b/frontend/src/app/dashboard/component/user/user-workflow/ngbd-modal-workflow-executions/workflow-execution-history.component.ts
index e0b1f114d8..0c3290ae70 100644
---
a/frontend/src/app/dashboard/component/user/user-workflow/ngbd-modal-workflow-executions/workflow-execution-history.component.ts
+++
b/frontend/src/app/dashboard/component/user/user-workflow/ngbd-modal-workflow-executions/workflow-execution-history.component.ts
@@ -23,7 +23,6 @@ import { EXECUTION_STATUS_CODE, WorkflowExecutionsEntry }
from "../../../../type
import { WorkflowExecutionsService } from
"../../../../service/user/workflow-executions/workflow-executions.service";
import { ExecutionState } from
"../../../../../workspace/types/execute-workflow.interface";
import { NotificationService } from
"../../../../../common/service/notification/notification.service";
-import { WorkflowActionService } from
"../../../../../workspace/service/workflow-graph/model/workflow-action.service";
import Fuse from "fuse.js";
import { ceil } from "lodash";
import { NZ_MODAL_DATA, NzModalRef, NzModalService } from
"ng-zorro-antd/modal";
@@ -118,7 +117,6 @@ export class WorkflowExecutionHistoryComponent implements
OnInit, AfterViewInit
public processTimeBarChart =
WorkflowExecutionHistoryComponent.PROCESS_TIME_BAR_CHART;
public workflowExecutionsDisplayedList: WorkflowExecutionsEntry[] |
undefined;
public workflowExecutionsIsEditingName: number[] = [];
- public currentlyHoveredExecution: WorkflowExecutionsEntry | undefined;
public executionsTableHeaders: string[] = [
"",
"Avatar",
@@ -201,7 +199,6 @@ export class WorkflowExecutionHistoryComponent implements
OnInit, AfterViewInit
private workflowExecutionsService: WorkflowExecutionsService,
private notificationService: NotificationService,
private runtimeStatisticsModal: NzModalService,
- private workflowActionService: WorkflowActionService,
private route: ActivatedRoute,
@Optional() @Inject(NZ_MODAL_DATA) private modalData: any
) {}