public inbox for pdm-devel@lists.proxmox.com
 help / color / mirror / Atom feed
From: Stefan Hanreich <s.hanreich@proxmox.com>
To: Proxmox Datacenter Manager development discussion
	<pdm-devel@lists.proxmox.com>,
	Dominik Csapak <d.csapak@proxmox.com>
Subject: Re: [pdm-devel] [PATCH datacenter-manager v4 0/8] add task summary panels in dashboard
Date: Tue, 26 Aug 2025 14:41:57 +0200	[thread overview]
Message-ID: <0612f831-cf3f-4a35-b137-d57db2633f80@proxmox.com> (raw)
In-Reply-To: <20250826102229.2271453-1-d.csapak@proxmox.com>

Looked at the changes - series LGTM from my POV now.

I also gave this another quick spin on my PDM instance:

Ran some tasks and re-checked the Dashboard overview if the information
has been correctly updated / applied. Did cover each remote / task type
/ result type (ok, warning, ..) once with the tasks I ran.

Played with the different duration settings as well.

Consider this:

Reviewed-by: Stefan Hanreich <s.hanreich@proxmox.com>
Tested-by: Stefan Hanreich <s.hanreich@proxmox.com>


On 8/26/25 12:22 PM, Dominik Csapak wrote:
> 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.
> 
> 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.
> 
> changes from v3:
> * instead of having freestanding helper functions, introduce a struct
>   with methods that we can pass around, this makes it easier to sort,
>   etc. also with this we can get rid of another helper type in the
>   tasks ui
> * changed to a btreemap from a hashmap to keep the sorting we get from
>   the TaskWorkerType
> * deduplicated the since/hour calculation in the dashboard
> 
> 
> changes from v2:
> * rebase on current master (incl task caching changes from lukas)
> * new patch (8/8) that includes configuring the time frame to check the
>   tasks for
> 
> 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 (8):
>   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
>   ui: dashboard: make task summary time range configurable
> 
>  lib/pdm-api-types/src/lib.rs       |  46 +++++
>  server/src/api/remote_tasks.rs     |  88 ++++++++-
>  server/src/remote_tasks/mod.rs     |  17 +-
>  ui/src/dashboard/filtered_tasks.rs | 291 ++++++++++++++++++++++++++++
>  ui/src/dashboard/mod.rs            | 128 +++++++++++-
>  ui/src/dashboard/tasks.rs          | 301 +++++++++++++++++++++++++++++
>  ui/src/remotes/tasks.rs            |  19 +-
>  ui/src/tasks.rs                    | 103 +++++++++-
>  ui/src/top_nav_bar.rs              |  18 +-
>  9 files changed, 966 insertions(+), 45 deletions(-)
>  create mode 100644 ui/src/dashboard/filtered_tasks.rs
>  create mode 100644 ui/src/dashboard/tasks.rs
> 



_______________________________________________
pdm-devel mailing list
pdm-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pdm-devel


  parent reply	other threads:[~2025-08-26 12:42 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-08-26 10:15 Dominik Csapak
2025-08-26 10:15 ` [pdm-devel] [PATCH datacenter-manager v4 1/8] server: task cache: treat a limit of 0 as unbounded Dominik Csapak
2025-08-26 10:15 ` [pdm-devel] [PATCH datacenter-manager v4 2/8] server: api: remote tasks: add 'remote' filter option Dominik Csapak
2025-08-26 10:15 ` [pdm-devel] [PATCH datacenter-manager v4 3/8] server: api: add remote-tasks statistics Dominik Csapak
2025-08-26 10:15 ` [pdm-devel] [PATCH datacenter-manager v4 4/8] ui: refactor remote upid formatter Dominik Csapak
2025-08-26 10:15 ` [pdm-devel] [PATCH datacenter-manager v4 5/8] ui: tasks: add helper to summarize task categories Dominik Csapak
2025-08-26 10:15 ` [pdm-devel] [PATCH datacenter-manager v4 6/8] ui: add dialog to show filtered tasks Dominik Csapak
2025-08-26 10:15 ` [pdm-devel] [PATCH datacenter-manager v4 7/8] ui: dashboard: add task summaries Dominik Csapak
2025-08-26 10:15 ` [pdm-devel] [PATCH datacenter-manager v4 8/8] ui: dashboard: make task summary time range configurable Dominik Csapak
2025-08-26 12:41 ` Stefan Hanreich [this message]
2025-09-04 19:21 ` [pdm-devel] applied-series: [PATCH datacenter-manager v4 0/8] add task summary panels in dashboard Thomas Lamprecht

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=0612f831-cf3f-4a35-b137-d57db2633f80@proxmox.com \
    --to=s.hanreich@proxmox.com \
    --cc=d.csapak@proxmox.com \
    --cc=pdm-devel@lists.proxmox.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal