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 b43d465203 refactor(frontend): remove dead computing-unit modal
leftovers (#8827)
b43d465203 is described below
commit b43d46520365a42e8a5df892520bead6b2fb6cfe
Author: Xinyuan Lin <[email protected]>
AuthorDate: Tue Oct 6 05:32:13 2026 +0000
refactor(frontend): remove dead computing-unit modal leftovers (#8827)
### What changes were proposed in this PR?
Removes two leftovers from `ComputingUnitCreateModalComponent`. **−2
lines.** There is no behaviour change.
- `<ng-template #addComputeUnitModalTitle>`. The modal's title comes
from `[nzTitle]="getCreateModalTitle()"`. Nothing else reads the
template: there is no `@ViewChild`, no outlet, and neither of the two
hosts that open the modal passes it. `nz-modal` only picks up its
title/content/footer directives, never a plain `#ref` template.
- The `selectedShmSize` field. The create payload builds `shmSize` from
`shmSizeValue` / `shmSizeUnit`, which stay.
### History
| | |
| --- | --- |
| **Introduced by** | #3315 (2025-03-13), "Add computing unit manager
frontend": the title template. #3451 (2025-05-28), "Enable adjusting
shared memory for the computing unit": `selectedShmSize` |
| **Usage removed by** | #3400 (2025-05-26) switched the title to
`getCreateModalTitle()`. #4331 (2026-04-09), "add full computing unit
tab", dropped the field's last write and read. #6082 later moved both,
still unread, into this shared component |
The title template has been unused for sixteen months, and the field for
six.
### Any related issues, documentation, discussions?
Closes #8826
### How was this PR tested?
No new tests; no spec referenced either item.
From `frontend/`:
- `npx ng test --watch=false
--include='**/computing-unit-create-modal.component.spec.ts'
--include='**/user-computing-unit.component.spec.ts'
--include='**/computing-unit-selection.component.spec.ts'`: 3 files, 248
tests, all pass. The other two specs cover the modal's two hosts.
- `yarn format:ci`: clean.
- `npx ng build`: success.
To re-check:
```
git grep -n "addComputeUnitModalTitle\|selectedShmSize" -- 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)
---
.../computing-unit-create-modal.component.html | 1 -
.../computing-unit-create-modal/computing-unit-create-modal.component.ts | 1 -
2 files changed, 2 deletions(-)
diff --git
a/frontend/src/app/common/component/computing-unit-create-modal/computing-unit-create-modal.component.html
b/frontend/src/app/common/component/computing-unit-create-modal/computing-unit-create-modal.component.html
index 9ec733d03b..8e20dfea26 100644
---
a/frontend/src/app/common/component/computing-unit-create-modal/computing-unit-create-modal.component.html
+++
b/frontend/src/app/common/component/computing-unit-create-modal/computing-unit-create-modal.component.html
@@ -23,7 +23,6 @@
[nzContent]="addComputeUnitModalContent"
[nzFooter]="addComputeUnitModalFooter"
(nzOnCancel)="handleAddComputeUnitModalCancel()">
- <ng-template #addComputeUnitModalTitle>Create Computing Unit</ng-template>
<ng-template #addComputeUnitModalContent>
<div class="create-compute-unit-container">
<!-- Computing unit type selection -->
diff --git
a/frontend/src/app/common/component/computing-unit-create-modal/computing-unit-create-modal.component.ts
b/frontend/src/app/common/component/computing-unit-create-modal/computing-unit-create-modal.component.ts
index acd5152008..cce78a87d6 100644
---
a/frontend/src/app/common/component/computing-unit-create-modal/computing-unit-create-modal.component.ts
+++
b/frontend/src/app/common/component/computing-unit-create-modal/computing-unit-create-modal.component.ts
@@ -102,7 +102,6 @@ export class ComputingUnitCreateModalComponent implements
OnInit, OnChanges {
selectedGpu: string = "0"; // Default to no GPU
selectedJvmMemorySize: string = "1G"; // Initial JVM memory size
selectedComputingUnitType?: WorkflowComputingUnitType; // Selected computing
unit type
- selectedShmSize: string = "64Mi"; // Shared memory size
shmSizeValue: number = DEFAULT_SHM_SIZE_VALUE;
shmSizeUnit: "Mi" | "Gi" = DEFAULT_SHM_SIZE_UNIT;
availableComputingUnitTypes: WorkflowComputingUnitType[] = [];