sravani-revuri commented on code in PR #12169:
URL: https://github.com/apache/ozone/pull/12169#discussion_r4786397436


##########
hadoop-ozone/recon/src/main/resources/webapps/recon/ozone-recon-web/src/views/diskUsage/diskUsage.tsx:
##########
@@ -268,7 +268,9 @@ export class DiskUsage extends 
React.Component<Record<string, object>, IDUState>
       return;
     }
 
-    const path = (curPath === '/') ? `${curPath}${subPath}` : 
`${curPath}/${subPath}`;
+    const duResponse = this.state.duResponse as unknown as IDUResponse;
+    const path = duResponse.subPaths?.[e.dataIndex]?.path

Review Comment:
   added logic to walk back unit a valid path is found. before this it did 
throw an error for OBS keys. 
   For example,
   /vol/buck/dir/keyname as /vol/buck/dir wasn't a valid path. happy to also 
remove this incase it is better to throw the error instead of hiding it.



-- 
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]

Reply via email to