-
Notifications
You must be signed in to change notification settings - Fork 2.3k
fix(trash bin): Improve clarity of files retention config #13017
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
Conversation
6da12de to
dc88165
Compare
come-nc
left a comment
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.
I would keep the parenthesis or some form of it, to make it clear that deletion may never happen.
Also, quota can be infinite, in which case it will still delete files when storage is full I think?
I think deletion will always happen if the quota is reached.
I am not sure, at least I haven't found any bit of logic for that. I think expiration is only based on user quota. |
But quota may never be reached. That is what is clearer with the previous parenthesis content.
Hum, I don’t know, I know that shown quota is storage space when no quota is set, but I do not know for expiration. It should be fixed if it’s not currently the case though, as there is no reason to not expire or full storage if we do it for full quota? |
dc88165 to
2cca00d
Compare
Signed-off-by: Louis Chemineau <[email protected]> Signed-off-by: Louis Chmn <[email protected]>
2cca00d to
0472da8
Compare
|
Changes need to be done in server: nextcloud/server#55834 |
@artonge @come-nc mind giving a look at nextcloud/server#55742 which should address that? |
@tcitworld I don't get your changes in that linnked PR. I understand that However, it seems to make sense to replace the call to Can you clarify if I understand your changes properly? And you think that they still make sense? Also, would definitely appreciate your feedback on the doc update :). |
Indeed, thanks for your vigilance! I simply completely missed that I'll revert However, my initial issue still stands. If there's no quota set and little or no available space left on disk then the trashbin is not cleaned. Possibly there's a need for a This whole thing needs a huge refactoring 😭 |
Make sense, thanks!
Make sense too!
I don't think so. If there is no quota, then we don't need to compute the soft quota because we have "unlimited" space, no?
Yeah, the whole code is really hard to understand 🫂 |
I mean when we actually don't have unlimited space, when |
That would allow Nextcloud to free some space before actually having a filled disk? In other words, if a user stores more trashed files than 50% of the free disk space, then some files will be trashed for good. Not sure, I think for now we should stick to the documented behaviour instead of preemptively deleting files.
|
See nextcloud/documentation#13017 (comment) Signed-off-by: Thomas Citharel <[email protected]>
See nextcloud/documentation#13017 (comment) Signed-off-by: Thomas Citharel <[email protected]>
See nextcloud/documentation#13017 (comment) Signed-off-by: Thomas Citharel <[email protected]>
No description provided.