* [pve-devel] [PATCH manager] ui: sdn: ipam/dhcp: allow sorting by guest ID
@ 2025-08-01 9:26 Fiona Ebner
2025-08-01 9:45 ` Fiona Ebner
2025-08-01 15:38 ` [pve-devel] applied: " Thomas Lamprecht
0 siblings, 2 replies; 4+ messages in thread
From: Fiona Ebner @ 2025-08-01 9:26 UTC (permalink / raw)
To: pve-devel
Previously, sorting would not apply to the leaves of the tree.
Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
---
www/manager6/tree/DhcpTree.js | 1 +
1 file changed, 1 insertion(+)
diff --git a/www/manager6/tree/DhcpTree.js b/www/manager6/tree/DhcpTree.js
index 0088d708..40eb40bf 100644
--- a/www/manager6/tree/DhcpTree.js
+++ b/www/manager6/tree/DhcpTree.js
@@ -75,6 +75,7 @@ Ext.define('PVE.sdn.DhcpTree', {
vnets[element.vnet].children.push(subnet);
}
+ element.name = element.vmid; // for sorting
element.type = 'mapping';
element.iconCls = 'x-tree-icon-none';
subnets[element.subnet].children.push(element);
--
2.47.2
_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [pve-devel] [PATCH manager] ui: sdn: ipam/dhcp: allow sorting by guest ID
2025-08-01 9:26 [pve-devel] [PATCH manager] ui: sdn: ipam/dhcp: allow sorting by guest ID Fiona Ebner
@ 2025-08-01 9:45 ` Fiona Ebner
2025-08-01 11:19 ` Thomas Lamprecht
2025-08-01 15:38 ` [pve-devel] applied: " Thomas Lamprecht
1 sibling, 1 reply; 4+ messages in thread
From: Fiona Ebner @ 2025-08-01 9:45 UTC (permalink / raw)
To: pve-devel, Stefan Hanreich
Am 01.08.25 um 11:27 AM schrieb Fiona Ebner:
> Previously, sorting would not apply to the leaves of the tree.
>
> Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
> ---
> www/manager6/tree/DhcpTree.js | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/www/manager6/tree/DhcpTree.js b/www/manager6/tree/DhcpTree.js
> index 0088d708..40eb40bf 100644
> --- a/www/manager6/tree/DhcpTree.js
> +++ b/www/manager6/tree/DhcpTree.js
> @@ -75,6 +75,7 @@ Ext.define('PVE.sdn.DhcpTree', {
> vnets[element.vnet].children.push(subnet);
> }
>
> + element.name = element.vmid; // for sorting
> element.type = 'mapping';
> element.iconCls = 'x-tree-icon-none';
> subnets[element.subnet].children.push(element);
Just noticed that this doesn't sort numerically, because the returned
values are strings. Should I fix it up here by using parseInt() or
should we change the API endpoint to return integers already?
_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [pve-devel] [PATCH manager] ui: sdn: ipam/dhcp: allow sorting by guest ID
2025-08-01 9:45 ` Fiona Ebner
@ 2025-08-01 11:19 ` Thomas Lamprecht
0 siblings, 0 replies; 4+ messages in thread
From: Thomas Lamprecht @ 2025-08-01 11:19 UTC (permalink / raw)
To: Proxmox VE development discussion, Fiona Ebner, Stefan Hanreich
Am 01.08.25 um 11:45 schrieb Fiona Ebner:
> Am 01.08.25 um 11:27 AM schrieb Fiona Ebner:
>> Previously, sorting would not apply to the leaves of the tree.
>>
>> Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
>> ---
>> www/manager6/tree/DhcpTree.js | 1 +
>> 1 file changed, 1 insertion(+)
>>
>> diff --git a/www/manager6/tree/DhcpTree.js b/www/manager6/tree/DhcpTree.js
>> index 0088d708..40eb40bf 100644
>> --- a/www/manager6/tree/DhcpTree.js
>> +++ b/www/manager6/tree/DhcpTree.js
>> @@ -75,6 +75,7 @@ Ext.define('PVE.sdn.DhcpTree', {
>> vnets[element.vnet].children.push(subnet);
>> }
>>
>> + element.name = element.vmid; // for sorting
>> element.type = 'mapping';
>> element.iconCls = 'x-tree-icon-none';
>> subnets[element.subnet].children.push(element);
>
> Just noticed that this doesn't sort numerically, because the returned
> values are strings. Should I fix it up here by using parseInt() or
> should we change the API endpoint to return integers already?
A dedicated VMID return property, i.e. that always will just contain the
VMID (not like "id" from /cluster/resources/ which depends on the
resource type) should indeed always be an integer, so changing the type
in the API seems alright to me.
_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel
^ permalink raw reply [flat|nested] 4+ messages in thread
* [pve-devel] applied: [PATCH manager] ui: sdn: ipam/dhcp: allow sorting by guest ID
2025-08-01 9:26 [pve-devel] [PATCH manager] ui: sdn: ipam/dhcp: allow sorting by guest ID Fiona Ebner
2025-08-01 9:45 ` Fiona Ebner
@ 2025-08-01 15:38 ` Thomas Lamprecht
1 sibling, 0 replies; 4+ messages in thread
From: Thomas Lamprecht @ 2025-08-01 15:38 UTC (permalink / raw)
To: pve-devel, Fiona Ebner
On Fri, 01 Aug 2025 11:26:18 +0200, Fiona Ebner wrote:
> Previously, sorting would not apply to the leaves of the tree.
>
>
Applied, thanks!
[1/1] ui: sdn: ipam/dhcp: allow sorting by guest ID
commit: 732d12184b9a8270defb87c2557e8573f0ed0d52
_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2025-08-01 15:37 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-08-01 9:26 [pve-devel] [PATCH manager] ui: sdn: ipam/dhcp: allow sorting by guest ID Fiona Ebner
2025-08-01 9:45 ` Fiona Ebner
2025-08-01 11:19 ` Thomas Lamprecht
2025-08-01 15:38 ` [pve-devel] applied: " Thomas Lamprecht
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox