From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) by lore.proxmox.com (Postfix) with ESMTPS id 778621FF13F for ; Thu, 23 Apr 2026 15:47:20 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 2D06A19AB8; Thu, 23 Apr 2026 15:47:20 +0200 (CEST) Message-ID: <4271de9a-e4d6-42c4-82e4-da7d26133131@proxmox.com> Date: Thu, 23 Apr 2026 15:47:15 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH proxmox-backup v8 11/13] ui: add move group action To: =?UTF-8?Q?Michael_K=C3=B6ppl?= , pbs-devel@lists.proxmox.com References: <20260422133951.192862-1-h.laimer@proxmox.com> <20260422133951.192862-12-h.laimer@proxmox.com> Content-Language: en-US From: Hannes Laimer In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Bm-Milter-Handled: 55990f41-d878-4baa-be0a-ee34c49e34d2 X-Bm-Transport-Timestamp: 1776951946368 X-SPAM-LEVEL: Spam detection results: 0 AWL 0.081 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 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: IEJSVXLDC5M6L5F64UULGJGFSSUTEKYV X-Message-ID-Hash: IEJSVXLDC5M6L5F64UULGJGFSSUTEKYV X-MailFrom: h.laimer@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 Backup Server development discussion List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: On 2026-04-23 15:34, Michael Köppl wrote: > On Wed Apr 22, 2026 at 3:39 PM CEST, Hannes Laimer wrote: > > [snip] > >> + items: { >> + xtype: 'inputpanel', >> + onGetValues: function (values) { >> + let win = this.up('window'); >> + let result = { >> + 'backup-type': win.backupType, >> + 'backup-id': win.backupId, >> + 'target-ns': values['target-ns'] || '', >> + }; >> + if (win.namespace && win.namespace !== '') { >> + result.ns = win.namespace; >> + } >> + if (values['merge-group'] !== undefined) { >> + result['merge-group'] = values['merge-group']; >> + } > > when I uncheck the "Merge Group" checkbox, the `merge-group` param is > not set in the request. since the default value in the backend is > `true`, merging is still attempted. > right, good catch! should just use `delete_if_default(.., true)` >> + return result; >> + }, >> + items: [ >> + { >> + xtype: 'displayfield', >> + fieldLabel: gettext('Group'), >> + cbind: { >> + value: '{group}', >> + }, > > [snip]