You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Admin user-quota modal cannot load a user's created datasets #7317
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?
Log in as an ADMIN user.
Go to Dashboard → Admin → User.
Click the quota/statistics icon for any user to open the user-quota modal.
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.
Activity
fix(amber, frontend): serve created datasets to the admin quota modal (…