File tree Expand file tree Collapse file tree 3 files changed +7
-5
lines changed
frontend/src/components/Brokers/BrokersList Expand file tree Collapse file tree 3 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -79,19 +79,19 @@ type OnlinePartitionsProps = CellContext<
7979> ;
8080
8181export const OnlinePartitions = ( { row } : OnlinePartitionsProps ) => {
82- const { onlinePartitionCount , offlinePartitionCount } = row . original ;
82+ const { count , inSyncPartitions } = row . original ;
8383
8484 if (
85- onlinePartitionCount === undefined ||
86- offlinePartitionCount === undefined
85+ count === undefined ||
86+ inSyncPartitions === undefined
8787 ) {
8888 return null ;
8989 }
9090
9191 return (
9292 < ColoredCell
93- value = { onlinePartitionCount }
94- attention = { offlinePartitionCount > 0 }
93+ value = { inSyncPartitions }
94+ attention = { inSyncPartitions !== count }
9595 />
9696 ) ;
9797} ;
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ export type BrokersTableRow = {
77 partitionsLeader : number | undefined ;
88 partitionsSkew : number | undefined ;
99 leadersSkew : number | undefined ;
10+ inSyncPartitions : number | undefined ;
1011 onlinePartitionCount : number | undefined ;
1112 offlinePartitionCount : number | undefined ;
1213 activeControllers : number | undefined ;
Original file line number Diff line number Diff line change @@ -40,6 +40,7 @@ export const getBrokersTableRows = ({
4040 partitionsLeader : broker . partitionsLeader ,
4141 partitionsSkew : broker . partitionsSkew ,
4242 leadersSkew : broker . leadersSkew ,
43+ inSyncPartitions : broker . inSyncPartitions ,
4344 onlinePartitionCount,
4445 offlinePartitionCount,
4546 activeControllers,
You can’t perform that action at this time.
0 commit comments