Skip to content

Commit e48e84f

Browse files
committed
fix: remove vdiskinfo from api
1 parent 3356880 commit e48e84f

File tree

2 files changed

+0
-41
lines changed

2 files changed

+0
-41
lines changed

src/services/api/viewer.ts

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ import type {
3333
} from '../../types/api/tablet';
3434
import type {TTenantInfo, TTenants} from '../../types/api/tenant';
3535
import type {DescribeTopicResult, TopicDataRequest, TopicDataResponse} from '../../types/api/topic';
36-
import type {TEvVDiskStateResponse} from '../../types/api/vdisk';
3736
import type {VDiskBlobIndexResponse} from '../../types/api/vdiskBlobIndex';
3837
import type {TUserToken} from '../../types/api/whoami';
3938
import type {TabletsApiRequestParams} from '../../types/store/tablets';
@@ -526,36 +525,6 @@ export class ViewerAPI extends BaseYdbAPI {
526525
);
527526
}
528527

529-
getVDiskInfo(
530-
{
531-
pDiskId,
532-
nodeId,
533-
database,
534-
vDiskId,
535-
}: {
536-
pDiskId?: string | number;
537-
nodeId?: string | number;
538-
database?: string;
539-
vDiskId: string | number;
540-
},
541-
{concurrentId, signal}: AxiosOptions = {},
542-
) {
543-
const filterParams = {VDiskId: vDiskId, PDiskId: pDiskId};
544-
const normalizedFilterParams = Object.entries(filterParams).filter(([_key, value]) =>
545-
Boolean(value),
546-
) as [string, string][];
547-
const filter = `(${normalizedFilterParams.map(([key, value]) => `${key}=${value}`).join(';')})`;
548-
return this.get<TEvVDiskStateResponse>(
549-
this.getPath('/viewer/json/vdiskinfo?enums=true'),
550-
{
551-
node_id: nodeId,
552-
filter: filter,
553-
database,
554-
},
555-
{concurrentId, requestConfig: {signal}},
556-
);
557-
}
558-
559528
getVDiskBlobIndexStat(
560529
{
561530
vDiskSlotId,

src/types/api/vdisk.ts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,5 @@
11
import type {EFlag} from './enums';
22
import type {TPDiskStateInfo} from './pdisk';
3-
4-
/**
5-
* endpoint: /viewer/json/vdiskinfo
6-
*/
7-
export interface TEvVDiskStateResponse {
8-
VDiskStateInfo?: TVDiskStateInfo[];
9-
ResponseTime?: string;
10-
ResponseDuration?: number;
11-
}
12-
133
/**
144
* Node whiteboard VDisk data
155
*

0 commit comments

Comments
 (0)