From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <pdm-devel-bounces@lists.proxmox.com>
Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68])
	by lore.proxmox.com (Postfix) with ESMTPS id 554711FF18E
	for <inbox@lore.proxmox.com>; Wed, 19 Feb 2025 13:29:01 +0100 (CET)
Received: from firstgate.proxmox.com (localhost [127.0.0.1])
	by firstgate.proxmox.com (Proxmox) with ESMTP id A85052879A;
	Wed, 19 Feb 2025 13:28:57 +0100 (CET)
From: Dominik Csapak <d.csapak@proxmox.com>
To: pdm-devel@lists.proxmox.com
Date: Wed, 19 Feb 2025 13:28:17 +0100
Message-Id: <20250219122824.2043990-1-d.csapak@proxmox.com>
X-Mailer: git-send-email 2.39.5
MIME-Version: 1.0
X-SPAM-LEVEL: Spam detection results:  0
 AWL -1.231 Adjusted score from AWL reputation of From: address
 BAYES_00                 -1.9 Bayes spam probability is 0 to 1%
 DMARC_MISSING             0.1 Missing DMARC policy
 KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment
 RCVD_IN_VALIDITY_CERTIFIED_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to
 Validity was blocked. See
 https://knowledge.validity.com/hc/en-us/articles/20961730681243 for more
 information.
 RCVD_IN_VALIDITY_RPBL_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to
 Validity was blocked. See
 https://knowledge.validity.com/hc/en-us/articles/20961730681243 for more
 information.
 RCVD_IN_VALIDITY_SAFE_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to
 Validity was blocked. See
 https://knowledge.validity.com/hc/en-us/articles/20961730681243 for more
 information.
 SPF_HELO_NONE           0.001 SPF: HELO does not publish an SPF Record
 SPF_PASS               -0.001 SPF: sender matches SPF record
 URIBL_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to URIBL was blocked. See
 http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more
 information. [tasks.rs, lib.rs, proxmox.com, mod.rs]
 URIBL_DBL_SPAM 2.5 Contains a spam URL listed in the Spamhaus DBL blocklist
 [tasks.rs]
Subject: [pdm-devel] [PATCH datacenter-manager v2 0/7] add task summary
 panels in dashboard
X-BeenThere: pdm-devel@lists.proxmox.com
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Proxmox Datacenter Manager development discussion
 <pdm-devel.lists.proxmox.com>
List-Unsubscribe: <https://lists.proxmox.com/cgi-bin/mailman/options/pdm-devel>, 
 <mailto:pdm-devel-request@lists.proxmox.com?subject=unsubscribe>
List-Archive: <http://lists.proxmox.com/pipermail/pdm-devel/>
List-Post: <mailto:pdm-devel@lists.proxmox.com>
List-Help: <mailto:pdm-devel-request@lists.proxmox.com?subject=help>
List-Subscribe: <https://lists.proxmox.com/cgi-bin/mailman/listinfo/pdm-devel>, 
 <mailto:pdm-devel-request@lists.proxmox.com?subject=subscribe>
Reply-To: Proxmox Datacenter Manager development discussion
 <pdm-devel@lists.proxmox.com>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: pdm-devel-bounces@lists.proxmox.com
Sender: "pdm-devel" <pdm-devel-bounces@lists.proxmox.com>

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



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