Repository navigation
Add Dataset-related statistics to Quota Dashboard - #2615
Merged
Merged
Conversation
…atasets uploaded by user and the total size of them.
bobbai00
reviewed
Apr 24, 2024
…rrected some variable naming.
bobbai00
reviewed
Apr 30, 2024
bobbai00
approved these changes
May 4, 2024
bobbai00
left a comment
Contributor
There was a problem hiding this comment.
Generally looks good! Suggested one minor thing.
…on to the DatasetStatisticsUtils file
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.  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]>
This was referenced Oct 22, 2026
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)
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 two new components to the Quota Dashboard shown as follows.

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