You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Show color bar in quota column of % used space #117
The problem here was that it wasn't easy to fetch all the quota without mounting all the home directories of each user. I think we have done a lot there. Maybe worth to look into this again.
Maybe it´s possible to compute the Quota of each user in a background cronjob? Just add a "last_quota_calc" column to the users table. If last_quota_calc < last_action in activity, the quota is recalculated.
The color bar could have two levels: one for active storage (equivalent of du -sh username/files) and another for total storage which includes versions, trashbin and any other app that makes use of remaining quota (somewhat similar to du -sh username).
Thanks @icewind1991! This is totally awesome, and I really like how you can hover to get a more accurate idea of the used space. One small thing I noticed is that the last login column starts to overlap at about 1390px width or less in Chrome, but I bet some CSS magic could fix that.
Activity
MariusBluem commentedon Jun 15, 2016
owncloud/core#12602
cc @MorrisJobke @LukasReschke
MorrisJobke commentedon Jun 15, 2016
The problem here was that it wasn't easy to fetch all the quota without mounting all the home directories of each user. I think we have done a lot there. Maybe worth to look into this again.
Spacefish commentedon Jun 19, 2016
Maybe it´s possible to compute the Quota of each user in a background cronjob? Just add a "last_quota_calc" column to the users table. If last_quota_calc < last_action in activity, the quota is recalculated.
MorrisJobke commentedon Jan 28, 2017
@icewind1991 Is it nowadays easier to get the quota?
johanehnberg commentedon Jan 28, 2017
For those looking for a way to at least detect when someone hits their limit, here is a one-liner that you can put in cron.daily or similar:
It checks for any user who maxed out during the previous day. It requires jq to be installed beyond what is usually included in distros.
johanehnberg commentedon Jan 28, 2017
The color bar could have two levels: one for active storage (equivalent of
du -sh username/files) and another for total storage which includes versions, trashbin and any other app that makes use of remaining quota (somewhat similar todu -sh username).enoch85 commentedon Apr 27, 2017
It's possible at least in ownCloud to get user quota via an API call: owncloud/core#26829 (comment)
owncloud/core#1344
And a better screenshot:

Also a SQL query to get the used space for all users:
owncloud/core#1344 (comment) & owncloud/core#1344 (comment)
soamz commentedon Jun 4, 2017
is it implemented yet ?
How do we see users usage ?
MorrisJobke commentedon Jun 4, 2017
As this ticket is still open: no.
Currently not possible.
icewind1991 commentedon Jun 12, 2017
PR is here: #5342
linucksrox commentedon Jun 12, 2017
Thanks @icewind1991! This is totally awesome, and I really like how you can hover to get a more accurate idea of the used space. One small thing I noticed is that the last login column starts to overlap at about 1390px width or less in Chrome, but I bet some CSS magic could fix that.