aglinxinyuan opened a new issue, #7317:
URL: https://github.com/apache/texera/issues/7317

   ### What happened?
   
   Opening the user-quota modal from the admin user list (Dashboard → Admin → 
User → quota icon) fails to load the "created datasets" panel. The request for 
the inspected user's datasets 404s, so the dataset table, the size pie chart, 
and the upload line chart all stay empty.
   
   `AdminUserService.getCreatedDatasets()` requests 
`/admin/user/created_datasets`, but `AdminUserResource` never exposed that 
route — it only has `/list`, `/update`, `/add`, `/created_workflows`, 
`/access_workflows`, `/user_quota_size`, and `/deleteCollection/{eid}`. A 
`created_datasets` endpoint exists only on `UserQuotaResource` under 
`@Path("/quota")`, and it resolves the uid from the authenticated session 
(`@Auth current_user`) rather than a parameter, so it cannot serve "the 
datasets of the user this admin is inspecting" either.
   
   The service method also accepts a `uid` argument and then drops it, so even 
once a route exists the request would target the wrong user.
   
   Expected: the admin quota modal shows the datasets owned by the user being 
inspected.
   
   ### How to reproduce?
   
   1. Log in as an `ADMIN` user.
   2. Go to Dashboard → Admin → User.
   3. Click the quota/statistics icon for any user to open the user-quota modal.
   4. Observe that the created-datasets panel is empty; the browser network tab 
shows `GET /api/admin/user/created_datasets` returning 404.
   
   The workflow panels in the same modal populate normally, since 
`/admin/user/created_workflows` does exist — which makes the datasets panel 
look merely empty rather than broken.
   
   ### Version/Branch
   
   1.3.0-incubating-SNAPSHOT (main)
   
   ### Commit Hash (Optional)
   
   2fb1ff475b
   
   ### What browsers are you seeing the problem on?
   
   Chrome
   


-- 
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]

Reply via email to