Skip to content

Commit 8c09746

Browse files
committed
fix(Tenant): display PartCount first in table overview
1 parent 783a20b commit 8c09746

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/containers/Tenant/Schema/SchemaInfoViewer/SchemaInfoViewer.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,14 @@ class SchemaInfoViewer extends React.Component {
2828
if (data) {
2929
const {PathDescription = {}} = data;
3030
const {TableStats = {}, TabletMetrics = {}} = PathDescription;
31+
const {PartCount, ...restTableStats} = TableStats;
3132

32-
const tableStatsInfo = Object.keys(TableStats).map((key) => ({
33+
const priorityInfo = [{
34+
label: 'PartCount',
35+
value: PartCount,
36+
}].filter(({value}) => value !== undefined);
37+
38+
const tableStatsInfo = Object.keys(restTableStats).map((key) => ({
3339
label: key,
3440
value: TableStats[key].toString(),
3541
}));
@@ -40,6 +46,7 @@ class SchemaInfoViewer extends React.Component {
4046
}));
4147

4248
const generalInfo = [
49+
...priorityInfo,
4350
...tabletMetricsInfo,
4451
...tableStatsInfo,
4552
];

0 commit comments

Comments
 (0)