ydb-embedded-ui 6.30.0 → 6.32.0-hotfix.1
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/components/AutoRefreshControl/AutoRefreshControl.js +1 -1
- package/dist/components/AutoRefreshControl/AutoRefreshControl.js.map +1 -1
- package/dist/components/BasicNodeViewer/BasicNodeViewer.js +9 -5
- package/dist/components/BasicNodeViewer/BasicNodeViewer.js.map +1 -1
- package/dist/components/CellWithPopover/CellWithPopover.d.ts +2 -1
- package/dist/components/CellWithPopover/CellWithPopover.js +2 -2
- package/dist/components/CellWithPopover/CellWithPopover.js.map +1 -1
- package/dist/components/CellWithPopover/CellWithPopover.scss +4 -0
- package/dist/components/CriticalActionDialog/CriticalActionDialog.js +4 -0
- package/dist/components/CriticalActionDialog/CriticalActionDialog.js.map +1 -1
- package/dist/components/NodeHostWrapper/NodeHostWrapper.js +9 -5
- package/dist/components/NodeHostWrapper/NodeHostWrapper.js.map +1 -1
- package/dist/components/PDiskPopup/PDiskPopup.js +9 -9
- package/dist/components/PDiskPopup/PDiskPopup.js.map +1 -1
- package/dist/components/PaginatedTable/types.d.ts +1 -1
- package/dist/components/ProgressViewer/ProgressViewer.d.ts +2 -1
- package/dist/components/ProgressViewer/ProgressViewer.js +2 -2
- package/dist/components/ProgressViewer/ProgressViewer.js.map +1 -1
- package/dist/components/Search/Search.d.ts +3 -1
- package/dist/components/Search/Search.js +2 -2
- package/dist/components/Search/Search.js.map +1 -1
- package/dist/components/TabletNameWrapper/TabletNameWrapper.js +1 -1
- package/dist/components/TabletNameWrapper/TabletNameWrapper.js.map +1 -1
- package/dist/components/TenantNameWrapper/TenantNameWrapper.js +1 -1
- package/dist/components/TenantNameWrapper/TenantNameWrapper.js.map +1 -1
- package/dist/components/TooltipsContent/NodeEndpointsTooltipContent/NodeEndpointsTooltipContent.js +23 -8
- package/dist/components/TooltipsContent/NodeEndpointsTooltipContent/NodeEndpointsTooltipContent.js.map +1 -1
- package/dist/components/TooltipsContent/NodeEndpointsTooltipContent/i18n/en.json +3 -1
- package/dist/components/TooltipsContent/NodeEndpointsTooltipContent/i18n/index.d.ts +1 -1
- package/dist/components/TooltipsContent/PoolTooltipContent/PoolTooltipContent.d.ts +4 -0
- package/dist/components/TooltipsContent/PoolTooltipContent/PoolTooltipContent.js +1 -1
- package/dist/components/TooltipsContent/PoolTooltipContent/PoolTooltipContent.js.map +1 -1
- package/dist/components/VDiskInfo/VDiskInfo.js +1 -2
- package/dist/components/VDiskInfo/VDiskInfo.js.map +1 -1
- package/dist/components/VDiskInfo/i18n/index.d.ts +1 -1
- package/dist/components/VDiskPopup/VDiskPopup.js +1 -9
- package/dist/components/VDiskPopup/VDiskPopup.js.map +1 -1
- package/dist/components/nodesColumns/NodesColumns.scss +6 -0
- package/dist/components/nodesColumns/columns.d.ts +10 -0
- package/dist/components/nodesColumns/columns.js +56 -4
- package/dist/components/nodesColumns/columns.js.map +1 -1
- package/dist/components/nodesColumns/constants.d.ts +8 -0
- package/dist/components/nodesColumns/constants.js +20 -0
- package/dist/components/nodesColumns/constants.js.map +1 -1
- package/dist/components/nodesColumns/i18n/en.json +7 -1
- package/dist/components/nodesColumns/i18n/index.d.ts +1 -1
- package/dist/containers/Clusters/i18n/index.d.ts +1 -1
- package/dist/containers/Header/Header.js +2 -9
- package/dist/containers/Header/Header.js.map +1 -1
- package/dist/containers/Nodes/Nodes.js +11 -33
- package/dist/containers/Nodes/Nodes.js.map +1 -1
- package/dist/containers/Nodes/Nodes.scss +4 -0
- package/dist/containers/Nodes/NodesControls/NodesControls.d.ts +11 -0
- package/dist/containers/Nodes/NodesControls/NodesControls.js +24 -0
- package/dist/containers/Nodes/NodesControls/NodesControls.js.map +1 -0
- package/dist/containers/Nodes/PaginatedNodes.d.ts +2 -2
- package/dist/containers/Nodes/PaginatedNodes.js +78 -54
- package/dist/containers/Nodes/PaginatedNodes.js.map +1 -1
- package/dist/containers/Nodes/PaginatedNodesTable.d.ts +22 -0
- package/dist/containers/Nodes/PaginatedNodesTable.js +30 -0
- package/dist/containers/Nodes/PaginatedNodesTable.js.map +1 -0
- package/dist/containers/Nodes/columns/columns.js +3 -1
- package/dist/containers/Nodes/columns/columns.js.map +1 -1
- package/dist/containers/Nodes/columns/constants.d.ts +4 -0
- package/dist/containers/Nodes/columns/constants.js +29 -1
- package/dist/containers/Nodes/columns/constants.js.map +1 -1
- package/dist/containers/Nodes/getNodes.js +6 -7
- package/dist/containers/Nodes/getNodes.js.map +1 -1
- package/dist/containers/Nodes/i18n/en.json +5 -1
- package/dist/containers/Nodes/i18n/index.d.ts +1 -1
- package/dist/containers/Nodes/i18n/index.js +1 -2
- package/dist/containers/Nodes/i18n/index.js.map +1 -1
- package/dist/containers/Nodes/shared.d.ts +5 -0
- package/dist/containers/Nodes/shared.js +16 -0
- package/dist/containers/Nodes/shared.js.map +1 -0
- package/dist/containers/Nodes/useNodesPageQueryParams.d.ts +9 -0
- package/dist/containers/Nodes/useNodesPageQueryParams.js +34 -0
- package/dist/containers/Nodes/useNodesPageQueryParams.js.map +1 -0
- package/dist/containers/Operations/Operations.js +3 -3
- package/dist/containers/Operations/Operations.js.map +1 -1
- package/dist/containers/Operations/OperationsControls.d.ts +1 -1
- package/dist/containers/Operations/columns.d.ts +6 -2
- package/dist/containers/Operations/columns.js +45 -4
- package/dist/containers/Operations/columns.js.map +1 -1
- package/dist/containers/Operations/constants.d.ts +1 -1
- package/dist/containers/Operations/i18n/en.json +7 -1
- package/dist/containers/Operations/i18n/index.d.ts +1 -1
- package/dist/containers/Operations/useOperationsQueryParams.d.ts +1 -1
- package/dist/containers/Storage/Disks/Disks.js +1 -2
- package/dist/containers/Storage/Disks/Disks.js.map +1 -1
- package/dist/containers/Storage/PaginatedStorageNodes.js +1 -2
- package/dist/containers/Storage/PaginatedStorageNodes.js.map +1 -1
- package/dist/containers/Storage/StorageControls/StorageControls.js +2 -2
- package/dist/containers/Storage/StorageControls/StorageControls.js.map +1 -1
- package/dist/containers/Storage/StorageNodes/columns/columns.js +3 -1
- package/dist/containers/Storage/StorageNodes/columns/columns.js.map +1 -1
- package/dist/containers/Storage/StorageNodes/columns/constants.js +1 -1
- package/dist/containers/Storage/StorageNodes/columns/constants.js.map +1 -1
- package/dist/containers/Storage/StorageNodes/getNodes.js +2 -2
- package/dist/containers/Storage/StorageNodes/getNodes.js.map +1 -1
- package/dist/containers/Storage/i18n/index.d.ts +1 -1
- package/dist/containers/Storage/utils/index.d.ts +1 -1
- package/dist/containers/Tablets/TabletsTable.js +3 -1
- package/dist/containers/Tablets/TabletsTable.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopNodesByCpu.js +2 -2
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopNodesByCpu.js.map +1 -1
- package/dist/containers/Tenant/ObjectSummary/SchemaTree/RefreshTreeButton.js +2 -2
- package/dist/containers/Tenant/Query/Issues/Issues.d.ts +4 -2
- package/dist/containers/Tenant/Query/Issues/Issues.js +7 -7
- package/dist/containers/Tenant/Query/Issues/Issues.js.map +1 -1
- package/dist/containers/Tenant/Query/NewSQL/i18n/en.json +1 -1
- package/dist/containers/Tenant/i18n/en.json +1 -0
- package/dist/containers/Tenant/i18n/index.d.ts +1 -1
- package/dist/containers/Tenant/utils/schemaActions.js +5 -1
- package/dist/containers/Tenant/utils/schemaActions.js.map +1 -1
- package/dist/containers/Tenant/utils/schemaQueryTemplates.js +5 -1
- package/dist/containers/Tenant/utils/schemaQueryTemplates.js.map +1 -1
- package/dist/services/api.d.ts +3 -1
- package/dist/services/api.js +12 -0
- package/dist/services/api.js.map +1 -1
- package/dist/store/reducers/capabilities/hooks.d.ts +1 -0
- package/dist/store/reducers/capabilities/hooks.js +3 -0
- package/dist/store/reducers/capabilities/hooks.js.map +1 -1
- package/dist/store/reducers/node/selectors.js +5 -5
- package/dist/store/reducers/node/selectors.js.map +1 -1
- package/dist/store/reducers/node/types.d.ts +3 -4
- package/dist/store/reducers/nodes/types.d.ts +3 -1
- package/dist/store/reducers/nodes/utils.d.ts +1 -1
- package/dist/store/reducers/nodes/utils.js +9 -4
- package/dist/store/reducers/nodes/utils.js.map +1 -1
- package/dist/store/reducers/operations.d.ts +6 -0
- package/dist/store/reducers/operations.js +41 -0
- package/dist/store/reducers/operations.js.map +1 -0
- package/dist/store/reducers/pdisk/utils.js +6 -3
- package/dist/store/reducers/pdisk/utils.js.map +1 -1
- package/dist/store/reducers/settings/hooks.d.ts +5 -0
- package/dist/store/reducers/settings/hooks.js +14 -0
- package/dist/store/reducers/settings/hooks.js.map +1 -0
- package/dist/store/reducers/storage/__test__/prepareGroupsDisks.test.d.ts +1 -0
- package/dist/store/reducers/storage/__test__/prepareGroupsDisks.test.js +354 -0
- package/dist/store/reducers/storage/__test__/prepareGroupsDisks.test.js.map +1 -0
- package/dist/store/reducers/storage/prepareGroupsDisks.d.ts +37 -0
- package/dist/store/reducers/storage/prepareGroupsDisks.js +72 -0
- package/dist/store/reducers/storage/prepareGroupsDisks.js.map +1 -0
- package/dist/store/reducers/storage/utils.js +7 -28
- package/dist/store/reducers/storage/utils.js.map +1 -1
- package/dist/store/reducers/tenantOverview/topShards/utils.d.ts +1 -1
- package/dist/store/reducers/vdisk/utils.js +3 -3
- package/dist/store/reducers/vdisk/utils.js.map +1 -1
- package/dist/types/api/error.d.ts +4 -1
- package/dist/types/api/nodes.d.ts +4 -2
- package/dist/types/api/nodes.js.map +1 -1
- package/dist/types/api/{operationList.d.ts → operations.d.ts} +8 -0
- package/dist/types/api/{operationList.js → operations.js} +1 -1
- package/dist/types/api/operations.js.map +1 -0
- package/dist/types/api/pdisk.d.ts +1 -1
- package/dist/types/api/storage.d.ts +2 -2
- package/dist/utils/developerUI/__test__/developerUI.test.js +21 -1
- package/dist/utils/developerUI/__test__/developerUI.test.js.map +1 -1
- package/dist/utils/developerUI/developerUI.d.ts +1 -0
- package/dist/utils/developerUI/developerUI.js +3 -0
- package/dist/utils/developerUI/developerUI.js.map +1 -1
- package/dist/utils/disks/__test__/calculatePDiskSeverity.test.js +10 -7
- package/dist/utils/disks/__test__/calculatePDiskSeverity.test.js.map +1 -1
- package/dist/utils/disks/__test__/calculateVDiskSeverity.test.js +8 -23
- package/dist/utils/disks/__test__/calculateVDiskSeverity.test.js.map +1 -1
- package/dist/utils/disks/__test__/prepareDisks.test.d.ts +1 -0
- package/dist/utils/disks/__test__/prepareDisks.test.js +200 -0
- package/dist/utils/disks/__test__/prepareDisks.test.js.map +1 -0
- package/dist/utils/disks/calculatePDiskSeverity.d.ts +5 -2
- package/dist/utils/disks/calculatePDiskSeverity.js +2 -2
- package/dist/utils/disks/calculatePDiskSeverity.js.map +1 -1
- package/dist/utils/disks/calculateVDiskSeverity.d.ts +8 -2
- package/dist/utils/disks/calculateVDiskSeverity.js +0 -4
- package/dist/utils/disks/calculateVDiskSeverity.js.map +1 -1
- package/dist/utils/disks/helpers.d.ts +2 -1
- package/dist/utils/disks/helpers.js.map +1 -1
- package/dist/utils/disks/prepareDisks.d.ts +22 -4
- package/dist/utils/disks/prepareDisks.js +75 -28
- package/dist/utils/disks/prepareDisks.js.map +1 -1
- package/dist/utils/disks/types.d.ts +9 -2
- package/dist/utils/nodes.d.ts +1 -0
- package/dist/utils/nodes.js +20 -0
- package/dist/utils/nodes.js.map +1 -1
- package/dist/utils/storage.d.ts +1 -1
- package/package.json +3 -2
- package/dist/containers/Nodes/i18n/ru.json +0 -3
- package/dist/store/reducers/operationList.d.ts +0 -4
- package/dist/store/reducers/operationList.js +0 -19
- package/dist/store/reducers/operationList.js.map +0 -1
- package/dist/types/api/operationList.js.map +0 -1
@@ -1,6 +1,7 @@
|
|
1
1
|
import type { EFlag } from '../../types/api/enums';
|
2
2
|
import type { TVDiskStateInfo, TVSlotId } from '../../types/api/vdisk';
|
3
|
-
|
3
|
+
import type { PreparedVDisk } from './types';
|
4
|
+
export declare function isFullVDiskData(disk: PreparedVDisk | TVDiskStateInfo | TVSlotId): disk is PreparedVDisk | TVDiskStateInfo;
|
4
5
|
export declare function getSeverityColor(severity: number | undefined): EFlag;
|
5
6
|
export declare function getColorSeverity(color?: EFlag): number;
|
6
7
|
export declare function getPDiskId(nodeId?: string | number | null, pDiskId?: string | number | null): string | undefined;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../../src/utils/disks/helpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,cAAc,EAAC,MAAM,IAAI,CAAC;AAIlC,OAAO,EACH,oCAAoC,EACpC,oCAAoC,EACpC,4BAA4B,GAC/B,MAAM,aAAa,CAAC;
|
1
|
+
{"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../../src/utils/disks/helpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,cAAc,EAAC,MAAM,IAAI,CAAC;AAIlC,OAAO,EACH,oCAAoC,EACpC,oCAAoC,EACpC,4BAA4B,GAC/B,MAAM,aAAa,CAAC;AAGrB,MAAM,UAAU,eAAe,CAC3B,IAAgD;IAEhD,OAAO,SAAS,IAAI,IAAI,CAAC;AAC7B,CAAC;AAED,MAAM,UAAU,gBAAgB,CAAC,QAA4B;IACzD,IAAI,QAAQ,KAAK,SAAS,EAAE,CAAC;QACzB,OAAO,4BAA4B,CAAC;IACxC,CAAC;IAED,OAAO,oCAAoC,CAAC,QAAQ,CAAC,IAAI,4BAA4B,CAAC;AAC1F,CAAC;AAED,MAAM,UAAU,gBAAgB,CAAC,KAAa;IAC1C,OAAO,KAAK,CAAC,CAAC,CAAC,oCAAoC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AACnE,CAAC;AAED,MAAM,UAAU,UAAU,CAAC,MAA+B,EAAE,OAAgC;IACxF,IAAI,cAAc,CAAC,MAAM,CAAC,IAAI,cAAc,CAAC,OAAO,CAAC,EAAE,CAAC;QACpD,OAAO,GAAG,MAAM,IAAI,OAAO,EAAE,CAAC;IAClC,CAAC;IACD,OAAO,SAAS,CAAC;AACrB,CAAC;AAED,MAAM,UAAU,mBAAmB,CAC/B,MAAuB,EACvB,OAAwB,EACxB,WAA4B;IAE5B,OAAO,CAAC,MAAM,EAAE,OAAO,EAAE,WAAW,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AACpD,CAAC"}
|
@@ -1,5 +1,23 @@
|
|
1
|
-
import type {
|
2
|
-
import type { TVDiskStateInfo } from '../../types/api/vdisk';
|
1
|
+
import type { TPDiskStateInfo } from '../../types/api/pdisk';
|
2
|
+
import type { TVDiskStateInfo, TVSlotId } from '../../types/api/vdisk';
|
3
3
|
import type { PreparedPDisk, PreparedVDisk } from './types';
|
4
|
-
export declare function
|
5
|
-
export declare function
|
4
|
+
export declare function prepareWhiteboardVDiskData(vDiskState?: TVDiskStateInfo | TVSlotId): PreparedVDisk;
|
5
|
+
export declare function prepareWhiteboardPDiskData(pdiskState?: TPDiskStateInfo): PreparedPDisk;
|
6
|
+
export declare function prepareVDiskSizeFields({ AvailableSize, AllocatedSize, }: {
|
7
|
+
AvailableSize: string | number | undefined;
|
8
|
+
AllocatedSize: string | number | undefined;
|
9
|
+
}): {
|
10
|
+
AvailableSize: number;
|
11
|
+
AllocatedSize: number;
|
12
|
+
TotalSize: number;
|
13
|
+
AllocatedPercent: number;
|
14
|
+
};
|
15
|
+
export declare function preparePDiskSizeFields({ AvailableSize, TotalSize, }: {
|
16
|
+
AvailableSize: string | number | undefined;
|
17
|
+
TotalSize: string | number | undefined;
|
18
|
+
}): {
|
19
|
+
AvailableSize: number;
|
20
|
+
TotalSize: number;
|
21
|
+
AllocatedSize: number;
|
22
|
+
AllocatedPercent: number;
|
23
|
+
};
|
@@ -2,49 +2,96 @@ import { stringifyVdiskId } from '../dataFormatters/dataFormatters';
|
|
2
2
|
import { calculatePDiskSeverity } from './calculatePDiskSeverity';
|
3
3
|
import { calculateVDiskSeverity } from './calculateVDiskSeverity';
|
4
4
|
import { getPDiskType } from './getPDiskType';
|
5
|
-
|
6
|
-
|
5
|
+
import { getPDiskId, isFullVDiskData } from './helpers';
|
6
|
+
export function prepareWhiteboardVDiskData(vDiskState = {}) {
|
7
|
+
var _a;
|
8
|
+
if (!isFullVDiskData(vDiskState)) {
|
9
|
+
const { NodeId, PDiskId, VSlotId } = vDiskState;
|
10
|
+
const StringifiedId = stringifyVdiskId({
|
11
|
+
NodeId,
|
12
|
+
PDiskId,
|
13
|
+
VSlotId,
|
14
|
+
});
|
15
|
+
return {
|
16
|
+
StringifiedId,
|
17
|
+
NodeId,
|
18
|
+
PDiskId,
|
19
|
+
// Replace VSlotId with VDiskSlotId to match with PreparedVDisk type
|
20
|
+
VDiskSlotId: VSlotId,
|
21
|
+
};
|
22
|
+
}
|
23
|
+
const { PDisk, PDiskId, VDiskId, NodeId, Donors, AvailableSize, AllocatedSize, ...restVDiskFields } = vDiskState;
|
7
24
|
// Prepare PDisk only if it is present
|
8
|
-
const
|
9
|
-
?
|
10
|
-
...vdiskState.PDisk,
|
11
|
-
NodeId: (_a = vdiskState.PDisk.NodeId) !== null && _a !== void 0 ? _a : vdiskState.NodeId,
|
12
|
-
})
|
25
|
+
const preparedPDisk = PDisk
|
26
|
+
? prepareWhiteboardPDiskData({ ...PDisk, NodeId: (_a = PDisk === null || PDisk === void 0 ? void 0 : PDisk.NodeId) !== null && _a !== void 0 ? _a : NodeId })
|
13
27
|
: undefined;
|
14
|
-
const
|
15
|
-
const
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
const
|
20
|
-
|
28
|
+
const actualPDiskId = PDiskId !== null && PDiskId !== void 0 ? PDiskId : preparedPDisk === null || preparedPDisk === void 0 ? void 0 : preparedPDisk.PDiskId;
|
29
|
+
const vDiskSizeFields = prepareVDiskSizeFields({
|
30
|
+
AvailableSize: AvailableSize !== null && AvailableSize !== void 0 ? AvailableSize : PDisk === null || PDisk === void 0 ? void 0 : PDisk.AvailableSize,
|
31
|
+
AllocatedSize: AllocatedSize,
|
32
|
+
});
|
33
|
+
const Severity = calculateVDiskSeverity(vDiskState);
|
34
|
+
const StringifiedId = stringifyVdiskId(VDiskId);
|
35
|
+
const preparedDonors = Donors === null || Donors === void 0 ? void 0 : Donors.map((donor) => {
|
36
|
+
return prepareWhiteboardVDiskData({ ...donor, DonorMode: true });
|
21
37
|
});
|
22
|
-
const Severity = calculateVDiskSeverity(vdiskState);
|
23
|
-
const StringifiedId = stringifyVdiskId(vdiskState.VDiskId);
|
24
38
|
return {
|
25
|
-
...
|
26
|
-
|
27
|
-
|
28
|
-
|
39
|
+
...restVDiskFields,
|
40
|
+
...vDiskSizeFields,
|
41
|
+
VDiskId,
|
42
|
+
NodeId,
|
43
|
+
PDiskId: actualPDiskId,
|
44
|
+
PDisk: preparedPDisk,
|
45
|
+
Donors: preparedDonors,
|
29
46
|
Severity,
|
30
47
|
StringifiedId,
|
48
|
+
};
|
49
|
+
}
|
50
|
+
export function prepareWhiteboardPDiskData(pdiskState = {}) {
|
51
|
+
const { AvailableSize, TotalSize, Category, State, PDiskId, NodeId, EnforcedDynamicSlotSize, ...restPDiskFields } = pdiskState;
|
52
|
+
const StringifiedId = getPDiskId(PDiskId, NodeId);
|
53
|
+
const Type = getPDiskType(Category);
|
54
|
+
const pdiskPreparedSizeFields = preparePDiskSizeFields({
|
55
|
+
AvailableSize,
|
56
|
+
TotalSize,
|
57
|
+
});
|
58
|
+
const Severity = calculatePDiskSeverity({
|
59
|
+
State,
|
60
|
+
AllocatedPercent: pdiskPreparedSizeFields.AllocatedPercent,
|
61
|
+
});
|
62
|
+
return {
|
63
|
+
...restPDiskFields,
|
64
|
+
...pdiskPreparedSizeFields,
|
65
|
+
PDiskId,
|
66
|
+
NodeId,
|
67
|
+
StringifiedId,
|
68
|
+
Type,
|
69
|
+
Category,
|
70
|
+
State,
|
71
|
+
Severity,
|
72
|
+
SlotSize: EnforcedDynamicSlotSize,
|
73
|
+
};
|
74
|
+
}
|
75
|
+
export function prepareVDiskSizeFields({ AvailableSize, AllocatedSize, }) {
|
76
|
+
const available = Number(AvailableSize);
|
77
|
+
const allocated = Number(AllocatedSize);
|
78
|
+
const total = allocated + available;
|
79
|
+
const allocatedPercent = Math.round((allocated * 100) / total);
|
80
|
+
return {
|
81
|
+
AvailableSize: available,
|
82
|
+
AllocatedSize: allocated,
|
31
83
|
TotalSize: total,
|
32
84
|
AllocatedPercent: allocatedPercent,
|
33
85
|
};
|
34
86
|
}
|
35
|
-
export function
|
36
|
-
const { AvailableSize, TotalSize, Category } = pdiskState;
|
37
|
-
const Type = getPDiskType(Category);
|
87
|
+
export function preparePDiskSizeFields({ AvailableSize, TotalSize, }) {
|
38
88
|
const available = Number(AvailableSize);
|
39
89
|
const total = Number(TotalSize);
|
40
90
|
const allocated = total - available;
|
41
91
|
const allocatedPercent = Math.round((allocated * 100) / total);
|
42
|
-
const Severity = calculatePDiskSeverity(pdiskState, allocatedPercent);
|
43
92
|
return {
|
44
|
-
|
45
|
-
|
46
|
-
Type,
|
47
|
-
Severity,
|
93
|
+
AvailableSize: available,
|
94
|
+
TotalSize: total,
|
48
95
|
AllocatedSize: allocated,
|
49
96
|
AllocatedPercent: allocatedPercent,
|
50
97
|
};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"prepareDisks.js","sourceRoot":"","sources":["../../../src/utils/disks/prepareDisks.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,gBAAgB,EAAC,MAAM,kCAAkC,CAAC;AAElE,OAAO,EAAC,sBAAsB,EAAC,MAAM,0BAA0B,CAAC;AAChE,OAAO,EAAC,sBAAsB,EAAC,MAAM,0BAA0B,CAAC;AAChE,OAAO,EAAC,YAAY,EAAC,MAAM,gBAAgB,CAAC;
|
1
|
+
{"version":3,"file":"prepareDisks.js","sourceRoot":"","sources":["../../../src/utils/disks/prepareDisks.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,gBAAgB,EAAC,MAAM,kCAAkC,CAAC;AAElE,OAAO,EAAC,sBAAsB,EAAC,MAAM,0BAA0B,CAAC;AAChE,OAAO,EAAC,sBAAsB,EAAC,MAAM,0BAA0B,CAAC;AAChE,OAAO,EAAC,YAAY,E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,KAAK,GAAG,SAAS,GAAG,SAAS,CAAC;IACpC,MAAM,gBAAgB,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,SAAS,GAAG,GAAG,CAAC,GAAG,KAAK,CAAC,CAAC;IAE/D,OAAO;QACH,aAAa,EAAE,SAAS;QACxB,aAAa,EAAE,SAAS;QACxB,SAAS,EAAE,KAAK;QAChB,gBAAgB,EAAE,gBAAgB;KACrC,CAAC;AACN,CAAC;AAED,MAAM,UAAU,sBAAsB,CAAC,EACnC,aAAa,EACb,SAAS,GAIZ;IACG,MAAM,SAAS,GAAG,MAAM,CAAC,aAAa,CAAC,CAAC;IACxC,MAAM,KAAK,GAAG,MAAM,CAAC,SAAS,CAAC,CAAC;IAChC,MAAM,SAAS,GAAG,KAAK,GAAG,SAAS,CAAC;IACpC,MAAM,gBAAgB,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,SAAS,GAAG,GAAG,CAAC,GAAG,KAAK,CAAC,CAAC;IAE/D,OAAO;QACH,aAAa,EAAE,SAAS;QACxB,SAAS,EAAE,KAAK;QAChB,aAAa,EAAE,SAAS;QACxB,gBAAgB,EAAE,gBAAgB;KACrC,CAAC;AACN,CAAC"}
|
@@ -2,18 +2,25 @@ import type { TPDiskInfo, TPDiskStateInfo } from '../../types/api/pdisk';
|
|
2
2
|
import type { TVDiskStateInfo, TVSlotId } from '../../types/api/vdisk';
|
3
3
|
import type { ValueOf } from '../../types/common';
|
4
4
|
import type { PDISK_TYPES } from './getPDiskType';
|
5
|
-
export type PreparedPDisk = TPDiskStateInfo & Omit<Partial<TPDiskInfo>, 'Type'> & {
|
5
|
+
export type PreparedPDisk = Omit<TPDiskStateInfo, 'AvailableSize' | 'TotalSize' | 'EnforcedDynamicSlotSize'> & Omit<Partial<TPDiskInfo>, 'Type' | 'AvailableSize' | 'TotalSize'> & {
|
6
6
|
Type?: PDiskType;
|
7
7
|
Severity?: number;
|
8
|
+
StringifiedId?: string;
|
9
|
+
AvailableSize?: number;
|
10
|
+
TotalSize?: number;
|
8
11
|
AllocatedSize?: number;
|
9
12
|
AllocatedPercent?: number;
|
13
|
+
SlotSize?: string;
|
10
14
|
};
|
11
|
-
export interface PreparedVDisk extends TVDiskStateInfo {
|
15
|
+
export interface PreparedVDisk extends Omit<TVDiskStateInfo, 'PDisk' | 'AvailableSize' | 'AllocatedSize' | 'Donors'> {
|
12
16
|
PDisk?: PreparedPDisk;
|
13
17
|
Severity?: number;
|
14
18
|
StringifiedId?: string;
|
19
|
+
AvailableSize?: number;
|
15
20
|
TotalSize?: number;
|
21
|
+
AllocatedSize?: number;
|
16
22
|
AllocatedPercent?: number;
|
23
|
+
Donors?: PreparedVDisk[];
|
17
24
|
}
|
18
25
|
export type PDiskType = ValueOf<typeof PDISK_TYPES>;
|
19
26
|
export interface UnavailableDonor extends TVSlotId {
|
package/dist/utils/nodes.d.ts
CHANGED
@@ -28,4 +28,5 @@ export declare const prepareNodeSystemState: (systemState?: TSystemStateInfo) =>
|
|
28
28
|
export declare const getProblemParamValue: (problemFilter: ProblemFilterValue | undefined) => problemFilter is "With problems";
|
29
29
|
export declare const getUptimeParamValue: (nodesUptimeFilter: NodesUptimeFilterValues | undefined) => number | undefined;
|
30
30
|
export declare const NODES_SORT_VALUES: NodesSortValue[];
|
31
|
+
export declare const NODES_SORT_VALUE_TO_FIELD: Record<NodesSortValue, NodesSortValue>;
|
31
32
|
export declare const isSortableNodesProperty: (value: unknown) => value is NodesSortValue;
|
package/dist/utils/nodes.js
CHANGED
@@ -78,6 +78,26 @@ export const NODES_SORT_VALUES = [
|
|
78
78
|
`Missing`,
|
79
79
|
`DiskSpaceUsage`,
|
80
80
|
`Database`,
|
81
|
+
'Pools',
|
82
|
+
'RAM',
|
81
83
|
];
|
84
|
+
// Maps column names to actual fields on backend for sorting.
|
85
|
+
export const NODES_SORT_VALUE_TO_FIELD = {
|
86
|
+
NodeId: 'NodeId',
|
87
|
+
Host: 'Host',
|
88
|
+
NodeName: 'NodeName',
|
89
|
+
DC: 'DC',
|
90
|
+
Rack: 'Rack',
|
91
|
+
Version: 'Version',
|
92
|
+
Uptime: 'Uptime',
|
93
|
+
CPU: 'CPU',
|
94
|
+
LoadAverage: 'LoadAverage',
|
95
|
+
Memory: 'Memory',
|
96
|
+
Missing: 'Missing',
|
97
|
+
DiskSpaceUsage: 'DiskSpaceUsage',
|
98
|
+
Database: 'Database',
|
99
|
+
Pools: 'CPU',
|
100
|
+
RAM: 'Memory',
|
101
|
+
};
|
82
102
|
export const isSortableNodesProperty = (value) => NODES_SORT_VALUES.includes(value);
|
83
103
|
//# sourceMappingURL=nodes.js.map
|
package/dist/utils/nodes.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"nodes.js","sourceRoot":"","sources":["../../src/utils/nodes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAEtB,OAAO,EAAC,mBAAmB,EAAC,MAAM,qCAAqC,CAAC;AAExE,OAAO,EAAC,KAAK,EAAC,MAAM,oBAAoB,CAAC;AAKzC,OAAO,EAAC,eAAe,EAAC,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAC,UAAU,EAAC,MAAM,iCAAiC,CAAC;AAE3D,OAAO,EAAC,cAAc,EAAC,MAAM,GAAG,CAAC;AAEjC,MAAM,CAAN,IAAY,uBAGX;AAHD,WAAY,uBAAuB;IAC/B,sCAAa,CAAA;IACb,sDAA6B,CAAA;AACjC,CAAC,EAHW,uBAAuB,KAAvB,uBAAuB,QAGlC;AAED,MAAM,CAAC,MAAM,6BAA6B,GAAG,CAAC;KACzC,UAAU,CAAC,uBAAuB,CAAC;KACnC,KAAK,CAAC,uBAAuB,CAAC,GAAG,CAAC,CAAC;AAExC,MAAM,CAAC,MAAM,uBAAuB,GAAG;IACnC,CAAC,uBAAuB,CAAC,GAAG,CAAC,EAAE,KAAK;IACpC,CAAC,uBAAuB,CAAC,WAAW,CAAC,EAAE,aAAa;CACvD,CAAC;AAEF,MAA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AAM,uBAAuB,GAAG,CAAC,KAAc,EAA2B,EAAE,CAC/E,iBAAiB,CAAC,QAAQ,CAAC,KAAuB,CAAC,CAAC"}
|
package/dist/utils/storage.d.ts
CHANGED
@@ -4,6 +4,6 @@ interface EntityWithUsage {
|
|
4
4
|
Limit: number;
|
5
5
|
}
|
6
6
|
export declare const getUsage: <T extends EntityWithUsage>(data: T, step?: number) => number;
|
7
|
-
export declare const getSpaceUsageSeverity: (value: number) => "
|
7
|
+
export declare const getSpaceUsageSeverity: (value: number) => "success" | "warning" | "danger" | undefined;
|
8
8
|
export declare const isSortableStorageProperty: (value: unknown) => value is StorageV2SortValue;
|
9
9
|
export {};
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "ydb-embedded-ui",
|
3
|
-
"version": "6.
|
3
|
+
"version": "6.32.0-hotfix.1",
|
4
4
|
"files": [
|
5
5
|
"dist"
|
6
6
|
],
|
@@ -76,7 +76,8 @@
|
|
76
76
|
"typecheck": "tsc --noEmit",
|
77
77
|
"prepare": "husky",
|
78
78
|
"test:e2e:install": "npx playwright install --with-deps",
|
79
|
-
"test:e2e": "npx playwright test --config=playwright.config.ts"
|
79
|
+
"test:e2e": "npx playwright test --config=playwright.config.ts",
|
80
|
+
"test:e2e:local": "PLAYWRIGHT_BASE_URL=http://localhost:3000/ npm run test:e2e"
|
80
81
|
},
|
81
82
|
"lint-staged": {
|
82
83
|
"*.{scss, css}": [
|
@@ -1,4 +0,0 @@
|
|
1
|
-
import type { OperationListRequestParams } from '../../types/api/operationList';
|
2
|
-
export declare const operationListApi: import("@reduxjs/toolkit/query").Api<import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("./api")._NEVER, unknown, {}>, {
|
3
|
-
getOperationList: import("@reduxjs/toolkit/query").QueryDefinition<OperationListRequestParams, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("./api")._NEVER, unknown, {}>, "All" | "PDiskData" | "PreviewData" | "StorageData" | "Tablet" | "UserData" | "VDiskData", import("../../types/api/operationList").TOperationList | undefined, "api">;
|
4
|
-
}, "api", "All" | "PDiskData" | "PreviewData" | "StorageData" | "Tablet" | "UserData" | "VDiskData", typeof import("@reduxjs/toolkit/query").coreModuleName | typeof import("@reduxjs/toolkit/query/react").reactHooksModuleName>;
|
@@ -1,19 +0,0 @@
|
|
1
|
-
import { api } from './api';
|
2
|
-
export const operationListApi = api.injectEndpoints({
|
3
|
-
endpoints: (build) => ({
|
4
|
-
getOperationList: build.query({
|
5
|
-
queryFn: async (params, { signal }) => {
|
6
|
-
try {
|
7
|
-
const data = await window.api.getOperationList(params, { signal });
|
8
|
-
return { data };
|
9
|
-
}
|
10
|
-
catch (error) {
|
11
|
-
return { error };
|
12
|
-
}
|
13
|
-
},
|
14
|
-
providesTags: ['All'],
|
15
|
-
}),
|
16
|
-
}),
|
17
|
-
overrideExisting: 'throw',
|
18
|
-
});
|
19
|
-
//# sourceMappingURL=operationList.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"operationList.js","sourceRoot":"","sources":["../../../src/store/reducers/operationList.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,GAAG,EAAC,MAAM,OAAO,CAAC;AAE1B,MAAM,CAAC,MAAM,gBAAgB,GAAG,GAAG,CAAC,eAAe,CAAC;IAChD,SAAS,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;QACnB,gBAAgB,EAAE,KAAK,CAAC,KAAK,CAAC;YAC1B,OAAO,EAAE,KAAK,EAAE,MAAkC,EAAE,EAAC,MAAM,EAAC,EAAE,EAAE;gBAC5D,IAAI,CAAC;oBACD,MAAM,IAAI,GAAG,MAAM,MAAM,CAAC,GAAG,CAAC,gBAAgB,CAAC,MAAM,EAAE,EAAC,MAAM,EAAC,CAAC,CAAC;oBACjE,OAAO,EAAC,IAAI,EAAC,CAAC;gBAClB,CAAC;gBAAC,OAAO,KAAK,EAAE,CAAC;oBACb,OAAO,EAAC,KAAK,EAAC,CAAC;gBACnB,CAAC;YACL,CAAC;YACD,YAAY,EAAE,CAAC,KAAK,CAAC;SACxB,CAAC;KACL,CAAC;IACF,gBAAgB,EAAE,OAAO;CAC5B,CAAC,CAAC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"operationList.js","sourceRoot":"","sources":["../../../src/types/api/operationList.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,MAAM,CAAN,IAAY,WAsBX;AAtBD,WAAY,WAAW;IACnB,kEAAmD,CAAA;IACnD,kCAAmB,CAAA;IACnB,0CAA2B,CAAA;IAC3B,4CAA6B,CAAA;IAC7B,gDAAiC,CAAA;IACjC,kCAAmB,CAAA;IACnB,0CAA2B,CAAA;IAC3B,wCAAyB,CAAA;IACzB,4CAA6B,CAAA;IAC7B,8CAA+B,CAAA;IAC/B,kCAAmB,CAAA;IACnB,0CAA2B,CAAA;IAC3B,0DAA2C,CAAA;IAC3C,gDAAiC,CAAA;IACjC,sCAAuB,CAAA;IACvB,kDAAmC,CAAA;IACnC,sCAAuB,CAAA;IACvB,4CAA6B,CAAA;IAC7B,0CAA2B,CAAA;IAC3B,4CAA6B,CAAA;IAC7B,gDAAiC,CAAA;AACrC,CAAC,EAtBW,WAAW,KAAX,WAAW,QAsBtB;AAiDD,MAAM,CAAN,IAAY,eAUX;AAVD,WAAY,eAAe;IACvB,0DAAuC,CAAA;IACvC,sDAAmC,CAAA;IACnC,oEAAiD,CAAA;IACjD,oDAAiC,CAAA;IACjC,4CAAyB,CAAA;IACzB,4DAAyC,CAAA;IACzC,sDAAmC,CAAA;IACnC,sDAAmC,CAAA;IACnC,oDAAiC,CAAA;AACrC,CAAC,EAVW,eAAe,KAAf,eAAe,QAU1B"}
|