aglinxinyuan opened a new issue, #9331:
URL: https://github.com/apache/texera/issues/9331
### Task Summary
In `frontend/src/app/dashboard/service/admin/user/admin-user.service.ts`,
six methods (`getUploadedFiles`, `getCreatedDatasets`, `getCreatedWorkflows`,
`getAccessFiles`, `getAccessWorkflows`, `getExecutionQuota`) duplicate the same
two-line query parameter construction and HTTP GET pattern:
```ts
let params = new HttpParams().set("user_id", uid.toString());
return this.http.get<ReadonlyArray<T>>(`${URL}`, { params: params });
```
Deduplicate these calls by extracting a typed private helper
`getUserResource<T>(url: string, uid: number): Observable<ReadonlyArray<T>>`.
### Task Type
- [X] Refactor / Cleanup
--
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]