-
-
Notifications
You must be signed in to change notification settings - Fork 4.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
Do not show full storage notification to users with 0 Bytes quota #43544
Do not show full storage notification to users with 0 Bytes quota #43544
Conversation
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.
Nice catch
/compile rebase / |
/backport to stable28 |
This comment was marked as resolved.
This comment was marked as resolved.
7d3e563
to
1806b63
Compare
This comment was marked as resolved.
This comment was marked as resolved.
// Warn the user if the available storage is 0 on page load, except for users with 0 B quota | ||
if (this.storageStats?.free <= 0 && this.storageStats?.quota != 0) { |
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.
// Warn the user if the available storage is 0 on page load, except for users with 0 B quota | |
if (this.storageStats?.free <= 0 && this.storageStats?.quota != 0) { | |
// Warn the user if the available storage is 0 on page load, except for users with 0 B or unlimited quota | |
if (this.storageStats?.free <= 0 && this.storageStats?.quota != 0 && this.storageStats?.quota != -3) { |
I think something like the above can fix #43280 here too at the other end of the quota spectrum (an unlimited one).
When the quota is unlimited, quota
should be -3
here e.g. SPACE_UNLIMITED via getStorageInfo()
and getUserQuota()
et al.
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.
yes, I think this makes sense
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.
Then let's check for quota greater or equal to 0. That way we also ignore negative quotas
Resolves nextcloud#43535 Signed-off-by: jkhradil <jkhradil@gmail.com>
1806b63
to
ffd4f0c
Compare
This comment was marked as outdated.
This comment was marked as outdated.
/compile |
…quotas Fixes nextcloud#43535 Fixes nextcloud#43280 Replaces nextcloud#43544 Signed-off-by: Josh <josh.t.richards@gmail.com> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com> Signed-off-by: d.kudrinskiy <hardviper@icloud.com>
Summary
Do not show “Your storage is full, files can not be updated or synced anymore!” notification to users with quota set to 0 Bytes.
Checklist