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 {
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 ] ;
You can’t perform that action at this time.
0 commit comments