[pve-devel] [PATCH manager] storage GUI: fix unintuitive sorting order

Fabian Ebner f.ebner at proxmox.com
Mon Feb 21 09:32:53 CET 2022


Am 18.02.22 um 11:42 schrieb Matthias Heiserer:
> The backups in the 'Backups' table in Storages are now initially
> sorted by column 'Name' ascending.
> 
> Previously, they were first sorted by 'vmid' descending, then by date
> descending. This was unintuitive as 'vmid' doesn't exist as column
> in the GUI, and only 'Date' displayed a sorting arrow.
> 
> Signed-off-by: Matthias Heiserer <m.heiserer at proxmox.com>
> ---
>  www/manager6/storage/BackupView.js | 6 +-----
>  1 file changed, 1 insertion(+), 5 deletions(-)
> 
Please note that the order was recently intentionally changed to be like
that, see commit 58f4e6ac387561a16ec370812083d60a12dc4cfe

That said, you do have a point. One way to improve the situation might
be to add a vmid column, but we could also think about using a tree view
for backups instead.

@Thomas: Would the latter be okay for you?

Not related to your change, but some more context:

PVE.storage.BackupView is currently derived from
PVE.storage.ContentView, but actually, it caused a lot of special
handling to be added to that base class. If PVE.storage.BackupView were
it's own thing (which is essentially implied if we go with the tree view
approach), PVE.storage.ContentView should also get simpler again.

There also is PVE.grid.BackupView which is used for backups of a single
guest and IMHO it should be merged with the other one, with a few config
options to account for the small differences in behavior.





More information about the pve-devel mailing list