smitajoshi12 commented on code in PR #6894:
URL: https://github.com/apache/ozone/pull/6894#discussion_r1670827675
##########
hadoop-ozone/recon/src/main/resources/webapps/recon/ozone-recon-web/src/views/diskUsage/diskUsage.tsx:
##########
@@ -295,165 +295,167 @@ export class DiskUsage extends
React.Component<Record<string, object>, IDUState>
keys.push('Entity Type');
values.push(summaryResponse.type);
- if (summaryResponse.countStats.type === 'KEY') {
- const keyEndpoint = `/api/v1/namespace/du?path=${path}&replica=true`;
- const { request: metadataRequest, controller: metadataNewController }
= AxiosGetHelper(keyEndpoint, cancelKeyMetadataSignal);
- cancelKeyMetadataSignal = metadataNewController;
- metadataRequest.then(response => {
- keys.push('File Size');
- values.push(byteToSize(response.data.size, 3));
- keys.push('File Size With Replication');
- values.push(byteToSize(response.data.sizeWithReplica, 3));
- console.log(values);
-
- this.setState({
- showPanel: true,
- panelKeys: keys,
- panelValues: values
+ if (summaryResponse.status !== 'INITIALIZING') {
+ if (summaryResponse.countStats.type === 'KEY') {
+ const keyEndpoint = `/api/v1/namespace/du?path=${path}&replica=true`;
Review Comment:
@ArafatKhan2198
api/v1/namespace/summary?path=/vol-0-11934/bucket-0-68561/key1
{
"path": "",
"type": "KEY",
"countStats": {
"numVolume": -1,
"numBucket": -1,
"numDir": -1,
"numKey": 0
},
"status": "OK"
}
how we should triggger type inside countStats object from UI I can see it is
in summary response. Can you check from Backend changes need to done from
backend or UI.
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]