Skip to content

Conversation

@JammingBen
Copy link
Contributor

Fixes the size mismatch between a folder in the file list and the accumulated size inside the folder beneath the file list.

The latter now takes the size of the current folder and only falls back to manually accumulating the size if no current folder given. Also removes the totalResourcesSize computed from the resource store because it's only used in one place and we don't want to encourage others to use this method of calculating the current folder's size.

fixes #11806

Fixes the size mismatch between a folder in the file list and the accumulated size inside the folder beneath the file list.

The latter now takes the size of the current folder and only falls back to manually accumulating the size if no current folder given. Also removes the `totalResourcesSize` computed from the resource store because it's only used in one place and we don't want to encourage others to use this method of calculating the current folder's size.
@JammingBen JammingBen self-assigned this Oct 23, 2024
@JammingBen JammingBen requested a review from dschmidt October 23, 2024 11:19
@JammingBen JammingBen force-pushed the fix/folder-size-mismatch branch from 85c7e99 to 446edcd Compare October 23, 2024 11:55
Removes the file size assertion step because the calculated size by the server might differ slightly.
@JammingBen JammingBen force-pushed the fix/folder-size-mismatch branch from 446edcd to 3db9c66 Compare October 23, 2024 14:00
@sonarqubecloud
Copy link

@JammingBen JammingBen merged commit 9534a17 into master Oct 24, 2024
@JammingBen JammingBen deleted the fix/folder-size-mismatch branch October 24, 2024 07:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

File size in the files list column mismatches the accumulated file size in the files list footer

3 participants