himanish-star commented on code in PR #15400:
URL: https://github.com/apache/pinot/pull/15400#discussion_r2024546878


##########
pinot-controller/src/main/resources/app/pages/TenantDetails.tsx:
##########
@@ -445,6 +450,17 @@ const TenantPageDetails = ({ match }: 
RouteComponentProps<Props>) => {
     }
   };
 
+  const handleRebalanceTableStatus = async () => {
+    try{
+      setShowRebalanceServerStatus(true);
+      const rebalanceServerJobs = await 
PinotMethodUtils.fetchTableJobs(tableName, "TABLE_REBALANCE");
+      setRebalanceTableJobsData(rebalanceServerJobs as 
RebalanceTableSegmentJobs);
+    } catch(error) {
+      dispatch({type: 'error', message: error, show: true});
+      setShowRebalanceServerStatus(false);
+    }
+  };
+

Review Comment:
   Moved API call to dialog!



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