Skip to content

Add Dataset-related statistics to Quota Dashboard - #2615

Merged
YS0meone merged 13 commits into
masterfrom
tim-dashboard-enhancement
May 8, 2024
Merged

YS0meone merged 13 commits into
masterfrom
tim-dashboard-enhancement

Conversation

@YS0meone

Copy link
Copy Markdown
Contributor

This pr introduces two new components to the Quota Dashboard shown as follows.
quota-dashboard-enhancement
The users can now check the total number of uploaded datasets and the total size of them, giving us more insight into the dataset statistics.
Fixes #2606

@YS0meone
YS0meone requested a review from bobbai00 April 24, 2024 00:55
@YS0meone YS0meone self-assigned this Apr 24, 2024
@YS0meone YS0meone linked an issue Apr 24, 2024 that may be closed by this pull request
@bobbai00 bobbai00 changed the title Dashboard enhancement Add Dataset-related statistics to Quota Dashboard Apr 24, 2024

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

Left some comments.

Comment thread core/gui/src/app/common/type/user.ts Resolved

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

left some new comments

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

Generally looks good! Suggested one minor thing.

@YS0meone
YS0meone merged commit 4a1bb0f into master May 8, 2024
@YS0meone
YS0meone deleted the tim-dashboard-enhancement branch May 8, 2024 01:25
yangzhang75 pushed a commit to yangzhang75/texera that referenced this pull request Jun 22, 2026
This pr introduces two new components to the Quota Dashboard shown as
follows.

![quota-dashboard-enhancement](https://github.com/Texera/texera/assets/61521613/05624faa-f319-4c85-8724-dd3ba8efd392)
The users can now check the total number of uploaded datasets and the
total size of them, giving us more insight into the dataset statistics.
Fixes apache#2606

---------

Co-authored-by: Jiadong Bai <[email protected]>
renovate-bot pushed a commit to renovate-bot/apache-_-texera that referenced this pull request Oct 24, 2026
)

### What changes were proposed in this PR?

Removes `AdminUserService` clients for admin endpoints that no longer
exist, or never did. **+1/−35 lines.** There is no behaviour change.

- **`getUploadedFiles` / `USER_CREATED_FILES`**
(`/admin/user/uploaded_files`) and **`getAccessFiles` /
`USER_ACCESS_FILES`** (`/admin/user/access_files`): no production
caller, and the backend endpoints are gone, so any call would 404.
- **`USER_UPLOADED_DATASE_SIZE`** (`/admin/user/dataset_size`) and
**`USER_UPLOADED_DATASET_COUNT`** (`/admin/user/uploaded_dataset`): no
references at all. Neither path was ever served under `/admin/user`; the
dataset-size endpoint lived under `/quota`.
- The `File` type import, which only the removed methods used. `File`
itself stays; `UserQuotaComponent` still imports it.

The spec drops the two cases and two error-propagation rows that only
exercised the removed methods.

### History

| | |
| --- | --- |
| **Introduced by** | apache#2194 (2023-10-29), "User quota dashboard
frontend": the two file clients. apache#2615 (2024-05-08), "Add
Dataset-related statistics to Quota Dashboard": the two dataset
constants |
| **Usage removed by** | apache#2781 (2024-08-20), "Remove File-Related
Components", which removed the file clients' callers and their backend
endpoints. apache#2680 (2024-07-23), "Adding quota statisitc visualization",
which removed the dataset constants' readers |

They have been unused for over two years.

### Any related issues, documentation, discussions?

Closes apache#9083

### How was this PR tested?

No new tests.

From `frontend/`:

- `npx ng test --watch=false --include='**/admin-user.service.spec.ts'
--include='**/admin-user.component.spec.ts'
--include='**/user-quota.component.spec.ts'`: 3 files, 97 tests, all
pass. The last two specs cover the service's consumers.
- `npx tsc --noEmit -p src/tsconfig.app.json` and `-p
src/tsconfig.spec.json`: clean.
- `yarn format:ci`: clean.
- `npx ng build`: success.

To re-check:

```
git grep -n -w -E 'getUploadedFiles|getAccessFiles|uploaded_files|access_files|dataset_size|uploaded_dataset'   # 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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add dataset statistics to Quota dashboard

2 participants