Skip to content

Introduce Dataset GUI - #2413

Merged
bobbai00 merged 22 commits into
masterfrom
jiadong-introduce-dataset-gui
Feb 27, 2024
Merged

bobbai00 merged 22 commits into
masterfrom
jiadong-introduce-dataset-gui

Conversation

@bobbai00

@bobbai00 bobbai00 commented Feb 25, 2024 •

Copy link
Copy Markdown
Contributor

This PR introduces the GUI of datasets. Users can view datasets, create new dataset/dataset version, and preview files in datasets across different versions. For the webserver part of the dataset, see #2391 .

Features

1. Browser all accessible datasets

2024-02-25 11 14 32

2. View Dataset Details

2024-02-25 09 04 49

3. Create a new Dataset

2024-02-25 11 21 59

4. Create a new Dataset Version

2024-02-25 11 23 18

Components

1. Common Components

One common components are introduced:

  • files-uploader
    this component provides the encapsulation of file uploading logics. It uses ngx-file-drop, which allows directories to be dragged and dropped, and pertain the complete file tree structure of the uploaded directories:
Screenshot 2024-02-25 at 8 38 38 AM

2. Dataset-centric Components

Several dataset-related components are introduced. Their structures are as follow:

user-dataset // folder of datasets
  - user-dataset.component // components to render a list of datasets, one of the tabs on the left
  - user-dataset-list-item // component to render dataset as a list item
  - user-dataset-explorer // folder, includes components that display the details of datasets
     - user-dataset-file-renderer // component to render the preview of files of different MIME formats
     - user-dataset-version-creator // component that is used to create new dataset/dataset version
     - user-dataset-version-filetree // component to render the file tree of dataset versions
     - user-dataset-explorer.component // component to provide the full view of a dataset, including versions switch, file preview
  • user-dataset & user-dataset-list-item
Screenshot 2024-02-25 at 11 24 42 AM
  • user-dataset-explorer
Screenshot 2024-02-25 at 11 25 44 AM
  • user-dataset-file-renderer
Screenshot 2024-02-25 at 11 26 09 AM
  • user-dataset-version-creator
Screenshot 2024-02-25 at 11 26 35 AM
  • user-dataset-version-filetree
Screenshot 2024-02-25 at 11 28 34 AM

Other fix

  • full text search of datasets is refactored based on new full text search framework
  • some backend dataset APIs are fixed

@bobbai00 bobbai00 added the gui label Feb 25, 2024
@bobbai00 bobbai00 self-assigned this Feb 25, 2024
@bobbai00 bobbai00 changed the title Jiadong introduce dataset gui Introduce Dataset GUI Feb 25, 2024
@bobbai00
bobbai00 force-pushed the jiadong-introduce-dataset-gui branch from 437f0f9 to 8d0ebe6 Compare February 26, 2024 18:57
@bobbai00
bobbai00 force-pushed the jiadong-introduce-dataset-gui branch 2 times, most recently from 277229c to 498e9df Compare February 27, 2024 01:55
bobbai00 added a commit that referenced this pull request Mar 25, 2024
This PR fixes the issues brought by #2413 that all packages sources are
npm instead of yarn.

## How the fix is done

Since when packages are from yarn's source, the `NzTreeModule` is not
working for unknown reasons. I re-wrote the file tree component using
angular-tree-component.
@Yicong-Huang Yicong-Huang added frontend Changes related to the frontend GUI and removed gui labels Jul 6, 2025
yangzhang75 pushed a commit to yangzhang75/texera that referenced this pull request Jun 22, 2026
This PR introduces the GUI of datasets. Users can view datasets, create
new dataset/dataset version, and preview files in datasets across
different versions.

## Features

