Skip to content

Adding quota statisitc visualization - #2680

Merged
YS0meone merged 24 commits into
masterfrom
tim-quota-add-visual
Jul 23, 2024
Merged

YS0meone merged 24 commits into
masterfrom
tim-quota-add-visual

Conversation

@YS0meone

Copy link
Copy Markdown
Contributor

This pr added three user statistic related plots to the quota section. Users can now see the distribution of dataset size, workflow and dataset upload activity on this page.
image

YS0meone added 17 commits April 23, 2024 17:22
…atasets uploaded by user and the total size of them.
@YS0meone
YS0meone requested a review from bobbai00 May 28, 2024 03:15
@YS0meone YS0meone self-assigned this May 28, 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

Copy link
Copy Markdown
Contributor

Please resolve the conflicts.

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

LGTM!

@YS0meone
YS0meone merged commit c7aa69c into master Jul 23, 2024
@YS0meone
YS0meone deleted the tim-quota-add-visual branch July 23, 2024 19:55
SarahAsad23 pushed a commit to madisonmlin/texera that referenced this pull request May 20, 2026
This pr added three user statistic related plots to the quota section.
Users can now see the distribution of dataset size, workflow and dataset
upload activity on this page.

![image](https://github.com/Texera/texera/assets/61521613/3817e391-4dec-4dc0-8c8c-c183040f27a4)
yangzhang75 pushed a commit to yangzhang75/texera that referenced this pull request Jun 22, 2026
This pr added three user statistic related plots to the quota section.
Users can now see the distribution of dataset size, workflow and dataset
upload activity on this page.

![image](https://github.com/Texera/texera/assets/61521613/3817e391-4dec-4dc0-8c8c-c183040f27a4)
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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants