-
Notifications
You must be signed in to change notification settings - Fork 363
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
fix: [M3-8740] - Convert Object Storage size from GiB
to GB
in frontend
#11293
base: develop
Are you sure you want to change the base?
fix: [M3-8740] - Convert Object Storage size from GiB
to GB
in frontend
#11293
Conversation
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.
@hasyed-akamai You might need to adjust the broken unit tests w.r.t your changes.
@@ -93,7 +93,7 @@ export const FileUpload = React.memo((props: FileUploadProps) => { | |||
})} | |||
variant="body1" | |||
> | |||
{readableBytes(props.sizeInBytes).formatted} | |||
{readableBytes(props.sizeInBytes, { base10: true }).formatted} |
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.
Nit: You could add a comment to provide context for enabling base10.
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.
Optional: this comment is not super clear. Essentially what you are doing here is converting from binary units (GiB) to decimal units (GB).
Coverage Report: ✅ |
Cloud Manager UI test results🎉 462 passing tests on test run #6 ↗︎
|
@@ -93,7 +93,7 @@ export const FileUpload = React.memo((props: FileUploadProps) => { | |||
})} | |||
variant="body1" | |||
> | |||
{readableBytes(props.sizeInBytes).formatted} | |||
{readableBytes(props.sizeInBytes, { base10: true }).formatted} |
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.
Optional: this comment is not super clear. Essentially what you are doing here is converting from binary units (GiB) to decimal units (GB).
Description 📝
This PR changes the Object Storage bucket size numbers from
GiB
toGB
in the frontend to avoid confusion during migration.Previously, the size numbers were displayed in
GiB
, and now they are displayed inGB
.Changes 🔄
GiB
toGB
in the frontend.Target release date 🗓️
N/A
Preview 📷
How to test 🧪
Prerequisites
Reproduction steps
GB
in the frontend.Verification steps
GB
in the frontend.As an Author I have considered 🤔
Check all that apply