Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/containers/Tablets/Tablets.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ export function Tablets({
const [autoRefreshInterval] = useAutoRefreshInterval();

let params: TabletsApiRequestParams = {};
const filter = onlyActive ? `(State!=Dead)` : undefined;
const filter = onlyActive
? `(State=[Created,ResolveStateStorage,Candidate,BlockBlobStorage,RebuildGraph,WriteZeroEntry,Restored,Discover,Lock,Active,ResolveLeader,Terminating])`
Copy link
Member

@artemmufazalov artemmufazalov Sep 16, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Number of not active statuses is much less than active. Is it possible to set filter as State!=[Dead,Deleted,Stopped]? Found the answer in the ticket

Also it will be good to ensure proper strings with types:

const activeStatuses: ETabletState = [
    'Created',
    'ResolveStateStorage',
    'Candidate',
    'BlockBlobStorage',
    'RebuildGraph',
    'WriteZeroEntry',
    'Restored',
    'Discover',
    'Lock',
    'Active',
    'ResolveLeader',
    'Terminating'
]

const filter = onlyActive ? `(State=${activeStatuses.join(',')}` : undefined

: undefined;

const schemaPathParam = React.useMemo(() => {
if (!isNil(path) && !isNil(databaseFullPath)) {
Expand Down
Loading