From: Christian Ebner <c.ebner@proxmox.com>
To: Proxmox Backup Server development discussion
<pbs-devel@lists.proxmox.com>,
Hannes Laimer <h.laimer@proxmox.com>
Subject: Re: [pbs-devel] [PATCH proxmox-backup v2 1/3] api: taffic-control: update/delete users on rule correctly
Date: Mon, 10 Nov 2025 09:56:05 +0100 [thread overview]
Message-ID: <d982d258-1aea-48ea-92ea-4e83274b3a85@proxmox.com> (raw)
In-Reply-To: <20251107132329.42965-5-h.laimer@proxmox.com>
Reviewed-by: Christian Ebner <c.ebner@proxmox.com>
On 11/7/25 2:23 PM, Hannes Laimer wrote:
> Signed-off-by: Hannes Laimer <h.laimer@proxmox.com>
> ---
> src/api2/config/traffic_control.rs | 8 ++++++++
> 1 file changed, 8 insertions(+)
>
> diff --git a/src/api2/config/traffic_control.rs b/src/api2/config/traffic_control.rs
> index e02aa20a..49b1267e 100644
> --- a/src/api2/config/traffic_control.rs
> +++ b/src/api2/config/traffic_control.rs
> @@ -116,6 +116,8 @@ pub enum DeletableProperty {
> Comment,
> /// Delete the timeframe property
> Timeframe,
> + /// Delete the users property
> + Users,
> }
>
> // fixme: use TrafficControlUpdater
> @@ -187,6 +189,9 @@ pub fn update_traffic_control(
> DeletableProperty::Timeframe => {
> data.timeframe = None;
> }
> + DeletableProperty::Users => {
> + data.users = None;
> + }
> }
> }
> }
> @@ -222,6 +227,9 @@ pub fn update_traffic_control(
> if update.timeframe.is_some() {
> data.timeframe = update.timeframe;
> }
> + if update.users.is_some() {
> + data.users = update.users;
> + }
>
> config.set_data(&name, "rule", &data)?;
>
_______________________________________________
pbs-devel mailing list
pbs-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pbs-devel
next prev parent reply other threads:[~2025-11-10 8:55 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-11-07 13:23 [pbs-devel] [PATCH proxmox{, -backup} v2 0/6] add user specific rate-limits Hannes Laimer
2025-11-07 13:23 ` [pbs-devel] [PATCH proxmox v2 1/3] pbs-api-types: allow traffic-control rules to match users Hannes Laimer
2025-11-10 8:45 ` Christian Ebner
2025-11-07 13:23 ` [pbs-devel] [PATCH proxmox v2 2/3] http: track user tag updates on rate-limited streams Hannes Laimer
2025-11-10 8:53 ` Christian Ebner
2025-11-07 13:23 ` [pbs-devel] [PATCH proxmox v2 3/3] rest-server: propagate rate-limit tags from authenticated users Hannes Laimer
2025-11-10 8:55 ` Christian Ebner
2025-11-07 13:23 ` [pbs-devel] [PATCH proxmox-backup v2 1/3] api: taffic-control: update/delete users on rule correctly Hannes Laimer
2025-11-10 8:56 ` Christian Ebner [this message]
2025-11-07 13:23 ` [pbs-devel] [PATCH proxmox-backup v2 2/3] traffic-control: handle users specified in a " Hannes Laimer
2025-11-10 8:59 ` Christian Ebner
2025-11-07 13:23 ` [pbs-devel] [PATCH proxmox-backup v2 3/3] ui: traffic-control: add users field in edit form and list Hannes Laimer
2025-11-10 9:00 ` Christian Ebner
2025-11-10 9:03 ` [pbs-devel] [PATCH proxmox{, -backup} v2 0/6] add user specific rate-limits Christian Ebner
2025-11-10 9:13 ` Hannes Laimer
2025-11-10 13:44 ` [pbs-devel] superseded: " Hannes Laimer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=d982d258-1aea-48ea-92ea-4e83274b3a85@proxmox.com \
--to=c.ebner@proxmox.com \
--cc=h.laimer@proxmox.com \
--cc=pbs-devel@lists.proxmox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox