Skip to content

Commit 0b39d06

Browse files
committed
fix Online Partitions column
1 parent 4e2cee7 commit 0b39d06

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

frontend/src/components/Brokers/BrokersList/TableCells/TableCells.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -79,19 +79,19 @@ type OnlinePartitionsProps = CellContext<
7979
>;
8080

8181
export 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
};

frontend/src/components/Brokers/BrokersList/lib/types.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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;

frontend/src/components/Brokers/BrokersList/lib/utils.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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,

0 commit comments

Comments
 (0)