Repository navigation
Add FileService as a standalone microservice, LakeFS+S3 as dataset storage - #3296
Conversation
5db607e to
0e7a9d8
Compare
aglinxinyuan
left a comment
There was a problem hiding this comment.
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.
6d101a1 to
da96a2a
Compare
OK. I have added a flag in |
aglinxinyuan
left a comment
There was a problem hiding this comment.
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.
2e38fad to
6accd5b
Compare
…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="https://github.com/user-attachments/assets/7d039f7a-49f2-4d48-9d15-bb9889a5c5ed" /> After <img width="827" alt="Screenshot 2025-03-02 at 8 53 32 AM" src="https://github.com/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.
…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="https://github.com/user-attachments/assets/7d039f7a-49f2-4d48-9d15-bb9889a5c5ed" /> After <img width="827" alt="Screenshot 2025-03-02 at 8 53 32 AM" src="https://github.com/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.
…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="https://github.com/user-attachments/assets/7d039f7a-49f2-4d48-9d15-bb9889a5c5ed" /> After <img width="827" alt="Screenshot 2025-03-02 at 8 53 32 AM" src="https://github.com/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.
…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)
) ### 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)
…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)
…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)
### 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]>
…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]>
### 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)
This PR introduces the FileService as another microservice parallel to WorkflowCompilingService, ComputingUnitMaster/Worker, and TexeraWebApplication.
Purpose of the FileService
LakeFS+S3, LakeFS for the version control metadata and S3 for data transfer; ButLakeFSdoesn't have access control layerFileService, providingArchitecture before and after adding FileService
Before:

After

Key Changes
FileServiceis introduced. All the dataset-related endpoints are hosted onFileServicestorage-config.yamlComputingUnitMasterandComputingUnitWorker, they will callFileServiceto 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.You may refer to
core/amber/src/main/python/pytexera/storage/dataset_file_document.pyfor 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)
brew install dockerbecause it will only install docker engine.core/file-service/src/main/resourcesdocker compose up -dat its directoryUse Binary (Recommended for production deployment)
Refer to https://docs.lakefs.io/howto/deploy/
Step2. Configure the
storage-config.yamlUse 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:Step3. Launch services
Launch
FileService, in addition toTexeraWebApplication,WorkflowCompilingServiceandComputingUnitMaster.Future PRs after this one
amberpackage.