-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
perf: use more optimized way to get user storage info in ocs user info #49476
Conversation
1706c3e
to
e004ce7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
quota_include_external_storage
is no longer read, is that a regression?
Also, lastSeenQuotaUsage
is no more updated, we could fill it with the computed quota, I think?
e004ce7
to
a4ed1b0
Compare
made it fallback to the old implementation when |
906b89b
to
5958fcc
Compare
5958fcc
to
1a913a8
Compare
…o when possible Signed-off-by: Robin Appelman <robin@icewind.nl>
1a913a8
to
118ff88
Compare
/backport to stable30 |
/backport to stable29 |
/backport to stable28 |
Canceling the backports as this contain a subtle behavior change of the API. |
Instead of doing a full setup etc. We just get quota directly from the user, and the used space directly from the cache.
This means that we only need to setup the home storage for any user, instead of all storages the user has access to.
This does lead to a minor change in behavior, that for users with unlimited quota, the reported quota no longer falls back to the free space in the data directory. As far as I can tell these fields aren't used in the accounts ui and that behavior isn't something that can be relied on anyway, since s3 based setups (and various others) won't have this behavior anyway.