Skip to content

Add FileService as a standalone microservice, LakeFS+S3 as dataset storage - #3296

Merged
bobbai00 merged 54 commits into
masterfrom
jiadong-add-file-service
Mar 11, 2025
Merged

bobbai00 merged 54 commits into
masterfrom
jiadong-add-file-service

Conversation

@bobbai00

@bobbai00 bobbai00 commented Mar 2, 2025 •

Copy link
Copy Markdown
Contributor

This PR introduces the FileService as another microservice parallel to WorkflowCompilingService, ComputingUnitMaster/Worker, and TexeraWebApplication.

Purpose of the FileService

  • We want to improve the performance of our current Git-based Dataset implementation;
  • We decide to go with LakeFS + S3, LakeFS for the version control metadata and S3 for data transfer; But LakeFS doesn't have access control layer
  • Therefore, we build the FileService, providing
    • all the APIs related to versioned files in datasets
    • access control

Architecture before and after adding FileService

Before:
Screenshot 2025-03-02 at 9 01 20 AM

After
Screenshot 2025-03-02 at 8 53 32 AM

Key Changes

  • A new service, FileService is introduced. All the dataset-related endpoints are hosted on FileService
  • Several configuration items related to LakeFS and S3 are introduced in the storage-config.yaml
  • Frontend UI updates to incorporate with new changes
  • For ComputingUnitMaster and ComputingUnitWorker, they will call FileService to read files, during which their access will be verified. So in the dynamic computing architecture (which will be introduced in Add computing unit manager service #3298), they will send requests along with current user's token. In single-machine architecture, they are bypassing the network requests by doing direct local function calls.
  • Python UDF can now directly read dataset's file by the following example code:
file = DatasetFileDocument("The URL of the file")
bytes = file.read_file() # return an io.Bytes object

You may refer to core/amber/src/main/python/pytexera/storage/dataset_file_document.py for implementation details. This feature is only available in the dynamic computing architecture.

How to migrate the previous datasets to the new datasets managed by the LakeFS

As we did quite some refactoring, two dataset implementations are NOT compatible with each others. To migrate the previous datasets to the latest implementation, you will need to re-upload the data via the new UI.

How to deploy new architecture

Step1. Deploy LakeFS & Minio

Use Docker (Highly recommended for local development)

  • Install Docker Desktop which contains both docker engine and docker compose. Do NOT solely use brew install docker because it will only install docker engine.
  • Go to directory: core/file-service/src/main/resources
  • Execute docker compose up -d at its directory

Use Binary (Recommended for production deployment)

Refer to https://docs.lakefs.io/howto/deploy/

Step2. Configure the storage-config.yaml

Use Docker

If you deployed lakeFS using docker compose in step 1, you don't need to change this file and can directly proceed with the given default values.

Use Binary

If you deployed lakeFS binary, you need to configure the below section in the storage-config.yaml:

  lakefs:
    endpoint: ""
    auth:
      api-secret: ""
      username: ""
      password: ""
    block-storage:
      type: ""
      bucket-name: ""

  s3:
    endpoint: ""
    auth:
      username: ""
      password: ""

Step3. Launch services

Launch FileService , in addition to TexeraWebApplication, WorkflowCompilingService and ComputingUnitMaster.

Future PRs after this one

  • Remove the Dataset related endpoints completely from amber package.
  • Incorporate the deployment of LakeFS+S3 in the Helm chart of K8s-based deployment.
  • Some optimizations:
    • for small files, directly upload it instead of using multipart upload
    • when doing result exports, use multipart upload as the result size can be quite big.
    • support re-transmit for partially-uploaded files.

@bobbai00 bobbai00 changed the title Add FileService as a standalone microservice, and LakeFS+S3 as dataset storage Add FileService as a standalone microservice, LakeFS+S3 as dataset storage Mar 2, 2025
@bobbai00
bobbai00 marked this pull request as ready for review March 2, 2025 22:16
Comment thread core/workflow-core/build.sbt Resolved
@bobbai00 bobbai00 self-assigned this Mar 3, 2025
@bobbai00
bobbai00 force-pushed the jiadong-add-file-service branch from 5db607e to 0e7a9d8 Compare March 3, 2025 18:39

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

Since installing LakeFS and Minio can be complex, could we add a frontend flag that allows developers to enable the user system without requiring LakeFS and Minio? This would let developers read files directly from their local file system when the user system is enabled.

@bobbai00
bobbai00 force-pushed the jiadong-add-file-service branch from 6d101a1 to da96a2a Compare March 4, 2025 21:26
@bobbai00

bobbai00 commented Mar 4, 2025

Copy link
Copy Markdown
Contributor Author

Since installing LakeFS and Minio can be complex, could we add a frontend flag that allows developers to enable the user system without requiring LakeFS and Minio? This would let developers read files directly from their local file system when the user system is enabled.

OK. I have added a flag in environment.default.ts

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

LGTM!
Tested on both Windows and Mac. The setup is very smooth.
Please add more details on step3. For example, how can developers migrate to this from current master.

Comment thread core/gui/package.json Resolved
Comment thread core/workflow-core/build.sbt Resolved
@bobbai00
bobbai00 force-pushed the jiadong-add-file-service branch 3 times, most recently from 2e38fad to 6accd5b Compare March 10, 2025 05:20
@bobbai00
bobbai00 force-pushed the jiadong-add-file-service branch from db36804 to e294ac7 Compare March 11, 2025 04:24
@bobbai00
bobbai00 merged commit dceed87 into master Mar 11, 2025
@bobbai00
bobbai00 deleted the jiadong-add-file-service branch March 11, 2025 05:05
Ma77Ball pushed a commit that referenced this pull request Apr 2, 2025
…orage (#3296)

This PR introduces the FileService as another microservice parallel to
WorkflowCompilingService, ComputingUnitMaster/Worker, and
TexeraWebApplication.

## Purpose of the FileService

- We want to improve the performance of our current Git-based Dataset
implementation;
- We decide to go with `LakeFS` + `S3`, LakeFS for the version control
metadata and S3 for data transfer; But `LakeFS` doesn't have access
control layer
- Therefore, we build the `FileService`, providing 
   - all the APIs related to versioned files in datasets
   - access control

## Architecture before and after adding FileService
Before:
<img width="767" alt="Screenshot 2025-03-02 at 9 01 20 AM"
src="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/user-attachments/assets/7d039f7a-49f2-4d48-9d15-bb9889a5c5ed"
/>

After
<img width="827" alt="Screenshot 2025-03-02 at 8 53 32 AM"
src="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/user-attachments/assets/28aa72b9-97b1-4789-b46f-2050e0dd8547"
/>


## Key Changes
- A new service, `FileService` is introduced. All the dataset-related
endpoints are hosted on `FileService`
- Several configuration items related to LakeFS and S3 are introduced in
the `storage-config.yaml`
- Frontend UI updates to incorporate with new changes
- For `ComputingUnitMaster` and `ComputingUnitWorker`, they will call
`FileService` to read files, during which their access will be verified.
So in the dynamic computing architecture (which will be introduced in
#3298), they will send requests along with current user's token. In
single-machine architecture, they are bypassing the network requests by
doing direct local function calls.
- Python UDF can now directly read dataset's file by the following
example code:
```python
file = DatasetFileDocument("The URL of the file")
bytes = file.read_file() # return an io.Bytes object
```
You may refer to
`core/amber/src/main/python/pytexera/storage/dataset_file_document.py`
for implementation details. **This feature is only available in the
dynamic computing architecture**.

## How to migrate the previous datasets to the new datasets managed by
the LakeFS

As we did quite some refactoring, two dataset implementations are NOT
compatible with each others. To migrate the previous datasets to the
latest implementation, you will need to re-upload the data via the new
UI.

## How to deploy new architecture
### Step1. Deploy LakeFS & Minio
#### Use Docker (Highly recommended for local development)
- Go to directory: `core/file-service/src/main/resources`
- Execute ` docker-compose --profile local-lakefs up -d` at its
directory

#### Use Binary (Recommended for production deployment)
Refer to https://docs.lakefs.io/howto/deploy/


### Step2. Configure the `storage-config.yaml`

Configure the below section in the `storage-config.yaml`:
```
  lakefs:
    endpoint: ""
    auth:
      api-secret: ""
      username: ""
      password: ""
    block-storage:
      type: ""
      bucket-name: ""

  s3:
    endpoint: ""
    auth:
      username: ""
      password: ""
```

Here is the configuration you can directly use if you are using the
`core/file-service/src/main/resources/docker-compose.yml` to install
LakeFS & Minio:
```
  lakefs:
    endpoint: "http://127.0.0.1:8000/api/v1"
    auth:
      api-secret: "random_string_for_lakefs"
      username: "AKIAIOSFOLKFSSAMPLES"
      password: "wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY"
    block-storage:
      type: "s3"
      bucket-name: "texera-dataset"

  s3:
    endpoint: "http://localhost:9000"
    auth:
      username: "texera_minio"
      password: "password"
```

### Step3. Launch services

Launch `FileService` , in addition to `TexeraWebApplication`,
`WorkflowCompilingService` and `ComputingUnitMaster`.


## Future PRs after this one

- Remove the Dataset related endpoints completely from `amber` package.
- Incorporate the deployment of LakeFS+S3 in the Helm chart of K8s-based
deployment.
- Some optimizations:
- for small files, directly upload it instead of using multipart upload
- when doing result exports, use multipart upload as the result size can
be quite big.
   - support re-transmit for partially-uploaded files.
SarahAsad23 pushed a commit to madisonmlin/texera that referenced this pull request May 20, 2026
…orage (apache#3296)

This PR introduces the FileService as another microservice parallel to
WorkflowCompilingService, ComputingUnitMaster/Worker, and
TexeraWebApplication.

## Purpose of the FileService

- We want to improve the performance of our current Git-based Dataset
implementation;
- We decide to go with `LakeFS` + `S3`, LakeFS for the version control
metadata and S3 for data transfer; But `LakeFS` doesn't have access
control layer
- Therefore, we build the `FileService`, providing 
   - all the APIs related to versioned files in datasets
   - access control

## Architecture before and after adding FileService
Before:
<img width="767" alt="Screenshot 2025-03-02 at 9 01 20 AM"
src="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/user-attachments/assets/7d039f7a-49f2-4d48-9d15-bb9889a5c5ed"
/>

After
<img width="827" alt="Screenshot 2025-03-02 at 8 53 32 AM"
src="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/user-attachments/assets/28aa72b9-97b1-4789-b46f-2050e0dd8547"
/>


## Key Changes
- A new service, `FileService` is introduced. All the dataset-related
endpoints are hosted on `FileService`
- Several configuration items related to LakeFS and S3 are introduced in
the `storage-config.yaml`
- Frontend UI updates to incorporate with new changes
- For `ComputingUnitMaster` and `ComputingUnitWorker`, they will call
`FileService` to read files, during which their access will be verified.
So in the dynamic computing architecture (which will be introduced in
apache#3298), they will send requests along with current user's token. In
single-machine architecture, they are bypassing the network requests by
doing direct local function calls.
- Python UDF can now directly read dataset's file by the following
example code:
```python
file = DatasetFileDocument("The URL of the file")
bytes = file.read_file() # return an io.Bytes object
```
You may refer to
`core/amber/src/main/python/pytexera/storage/dataset_file_document.py`
for implementation details. **This feature is only available in the
dynamic computing architecture**.

## How to migrate the previous datasets to the new datasets managed by
the LakeFS

As we did quite some refactoring, two dataset implementations are NOT
compatible with each others. To migrate the previous datasets to the
latest implementation, you will need to re-upload the data via the new
UI.

## How to deploy new architecture
### Step1. Deploy LakeFS & Minio
#### Use Docker (Highly recommended for local development)
- Go to directory: `core/file-service/src/main/resources`
- Execute ` docker-compose --profile local-lakefs up -d` at its
directory

#### Use Binary (Recommended for production deployment)
Refer to https://docs.lakefs.io/howto/deploy/


### Step2. Configure the `storage-config.yaml`

Configure the below section in the `storage-config.yaml`:
```
  lakefs:
    endpoint: ""
    auth:
      api-secret: ""
      username: ""
      password: ""
    block-storage:
      type: ""
      bucket-name: ""

  s3:
    endpoint: ""
    auth:
      username: ""
      password: ""
```

Here is the configuration you can directly use if you are using the
`core/file-service/src/main/resources/docker-compose.yml` to install
LakeFS & Minio:
```
  lakefs:
    endpoint: "http://127.0.0.1:8000/api/v1"
    auth:
      api-secret: "random_string_for_lakefs"
      username: "AKIAIOSFOLKFSSAMPLES"
      password: "wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY"
    block-storage:
      type: "s3"
      bucket-name: "texera-dataset"

  s3:
    endpoint: "http://localhost:9000"
    auth:
      username: "texera_minio"
      password: "password"
```

### Step3. Launch services

Launch `FileService` , in addition to `TexeraWebApplication`,
`WorkflowCompilingService` and `ComputingUnitMaster`.


## Future PRs after this one

- Remove the Dataset related endpoints completely from `amber` package.
- Incorporate the deployment of LakeFS+S3 in the Helm chart of K8s-based
deployment.
- Some optimizations:
- for small files, directly upload it instead of using multipart upload
- when doing result exports, use multipart upload as the result size can
be quite big.
   - support re-transmit for partially-uploaded files.
yangzhang75 pushed a commit to yangzhang75/texera that referenced this pull request Jun 22, 2026
…orage (apache#3296)

This PR introduces the FileService as another microservice parallel to
WorkflowCompilingService, ComputingUnitMaster/Worker, and
TexeraWebApplication.

## Purpose of the FileService

- We want to improve the performance of our current Git-based Dataset
implementation;
- We decide to go with `LakeFS` + `S3`, LakeFS for the version control
metadata and S3 for data transfer; But `LakeFS` doesn't have access
control layer
- Therefore, we build the `FileService`, providing 
   - all the APIs related to versioned files in datasets
   - access control

## Architecture before and after adding FileService
Before:
<img width="767" alt="Screenshot 2025-03-02 at 9 01 20 AM"
src="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/user-attachments/assets/7d039f7a-49f2-4d48-9d15-bb9889a5c5ed"
/>

After
<img width="827" alt="Screenshot 2025-03-02 at 8 53 32 AM"
src="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/user-attachments/assets/28aa72b9-97b1-4789-b46f-2050e0dd8547"
/>


## Key Changes
- A new service, `FileService` is introduced. All the dataset-related
endpoints are hosted on `FileService`
- Several configuration items related to LakeFS and S3 are introduced in
the `storage-config.yaml`
- Frontend UI updates to incorporate with new changes
- For `ComputingUnitMaster` and `ComputingUnitWorker`, they will call
`FileService` to read files, during which their access will be verified.
So in the dynamic computing architecture (which will be introduced in
apache#3298), they will send requests along with current user's token. In
single-machine architecture, they are bypassing the network requests by
doing direct local function calls.
- Python UDF can now directly read dataset's file by the following
example code:
```python
file = DatasetFileDocument("The URL of the file")
bytes = file.read_file() # return an io.Bytes object
```
You may refer to
`core/amber/src/main/python/pytexera/storage/dataset_file_document.py`
for implementation details. **This feature is only available in the
dynamic computing architecture**.

## How to migrate the previous datasets to the new datasets managed by
the LakeFS

As we did quite some refactoring, two dataset implementations are NOT
compatible with each others. To migrate the previous datasets to the
latest implementation, you will need to re-upload the data via the new
UI.

## How to deploy new architecture
### Step1. Deploy LakeFS & Minio
#### Use Docker (Highly recommended for local development)
- Go to directory: `core/file-service/src/main/resources`
- Execute ` docker-compose --profile local-lakefs up -d` at its
directory

#### Use Binary (Recommended for production deployment)
Refer to https://docs.lakefs.io/howto/deploy/


### Step2. Configure the `storage-config.yaml`

Configure the below section in the `storage-config.yaml`:
```
  lakefs:
    endpoint: ""
    auth:
      api-secret: ""
      username: ""
      password: ""
    block-storage:
      type: ""
      bucket-name: ""

  s3:
    endpoint: ""
    auth:
      username: ""
      password: ""
```

Here is the configuration you can directly use if you are using the
`core/file-service/src/main/resources/docker-compose.yml` to install
LakeFS & Minio:
```
  lakefs:
    endpoint: "http://127.0.0.1:8000/api/v1"
    auth:
      api-secret: "random_string_for_lakefs"
      username: "AKIAIOSFOLKFSSAMPLES"
      password: "wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY"
    block-storage:
      type: "s3"
      bucket-name: "texera-dataset"

  s3:
    endpoint: "http://localhost:9000"
    auth:
      username: "texera_minio"
      password: "password"
```

### Step3. Launch services

Launch `FileService` , in addition to `TexeraWebApplication`,
`WorkflowCompilingService` and `ComputingUnitMaster`.


## Future PRs after this one

- Remove the Dataset related endpoints completely from `amber` package.
- Incorporate the deployment of LakeFS+S3 in the Helm chart of K8s-based
deployment.
- Some optimizations:
- for small files, directly upload it instead of using multipart upload
- when doing result exports, use multipart upload as the result size can
be quite big.
   - support re-transmit for partially-uploaded files.
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 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 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Large flie like pre-trained model cannot be properly loaded due to mongo size limit

2 participants