### 1. Browser all accessible datasets
![2024-02-25 11 14
32](https://github.com/Texera/texera/assets/43344272/cb27a05f-7fd6-4e27-b591-75096986251c)

### 2. View Dataset Details
![2024-02-25 09 04
49](https://github.com/Texera/texera/assets/43344272/05dc09a6-419f-411c-af23-fc2f74f7aafa)

### 3. Create a new Dataset
![2024-02-25 11 21
59](https://github.com/Texera/texera/assets/43344272/bced81e5-a32b-49d2-b134-31f8120b463b)

### 4. Create a new Dataset Version
![2024-02-25 11 23
18](https://github.com/Texera/texera/assets/43344272/0046e440-3ae4-43d6-91b3-6dd9c4474305)


## Components
### 1. Common Components
One common components are introduced:
- files-uploader
this component provides the encapsulation of file uploading logics. It
uses `ngx-file-drop`, which allows directories to be dragged and
dropped, and pertain the complete file tree structure of the uploaded
directories:
<img width="517" alt="Screenshot 2024-02-25 at 8 38 38 AM"
src="https://github.com/Texera/texera/assets/43344272/726f4231-051f-4b86-b45c-409cf8189a42">

### 2. Dataset-centric Components
Several dataset-related components are introduced. Their structures are
as follow:

```
user-dataset // folder of datasets
  - user-dataset.component // components to render a list of datasets, one of the tabs on the left
  - user-dataset-list-item // component to render dataset as a list item
  - user-dataset-explorer // folder, includes components that display the details of datasets
     - user-dataset-file-renderer // component to render the preview of files of different MIME formats
     - user-dataset-version-creator // component that is used to create new dataset/dataset version
     - user-dataset-version-filetree // component to render the file tree of dataset versions
     - user-dataset-explorer.component // component to provide the full view of a dataset, including versions switch, file preview
```

- user-dataset & user-dataset-list-item
<img width="1840" alt="Screenshot 2024-02-25 at 11 24 42 AM"
src="https://github.com/Texera/texera/assets/43344272/98077f72-e5d8-4b89-b89c-ff797b8ca8fa">


- user-dataset-explorer
<img width="1840" alt="Screenshot 2024-02-25 at 11 25 44 AM"
src="https://github.com/Texera/texera/assets/43344272/96310f3e-8519-4c52-9f14-c4726dea329f">

- user-dataset-file-renderer
<img width="1257" alt="Screenshot 2024-02-25 at 11 26 09 AM"
src="https://github.com/Texera/texera/assets/43344272/10783458-0252-4e30-ad8e-620ab8e70ad2">

- user-dataset-version-creator
<img width="540" alt="Screenshot 2024-02-25 at 11 26 35 AM"
src="https://github.com/Texera/texera/assets/43344272/0eb83b48-df2a-4b9f-befc-c9d611efbc22">

- user-dataset-version-filetree
<img width="523" alt="Screenshot 2024-02-25 at 11 28 34 AM"
src="https://github.com/Texera/texera/assets/43344272/324e97e3-2743-4278-ab95-799da4c96e42">


## Other fix
- full text search of datasets is refactored based on new full text
search framework
- some backend dataset APIs are fixed
yangzhang75 pushed a commit to yangzhang75/texera that referenced this pull request Jun 22, 2026
This PR fixes the issues brought by apache#2413 that all packages sources are
npm instead of yarn.

## How the fix is done

Since when packages are from yarn's source, the `NzTreeModule` is not
working for unknown reasons. I re-wrote the file tree component using
angular-tree-component.
renovate-bot pushed a commit to renovate-bot/apache-_-texera that referenced this pull request Sep 25, 2026
…che#8464)

### What changes were proposed in this PR?

Deletes `DatasetVersionFileTreeManager`, which builds a client-side hash
map of dataset file paths that nothing in production constructs. Pure
deletion, no behaviour change: **−287 lines**.

### History

| | |
| --- | --- |
| **Introduced by** | apache#2413 (2024-02-26) — "Introduce Dataset GUI" |
| **Usage removed by** | apache#3296 (2025-03-10) — "Add FileService as a
standalone microservice, LakeFS+S3 as dataset storage" deleted the real
usages from `files-uploader.component.ts`
(`previouslyUploadFilesManager`, `newUploadFileTreeManager`) once LakeFS
began serving the file tree. The leftover dangling import was swept away
by apache#3848 (2025-10-11, the `org.apache` rename) |

Dead for about a year and a half.

> Reviewer note: the rest of `datasetVersionFileTree.ts` stays —
`DatasetFileNode` and `getFullPathFromDatasetFileNode` have live
consumers, and the spec keeps its coverage of both. Only the class and
its own `describe` block are removed.

### Any related issues, documentation, discussions?

Closes apache#8462

### How was this PR tested?

Existing tests only — this PR removes a class and the spec block that
covered it.

From `frontend/`:

- `npx ng test --watch=false
--include='**/datasetVersionFileTree.spec.ts'` — 10 tests pass (the
surviving `DatasetFileNode` / `getFullPathFromDatasetFileNode`
coverage).
- `yarn --cwd frontend format:ci` — clean.

Verification, re-runnable by a reviewer:

```
git grep -n DatasetVersionFileTreeManager        # only the deleted class and its tests
git grep -n getFullPathFromDatasetFileNode       # the live sibling, untouched
```

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

Generated-by: Claude Code (Claude Opus 5)
renovate-bot pushed a commit to renovate-bot/apache-_-texera that referenced this pull request Oct 5, 2026
)

### What changes were proposed in this PR?

Removes dead code from `DatasetDetailComponent` that its template
stopped using during the dataset page's redesigns. **+2/−46 lines.**
There is no behaviour change.

- **Members:** `versionCreatorBaseVersion`, `displayPreciseViewCount` +
`changeViewDisplayStyle()`, and the `formatTime` / `formatSpeed`
aliases. The `format.util` import narrows to `formatCount`.
- **Styles:** `.tag-settings-btn`, `.tag-settings-title`,
`.tag-settings-row` (with its `span` and `::ng-deep .ant-switch` rules),
and `.description-section`.
- **Spec:** the "view flags" case keeps its maximize / right-bar
assertions and drops the three for the removed toggle. It is renamed to
match.

### History

| | |
| --- | --- |
| **Introduced by** | apache#2413 (2024-02-26), "Introduce Dataset GUI":
`versionCreatorBaseVersion`. apache#3269 (2025-02-19): the precise-view-count
toggle. apache#3662 (2025-08-19): the speed/time aliases. apache#4337 (2026-03-29),
"improve dataset detail page layout": the `.tag-settings-*` and
`.description-section` styles |
| **Usage removed by** | apache#3296 (2025-03-10):
`versionCreatorBaseVersion`. apache#4337 (2026-03-29): the view-count toggle.
apache#6493 (2026-07-27): tag settings moved to a Settings tab. apache#7043
(2026-07-30): the description moved to the Data Card tab. apache#8078
(2026-08-31): the speed/time aliases |

Each piece was left behind by a redesign that moved its markup
elsewhere. The oldest has been dead for eighteen months.

### Any related issues, documentation, discussions?

Closes apache#8745

### How was this PR tested?

No new tests. The kept spec cases cover the remaining members.

From `frontend/`:

- `npx ng test --watch=false
--include='**/dataset-detail.component.spec.ts'`: 150 tests, all pass.
- `yarn format:ci`: clean.
- `npx ng build`: success.

To re-check:

```
git grep -n -E "versionCreatorBaseVersion|tag-settings|description-section" -- 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 Oct 8, 2026
### What changes were proposed in this PR?

Removes the unused `@Output() loadFile` from
`UserDatasetFileRendererComponent`, along with `EventEmitter` and
`Output` from its `@angular/core` import, since nothing else in the file
uses them. **+1/−4 lines.** There is no behaviour change: the component
never emits `loadFile`, and its two hosts (`dataset-detail` and
`model-detail`) bind only inputs on
`<texera-user-dataset-file-renderer>`.

### History

| | |
| --- | --- |
| **Introduced by** | apache#2413 (2024-02-26), "Introduce Dataset GUI", with
the file renderer itself |
| **Usage removed by** | **never used**. No `(loadFile)` binding or
`.emit` has ever existed |

It has been unused for the nineteen months since it was added.

### Any related issues, documentation, discussions?

Closes apache#8891

### How was this PR tested?

No new tests; no spec referenced the output.

From `frontend/`:

- `npx ng test --watch=false
--include='**/user-dataset-file-renderer.component.spec.ts'
--include='**/dataset-detail.component.spec.ts'
--include='**/model-detail.component.spec.ts'`: 3 files, 286 tests, all
pass. The last two specs cover the renderer's two hosts.
- `yarn format:ci`: clean.
- `npx ng build`: success.

To re-check:

```
git grep -n -w "loadFile" -- frontend/src   # 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 Oct 24, 2026
…9070)

### What changes were proposed in this PR?

Removes dead code from `UserDatasetVersionCreatorComponent`. **+3/−19
lines.** There is no behaviour change.

- **`isCreateButtonDisabled`:** nothing ever writes it, so it is always
`false`. The create button's `[disabled]="isCreateButtonDisabled ||
isCreating"` becomes `[disabled]="isCreating"`, which evaluates
identically.
- **The `formBuilder` injection:** nothing reads it. `FormBuilder` is
provided in root, so dropping the parameter (and its import) changes
nothing.
- **`.file-uploader` and `.toggle-item .help-text`:** the component uses
emulated encapsulation and no element in its template has either class.
The `files-uploader` child renders its own `.file-uploader`, which this
stylesheet can't reach.

### History

| | |
| --- | --- |
| **Introduced by** | apache#2413 (2024-02-27), "Introduce Dataset GUI":
`isCreateButtonDisabled`, `formBuilder` and `.file-uploader`. apache#3663
(2025-08-17), "feat: adding option to allow owner to disallow
downloading datasets": `.help-text` |
| **Usage removed by** | apache#3296 (2025-03-11), "Add FileService as a
standalone microservice, LakeFS+S3 as dataset storage", removed the
`<div class="file-uploader">` wrapper. `isCreateButtonDisabled`,
`formBuilder` and `.help-text` were **never used** |

`isCreateButtonDisabled` and `formBuilder` have been unused for the two
and a half years since they were added.

### Any related issues, documentation, discussions?

Closes apache#9067

### How was this PR tested?

No new tests. The component spec's create-button cases still cover the
`[disabled]` binding through `isCreating`.

From `frontend/`:

- `npx ng test --watch=false
--include='**/user-dataset-version-creator.component.spec.ts'
--include='**/user-dataset.component.spec.ts'
--include='**/result-exportation.component.spec.ts'`: 3 files, 105
tests, all pass. The last two specs cover the component's two modal
hosts.
- `yarn format:ci`: clean.
- `npx ng build`: success.

### 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)
Ma77Ball pushed a commit to Ma77Ball/texera that referenced this pull request Oct 26, 2026
…9070)

### What changes were proposed in this PR?

Removes dead code from `UserDatasetVersionCreatorComponent`. **+3/−19
lines.** There is no behaviour change.

- **`isCreateButtonDisabled`:** nothing ever writes it, so it is always
`false`. The create button's `[disabled]="isCreateButtonDisabled ||
isCreating"` becomes `[disabled]="isCreating"`, which evaluates
identically.
- **The `formBuilder` injection:** nothing reads it. `FormBuilder` is
provided in root, so dropping the parameter (and its import) changes
nothing.
- **`.file-uploader` and `.toggle-item .help-text`:** the component uses
emulated encapsulation and no element in its template has either class.
The `files-uploader` child renders its own `.file-uploader`, which this
stylesheet can't reach.

### History

| | |
| --- | --- |
| **Introduced by** | apache#2413 (2024-02-27), "Introduce Dataset GUI":
`isCreateButtonDisabled`, `formBuilder` and `.file-uploader`. apache#3663
(2025-08-17), "feat: adding option to allow owner to disallow
downloading datasets": `.help-text` |
| **Usage removed by** | apache#3296 (2025-03-11), "Add FileService as a
standalone microservice, LakeFS+S3 as dataset storage", removed the
`<div class="file-uploader">` wrapper. `isCreateButtonDisabled`,
`formBuilder` and `.help-text` were **never used** |

`isCreateButtonDisabled` and `formBuilder` have been unused for the two
and a half years since they were added.

### Any related issues, documentation, discussions?

Closes apache#9067

### How was this PR tested?

No new tests. The component spec's create-button cases still cover the
`[disabled]` binding through `isCreating`.

From `frontend/`:

- `npx ng test --watch=false
--include='**/user-dataset-version-creator.component.spec.ts'
--include='**/user-dataset.component.spec.ts'
--include='**/result-exportation.component.spec.ts'`: 3 files, 105
tests, all pass. The last two specs cover the component's two modal
hosts.
- `yarn format:ci`: clean.
- `npx ng build`: success.

### 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 17, 2026
### What changes were proposed in this PR?

Remove unreachable code from dataset creation, dashboard search, and
file previews, and rename the dataset creator to match the model
creator. **+245/−388 lines across fourteen files.**

- The dashboard and result export both open the modal to create a
dataset. Versions are created on the dataset detail page, so the shared
creator form always shows its visibility and downloadability switches.
- With only dataset creation left, `UserDatasetVersionCreatorComponent`
becomes `UserDatasetCreatorComponent` and moves from
`user-dataset-explorer/` to `user-dataset/user-dataset-creator/`,
matching `UserModelCreatorComponent` in
`user-model/user-model-creator/`. GitHub shows its `.ts` as a new file
because the move and the version-mode removal together change most of
it.
- Dashboard search has no callers for the public or all scopes.
- HTML, PDF, MS Word, and MS PowerPoint suffixes already fall through to
the unsupported-preview notice. The preview guard rejects binary files
before the size lookup, and every type it accepts has its own size
limit, so the default limit is never used.

| Code | Introduced by | Usage removed by |
| --- | --- | --- |
| Modal version mode | apache#3296 | apache#3659 |
| Creator form switch toggle | apache#2413 | apache#3659 |
| Dashboard search scopes | apache#2987 | apache#3129 |
| Binary preview size limit | apache#2413 | apache#3149 |
| Default preview size limit | apache#2413, apache#3427 | Never reached |
| Unsupported MIME aliases | apache#2413 | Never selected a viewer |

The modal mode and its switch toggle have been unreachable since August
2025, the search scopes since January 2025, and the binary size limit
since December 2024.

### Any related issues, documentation, discussions?

Closes apache#9462.

### How was this PR tested?

From `frontend/` on Node 24

```sh
NODE_OPTIONS=--max-old-space-size=8192 yarn test --progress=false \
  --include='**/{user-dataset-file-renderer,user-dataset-creator,user-model-creator,user-dataset,result-exportation,result-table-frame,context-menu,dataset-detail,version-uploader}.component.spec.ts'
yarn exec tsc --noEmit -p src/tsconfig.app.json
yarn exec tsc --noEmit -p src/tsconfig.spec.json
yarn format:ci
yarn build
```

509 tests passed across nine suites. The preview test now checks that
the four affected suffixes still show the unsupported-preview state
without a request to the backend. Both creation entry points, the model
creator that shares the creator form, and the dataset version uploader
are covered by the targeted run.

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

Generated-by: Codex (GPT-6) and Claude Code (Claude Opus 5.5)

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
renovate-bot pushed a commit to renovate-bot/apache-_-texera that referenced this pull request Nov 25, 2026
…9644)

