all lists on lists.proxmox.com
 help / color / mirror / Atom feed
* [PATCH proxmox] fix #8127: notify: matcher: fix description of match-calendar
@ 2026-11-07 22:35 Lucas Barros
  2026-11-09 11:58 ` Christian Ebner
  0 siblings, 1 reply; 2+ messages in thread
From: Lucas Barros @ 2026-11-07 22:35 UTC (permalink / raw)
  To: pbs-devel

The doc comment of the 'match-calendar' property was copied from
'match-severity', so the API schema, and with it the CLI help and the
man page of 'proxmox-backup-manager notification matcher create' and
'update', describes it as a list of matched severity levels. The
option matches the timestamp of a notification against calendar
entries, though.

Use a description that fits what the option does.

Signed-off-by: Lucas Barros <lucasbarros.kam@gmail.com>
---

The 'match-severity' doc comment right above it is correct and left as
is. The items description of the same property in the api macro
("Time stamps to match") is left alone as well.

Doc comment change only. I did not build the crate locally (no Rust
toolchain on this machine).

This patch was prepared with the help of an LLM based coding assistant; I
reviewed the change and ran the tests mentioned above myself.

 proxmox-notify/src/matcher/mod.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/proxmox-notify/src/matcher/mod.rs b/proxmox-notify/src/matcher/mod.rs
index 59be88f..af87a4e 100644
--- a/proxmox-notify/src/matcher/mod.rs
+++ b/proxmox-notify/src/matcher/mod.rs
@@ -93,7 +93,7 @@ pub struct MatcherConfig {
     #[cfg(feature = "legacy-matchers")]
     pub match_severity: Vec<severity::InlineSeverityMatcher>,
 
-    /// List of matched severity levels.
+    /// List of matched calendar entries.
     #[serde(default, skip_serializing_if = "Vec::is_empty")]
     #[updater(serde(skip_serializing_if = "Option::is_none"))]
     #[cfg(feature = "legacy-matchers")]
-- 
2.50.1 (Apple Git-155)




^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH proxmox] fix #8127: notify: matcher: fix description of match-calendar
  2026-11-07 22:35 [PATCH proxmox] fix #8127: notify: matcher: fix description of match-calendar Lucas Barros
@ 2026-11-09 11:58 ` Christian Ebner
  0 siblings, 0 replies; 2+ messages in thread
From: Christian Ebner @ 2026-11-09 11:58 UTC (permalink / raw)
  To: Lucas Barros, pbs-devel

On 11/7/26 11:35 PM, Lucas Barros wrote:
> The doc comment of the 'match-calendar' property was copied from
> 'match-severity', so the API schema, and with it the CLI help and the
> man page of 'proxmox-backup-manager notification matcher create' and
> 'update', describes it as a list of matched severity levels. The
> option matches the timestamp of a notification against calendar
> entries, though.
> 
> Use a description that fits what the option does.
> 
> Signed-off-by: Lucas Barros <lucasbarros.kam@gmail.com>
Thanks for your contribution.

Tested that the correct string is now shown in docs and return type in 
API viewer.

Acked-by: Christian Ebner <c.ebner@proxmox.com>
Tested-by: Christian Ebner <c.ebner@proxmox.com>




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-11-09 11:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-07 22:35 [PATCH proxmox] fix #8127: notify: matcher: fix description of match-calendar Lucas Barros
2026-11-09 11:58 ` Christian Ebner

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal