Interface bug : When you press the "Template" button, they get randomnly re-sorted every time

shodan

Member
Sep 1, 2022
98
33
23
So to illustrate

When you press this "Templates" button

https://i.imgur.com/mnI7LFp.png

The list of templates that appears, is randomly sorted.
So you get to play a little "find the template minigame" each time

I think the solution would be classical alphanumeric sort. Although if feeling spicy, reverse alphanumeric sort would be perfectly acceptable !

Here is a further illustration of the problem.
Where I click several times on the "Templates" button

https://i.imgur.com/hNmmcN9.png
https://i.imgur.com/BSmi0xV.png
https://i.imgur.com/FvEaIQN.png
https://i.imgur.com/v3mCiqB.png
 
And there is another thing, the "Templates" dialog does not tell you which templates you have already downloaded.
Nor which is outdated.

https://i.imgur.com/zvd3SoO.png

So suppose you want to download all of them.
Every time you click Template, you get a list with a random order.
Now you have to go line by line and ask,

is that one downloaded ? yes/no

And you have to do this, go through every line, for every template that is available.

Imagine there were 100 of them. If particularly unlucky, you would have to evaluate factorial 100 lines by yourself !

Which according to google is science number 9.332622e+157 evaluations

Fortunately there are only 26, so only 4.0329146e+26 evaluation at the worse for me !
 
If it is okay for you to use the command line: pveam available lists downloadable templates and "... download" will fetch them. It should be easy to build a loop to download all...

Best regards
 
Hi,
So to illustrate

When you press this "Templates" button

https://i.imgur.com/mnI7LFp.png

The list of templates that appears, is randomly sorted.
So you get to play a little "find the template minigame" each time

I think the solution would be classical alphanumeric sort. Although if feeling spicy, reverse alphanumeric sort would be perfectly acceptable !

Here is a further illustration of the problem.
Where I click several times on the "Templates" button

https://i.imgur.com/hNmmcN9.png
https://i.imgur.com/BSmi0xV.png
https://i.imgur.com/FvEaIQN.png
https://i.imgur.com/v3mCiqB.png
you can click on the Package column header. Then they will be sorted by name and the setting should be persistent for the next times you open it.
 
Yes, that worked and yes, it persists !

Thanks

I think it would be best if it were ascending alphanumeric sort by default !
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!