### What changes were proposed in this PR?

Remove unused and inert SCSS rules, an empty component stylesheet,
unread callback and lifecycle parameters, and a duplicate module import
across the Angular frontend (**+13/-134 lines**). There is no observable
UI or runtime behavior change.

- **Detail-page SCSS selectors:** Remove unmatched `.file-title`,
`.file-size`, `.versions-tab-content`, `nz-layout`, `html, body`,
`.grayed-out`, `.disabled-click`, and `.ant-collapse-content-box` rules
from `DatasetDetailComponent` SCSS, and unmatched
`.versions-tab-content` and `nz-layout` rules from
`ModelDetailComponent` SCSS. Both components use Angular's default
`ViewEncapsulation.Emulated`, `apache#8942` moved the version browser markup
and styles to `VersionsFilesBrowserComponent`, and zero matching
elements remain in either component template.
- **Unused and inert cross-component SCSS rules:** Remove unmatched
`#googleButton`, `.hidden` (dashboard and hub templates use HTML
`hidden` / `[hidden]` / `aria-hidden` attributes rather than a CSS
class), unused Sass variable `$dashboard-navigation-height`,
`.uploaded-files-list`, empty `.file-uploader-banner {}`,
`.dataset-menu-bar`, `.condition-input-popup.fade-out`, and
`.ai-fix-field` (zero template or TypeScript references in
`frontend/src`), along with the `opacity: 1` and `transition: opacity 1s
ease-in-out` declarations on `.condition-input-popup` that only existed
to animate `.fade-out`. Remove emulated `.ant-table-thead > tr > th` and
`.ant-table` rules in `WorkflowExecutionHistoryComponent` SCSS (default
`ViewEncapsulation.Emulated` scopes them to host attributes that cannot
match `nz-table` internal DOM without `::ng-deep`), remove obsolete
`.ant-collapse-content-box` overrides in global `styles.scss`
(`ng-zorro-antd` 21 emits `.ant-collapse-body` with zero
`.ant-collapse-content-box` occurrences), and delete the empty
license-only `hub.component.scss` along with its `styleUrls` entry in
`HubComponent`.
- **Unread subscriber callback parameters:** Drop six unread `(res:
Response)` and `(err: unknown)` parameters in `DatasetDetailComponent`
(`onPublicStatusChange`, `onDownloadableStatusChange`, and
`onPreviouslyUploadedFileDeleted`) that were never read in their
callback bodies.
- **Unread lifecycle parameter and import:** Drop the unread `changes:
SimpleChanges` parameter and orphaned `SimpleChanges` import in
`BrowseSectionComponent.ngOnChanges`, along with two placeholder `{} as
any` arguments in `browse-section.component.spec.ts`.
- **Duplicate module import:** Merge the duplicate `import` from
`ui-udf-parameters-parser.service` in `UiUdfParametersComponent` into
the existing import block from the same module.

