Re: [pve-devel] feature request : pve-manager tasks grid : keep running tasks on top ?

2015-06-10 Thread Alexandre DERUMIER
we have a record.data.pid for running tasks, maybe can we do something like 

I tested it, the order is fine, but the problem is that the grid is not 
refreshed


1)

new-task (start) : pid X
long-running task  : pid X
old tasks : pid 0

2)

new-task (finished) : pid 0
long-running task : pid X
old tasks : pid 0


Doing a f5 to refresh all

3)

long-running task : pid X
new-task (finished) : pid 0
old tasks : pid 0



- Mail original -
De: aderumier aderum...@odiso.com
À: Emmanuel Kasper e.kas...@proxmox.com
Cc: pve-devel pve-devel@pve.proxmox.com
Envoyé: Mercredi 10 Juin 2015 18:43:59
Objet: Re: [pve-devel] feature request : pve-manager tasks grid : keep running 
tasks on top ?

we have a record.data.pid for running tasks, maybe can we do something like 

sorters: [ 
{ 
property : 'pid', 
direction: 'DESC' 
} , 

{ 
property : 'starttime', 
direction: 'DESC' 
} 

? 



- Mail original - 
De: Emmanuel Kasper e.kas...@proxmox.com 
À: pve-devel pve-devel@pve.proxmox.com 
Envoyé: Mercredi 10 Juin 2015 11:36:17 
Objet: Re: [pve-devel] feature request : pve-manager tasks grid : keep running 
tasks on top ? 

Hello Stefan 
On 06/09/2015 09:07 PM, Stefan Priebe wrote: 
 
 Am 09.06.2015 um 20:15 schrieb Dietmar Maurer: 
 Sometimes some long running tasks (move disk for example), can take 
 hours, 
 and are lost inside the other logs, need to scroll to find them,... 
 
 I guess this is a bug then. I thought task sorting should 
 already keep running tasks on top. 
 
 +1 - no it does not 

It seems, we only sort the tasks at the momment according to starttime 

snippet from dc/Tasks.js 

var taskstore = new PVE.data.UpdateStore({ 
storeid: 'pve-cluster-tasks', 
model: 'pve-tasks', 
proxy: { 
type: 'pve', 
url: '/api2/json/cluster/tasks' 
}, 
sorters: [ 
{ 
property : 'starttime', 
direction: 'DESC' 
} 
] 
}); 



Stefan, could maybe you please make a bug report about that in 
bugzilla.proxmox.com ? At best the bug report should descrinbe what 
should be the optimal display order whan we have a mix of started tasks 
which are finished or not. 

Emmanuel 


___ 
pve-devel mailing list 
pve-devel@pve.proxmox.com 
http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel 
___ 
pve-devel mailing list 
pve-devel@pve.proxmox.com 
http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel 

___
pve-devel mailing list
pve-devel@pve.proxmox.com
http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel


Re: [pve-devel] feature request : pve-manager tasks grid : keep running tasks on top ?

2015-06-10 Thread Michael Rasmussen
On Wed, 10 Jun 2015 18:52:53 +0200 (CEST)
Alexandre DERUMIER aderum...@odiso.com wrote:

 
 I tested it, the order is fine, but the problem is that the grid is not 
 refreshed
 
 
Only way of solving this is to resort the grid every time a new row is
added.

-- 
Hilsen/Regards
Michael Rasmussen

Get my public GnuPG keys:
michael at rasmussen dot cc
http://pgp.mit.edu:11371/pks/lookup?op=getsearch=0xD3C9A00E
mir at datanom dot net
http://pgp.mit.edu:11371/pks/lookup?op=getsearch=0xE501F51C
mir at miras dot org
http://pgp.mit.edu:11371/pks/lookup?op=getsearch=0xE3E80917
--
/usr/games/fortune -es says:
He hated being thought of as one of those people that wore stupid
ornamental armour. It was gilt by association.
-- Terry Pratchett, Night Watch


pgpiUmOrNX1wp.pgp
Description: OpenPGP digital signature
___
pve-devel mailing list
pve-devel@pve.proxmox.com
http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel


[pve-devel] feature request : pve-manager tasks grid : keep running tasks on top ?

2015-06-09 Thread Alexandre DERUMIER
Hi,

As I see that Emmanuel is working on tasks display for extjs5,

a cool feature too add could be keeping running tasks on top the grid.


Sometimes some long running tasks (move disk for example), can take hours,
and are lost inside the other logs, need to scroll to find them,...


Keeping them on top could be a great improvement.


Alexandre

___
pve-devel mailing list
pve-devel@pve.proxmox.com
http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel