Dogface2k opened a new pull request, #13831: URL: https://github.com/apache/cloudstack/pull/13831
Fixes #13820. ### Summary Make the volume size shown on an instance's Volumes tab use the correct `GiB` unit, consistent with the main Storage > Volumes list. ### Root cause Both views receive the volume size in bytes and divide it by `1024³`. That produces a gibibyte value. The main volume list labels the result `GiB`, while `VolumesTab.vue` incorrectly labelled the same calculation `GB`. ### Change - Correct the instance Volumes tab label from `GB` to `GiB`. - Add a focused component regression test proving that a 2 GiB byte value renders as `2.00 GiB` and not `2.00 GB`. The numeric conversion and API behaviour are unchanged. ### Validation - Sensitivity check: the focused regression fails against the unfixed `4.22` code because it renders `2.00 GB`. - Focused regression: 1 passed. - Full UI unit suite: 176 passed. - UI lint: passed with no errors. - Production UI build: completed successfully using Node 16.20.2. ### Scope and overlap check The change is limited to `VolumesTab.vue` and its new focused test. At publication time, #13820 had no assignee, comments, linked branch, or matching pull request, and no open pull request changed `VolumesTab.vue`. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
