Repository navigation
Fixed watcher to also update the owner's folder sizes - #5701
Conversation
Note that the root folder size is mandatory for quota calculation.
|
as this touches the very core of owncloud I'd love to see unit tests covering this scenario - thx |
|
Thanks a lot for looking into that 👍 |
|
Makes sense, I'll add unit tests now that I know that you guys agree with my approach 😄 |
- Added base class for sharing unit tests - Added unit tests for shared files watched to check for folder size propagation
|
@DeepDiver1975 I've added unit tests. |
|
I'll have a look into that test failure. Looks like something isn't being cleaned up properly. |
|
Test passed. |
|
To test this, do the following:
Before the fix, you'd see 100 MB as the root folder size wasn't updated. |
|
👍 |
Fixed watcher to also update the owner's folder sizes
This makes sure that when people upload files into someone's directory, the owner's folder's sizes is correctly updated in the DB.
Note that the root folder size is mandatory for quota calculation, which will be needed for the future fix of #5697
Please review @DeepDiver1975 @icewind1991 @schiesbn @karlitschek