From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate001.proxmox.com (gate001.proxmox.com [45.144.208.40]) by lore.proxmox.com (Postfix) with ESMTPS id 5126A1FF0B7 for ; Mon, 30 Nov 2026 10:45:05 +0100 (CET) Received: from gate001.proxmox.com (localhost.localdomain [127.0.0.1]) by gate001.proxmox.com (Proxmox) with ESMTP id A06FE2167F; Mon, 30 Nov 2026 10:45:04 +0100 (CET) From: Dominik Csapak To: pdm-devel@lists.proxmox.com Subject: [PATCH datacenter-manager/proxmox-yew-comp 0/2] ui: remote updates: reload the details of a node in place Date: Mon, 30 Nov 2026 10:44:53 +0100 Message-ID: <20261130094500.972447-1-d.csapak@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-SPAM-LEVEL: Spam detection results: 0 AWL 0.250 Adjusted score from AWL reputation of From: address DMARC_MISSING 0.1 Missing DMARC policy KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment (newer systems) RCVD_IN_DNSWL_MED -2.3 Sender listed at https://www.dnswl.org/, medium trust 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: GF5ZWFOYHLAQOQFRJIB46Q7WLWFEKES6 X-Message-ID-Hash: GF5ZWFOYHLAQOQFRJIB46Q7WLWFEKES6 X-MailFrom: d.csapak@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: In the remote updates panel, the details of the selected node (the repository status and the list of updates) were empty for a moment every 5 seconds. Both components were recreated whenever the 'last_refresh' of the node's summary changed. Since loading the list of updates refreshes the summary of that node too, that was the case after every reload of the summary. The proxmox-yew-comp patch adds a 'reload_generation' property to the apt package manager and the apt repositories component, which lets them load their data again while keeping the old content until the new one arrives. A change of the property is ignored while a load is still ongoing, so that the loads don't pile up. The proxmox-datacenter-manager patch uses that to reload them after each load of the summary, and only recreates them when another node is selected. It needs the proxmox-yew-comp patch for the new property. For users that can list the updates of the node, this does not increase how often the remote is queried, since the components were recreated (and thus loaded their data) just as often before. For a slow remote it is less often now, as a reload is skipped while the previous one is still ongoing. proxmox-yew-comp: Dominik Csapak (1): apt package manager/repositories: add 'reload_generation' property src/apt_package_manager.rs | 11 ++++++++++- src/apt_repositories.rs | 7 +++++++ 2 files changed, 17 insertions(+), 1 deletion(-) proxmox-datacenter-manager: Dominik Csapak (1): ui: remote updates: reload the details of a node in place ui/src/remotes/updates.rs | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) Summary over all repositories: 3 files changed, 25 insertions(+), 4 deletions(-) -- Generated by murpp 0.11.0