File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
src/containers/Tenant/Schema/SchemaInfoViewer Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -28,8 +28,14 @@ class SchemaInfoViewer extends React.Component {
28
28
if ( data ) {
29
29
const { PathDescription = { } } = data ;
30
30
const { TableStats = { } , TabletMetrics = { } } = PathDescription ;
31
+ const { PartCount, ...restTableStats } = TableStats ;
31
32
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 ) => ( {
33
39
label : key ,
34
40
value : TableStats [ key ] . toString ( ) ,
35
41
} ) ) ;
@@ -40,6 +46,7 @@ class SchemaInfoViewer extends React.Component {
40
46
} ) ) ;
41
47
42
48
const generalInfo = [
49
+ ...priorityInfo ,
43
50
...tabletMetricsInfo ,
44
51
...tableStatsInfo ,
45
52
] ;
You can’t perform that action at this time.
0 commit comments