[full-ci] Add per-user storage view#40657
Conversation
|
Changed target to release-10.12 |
|
💥 Acceptance tests pipeline webUISettingsMenu-chrome-mariadb10.2-php7.4 failed. The build has been cancelled. |
to re-trigger CI
Unit tests are failing in CI and locally for me. Is the code different from what was in the previous PR #40506 ? |
|
The code should be exactly the same and it proves to work locally for me. |
"somebody" needs to investigate why those unit tests are failing, and fix them. |
|
From my point of view, the used space is always given in MB. This is not user friendly in my view for over 100 GB. A possible solution can be |
Thanks for the pointer - indeed it seems better to use |
|
In my opinion the tests fails because in the test an integer is declared as correct value for storageUsed, but the return value of the system is a string like "0 MB" or the null value of humanFileSize (e.g. "0 B"). Additional hint: the value for 0 Bytes of humanFileSize and the value for errors should be the same. |
|
I have adjusted the string for not-computed storage to 0 B. This is consistent with the case where user has no files at all --> in the personal settings page is currently reported Additionally, I have increased the log level to |
|
@jvillafanez do you see something in the settings/Controller/UsersController.php code which could explain the 16 failing tests? |
|
The filesystem is likely mocked or not initialized in the tests. |
|
@pako81 isnt it better to use Metrics App for this? |
|
@pako81 take decision and close if so or let me know and I make tests work. |
|
@mrow4a is right, this information is more logically found in the metrics app. |

Description
Add per-user storage view
Related Issue
Motivation and Context
Make possible to visualise used storage on per-user basis
How Has This Been Tested?
Storage Usedwill display the amount of used storage for every user. This option can be also opted in/out underSettingsin order to align with all other available users' options.Types of changes
Checklist: