Abhishek Pal created HDDS-12037:
-----------------------------------
Summary: [UI] Quota in Namespace should not be in bytes in Disk
Usage metadata
Key: HDDS-12037
URL: https://issues.apache.org/jira/browse/HDDS-12037
Project: Apache Ozone
Issue Type: Bug
Reporter: Abhishek Pal
Quota in namespace is not in any units. It should display the number as a count.
Currently it is shown as Bytes/MB/GB etc.
This should just be a number.
This calculation happens in *src/v2/components/duMetadata/duMetadata.tsx*
[here|https://github.com/apache/ozone/blob/e8d96f422efe094b9191dc2d65459a29e8a8faac/hadoop-ozone/recon/src/main/resources/webapps/recon/ozone-recon-web/src/v2/components/duMetadata/duMetadata.tsx#L183C7-L184C63]
Here in the:
{code}
byteToSize(objectInfo.quotaInNamespace, 3)
{code}
byteToSize is parsing the number to the appropriate unit.
We should directly give this info.
{code}
values.push(objectInfo.quotaInNamespace)
{code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]