Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 436890

Summary: Provide disk usage information for the user
Product: [ECD] Orion Reporter: Anthony Hunter <ahunter.eclipse>
Component: ServerAssignee: Anthony Hunter <ahunter.eclipse>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: P3    
Version: 6.0   
Target Milestone: 6.0 RC1   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
Screen shot of the user list page
none
Screen shot of the user profile page none

Description Anthony Hunter CLA 2014-06-06 17:57:24 EDT
It would be useful to let the user know how much disk space his account is using. The total disk usage for a user could be used to provide a quota mechanism. Apparently in the past a user loaded many GB of images on the Orion server so we need a way to prevent this is the future.
Comment 1 Anthony Hunter CLA 2014-06-06 18:27:23 EDT
Created attachment 244054 [details]
Screen shot of the user list page
Comment 2 Anthony Hunter CLA 2014-06-06 18:28:01 EDT
Created attachment 244055 [details]
Screen shot of the user profile page
Comment 3 Anthony Hunter CLA 2014-06-06 18:28:49 EDT
The user profile now displays the disk usage as well as then it was last calculated. The user list also has the disk usage column. See the two attached screen shots.

To turn on the enhancement you need to add:
orion.file.diskUsageEnabled=true
to your orion.conf. Disk usage is disabled by default.

Once enabled, a disk usage job runs once every twelve hours and calculates the disk usage for each user. The values are stored for reuse in the user profile (user.json).

The changes are with commits:
http://git.eclipse.org/c/orion/org.eclipse.orion.client.git/commit/?id=0f036a03e41ceebea220c18a3ac5a52f42c6c99c
http://git.eclipse.org/c/orion/org.eclipse.orion.server.git/commit/?id=a072a763a54e072bf4915e1b9dcb03aa89b15639