This is an automated email from the ASF dual-hosted git repository.

jackie pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pinot.git


The following commit(s) were added to refs/heads/master by this push:
     new 9069fe294c UI: show partial index in reload status (#11913)
9069fe294c is described below

commit 9069fe294c8e149d3b3379c11be1efb026ff7a99
Author: Jayesh Choudhary <[email protected]>
AuthorDate: Tue Oct 31 23:29:20 2023 +0530

    UI: show partial index in reload status (#11913)
---
 .../app/components/Homepage/Operations/ReloadStatusOp.tsx     | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

diff --git 
a/pinot-controller/src/main/resources/app/components/Homepage/Operations/ReloadStatusOp.tsx
 
b/pinot-controller/src/main/resources/app/components/Homepage/Operations/ReloadStatusOp.tsx
index 696b23fc20..6efd8e3596 100644
--- 
a/pinot-controller/src/main/resources/app/components/Homepage/Operations/ReloadStatusOp.tsx
+++ 
b/pinot-controller/src/main/resources/app/components/Homepage/Operations/ReloadStatusOp.tsx
@@ -18,7 +18,7 @@
  */
 
 import React, { useEffect, useState } from 'react';
-import { CircularProgress, createStyles, DialogContent, DialogContentText, 
Link, makeStyles, Paper, Tab, Table, TableBody, TableCell, TableContainer, 
TableHead, TableRow, Tabs, Theme, withStyles} from '@material-ui/core';
+import { CircularProgress, createStyles, DialogContent, DialogContentText, 
Link, makeStyles, Paper, Tab, Table, TableBody, TableCell, TableContainer, 
TableHead, TableRow, Tabs, Theme, Tooltip, withStyles} from '@material-ui/core';
 import Dialog from '../../CustomDialog';
 import CloseIcon from '@material-ui/icons/Close';
 import CheckIcon from '@material-ui/icons/Check';
@@ -29,6 +29,7 @@ import CustomDialog from '../../CustomDialog';
 import PinotMethodUtils from '../../../utils/PinotMethodUtils';
 import CustomCodemirror from '../../CustomCodemirror';
 import SearchBar from '../../SearchBar';
+import RemoveCircleIcon from '@material-ui/icons/RemoveCircle';
 
 const useStyles = makeStyles((theme: Theme) =>
   createStyles({
@@ -49,6 +50,9 @@ const useStyles = makeStyles((theme: Theme) =>
     },
     jobDetailsLoading: {
       alignSelf: "center"
+    },
+    yellowColor: {
+      color: theme.palette.warning.main
     }
   })
 );
@@ -232,8 +236,11 @@ export default function ReloadStatusOp({
                             let iconElement = null;
                             if(indexObj[o] === 0){
                               iconElement = <CloseIcon 
className={classes.redColor}/>;
-                            } else {
+                            } else if(indexObj[o] === 
reloadStatusData?.["totalOnlineSegments"]) {
                               iconElement = <CheckIcon 
className={classes.greenColor}/>;
+                            } else {
+                              const tooltipText = `Index present in 
${indexObj[o]} / ${reloadStatusData?.["totalOnlineSegments"]} segments`;
+                              iconElement = <Tooltip placement='top' 
title={tooltipText}><RemoveCircleIcon className={classes.yellowColor} 
/></Tooltip>
                             }
                             return (
                               <StyledTableCell align="center" key={i}>


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to