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<
79
79
> ;
80
80
81
81
export const OnlinePartitions = ( { row } : OnlinePartitionsProps ) => {
82
- const { onlinePartitionCount , offlinePartitionCount } = row . original ;
82
+ const { count , inSyncPartitions } = row . original ;
83
83
84
84
if (
85
- onlinePartitionCount === undefined ||
86
- offlinePartitionCount === undefined
85
+ count === undefined ||
86
+ inSyncPartitions === undefined
87
87
) {
88
88
return null ;
89
89
}
90
90
91
91
return (
92
92
< ColoredCell
93
- value = { onlinePartitionCount }
94
- attention = { offlinePartitionCount > 0 }
93
+ value = { inSyncPartitions }
94
+ attention = { inSyncPartitions !== count }
95
95
/>
96
96
) ;
97
97
} ;
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ export type BrokersTableRow = {
7
7
partitionsLeader : number | undefined ;
8
8
partitionsSkew : number | undefined ;
9
9
leadersSkew : number | undefined ;
10
+ inSyncPartitions : number | undefined ;
10
11
onlinePartitionCount : number | undefined ;
11
12
offlinePartitionCount : number | undefined ;
12
13
activeControllers : number | undefined ;
Original file line number Diff line number Diff line change @@ -40,6 +40,7 @@ export const getBrokersTableRows = ({
40
40
partitionsLeader : broker . partitionsLeader ,
41
41
partitionsSkew : broker . partitionsSkew ,
42
42
leadersSkew : broker . leadersSkew ,
43
+ inSyncPartitions : broker . inSyncPartitions ,
43
44
onlinePartitionCount,
44
45
offlinePartitionCount,
45
46
activeControllers,
You can’t perform that action at this time.
0 commit comments