From 87ae41ef043a5193885327d01fa19afdf6c060ca Mon Sep 17 00:00:00 2001 From: John Chilton Date: Mon, 19 Feb 2024 13:40:39 -0500 Subject: [PATCH] objectstores storage management (UI+API) --- client/src/api/datasets.ts | 18 +-- client/src/api/users.ts | 1 + .../User/DiskUsage/StorageDashboard.vue | 35 ++++- .../HistoriesStorageOverview.vue | 26 ++-- .../Visualizations/HistoryStorageOverview.vue | 135 +++++------------- .../Visualizations/ObjectStoreActions.vue | 48 +++++++ .../ObjectStoreStorageOverview.vue | 123 ++++++++++++++++ .../ObjectStoresStorageOverview.vue | 71 +++++++++ .../Visualizations/ShowObjectStore.vue | 50 +++++++ .../Visualizations/WarnDeletedDatasets.vue | 9 ++ .../Visualizations/WarnDeletedHistories.vue | 9 ++ .../User/DiskUsage/Visualizations/service.ts | 19 ++- .../User/DiskUsage/Visualizations/util.ts | 119 +++++++++++++++ .../analysis/routes/storageDashboardRoutes.ts | 14 ++ lib/galaxy/model/__init__.py | 39 +++++ .../webapps/galaxy/api/history_contents.py | 56 ++++++++ lib/galaxy/webapps/galaxy/api/users.py | 16 +++ .../galaxy/services/history_contents.py | 6 +- test/unit/data/test_quota.py | 14 ++ 19 files changed, 671 insertions(+), 137 deletions(-) create mode 100644 client/src/components/User/DiskUsage/Visualizations/ObjectStoreActions.vue create mode 100644 client/src/components/User/DiskUsage/Visualizations/ObjectStoreStorageOverview.vue create mode 100644 client/src/components/User/DiskUsage/Visualizations/ObjectStoresStorageOverview.vue create mode 100644 client/src/components/User/DiskUsage/Visualizations/ShowObjectStore.vue create mode 100644 client/src/components/User/DiskUsage/Visualizations/WarnDeletedDatasets.vue create mode 100644 client/src/components/User/DiskUsage/Visualizations/WarnDeletedHistories.vue create mode 100644 client/src/components/User/DiskUsage/Visualizations/util.ts diff --git a/client/src/api/datasets.ts b/client/src/api/datasets.ts index 63b8b5714d9c..7aacc2155565 100644 --- a/client/src/api/datasets.ts +++ b/client/src/api/datasets.ts @@ -47,25 +47,21 @@ export async function fetchDatasetDetails(params: { id: string }): Promise diff --git a/client/src/components/User/DiskUsage/Visualizations/HistoriesStorageOverview.vue b/client/src/components/User/DiskUsage/Visualizations/HistoriesStorageOverview.vue index 9d63b587c5e0..770c274e4740 100644 --- a/client/src/components/User/DiskUsage/Visualizations/HistoriesStorageOverview.vue +++ b/client/src/components/User/DiskUsage/Visualizations/HistoriesStorageOverview.vue @@ -1,5 +1,5 @@