Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show color bar in quota column of % used space #117

Closed
gusta70 opened this issue Jun 15, 2016 · 11 comments
Closed

Show color bar in quota column of % used space #117

gusta70 opened this issue Jun 15, 2016 · 11 comments

Comments

@gusta70
Copy link

gusta70 commented Jun 15, 2016

in settings/users new feature:
show color bar of % user used space of quota
http://i.imgur.com/ayvNt6L.png

@MariusBluem
Copy link
Member

@MorrisJobke
Copy link
Member

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
Copy link
Member

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
Copy link
Member

@icewind1991 Is it nowadays easier to get the quota?

@johanehnberg
Copy link

johanehnberg commented 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:

grep InsufficientStorage nextcloud.log | grep `date '+%Y-%m-%d' -d yesterday` | jq -r .time,.user | paste - - | uniq

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
Copy link

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).

@enoch85
Copy link
Member

enoch85 commented 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:
07ef3174-c58b-11e3-91f0-dda715afda5e

Also a SQL query to get the used space for all users:
owncloud/core#1344 (comment) & owncloud/core#1344 (comment)

@soamz
Copy link

soamz commented Jun 4, 2017

is it implemented yet ?

How do we see users usage ?

@MorrisJobke
Copy link
Member

is it implemented yet ?

As this ticket is still open: no.

How do we see users usage ?

Currently not possible.

@icewind1991
Copy link
Member

PR is here: #5342

@linucksrox
Copy link

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.

@MorrisJobke MorrisJobke added this to the Nextcloud 13 milestone Jul 5, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

9 participants