Re: [galaxy-dev] User list and disk space?

2011-06-16 Thread Peter Cock
On Thu, Jun 9, 2011 at 4:20 PM, Nate Coraor wrote: > Peter Cock wrote: >> Hi Nate, >> >> Since you're looking at this kind of thing, would the "Saved Histories" >> page be worth updating to show the size on disk of each history? As >> a Galaxy user that seems moderately useful - although perhaps m

Re: [galaxy-dev] User list and disk space?

2011-06-09 Thread Nate Coraor
Peter Cock wrote: > On Tue, May 17, 2011 at 2:21 PM, Nate Coraor wrote: > > Peter Cock wrote: > >> > >> That sounds really useful - it is something that you plan on adding > >> to Galaxy officially? > > > > Yes, I'm working on adding a lot of user- and admin- side access to > > various numbers abo

Re: [galaxy-dev] User list and disk space?

2011-06-09 Thread Peter Cock
On Tue, May 17, 2011 at 2:21 PM, Nate Coraor wrote: > Peter Cock wrote: >> >> That sounds really useful - it is something that you plan on adding >> to Galaxy officially? > > Yes, I'm working on adding a lot of user- and admin- side access to > various numbers about disk usage (used by histories,

Re: [galaxy-dev] User list and disk space?

2011-05-17 Thread Louise-Amelie Schmitt
Looks like it's working, a couple of values were reduced :) Thank you so much!!! L-A Greg Von Kuster wrote: Louise, The original code would not eliminate a dataset file that was pointed to by a LibraryDatasetDatasetAssociation, and then imported from the data library into the user's histor

Re: [galaxy-dev] User list and disk space?

2011-05-17 Thread Nate Coraor
Peter Cock wrote: > > That sounds really useful - it is something that you plan on adding > to Galaxy officially? Yes, I'm working on adding a lot of user- and admin- side access to various numbers about disk usage (used by histories, used by deleted data, etc. and disk quotas. I hope to have th

Re: [galaxy-dev] User list and disk space?

2011-05-17 Thread Greg Von Kuster
Possibly, but it would require an enable flag in the config since instances with hundreds of users could pose problems with rendering delays. If someone will proved the precise specs for what yo9u want, I'll add it to my list, but it will be awhile before I get to ti. For example, should data

Re: [galaxy-dev] User list and disk space?

2011-05-17 Thread Greg Von Kuster
Louise, The original code would not eliminate a dataset file that was pointed to by a LibraryDatasetDatasetAssociation, and then imported from the data library into the user's history, creating a HistoryDatasetAssociation that points to the same file. I've added a bit of code below that should

Re: [galaxy-dev] User list and disk space?

2011-05-17 Thread Peter Cock
>> On May 16, 2011, at 10:18 AM, Louise-Amelie Schmitt wrote: >> >> Hello >> >> I would like to add a column in the admin panel's user list with the sum of >> the file size of every dataset in each user's histories that don't belong to >> any ibrary. >> >> Is there a way to do that? On Mon, May 16

Re: [galaxy-dev] User list and disk space?

2011-05-17 Thread Louise-Amelie Schmitt
Thank you so much!!! It works really fine! I suspected something akin to that but I couldn't find the right attributes. But I still have a question: It comprises the datasets stored in libraries right? Is there a way to ignore them? Thanks again, L-A Greg Von Kuster wrote: Hello Louise,

Re: [galaxy-dev] User list and disk space?

2011-05-16 Thread Greg Von Kuster
Hello Louise, I've pasted a diff below for the file ~/lib/galaxy/web/controller/admin.py that will provide what you want, I believe. I didn't have time to fully test, but it gives you the idea. You can make things prettier by wrapping the returned value in galaxy.datatypes.data.nice_size dif