[pdm-devel] [PATCH datacenter-manager v2 0/7] add task summary panels in dashboard

Dominik Csapak d.csapak at proxmox.com
Wed Feb 19 13:28:17 CET 2025


This is a replacement series for my patch:
https://lore.proxmox.com/pdm-devel/20250123151012.4047891-1-d.csapak@proxmox.com/

This adds new panels to the dashboard for showing summaries of the tasks:
* one by category
* one by remote

similar to what we have in PBS.

This series might conflict a bit with Lukas approach to the task
caching on the backend, but I'm happy to rebase my patches on top of
his, when they're applied.

I did not implement a cache for the data on the backend, but this can be
done as a follow up and should not impact the UI code at all.

Also I might use that chance to implement a generic in-memory cache for
our api calls, so that we don't have to implement it for every part we
want to cache.

Also on the UI customizable filters are still missing for the filtered
list, but those will be done as a follow up by me. (IMHO it's already
very usable)

Changes from v1:
* incorporated most suggestions from Thomas
* split up patches a bit
* added new server api call
* (the UI code is very different to accomodate the necessary changes)

Dominik Csapak (7):
  server: task cache: treat a limit of 0 as unbounded
  server: api: remote tasks: add 'remote' filter option
  server: api: add remote-tasks statistics
  ui: refactor remote upid formatter
  ui: tasks: add helper to summarize task categories
  ui: add dialog to show filtered tasks
  ui: dashboard: add task summaries

 lib/pdm-api-types/src/lib.rs       |  60 ++++++
 server/src/api/remote_tasks.rs     |  97 ++++++++-
 server/src/task_cache.rs           |  18 +-
 ui/src/dashboard/filtered_tasks.rs | 297 ++++++++++++++++++++++++++++
 ui/src/dashboard/mod.rs            | 112 ++++++++++-
 ui/src/dashboard/tasks.rs          | 302 +++++++++++++++++++++++++++++
 ui/src/remotes/tasks.rs            |  19 +-
 ui/src/tasks.rs                    |  52 ++++-
 ui/src/top_nav_bar.rs              |  18 +-
 9 files changed, 932 insertions(+), 43 deletions(-)
 create mode 100644 ui/src/dashboard/filtered_tasks.rs
 create mode 100644 ui/src/dashboard/tasks.rs

-- 
2.39.5





More information about the pdm-devel mailing list