@@ -4,12 +4,28 @@ import {skipToken} from '@reduxjs/toolkit/query';
4
4
import { isNil } from 'lodash' ;
5
5
6
6
import { selectTabletsWithFqdn , tabletsApi } from '../../store/reducers/tablets' ;
7
+ import { ETabletState } from '../../types/api/tablet' ;
7
8
import type { TabletsApiRequestParams } from '../../types/store/tablets' ;
8
9
import { valueIsDefined } from '../../utils' ;
9
10
import { useAutoRefreshInterval , useTypedSelector } from '../../utils/hooks' ;
10
11
11
12
import { TabletsTable } from './TabletsTable' ;
12
13
14
+ const activeStatuses : ETabletState [ ] = [
15
+ ETabletState . Created ,
16
+ ETabletState . ResolveStateStorage ,
17
+ ETabletState . Candidate ,
18
+ ETabletState . BlockBlobStorage ,
19
+ ETabletState . RebuildGraph ,
20
+ ETabletState . WriteZeroEntry ,
21
+ ETabletState . Restored ,
22
+ ETabletState . Discover ,
23
+ ETabletState . Lock ,
24
+ ETabletState . Active ,
25
+ ETabletState . ResolveLeader ,
26
+ ETabletState . Terminating ,
27
+ ] ;
28
+
13
29
interface TabletsProps {
14
30
path ?: string ;
15
31
database ?: string ;
@@ -34,7 +50,7 @@ export function Tablets({
34
50
const [ autoRefreshInterval ] = useAutoRefreshInterval ( ) ;
35
51
36
52
let params : TabletsApiRequestParams = { } ;
37
- const filter = onlyActive ? `(State!=Dead )` : undefined ;
53
+ const filter = onlyActive ? `(State=[ ${ activeStatuses . join ( ',' ) } ] )` : undefined ;
38
54
39
55
const schemaPathParam = React . useMemo ( ( ) => {
40
56
if ( ! isNil ( path ) && ! isNil ( databaseFullPath ) ) {
0 commit comments