Repository navigation
Introduce Dataset GUI - #2413
Merged
Merged
Conversation
bobbai00
force-pushed
the
jiadong-introduce-dataset-gui
branch
from
February 26, 2024 18:57
437f0f9 to
8d0ebe6
Compare
aglinxinyuan
approved these changes
Feb 26, 2024
bobbai00
force-pushed
the
jiadong-introduce-dataset-gui
branch
2 times, most recently
from
February 27, 2024 01:55
277229c to
498e9df
Compare
This was referenced Mar 21, 2024
Closed
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.
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  ### 2. View Dataset Details  ### 3. Create a new Dataset  ### 4. Create a new Dataset Version  ## 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="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/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="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/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="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/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="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/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="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/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="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/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.
This was referenced Sep 9, 2026
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)
This was referenced Sep 29, 2026
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)
This was referenced Oct 7, 2026
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)
This was referenced Oct 21, 2026
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)
This was referenced Nov 15, 2026
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>
This was referenced Nov 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
2. View Dataset Details
3. Create a new Dataset
4. Create a new Dataset Version
Components
1. Common Components
One common components are introduced:
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:2. Dataset-centric Components
Several dataset-related components are introduced. Their structures are as follow:
Other fix