From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <pve-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 A26A01FF165 for <inbox@lore.proxmox.com>; Thu, 27 Mar 2025 15:23:40 +0100 (CET) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id D059EEA3B; Thu, 27 Mar 2025 15:23:27 +0100 (CET) From: Lukas Wagner <l.wagner@proxmox.com> To: pve-devel@lists.proxmox.com Date: Thu, 27 Mar 2025 15:23:14 +0100 Message-Id: <20250327142320.247169-1-l.wagner@proxmox.com> X-Mailer: git-send-email 2.39.5 MIME-Version: 1.0 X-SPAM-LEVEL: Spam detection results: 0 AWL 0.009 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. [apt.pm, vzdump.pm, env.pm, nodestatus.pm, replication.pm, notify.pm] Subject: [pve-devel] [PATCH cluster/ha-manager/manager 0/6] preparation for #6143: notification template cleanup X-BeenThere: pve-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox VE development discussion <pve-devel.lists.proxmox.com> List-Unsubscribe: <https://lists.proxmox.com/cgi-bin/mailman/options/pve-devel>, <mailto:pve-devel-request@lists.proxmox.com?subject=unsubscribe> List-Archive: <http://lists.proxmox.com/pipermail/pve-devel/> List-Post: <mailto:pve-devel@lists.proxmox.com> List-Help: <mailto:pve-devel-request@lists.proxmox.com?subject=help> List-Subscribe: <https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel>, <mailto:pve-devel-request@lists.proxmox.com?subject=subscribe> Reply-To: Proxmox VE development discussion <pve-devel@lists.proxmox.com> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: pve-devel-bounces@lists.proxmox.com Sender: "pve-devel" <pve-devel-bounces@lists.proxmox.com> With [#6143] on the horizon, notification templates, template variables and template helpers become part of our public API and as such we should provide some stability guarantees for them. As a result, we use this opportunity to do a 'final' cleanup. This series: - adds some common template vars for all notifications - hostname - fqdn - cluster-name - For HTML tables, we move the table generation to the handlebars template instead of using the {{ table }} helper. This gives users a better starting point for their changes (styling, structure). The plaintext version still uses the helper, mostly due to the fact that the helper automatically determines appropriate column widths - changes the names of some template variables for better clarity - For fencing notifications, we stop dumping status data as JSON to the notification and instead try to render it nicely, trying to include all useful info from the former JSON dump Bumps: The patches for pve-manager and pve-ha-manager must depend on a bumped libpve-notify-perl due to the new 'PVE::Notify::common_template_data' helper. pve-cluster: Lukas Wagner (1): notify: add common_template_data src/PVE/Notify.pm | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) pve-manager: Lukas Wagner (4): notification templates: vzdump: generate HTML table in template notifications: apt: clean up notification template notification: replication: add common properties to template data notifications: test: style fixup PVE/API2/APT.pm | 27 ++++++++----------- PVE/API2/Replication.pm | 16 +++++------ PVE/VZDump.pm | 21 +++++++-------- .../default/package-updates-body.html.hbs | 15 ++++++++++- .../default/package-updates-body.txt.hbs | 2 +- .../default/package-updates-subject.txt.hbs | 2 +- templates/default/replication-body.txt.hbs | 2 +- templates/default/test-body.html.hbs | 2 +- templates/default/vzdump-body.html.hbs | 24 +++++++++++++++-- templates/default/vzdump-body.txt.hbs | 2 +- templates/default/vzdump-subject.txt.hbs | 2 +- 11 files changed, 69 insertions(+), 46 deletions(-) pve-ha-manager: Lukas Wagner (1): notifications: overhaul fence notification src/PVE/HA/NodeStatus.pm | 43 +++++++++++++++---- src/PVE/HA/Sim/Env.pm | 8 ++-- src/templates/default/fencing-body.html.hbs | 43 ++++++++++++++++--- src/templates/default/fencing-body.txt.hbs | 40 +++++++++++++---- src/templates/default/fencing-subject.txt.hbs | 6 ++- 5 files changed, 111 insertions(+), 29 deletions(-) Summary over all repositories: 17 files changed, 200 insertions(+), 75 deletions(-) -- Generated by git-murpp 0.8.0 _______________________________________________ pve-devel mailing list pve-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel