jayeshchoudhary commented on code in PR #15584: URL: https://github.com/apache/pinot/pull/15584#discussion_r2049175562
########## pinot-controller/src/main/resources/app/pages/TenantDetails.tsx: ########## @@ -466,6 +466,20 @@ const TenantPageDetails = ({ match }: RouteComponentProps<Props>) => { const result = await PinotMethodUtils.rebalanceBrokersForTableOp(tableName); syncResponse(result); }; + + const handleRepairTable = () => { + setDialogDetails({ + title: 'Repair Table', + content: 'Are you sure want to repair the table?', + successCb: () => repairTable() + }); + setConfirmDialog(true); + }; + + const repairTable = async () => { + const result = await PinotMethodUtils.repairTableOp(tableName, tableType); + syncResponse(result); + }; Review Comment: handle error state too. -- 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: commits-unsubscr...@pinot.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org For additional commands, e-mail: commits-h...@pinot.apache.org