aglinxinyuan opened a new pull request, #9332:
URL: https://github.com/apache/texera/pull/9332
### What changes were proposed in this PR?
Extract a typed private helper `getUserResource<T>(url: string, uid:
number): Observable<ReadonlyArray<T>>` in `AdminUserService` and use it across
`getCreatedDatasets`, `getCreatedWorkflows`, `getAccessWorkflows`, and
`getExecutionQuota` to deduplicate repetitive `HttpParams` setup and HTTP GET
calls.
### Any related issues, documentation, discussions?
Closes #9331.
### How was this PR tested?
Frontend unit tests in `frontend`:
```bash
node ./node_modules/@angular/cli/bin/ng.js test --include
src/app/dashboard/service/admin/user/admin-user.service.spec.ts
```
Output:
```
✓ gui src/app/dashboard/service/admin/user/admin-user.service.spec.ts (17
tests)
Test Files 1 passed (1)
Tests 17 passed (17)
```
Prettier and ESLint checks:
```bash
node .yarn/releases/yarn-4.14.1.cjs prettier --check
src/app/dashboard/service/admin/user/admin-user.service.ts
node .yarn/releases/yarn-4.14.1.cjs eslint
src/app/dashboard/service/admin/user/admin-user.service.ts
```
Both passed with 0 errors and 0 warnings.
### Was this PR authored or co-authored using generative AI tooling?
Generated-by: Antigravity (Gemini 2.5 Pro)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]