| Event | PR / Commit |
| --- | --- |
| Introduced by | Detail SCSS: apache#2413 (2024-02-26), apache#2927 (2024-10-14),
apache#4928 (2026-05-04), apache#7043 (2026-07-30), apache#6953 (2026-08-03), apache#8072
(2026-08-28); other SCSS and empty `hub.component.scss`: apache#1634
(2022-10-04), apache#2413 (2024-02-26), apache#2435 (2024-03-17), apache#2502
(2024-03-27), apache#2571 (2024-04-05), apache#2737 (2024-07-15), apache#2776
(2024-08-19), apache#2878 (2024-09-27), apache#2953 (2024-10-25), apache#3415
(2025-05-03), apache#4484 (2026-05-01), apache#8637 (2026-10-28); unread parameters
and duplicate import: apache#2515 (2024-03-27), apache#3296 (2025-03-10), apache#3363
(2025-04-10), apache#3663 (2025-08-16), apache#6897 (2026-09-21, duplicating apache#7551
from 2026-08-13) |
| Usage removed by | Detail version styles: apache#8942 (2026-10-10,
`refactor(frontend): extract shared VersionsFilesBrowser component`);
`.ant-collapse-content-box`: apache#5895 (2026-06-22, `chore: upgrade
ng-zorro-antd to 21.3.1`); remaining selectors, empty
`hub.component.scss`, unread parameters, and duplicate import: unused or
inert since introduction or prior UI refactors |

As of 2026-11-23, the `.ai-fix-field` rule has been unused for about 4
weeks, the orphaned detail-page version styles for 6 weeks, the
duplicate import for 2 months, the obsolete `.ant-collapse-content-box`
rules for 5 months, and the remaining rules and unread parameters for 15
to 49 months.

### Any related issues, documentation, discussions?

Closes apache#9643.

### How was this PR tested?

Ran in `frontend/` on `ff6361f2ea` (Node 24, `node
.yarn/releases/yarn-4.14.1.cjs install --immutable --inline-builds`):

```bash
node .yarn/releases/yarn-4.14.1.cjs format:ci
node .yarn/releases/yarn-4.14.1.cjs exec tsc -p src/tsconfig.app.json --noEmit
node .yarn/releases/yarn-4.14.1.cjs exec tsc -p src/tsconfig.spec.json --noEmit
node .yarn/releases/yarn-4.14.1.cjs build
node .yarn/releases/yarn-4.14.1.cjs test
```

- `format:ci` (`prettier-eslint --list-different` and `eslint ./src`):
passed.
- `tsc --noEmit` (`src/tsconfig.app.json` and `src/tsconfig.spec.json`):
passed.
- `build` (production Angular AOT build): passed.
- `test` (Vitest, JUnit XML): `255` suites passed (`7,385` passed, `0`
failed, `0` errors, `1` pre-existing skipped in untouched
`operator-property-edit-frame.component.spec.ts`).

Review follow-up `aacada02e9` only removes the two inert declarations on
`.condition-input-popup`; it was checked locally with `prettier --check`
(3.2.5) and a `sass` (1.71.1) compile of the changed stylesheet, and CI
runs the full build and tests on the new head.

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

Generated-by: Antigravity (Gemini 4 Neon)
Generated-by: Claude Code (Opus 5.5), review follow-up `aacada02e9`

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
renovate-bot pushed a commit to renovate-bot/apache-_-texera that referenced this pull request Nov 26, 2026
### What changes were proposed in this PR?

Remove redundant code from the frontend, the licensing scripts, two
Scala sources and the agent service (**+26/−41 lines**). There is no
behavior change.

- **Dataset and model detail pages:** each `route.params` emission was
switched to `this.route.data`, and the empty `.subscribe()` threw away
what that emitted. The pages now `tap` the params, so the same fetches
run in the same order without the extra subscription. The dataset page's
`THROTTLE_TIME_MS` also becomes file-local: `workspace.component.ts` and
the hub spec import the copy in `hub-workflow-detail.component.ts`,
never this one.
- **Version uploader:** the abort handler's 404 branch called `done()`
and returned, which is what the handler already does for every error it
does not retry. Its three constants become file-local: nothing imported
`FINISHED_TASK_HIDE_DELAY_MS`, and only the spec imported the other two.
The spec now states the retry policy it expects.
- **Computing-unit actions:** `confirmAndTerminate` reads
`unit.computingUnit.uri` and `unit.computingUnit.name` before
`unit?.computingUnit.type`, so the `?.` goes.
- **Loop blocks:** `LOOP_END_OP_TYPE` becomes file-local. Only its spec
imported it, and the spec now checks the backend's `"LoopEnd"` name
directly.
- **Agent interaction:** two imports from `agent.service` become one.
- **Licensing scripts:** `audit_jar_licenses.py` stored each group's
notice hash in a field that nothing reads, and the NOTICE test helper
`make_jar` had an `extra` parameter that no caller passes.
- **`PveResource`:** drops `import javax.ws.rs.DELETE` and `import
javax.ws.rs.PathParam`, which `import javax.ws.rs._` already covers.
- **`SQLSourceOpExec` and `AsterixDBSourceOpExec`:** five fallback arms
list `BOOLEAN`, `STRING` and `ANY` before a trailing `_`, as in `case
AttributeType.BOOLEAN | AttributeType.STRING | AttributeType.ANY | _`.
The `_` matches those types as well, so each becomes `case _`.
- **`agent-service/.dockerignore`:** Docker reads the ignore file at the
root of the build context. CI's image matrix
(`build-and-push-images.yml`) and `bin/build-images.sh` both use the
repository root as the context, and the agent Dockerfile copies
`agent-service/...` paths from there, so the root `.dockerignore`
applies and this file is never read.

| Event | PR / Commit |
| --- | --- |
| Introduced by | Dataset and model detail: apache#2413 (2024-02-26), apache#3269
(2025-02-19), apache#8072 (2026-08-28); version uploader: apache#4136 (2026-01-05),
moved by apache#8078 (2026-08-31); computing-unit actions: apache#4331 (2026-04-09);
loop blocks: apache#8640 (2026-10-24); agent interaction: apache#6009 (2026-11-13);
licensing scripts: apache#4387 (2026-04-29), apache#5417 (2026-06-10);
`PveResource`: apache#5035 (2026-05-13); `SQLSourceOpExec`: apache#1013
(2021-02-11); `AsterixDBSourceOpExec`: apache#1044 (2021-02-25);
`agent-service/.dockerignore`: apache#4495 (2026-04-28) |
| Usage removed by | `agent-service/.dockerignore`: apache#4544 (2026-05-01)
added the agent image's Dockerfile with paths from the repository root,
so no build has read the file. Everything else: unused or redundant
since introduction. |

As of 2026-11-25:
- The SQL sources' fallback arms have listed redundant types for over 5
years.
- The dataset page's discarded subscription is almost 3 years old.
- The version uploader's 404 branch has been redundant for over 10
months.
- `agent-service/.dockerignore` has gone unread for almost 7 months.
- The duplicate agent import is 12 days old.

### Any related issues, documentation, discussions?

Closes apache#9691.

### How was this PR tested?

Ran on this branch and on `main` at `afc2b3db7a` (Windows 11; Node 24
with Yarn 4.14.1; Python 3.12 with pytest 9.0.3 and CI's pinned `ruff`
0.14.7; JDK 17):

```bash
cd frontend
npx ng test --watch=false --include='**/dataset-detail.component.spec.ts' --include='**/model-detail.component.spec.ts' --include='**/version-uploader.component.spec.ts' --include='**/computing-unit-actions.service.spec.ts' --include='**/loop-block.util.spec.ts' --include='**/agent-interaction.component.spec.ts'
npx tsc --noEmit -p src/tsconfig.app.json
npx tsc --noEmit -p src/tsconfig.spec.json
yarn prettier-eslint --list-different $(git diff --name-only --relative origin/main -- src)
yarn eslint $(git diff --name-only --relative origin/main -- src)
cd ..
pytest bin/licensing
ruff check bin/licensing/audit_jar_licenses.py bin/licensing/test_generate_notice_binary.py
python bin/licensing/audit_jar_licenses.py <directory of 60 jars>
sbt "WorkflowOperator/testOnly org.apache.texera.amber.operator.source.sql.*" "WorkflowExecutionService/testOnly org.apache.texera.web.resource.pythonvirtualenvironment.*" WorkflowOperator/scalafmtCheckAll WorkflowExecutionService/scalafmtCheckAll "WorkflowOperator/scalafixAll --check" "WorkflowExecutionService/scalafixAll --check"
```

- **Frontend:** the six specs run 379 tests, all passing on both sides.
Both typechecks, prettier-eslint and ESLint pass.
- **Python:** the licensing tests run 53 tests and 5 subtests, all
passing on both sides, and Ruff passes. `audit_jar_licenses.py` prints
the same report on both sides for 60 jars from the local Coursier cache.
- **Scala:**
  - The 11 `source.sql` suites run 204 tests, all passing on both sides.
- The two PVE resource suites run 75 tests on both sides: 74 pass and 1
is canceled. The canceled test needs a file that is not executable,
which this Windows filesystem cannot represent.
  - scalafmt and scalafix pass on both modules.
- **`agent-service/.dockerignore`:** no image was built. The build
context comes from `context="."` for every
`bin/dockerfiles/*.dockerfile` in `build-and-push-images.yml`, and from
the `..` that `bin/build-images.sh` passes from `bin/`.

### 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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants