Skip to content

Fix the incomplete dataset list in dashboard - #2987

Merged
bobbai00 merged 10 commits into
masterfrom
fix-dataset-list-incomplete
Nov 6, 2024
Merged

bobbai00 merged 10 commits into
masterfrom
fix-dataset-list-incomplete

Conversation

@GspikeHalo

Copy link
Copy Markdown
Contributor

Propose:
The current database interface only displays datasets that the user has direct access to, while public datasets are not shown. This PR fixes this issue and also prepares for the future implementation of filters.
fix #2979

Changes:

  1. Enable both public and private search for datasets. Depending on different parameters, it can display all accessible datasets (both direct access and public), datasets with direct access only, or only public datasets.
  2. Modify the current user dataset interface to display all accessible datasets.

@GspikeHalo
GspikeHalo requested a review from bobbai00 November 2, 2024 05:29
@GspikeHalo GspikeHalo self-assigned this Nov 2, 2024
@GspikeHalo
GspikeHalo marked this pull request as ready for review November 2, 2024 05:34

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

Thanks for the PR. Please take care of the comments.

@bobbai00 bobbai00 changed the title Fix the issue of incomplete results displayed on the user database interface Fix the issue of incomplete results displayed on the user dataset interface Nov 6, 2024
@bobbai00 bobbai00 changed the title Fix the issue of incomplete results displayed on the user dataset interface Fix the incomplete dataset list in dashboard Nov 6, 2024
@bobbai00
bobbai00 merged commit 87911ac into master Nov 6, 2024
@bobbai00
bobbai00 deleted the fix-dataset-list-incomplete branch November 6, 2024 06:54
GspikeHalo added a commit that referenced this pull request Nov 8, 2024
### Purpose
This PR is a follow-up to RP #2987, which addressed the issue of
incomplete dataset display on the dataset interface. The purpose of this
PR is to address the review comments provided in PR #2987.

### Changes:
Adding detailed comments and annotations to clarify the code logic.
PurelyBlank pushed a commit that referenced this pull request Dec 4, 2024
**Propose:**
The current database interface only displays datasets that the user has
direct access to, while public datasets are not shown. This PR fixes
this issue and also prepares for the future implementation of filters.
fix #2979

**Changes:**
1. Enable both public and private search for datasets. Depending on
different parameters, it can display all accessible datasets (both
direct access and public), datasets with direct access only, or only
public datasets.
2. Modify the current user dataset interface to display all accessible
datasets.

---------

Co-authored-by: Jiadong Bai <43344272+bobbai00@users.noreply.github.com>
PurelyBlank pushed a commit that referenced this pull request Dec 4, 2024
### Purpose
This PR is a follow-up to RP #2987, which addressed the issue of
incomplete dataset display on the dataset interface. The purpose of this
PR is to address the review comments provided in PR #2987.

### Changes:
Adding detailed comments and annotations to clarify the code logic.
SarahAsad23 pushed a commit to madisonmlin/texera that referenced this pull request May 20, 2026
**Propose:**
The current database interface only displays datasets that the user has
direct access to, while public datasets are not shown. This PR fixes
this issue and also prepares for the future implementation of filters.
fix apache#2979

**Changes:**
1. Enable both public and private search for datasets. Depending on
different parameters, it can display all accessible datasets (both
direct access and public), datasets with direct access only, or only
public datasets.
2. Modify the current user dataset interface to display all accessible
datasets.

---------

Co-authored-by: Jiadong Bai <43344272+bobbai00@users.noreply.github.com>
SarahAsad23 pushed a commit to madisonmlin/texera that referenced this pull request May 20, 2026
### Purpose
This PR is a follow-up to RP apache#2987, which addressed the issue of
incomplete dataset display on the dataset interface. The purpose of this
PR is to address the review comments provided in PR apache#2987.

### Changes:
Adding detailed comments and annotations to clarify the code logic.
yangzhang75 pushed a commit to yangzhang75/texera that referenced this pull request Jun 22, 2026
**Propose:**
The current database interface only displays datasets that the user has
direct access to, while public datasets are not shown. This PR fixes
this issue and also prepares for the future implementation of filters.
fix apache#2979

**Changes:**
1. Enable both public and private search for datasets. Depending on
different parameters, it can display all accessible datasets (both
direct access and public), datasets with direct access only, or only
public datasets.
2. Modify the current user dataset interface to display all accessible
datasets.

---------

Co-authored-by: Jiadong Bai <43344272+bobbai00@users.noreply.github.com>
yangzhang75 pushed a commit to yangzhang75/texera that referenced this pull request Jun 22, 2026
### Purpose
This PR is a follow-up to RP apache#2987, which addressed the issue of
incomplete dataset display on the dataset interface. The purpose of this
PR is to address the review comments provided in PR apache#2987.

### Changes:
Adding detailed comments and annotations to clarify the code logic.
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.

Dashboard Dataset List is incomplete

2 participants