-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Users disk usage #1344
Comments
I'd like this feature implemented, from a company standpoint looking at employees it would be nice to know. |
Agree @kiranos ! |
Should be fixed with #7151 (duplicating) |
I don't think this ever made it in, it isn't in 8.2 at least... Am I wrong @blizzz ? |
@jospoortvliet I see it the same way, but it's also not checked in the checklist section "Additional Features" in #7151 (which has not been updated for a while now) |
No, it's not in and there are no plans to get it into 9.0 either. |
Ok so this should be kept open, unless we never want to do it and wouldn't accept patches (but I assume that that isn't the case and anybody can send a patch which takes care of this if they want). |
Removing junior job tag, this is tricky and I remember @icewind1991 saying that the APIs aren't quite ready to make this work efficiently. |
This slightly twisted Mysql query can return the used space for all users:
I still wish there was a way to directly retrieve home storages and user ids from oc_storages... |
(which obviously wouldn't work for custom storage/cache implementations if someone decided to not use oc_filecache) |
are there any plans to include this functionality in the upcoming versions? |
Not for 9.2. But if anyone volunteers to work on it and submit a PR, we can include it.
|
|
Looks like the provisioning API already returns the usage quota. |
Acceptance criteria from the closed duplicate ticket: As an admin, I want to be able to easily and quickly see the current quota usage of all of the users on the system. Acceptance Criteria: |
The query has a small mistake. It must be "fc.path", not "fc.name". Here: select m.user_id, fc.size from oc_mounts m, oc_filecache fc, oc_storages s where m.mount_point=concat('/', m.user_id, '/') and s.numeric_id=m.storage_id and fc.storage=m.storage_id and fc.path='files'; |
And with sorted human-size: select m.user_id, concat(convert(fc.size / 1024 / 1024, integer), 'MB') as size from oc_mounts m, oc_filecache fc, oc_storages s where m.mount_point=concat('/', m.user_id, '/') and s.numeric_id=m.storage_id and fc.storage=m.storage_id and fc.path='files' order by fc.size desc; |
Hi, is there any chance of this being followed up as it would be very useful to be able to see user quota usage? |
@ownclouders if community proposes PR with this, would it be accepted, or there is some (personal info?) reason why it should not be added? |
Yes, you're more than welcome to go for a PR, absolutely. The solution needs to work performant in installations with several thousands of users. That's the main pain point, I guess. |
Was implemented in the metrics app as an enterprise feature. |
When viewing the user list (settings/users.php) it would be nice to see each users current disk consumption / usage preferably both as a MB/GB number and as a percentage of quota (if set)
The text was updated successfully, but these errors were encountered: