From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [IPv6:2a01:7e0:0:424::9]) by lore.proxmox.com (Postfix) with ESMTPS id 7D4C91FF13E for ; Fri, 06 Feb 2026 14:44:41 +0100 (CET) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id DC7F83C05; Fri, 6 Feb 2026 14:45:13 +0100 (CET) From: Lukas Wagner To: pdm-devel@lists.proxmox.com Subject: [PATCH datacenter-manager/proxmox-yew-comp v4 0/8] manual refresh button for remote task cache Date: Fri, 6 Feb 2026 14:44:25 +0100 Message-ID: <20260206134433.311230-1-l.wagner@proxmox.com> X-Mailer: git-send-email 2.47.3 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Bm-Milter-Handled: 55990f41-d878-4baa-be0a-ee34c49e34d2 X-Bm-Transport-Timestamp: 1770385397504 X-SPAM-LEVEL: Spam detection results: 0 AWL -0.112 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 POISEN_SPAM_PILL 0.1 Meta: its spam POISEN_SPAM_PILL_1 0.1 random spam to be learned in bayes POISEN_SPAM_PILL_3 0.1 random spam to be learned in bayes SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record Message-ID-Hash: VQVCBDZSX37TXJTWTZPUSTAM4GHWHD7X X-Message-ID-Hash: VQVCBDZSX37TXJTWTZPUSTAM4GHWHD7X X-MailFrom: l.wagner@proxmox.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.10 Precedence: list List-Id: Proxmox Datacenter Manager development discussion List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: NOTE: the PDM patches need to be applied on top of [1] This adds the POST /remotes/tasks/refresh[?remotes=...] endpoint for manually triggering task collection from a single or all remotes. The task viewer component is changed so that the refresh button can be wired up to trigger this new endpoint. Changes since v3: - Rebase on top of the ParallelFetcher changes from [1] - Fix clippy issues (new patches) Changes since v2: - Incorporate review feedback from Shannon: - Import cosmetics - Support refresh multiple remotes at once (renaming the 'remote' parameter to 'remotes') - Improve docs for the API handler Changes since v1: - Drop the patch which adds the task descriptions of the new refresh-task - this one is now included in another patch series - Fix a bug where the view would not automatically display new tasks after the refresh task finished [1]: https://lore.proxmox.com/all/20260206094304.117465-1-l.wagner@proxmox.com/T/#u proxmox-yew-comp: Lukas Wagner (2): task list: add support for starting refresh tasks loadable component: don't trigger reload when starting a task src/loadable_component.rs | 1 - src/tasks.rs | 21 ++++++++++++++++++++- 2 files changed, 20 insertions(+), 2 deletions(-) proxmox-datacenter-manager: Lukas Wagner (6): remote tasks: move implementation to server crate remote tasks: implement `refresh_task_cache` for manual task fetching api: add /remotes/tasks/refresh ui: remote task view: set refresh_task_url property for task viewer clippy: remote tasks: implement Default for TaskState clippy: remote tasks: remove unneeded enclosing Ok(...) and ? server/src/api/remote_tasks.rs | 100 +++- .../tasks/remote_tasks.rs | 547 +---------------- server/src/remote_tasks/mod.rs | 1 + server/src/remote_tasks/refresh_task.rs | 550 ++++++++++++++++++ ui/src/remotes/tasks.rs | 14 +- 5 files changed, 667 insertions(+), 545 deletions(-) create mode 100644 server/src/remote_tasks/refresh_task.rs Summary over all repositories: 7 files changed, 687 insertions(+), 547 deletions(-) -- Generated by murpp 0.9.0