ydb-embedded-ui 6.26.1 → 6.27.1
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/components/DiagnosticCard/DiagnosticCard.d.ts +4 -3
- package/dist/components/DiagnosticCard/DiagnosticCard.js +2 -2
- package/dist/components/DiagnosticCard/DiagnosticCard.js.map +1 -1
- package/dist/components/DiagnosticCard/DiagnosticCard.scss +17 -4
- package/dist/components/DoughnutMetrics/DoughnutMetrics.d.ts +20 -0
- package/dist/components/DoughnutMetrics/DoughnutMetrics.js +26 -0
- package/dist/components/DoughnutMetrics/DoughnutMetrics.js.map +1 -0
- package/dist/components/DoughnutMetrics/DoughnutMetrics.scss +58 -0
- package/dist/components/PaginatedTable/TableChunk.js +2 -0
- package/dist/components/PaginatedTable/TableChunk.js.map +1 -1
- package/dist/components/PaginatedTable/types.d.ts +1 -0
- package/dist/components/ProgressViewer/ProgressViewer.js +10 -11
- package/dist/components/ProgressViewer/ProgressViewer.js.map +1 -1
- package/dist/components/ProgressViewer/ProgressViewer.scss +1 -1
- package/dist/components/TableWithControlsLayout/TableWithControlsLayout.scss +4 -2
- package/dist/components/Tag/Tag.scss +1 -2
- package/dist/components/Tags/Tags.d.ts +3 -2
- package/dist/components/Tags/Tags.js +3 -5
- package/dist/components/Tags/Tags.js.map +1 -1
- package/dist/components/nodesColumns/columns.d.ts +2 -1
- package/dist/components/nodesColumns/columns.js.map +1 -1
- package/dist/components/nodesColumns/constants.d.ts +4 -0
- package/dist/components/nodesColumns/constants.js +25 -0
- package/dist/components/nodesColumns/constants.js.map +1 -1
- package/dist/components/nodesColumns/i18n/en.json +2 -1
- package/dist/components/nodesColumns/i18n/index.d.ts +1 -1
- package/dist/components/nodesColumns/types.d.ts +0 -3
- package/dist/containers/Cluster/Cluster.js +4 -3
- package/dist/containers/Cluster/Cluster.js.map +1 -1
- package/dist/containers/Cluster/Cluster.scss +35 -8
- package/dist/containers/Cluster/ClusterDashboard/ClusterDashboard.d.ts +10 -0
- package/dist/containers/Cluster/ClusterDashboard/ClusterDashboard.js +66 -0
- package/dist/containers/Cluster/ClusterDashboard/ClusterDashboard.js.map +1 -0
- package/dist/containers/Cluster/ClusterDashboard/ClusterDashboard.scss +46 -0
- package/dist/containers/Cluster/ClusterDashboard/components/ClusterMetricsCard.d.ts +17 -0
- package/dist/containers/Cluster/ClusterDashboard/components/ClusterMetricsCard.js +20 -0
- package/dist/containers/Cluster/ClusterDashboard/components/ClusterMetricsCard.js.map +1 -0
- package/dist/containers/Cluster/ClusterDashboard/components/ClusterMetricsCores.d.ts +5 -0
- package/dist/containers/Cluster/ClusterDashboard/components/ClusterMetricsCores.js +19 -0
- package/dist/containers/Cluster/ClusterDashboard/components/ClusterMetricsCores.js.map +1 -0
- package/dist/containers/Cluster/ClusterDashboard/components/ClusterMetricsMemory.d.ts +5 -0
- package/dist/containers/Cluster/ClusterDashboard/components/ClusterMetricsMemory.js +20 -0
- package/dist/containers/Cluster/ClusterDashboard/components/ClusterMetricsMemory.js.map +1 -0
- package/dist/containers/Cluster/ClusterDashboard/components/ClusterMetricsStorage.d.ts +5 -0
- package/dist/containers/Cluster/ClusterDashboard/components/ClusterMetricsStorage.js +20 -0
- package/dist/containers/Cluster/ClusterDashboard/components/ClusterMetricsStorage.js.map +1 -0
- package/dist/containers/Cluster/ClusterDashboard/shared.d.ts +9 -0
- package/dist/containers/Cluster/ClusterDashboard/shared.js +3 -0
- package/dist/containers/Cluster/ClusterDashboard/shared.js.map +1 -0
- package/dist/containers/Cluster/ClusterDashboard/utils.d.ts +19 -0
- package/dist/containers/Cluster/ClusterDashboard/utils.js +63 -0
- package/dist/containers/Cluster/ClusterDashboard/utils.js.map +1 -0
- package/dist/containers/Cluster/ClusterInfo/ClusterInfo.d.ts +1 -3
- package/dist/containers/Cluster/ClusterInfo/ClusterInfo.js +3 -15
- package/dist/containers/Cluster/ClusterInfo/ClusterInfo.js.map +1 -1
- package/dist/containers/Cluster/ClusterInfo/ClusterInfo.scss +1 -18
- package/dist/containers/Cluster/ClusterInfo/components/DiskGroupsStatsBars/DiskGroupsStatsBars.d.ts +4 -3
- package/dist/containers/Cluster/ClusterInfo/components/DiskGroupsStatsBars/DiskGroupsStatsBars.js +14 -15
- package/dist/containers/Cluster/ClusterInfo/components/DiskGroupsStatsBars/DiskGroupsStatsBars.js.map +1 -1
- package/dist/containers/Cluster/ClusterInfo/components/DiskGroupsStatsBars/DiskGroupsStatsBars.scss +1 -6
- package/dist/containers/Cluster/ClusterInfo/components/NodesState/NodesState.scss +3 -2
- package/dist/containers/Cluster/ClusterInfo/utils.d.ts +1 -4
- package/dist/containers/Cluster/ClusterInfo/utils.js +20 -107
- package/dist/containers/Cluster/ClusterInfo/utils.js.map +1 -1
- package/dist/containers/Cluster/i18n/en.json +11 -12
- package/dist/containers/Cluster/i18n/index.d.ts +1 -1
- package/dist/containers/Nodes/columns/columns.d.ts +2 -1
- package/dist/containers/Nodes/columns/columns.js.map +1 -1
- package/dist/containers/Nodes/columns/hooks.d.ts +1 -1
- package/dist/containers/Nodes/getNodes.js +5 -1
- package/dist/containers/Nodes/getNodes.js.map +1 -1
- package/dist/containers/Operations/Operations.d.ts +5 -0
- package/dist/containers/Operations/Operations.js +33 -0
- package/dist/containers/Operations/Operations.js.map +1 -0
- package/dist/containers/Operations/OperationsControls.d.ts +12 -0
- package/dist/containers/Operations/OperationsControls.js +12 -0
- package/dist/containers/Operations/OperationsControls.js.map +1 -0
- package/dist/containers/Operations/columns.d.ts +3 -0
- package/dist/containers/Operations/columns.js +103 -0
- package/dist/containers/Operations/columns.js.map +1 -0
- package/dist/containers/Operations/constants.d.ts +23 -0
- package/dist/containers/Operations/constants.js +32 -0
- package/dist/containers/Operations/constants.js.map +1 -0
- package/dist/containers/Operations/i18n/en.json +16 -0
- package/dist/containers/Operations/i18n/index.d.ts +2 -0
- package/dist/containers/Operations/i18n/index.js +5 -0
- package/dist/containers/Operations/i18n/index.js.map +1 -0
- package/dist/containers/Operations/index.d.ts +1 -0
- package/dist/containers/Operations/index.js +2 -0
- package/dist/containers/Operations/index.js.map +1 -0
- package/dist/containers/Operations/shared.d.ts +1 -0
- package/dist/containers/Operations/shared.js +3 -0
- package/dist/containers/Operations/shared.js.map +1 -0
- package/dist/containers/Operations/useOperationsQueryParams.d.ts +11 -0
- package/dist/containers/Operations/useOperationsQueryParams.js +39 -0
- package/dist/containers/Operations/useOperationsQueryParams.js.map +1 -0
- package/dist/containers/Storage/StorageGroups/columns/constants.d.ts +3 -3
- package/dist/containers/Storage/StorageGroups/columns/constants.js +25 -0
- package/dist/containers/Storage/StorageGroups/columns/constants.js.map +1 -1
- package/dist/containers/Storage/StorageGroups/columns/types.d.ts +2 -3
- package/dist/containers/Storage/StorageGroups/getGroups.js +5 -1
- package/dist/containers/Storage/StorageGroups/getGroups.js.map +1 -1
- package/dist/containers/Storage/StorageNodes/columns/columns.js +3 -3
- package/dist/containers/Storage/StorageNodes/columns/columns.js.map +1 -1
- package/dist/containers/Storage/StorageNodes/columns/constants.d.ts +3 -43
- package/dist/containers/Storage/StorageNodes/columns/constants.js +2 -15
- package/dist/containers/Storage/StorageNodes/columns/constants.js.map +1 -1
- package/dist/containers/Storage/StorageNodes/columns/hooks.js +4 -3
- package/dist/containers/Storage/StorageNodes/columns/hooks.js.map +1 -1
- package/dist/containers/Storage/StorageNodes/columns/types.d.ts +1 -1
- package/dist/containers/Storage/StorageNodes/getNodes.js +5 -1
- package/dist/containers/Storage/StorageNodes/getNodes.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/Diagnostics.js +4 -0
- package/dist/containers/Tenant/Diagnostics/Diagnostics.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/DiagnosticsPages.d.ts +6 -0
- package/dist/containers/Tenant/Diagnostics/DiagnosticsPages.js +5 -0
- package/dist/containers/Tenant/Diagnostics/DiagnosticsPages.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopNodesByLoad.js.map +1 -1
- package/dist/containers/Tenant/Query/Preview/Preview.js +1 -3
- package/dist/containers/Tenant/Query/Preview/Preview.js.map +1 -1
- package/dist/containers/Tenant/utils/schemaQueryTemplates.d.ts +1 -1
- package/dist/containers/Tenant/utils/schemaQueryTemplates.js +2 -2
- package/dist/containers/Tenant/utils/schemaQueryTemplates.js.map +1 -1
- package/dist/containers/UserSettings/UserSettings.js +2 -2
- package/dist/containers/UserSettings/UserSettings.js.map +1 -1
- package/dist/containers/UserSettings/settings.d.ts +1 -0
- package/dist/containers/UserSettings/settings.js +3 -0
- package/dist/containers/UserSettings/settings.js.map +1 -1
- package/dist/services/api.d.ts +2 -0
- package/dist/services/api.js +7 -0
- package/dist/services/api.js.map +1 -1
- package/dist/store/reducers/operationList.d.ts +4 -0
- package/dist/store/reducers/operationList.js +19 -0
- package/dist/store/reducers/operationList.js.map +1 -0
- package/dist/store/reducers/overview/overview.js +2 -2
- package/dist/store/reducers/overview/overview.js.map +1 -1
- package/dist/store/reducers/tableData.d.ts +1 -0
- package/dist/store/reducers/tableData.js +2 -1
- package/dist/store/reducers/tableData.js.map +1 -1
- package/dist/store/reducers/tenant/constants.d.ts +1 -0
- package/dist/store/reducers/tenant/constants.js +1 -0
- package/dist/store/reducers/tenant/constants.js.map +1 -1
- package/dist/store/reducers/topic.js +1 -1
- package/dist/store/reducers/topic.js.map +1 -1
- package/dist/types/api/cluster.d.ts +3 -0
- package/dist/types/api/cluster.js.map +1 -1
- package/dist/types/api/operationList.d.ts +114 -0
- package/dist/types/api/operationList.js +42 -0
- package/dist/types/api/operationList.js.map +1 -0
- package/dist/types/api/storage.d.ts +6 -1
- package/dist/utils/bytesParsers/__test__/formatBytes.test.js +23 -22
- package/dist/utils/bytesParsers/__test__/formatBytes.test.js.map +1 -1
- package/dist/utils/bytesParsers/formatBytes.d.ts +2 -1
- package/dist/utils/bytesParsers/formatBytes.js +5 -5
- package/dist/utils/bytesParsers/formatBytes.js.map +1 -1
- package/dist/utils/dataFormatters/__test__/formatStorageValues.test.d.ts +1 -0
- package/dist/utils/dataFormatters/__test__/formatStorageValues.test.js +37 -0
- package/dist/utils/dataFormatters/__test__/formatStorageValues.test.js.map +1 -0
- package/dist/utils/dataFormatters/dataFormatters.d.ts +3 -1
- package/dist/utils/dataFormatters/dataFormatters.js +33 -3
- package/dist/utils/dataFormatters/dataFormatters.js.map +1 -1
- package/dist/utils/numeral.js +2 -1
- package/dist/utils/numeral.js.map +1 -1
- package/dist/utils/progress.d.ts +10 -0
- package/dist/utils/progress.js +13 -0
- package/dist/utils/progress.js.map +1 -0
- package/dist/utils/tableUtils/getRequiredDataFields.d.ts +1 -0
- package/dist/utils/tableUtils/getRequiredDataFields.js +11 -0
- package/dist/utils/tableUtils/getRequiredDataFields.js.map +1 -0
- package/dist/utils/tableUtils/types.d.ts +3 -0
- package/dist/utils/tableUtils/types.js +2 -0
- package/dist/utils/tableUtils/types.js.map +1 -0
- package/dist/utils/utils.d.ts +1 -0
- package/dist/utils/utils.js +1 -0
- package/dist/utils/utils.js.map +1 -1
- package/package.json +1 -1
- package/dist/containers/Storage/StorageNodes/columns/i18n/en.json +0 -3
- package/dist/containers/Storage/StorageNodes/columns/i18n/index.d.ts +0 -2
- package/dist/containers/Storage/StorageNodes/columns/i18n/index.js +0 -5
- package/dist/containers/Storage/StorageNodes/columns/i18n/index.js.map +0 -1
@@ -0,0 +1,16 @@
|
|
1
|
+
{
|
2
|
+
"label_operations": "Operations",
|
3
|
+
"title_empty": "No operations data",
|
4
|
+
"pleaceholder_search": "Search operations",
|
5
|
+
"placeholder_kind": "Select operation kind",
|
6
|
+
"kind_ssBackgrounds": "SS/Backgrounds",
|
7
|
+
"kind_export": "Export",
|
8
|
+
"kind_buildIndex": "Build Index",
|
9
|
+
"column_operationId": "Operation ID",
|
10
|
+
"column_status": "Status",
|
11
|
+
"column_createdBy": "Created By",
|
12
|
+
"column_createTime": "Create Time",
|
13
|
+
"column_endTime": "End Time",
|
14
|
+
"column_duration": "Duration",
|
15
|
+
"label_duration-ongoing": "{{value}} (ongoing)"
|
16
|
+
}
|
@@ -0,0 +1,2 @@
|
|
1
|
+
declare const _default: (key: "label_operations" | "title_empty" | "pleaceholder_search" | "placeholder_kind" | "kind_ssBackgrounds" | "kind_export" | "kind_buildIndex" | "column_operationId" | "column_status" | "column_createdBy" | "column_createTime" | "column_endTime" | "column_duration" | "label_duration-ongoing", params?: import("@gravity-ui/i18n").Params) => string;
|
2
|
+
export default _default;
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/containers/Operations/i18n/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,eAAe,EAAC,MAAM,qBAAqB,CAAC;AAEpD,OAAO,EAAE,MAAM,WAAW,CAAC;AAE3B,MAAM,SAAS,GAAG,gBAAgB,CAAC;AAEnC,eAAe,eAAe,CAAC,SAAS,EAAE,EAAC,EAAE,EAAC,CAAC,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './Operations';
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/containers/Operations/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare const b: import("@bem-react/classname").ClassNameFormatter;
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"shared.js","sourceRoot":"","sources":["../../../src/containers/Operations/shared.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,EAAE,EAAC,MAAM,gBAAgB,CAAC;AAElC,MAAM,CAAC,MAAM,CAAC,GAAG,EAAE,CAAC,YAAY,CAAC,CAAC"}
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import type { OperationKind } from '../../types/api/operationList';
|
2
|
+
export declare function useOperationsQueryParams(): {
|
3
|
+
kind: OperationKind;
|
4
|
+
searchValue: string;
|
5
|
+
pageSize: number | undefined;
|
6
|
+
pageToken: string | undefined;
|
7
|
+
handleKindChange: (value: OperationKind) => void;
|
8
|
+
handleSearchChange: (value: string) => void;
|
9
|
+
handlePageSizeChange: (value: number) => void;
|
10
|
+
handlePageTokenChange: (value: string | undefined) => void;
|
11
|
+
};
|
@@ -0,0 +1,39 @@
|
|
1
|
+
import { NumberParam, StringParam, useQueryParams } from 'use-query-params';
|
2
|
+
import { z } from 'zod';
|
3
|
+
const operationKindSchema = z.enum(['ss/backgrounds', 'export', 'buildindex']).catch('buildindex');
|
4
|
+
export function useOperationsQueryParams() {
|
5
|
+
var _a, _b, _c;
|
6
|
+
const [queryParams, setQueryParams] = useQueryParams({
|
7
|
+
kind: StringParam,
|
8
|
+
search: StringParam,
|
9
|
+
pageSize: NumberParam,
|
10
|
+
pageToken: StringParam,
|
11
|
+
});
|
12
|
+
const kind = operationKindSchema.parse(queryParams.kind);
|
13
|
+
const searchValue = (_a = queryParams.search) !== null && _a !== void 0 ? _a : '';
|
14
|
+
const pageSize = (_b = queryParams.pageSize) !== null && _b !== void 0 ? _b : undefined;
|
15
|
+
const pageToken = (_c = queryParams.pageToken) !== null && _c !== void 0 ? _c : undefined;
|
16
|
+
const handleKindChange = (value) => {
|
17
|
+
setQueryParams({ kind: value }, 'replaceIn');
|
18
|
+
};
|
19
|
+
const handleSearchChange = (value) => {
|
20
|
+
setQueryParams({ search: value || undefined }, 'replaceIn');
|
21
|
+
};
|
22
|
+
const handlePageSizeChange = (value) => {
|
23
|
+
setQueryParams({ pageSize: value }, 'replaceIn');
|
24
|
+
};
|
25
|
+
const handlePageTokenChange = (value) => {
|
26
|
+
setQueryParams({ pageToken: value }, 'replaceIn');
|
27
|
+
};
|
28
|
+
return {
|
29
|
+
kind,
|
30
|
+
searchValue,
|
31
|
+
pageSize,
|
32
|
+
pageToken,
|
33
|
+
handleKindChange,
|
34
|
+
handleSearchChange,
|
35
|
+
handlePageSizeChange,
|
36
|
+
handlePageTokenChange,
|
37
|
+
};
|
38
|
+
}
|
39
|
+
//# sourceMappingURL=useOperationsQueryParams.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"useOperation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,WAAW,CAAC,CAAC;IACnD,CAAC,CAAC;IAEF,MAAM,qBAAqB,GAAG,CAAC,KAAyB,EAAE,EAAE;QACxD,cAAc,CAAC,EAAC,SAAS,EAAE,KAAK,EAAC,EAAE,WAAW,CAAC,CAAC;IACpD,CAAC,CAAC;IAEF,OAAO;QACH,IAAI;QACJ,WAAW;QACX,QAAQ;QACR,SAAS;QACT,gBAAgB;QAChB,kBAAkB;QAClB,oBAAoB;QACpB,qBAAqB;KACxB,CAAC;AACN,CAAC"}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import type { SelectOption } from '@gravity-ui/uikit';
|
2
2
|
import { z } from 'zod';
|
3
|
-
import type { GroupsGroupByField } from '../../../../types/api/storage';
|
3
|
+
import type { GroupsGroupByField, GroupsRequiredField } from '../../../../types/api/storage';
|
4
4
|
import type { ValueOf } from '../../../../types/common';
|
5
5
|
export declare const STORAGE_GROUPS_COLUMNS_WIDTH_LS_KEY = "storageGroupsColumnsWidth";
|
6
6
|
export declare const STORAGE_GROUPS_SELECTED_COLUMNS_LS_KEY = "storageGroupsSelectedColumns";
|
@@ -25,7 +25,7 @@ export declare const STORAGE_GROUPS_COLUMNS_IDS: {
|
|
25
25
|
readonly Degraded: "Degraded";
|
26
26
|
readonly State: "State";
|
27
27
|
};
|
28
|
-
type StorageGroupsColumnId = ValueOf<typeof STORAGE_GROUPS_COLUMNS_IDS>;
|
28
|
+
export type StorageGroupsColumnId = ValueOf<typeof STORAGE_GROUPS_COLUMNS_IDS>;
|
29
29
|
export declare const DEFAULT_STORAGE_GROUPS_COLUMNS: StorageGroupsColumnId[];
|
30
30
|
export declare const REQUIRED_STORAGE_GROUPS_COLUMNS: StorageGroupsColumnId[];
|
31
31
|
export declare const STORAGE_GROUPS_COLUMNS_TITLES: {
|
@@ -51,4 +51,4 @@ export declare const STORAGE_GROUPS_COLUMNS_TITLES: {
|
|
51
51
|
};
|
52
52
|
export declare const STORAGE_GROUPS_GROUP_BY_OPTIONS: SelectOption[];
|
53
53
|
export declare const storageGroupsGroupByParamSchema: z.ZodCatch<z.ZodType<GroupsGroupByField | undefined, z.ZodTypeDef, GroupsGroupByField | undefined>>;
|
54
|
-
export
|
54
|
+
export declare const GROUPS_COLUMNS_TO_DATA_FIELDS: Record<StorageGroupsColumnId, GroupsRequiredField[]>;
|
@@ -117,4 +117,29 @@ export const STORAGE_GROUPS_GROUP_BY_OPTIONS = STORAGE_GROUPS_GROUP_BY_PARAMS.ma
|
|
117
117
|
export const storageGroupsGroupByParamSchema = z
|
118
118
|
.custom((value) => STORAGE_GROUPS_GROUP_BY_PARAMS.includes(value))
|
119
119
|
.catch(undefined);
|
120
|
+
// Although columns ids mostly similar to backend fields, there might be some difference
|
121
|
+
// Also for some columns we may use more than one field
|
122
|
+
export const GROUPS_COLUMNS_TO_DATA_FIELDS = {
|
123
|
+
GroupId: ['GroupId'],
|
124
|
+
PoolName: ['PoolName'],
|
125
|
+
// We display MediaType and Encryption in one Type column
|
126
|
+
MediaType: ['MediaType', 'Encryption'],
|
127
|
+
Encryption: ['Encryption'],
|
128
|
+
Erasure: ['Erasure'],
|
129
|
+
Used: ['Used'],
|
130
|
+
Limit: ['Limit'],
|
131
|
+
Usage: ['Usage'],
|
132
|
+
DiskSpaceUsage: ['DiskSpaceUsage'],
|
133
|
+
DiskSpace: ['State'],
|
134
|
+
Read: ['Read'],
|
135
|
+
Write: ['Write'],
|
136
|
+
Latency: ['Latency'],
|
137
|
+
AllocationUnits: ['AllocationUnits'],
|
138
|
+
// Read and Write fields make backend to return Whiteboard data
|
139
|
+
VDisks: ['VDisk', 'PDisk', 'Read', 'Write'],
|
140
|
+
VDisksPDisks: ['VDisk', 'PDisk', 'Read', 'Write'],
|
141
|
+
MissingDisks: ['MissingDisks'],
|
142
|
+
Degraded: ['MissingDisks'],
|
143
|
+
State: ['State'],
|
144
|
+
};
|
120
145
|
//# sourceMappingURL=constants.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot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WAAW;IACX,YAAY;IACZ,SAAS;IACT,OAAO;IACP,gBAAgB;IAChB,OAAO;IACP,cAAc;IACd,SAAS;CAC4B,CAAC;AAE1C,MAAM,CAAC,MAAM,+BAA+B,GAAmB,8BAA8B,CAAC,GAAG,CAC7F,CAAC,KAAK,EAAE,EAAE;IACN,OAAO;QACH,KAAK,EAAE,KAAK;QACZ,OAAO,EAAE,6BAA6B,CAAC,KAAK,CAAC;KAChD,CAAC;AACN,CAAC,CACJ,CAAC;AAEF,MAAM,CAAC,MAAM,+BAA+B,GAAG,CAAC;KAC3C,MAAM,CAEL,CAAC,KAAK,EAAE,EAAE,CAAC,8BAA8B,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;KAC3D,KAAK,CAAC,SAAS,CAAC,CAAC"}
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../src/containers/Storage/StorageGroups/columns/constants.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAKtB,OAAO,IAAI,MAAM,QAAQ,CAAC;AAE1B,MAAM,CAAC,MAAM,mCAAmC,GAAG,2BAA2B,CAAC;AAC/E,MAAM,CAAC,MAAM,sCAAsC,GAAG,8BAA8B,CAAC;AAErF,MAAM,CAAC,MAAM,0BAA0B,GAAG;IACtC,OAAO,EAAE,SAAS;IAClB,QAAQ,EAAE,UAAU;IACpB,SAAS,EAAE,WAAW;IACtB,UAAU,EAAE,YAAY;IACxB,OAAO,EAAE,SAAS;IAClB,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE,OAAO;IACd,KAAK,EAAE,OAAO;IACd,cAAc,EAAE,gBAAgB;IAChC,SAAS,EAAE,WAAW;IACtB,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE,OAAO;IACd,OAAO,EAAE,SAAS;IAClB,eAAe,EAAE,iBAAiB;IAClC,MAAM,EAAE,QAAQ;IAChB,YAAY,EAAE,cAAc;IAC5B,YAAY,EAAE,cAAc;IAC5B,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,YAAY,CAAC;IAC1B,OAAO,EAAE,CAAC,SAAS,CAAC;IACpB,IAAI,EAAE,CAAC,MAAM,CAAC;IACd,KAAK,EAAE,CAAC,OAAO,CAAC;IAChB,KAAK,EAAE,CAAC,OAAO,CAAC;IAChB,cAAc,EAAE,CAAC,gBAAgB,CAAC;IAClC,SAAS,EAAE,CAAC,OAAO,CAAC;IACpB,IAAI,EAAE,CAAC,MAAM,CAAC;IACd,KAAK,EAAE,CAAC,OAAO,CAAC;IAChB,OAAO,EAAE,CAAC,SAAS,CAAC;IACpB,eAAe,EAAE,CAAC,iBAAiB,CAAC;IACpC,+DAA+D;IAC/D,MAAM,EAAE,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC;IAC3C,YAAY,EAAE,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC;IACjD,YAAY,EAAE,CAAC,cAAc,CAAC;IAC9B,QAAQ,EAAE,CAAC,cAAc,CAAC;IAC1B,KAAK,EAAE,CAAC,OAAO,CAAC;CACnB,CAAC"}
|
@@ -1,8 +1,7 @@
|
|
1
|
-
import type { Column as DataTableColumn } from '@gravity-ui/react-data-table';
|
2
|
-
import type { Column as PaginatedTableColumn } from '../../../../components/PaginatedTable';
|
3
1
|
import type { PreparedStorageGroup, VisibleEntities } from '../../../../store/reducers/storage/types';
|
2
|
+
import type { Column } from '../../../../utils/tableUtils/types';
|
4
3
|
import type { StorageViewContext } from '../../types';
|
5
|
-
export type StorageGroupsColumn =
|
4
|
+
export type StorageGroupsColumn = Column<PreparedStorageGroup>;
|
6
5
|
export interface GetStorageColumnsData {
|
7
6
|
viewContext: StorageViewContext;
|
8
7
|
}
|
@@ -2,14 +2,17 @@ import React from 'react';
|
|
2
2
|
import { requestStorageData } from '../../../store/reducers/storage/requestStorageData';
|
3
3
|
import { prepareSortValue } from '../../../utils/filters';
|
4
4
|
import { isSortableStorageProperty } from '../../../utils/storage';
|
5
|
+
import { getRequiredDataFields } from '../../../utils/tableUtils/getRequiredDataFields';
|
6
|
+
import { GROUPS_COLUMNS_TO_DATA_FIELDS } from './columns/constants';
|
5
7
|
export function useGroupsGetter(shouldUseGroupsHandler) {
|
6
8
|
const fetchData = React.useCallback(async (params) => {
|
7
|
-
const { limit, offset, sortParams, filters } = params;
|
9
|
+
const { limit, offset, sortParams, filters, columnsIds } = params;
|
8
10
|
const { sortOrder, columnId } = sortParams !== null && sortParams !== void 0 ? sortParams : {};
|
9
11
|
const { searchValue, visibleEntities, database, nodeId, groupId, pDiskId, filterGroup, filterGroupBy, } = filters !== null && filters !== void 0 ? filters : {};
|
10
12
|
const sort = isSortableStorageProperty(columnId)
|
11
13
|
? prepareSortValue(columnId, sortOrder)
|
12
14
|
: undefined;
|
15
|
+
const dataFieldsRequired = getRequiredDataFields(columnsIds, GROUPS_COLUMNS_TO_DATA_FIELDS);
|
13
16
|
const { groups, found, total } = await requestStorageData({
|
14
17
|
limit,
|
15
18
|
offset,
|
@@ -22,6 +25,7 @@ export function useGroupsGetter(shouldUseGroupsHandler) {
|
|
22
25
|
pDiskId,
|
23
26
|
filter_group: filterGroup,
|
24
27
|
filter_group_by: filterGroupBy,
|
28
|
+
fieldsRequired: dataFieldsRequired,
|
25
29
|
shouldUseGroupsHandler,
|
26
30
|
});
|
27
31
|
return {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"getGroups.js","sourceRoot":"","sources":["../../../../src/containers/Storage/StorageGroups/getGroups.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAC,kBAAkB,EAAC,MAAM,oDAAoD,CAAC;AAKtF,OAAO,EAAC,gBAAgB,EAAC,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAC,yBAAyB,EAAC,MAAM,wBAAwB,CAAC;
|
1
|
+
{"version":3,"file":"getGroups.js","sourceRoot":"","sources":["../../../../src/containers/Storage/StorageGroups/getGroups.ts"],"names":[],"mappings":"AAAA,OAAO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aAAa;YAC9B,cAAc,EAAE,kBAAkB;YAClC,sBAAsB;SACzB,CAAC,CAAC;QAEH,OAAO;YACH,IAAI,EAAE,MAAM,IAAI,EAAE;YAClB,KAAK,EAAE,KAAK,IAAI,CAAC;YACjB,KAAK,EAAE,KAAK,IAAI,CAAC;SACpB,CAAC;IACN,CAAC,EACD,CAAC,sBAAsB,CAAC,CAC3B,CAAC;IAEF,OAAO,SAAS,CAAC;AACrB,CAAC"}
|
@@ -1,16 +1,16 @@
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
2
2
|
import DataTable from '@gravity-ui/react-data-table';
|
3
3
|
import { getCpuColumn, getDataCenterColumn, getDiskSpaceUsageColumn, getHostColumn, getMemoryColumn, getMissingDisksColumn, getNodeIdColumn, getNodeNameColumn, getRackColumn, getUptimeColumn, getVersionColumn, } from '../../../../components/nodesColumns/columns';
|
4
|
+
import { NODES_COLUMNS_IDS, NODES_COLUMNS_TITLES, } from '../../../../components/nodesColumns/constants';
|
4
5
|
import { cn } from '../../../../utils/cn';
|
5
6
|
import { isSortableNodesProperty } from '../../../../utils/nodes';
|
6
7
|
import { PDisk } from '../../PDisk/PDisk';
|
7
|
-
import { STORAGE_NODES_COLUMNS_IDS, STORAGE_NODES_COLUMNS_TITLES } from './constants';
|
8
8
|
import './StorageNodesColumns.scss';
|
9
9
|
const b = cn('ydb-storage-nodes-columns');
|
10
10
|
const getPDisksColumn = ({ viewContext }) => {
|
11
11
|
return {
|
12
|
-
name:
|
13
|
-
header:
|
12
|
+
name: NODES_COLUMNS_IDS.PDisks,
|
13
|
+
header: NODES_COLUMNS_TITLES.PDisks,
|
14
14
|
className: b('pdisks-column'),
|
15
15
|
render: ({ row }) => {
|
16
16
|
var _a;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"columns.js","sourceRoot":"","sources":["../../../../../src/containers/Storage/StorageNodes/columns/columns.tsx"],"names":[],"mappings":";AAAA,OAAO,SAAS,MAAM,8BAA8B,CAAC;AAErD,OAAO,EACH,YAAY,EACZ,mBAAmB,EACnB,uBAAuB,EACvB,aAAa,EACb,eAAe,EACf,qBAAqB,EACrB,eAAe,EACf,iBAAiB,EACjB,aAAa,EACb,eAAe,EACf,gBAAgB,GACnB,MAAM,6CAA6C,CAAC;
|
1
|
+
{"version":3,"file":"columns.js","sourceRoot":"","sources":["../../../../../src/containers/Storage/StorageNodes/columns/columns.tsx"],"names":[],"mappings":";AAAA,OAAO,SAAS,MAAM,8BAA8B,CAAC;AAErD,OAAO,EACH,YAAY,EACZ,mBAAmB,EACnB,uBAAuB,EACvB,aAAa,EACb,eAAe,EACf,qBAAqB,EACrB,eAAe,EACf,iBAAiB,EACjB,aAAa,EACb,eAAe,EACf,gBAAgB,GACnB,MAAM,6CAA6C,CAAC;AACrD,OAAO,EACH,iBAAiB,EACjB,oBAAoB,GACvB,MAAM,+CAA+C,CAAC;AAEvD,OAAO,EAAC,EAAE,EAAC,MAAM,sBAAsB,CAAC;AACxC,OAAO,EAAC,uBAAuB,EAAC,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAC,KAAK,EAAC,MAAM,mBAAmB,CAAC;AAIxC,OAAO,4BAA4B,CAAC;AAEpC,MAAM,CAAC,GAAG,EAAE,CAAC,2BAA2B,CAAC,CAAC;AAE1C,MAAM,eAAe,GAAG,CAAC,EAAC,WAAW,EAA+B,EAAsB,EAAE;IACxF,OAAO;QACH,IAAI,EAAE,iBAAiB,CAAC,MAAM;QAC9B,MAAM,EAAE,oBAAoB,CAAC,MAAM;QACnC,SAAS,EAAE,CAAC,CAAC,eAAe,CAAC;QAC7B,MAAM,EAAE,CAAC,EAAC,GAAG,EAAC,EAAE,EAAE;;YACd,OAAO,CACH,cAAK,SAAS,EAAE,CAAC,CAAC,gBAAgB,CAAC,YAC9B,MAAA,GAAG,CAAC,MAAM,0CAAE,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE;;oBACvB,MAAM,MAAM,GAAG,MAAA,GAAG,CAAC,MAAM,0CA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,CAAC"}
|
@@ -1,50 +1,10 @@
|
|
1
1
|
import type { SelectOption } from '@gravity-ui/uikit';
|
2
2
|
import { z } from 'zod';
|
3
|
+
import type { NodesColumnId } from '../../../../components/nodesColumns/constants';
|
3
4
|
import type { NodesGroupByField } from '../../../../types/api/nodes';
|
4
|
-
import type { ValueOf } from '../../../../types/common';
|
5
5
|
export declare const STORAGE_NODES_COLUMNS_WIDTH_LS_KEY = "storageNodesColumnsWidth";
|
6
6
|
export declare const STORAGE_NODES_SELECTED_COLUMNS_LS_KEY = "storageNodesSelectedColumns";
|
7
|
-
export declare const
|
8
|
-
|
9
|
-
readonly NodeId: "NodeId";
|
10
|
-
readonly Host: "Host";
|
11
|
-
readonly NodeName: "NodeName";
|
12
|
-
readonly DC: "DC";
|
13
|
-
readonly Rack: "Rack";
|
14
|
-
readonly Version: "Version";
|
15
|
-
readonly Uptime: "Uptime";
|
16
|
-
readonly Memory: "Memory";
|
17
|
-
readonly CPU: "CPU";
|
18
|
-
readonly LoadAverage: "LoadAverage";
|
19
|
-
readonly Load: "Load";
|
20
|
-
readonly DiskSpaceUsage: "DiskSpaceUsage";
|
21
|
-
readonly SharedCacheUsage: "SharedCacheUsage";
|
22
|
-
readonly TotalSessions: "TotalSessions";
|
23
|
-
readonly Missing: "Missing";
|
24
|
-
readonly Tablets: "Tablets";
|
25
|
-
};
|
26
|
-
type StorageNodesColumnId = ValueOf<typeof STORAGE_NODES_COLUMNS_IDS>;
|
27
|
-
export declare const DEFAULT_STORAGE_NODES_COLUMNS: StorageNodesColumnId[];
|
28
|
-
export declare const REQUIRED_STORAGE_NODES_COLUMNS: StorageNodesColumnId[];
|
29
|
-
export declare const STORAGE_NODES_COLUMNS_TITLES: {
|
30
|
-
readonly PDisks: string;
|
31
|
-
readonly NodeId: string;
|
32
|
-
readonly Host: string;
|
33
|
-
readonly NodeName: string;
|
34
|
-
readonly DC: string;
|
35
|
-
readonly Rack: string;
|
36
|
-
readonly Version: string;
|
37
|
-
readonly Uptime: string;
|
38
|
-
readonly Memory: string;
|
39
|
-
readonly CPU: string;
|
40
|
-
readonly LoadAverage: string;
|
41
|
-
readonly Load: string;
|
42
|
-
readonly DiskSpaceUsage: string;
|
43
|
-
readonly SharedCacheUsage: string;
|
44
|
-
readonly TotalSessions: string;
|
45
|
-
readonly Missing: string;
|
46
|
-
readonly Tablets: string;
|
47
|
-
};
|
7
|
+
export declare const DEFAULT_STORAGE_NODES_COLUMNS: NodesColumnId[];
|
8
|
+
export declare const REQUIRED_STORAGE_NODES_COLUMNS: NodesColumnId[];
|
48
9
|
export declare const STORAGE_NODES_GROUP_BY_OPTIONS: SelectOption[];
|
49
10
|
export declare const storageNodesGroupByParamSchema: z.ZodCatch<z.ZodType<NodesGroupByField | undefined, z.ZodTypeDef, NodesGroupByField | undefined>>;
|
50
|
-
export {};
|
@@ -1,12 +1,7 @@
|
|
1
1
|
import { z } from 'zod';
|
2
|
-
import {
|
3
|
-
import i18n from './i18n';
|
2
|
+
import { NODES_COLUMNS_TITLES } from '../../../../components/nodesColumns/constants';
|
4
3
|
export const STORAGE_NODES_COLUMNS_WIDTH_LS_KEY = 'storageNodesColumnsWidth';
|
5
4
|
export const STORAGE_NODES_SELECTED_COLUMNS_LS_KEY = 'storageNodesSelectedColumns';
|
6
|
-
export const STORAGE_NODES_COLUMNS_IDS = {
|
7
|
-
...BASE_NODES_COLUMNS_IDS,
|
8
|
-
PDisks: 'PDisks',
|
9
|
-
};
|
10
5
|
export const DEFAULT_STORAGE_NODES_COLUMNS = [
|
11
6
|
'NodeId',
|
12
7
|
'Host',
|
@@ -17,14 +12,6 @@ export const DEFAULT_STORAGE_NODES_COLUMNS = [
|
|
17
12
|
'PDisks',
|
18
13
|
];
|
19
14
|
export const REQUIRED_STORAGE_NODES_COLUMNS = ['NodeId'];
|
20
|
-
// This code is running when module is initialized and correct language may not be set yet
|
21
|
-
// get functions guarantee that i18n fields will be inited on render with current render language
|
22
|
-
export const STORAGE_NODES_COLUMNS_TITLES = {
|
23
|
-
...BASE_NODES_COLUMNS_TITLES,
|
24
|
-
get PDisks() {
|
25
|
-
return i18n('pdisks');
|
26
|
-
},
|
27
|
-
};
|
28
15
|
const STORAGE_NODES_GROUP_BY_PARAMS = [
|
29
16
|
'Host',
|
30
17
|
'DC',
|
@@ -37,7 +24,7 @@ const STORAGE_NODES_GROUP_BY_PARAMS = [
|
|
37
24
|
export const STORAGE_NODES_GROUP_BY_OPTIONS = STORAGE_NODES_GROUP_BY_PARAMS.map((param) => {
|
38
25
|
return {
|
39
26
|
value: param,
|
40
|
-
content:
|
27
|
+
content: NODES_COLUMNS_TITLES[param],
|
41
28
|
};
|
42
29
|
});
|
43
30
|
export const storageNodesGroupByParamSchema = z
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../src/containers/Storage/StorageNodes/columns/constants.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../src/containers/Storage/StorageNodes/columns/constants.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAGtB,OAAO,EAAC,oBAAoB,EAAC,MAAM,+CAA+C,CAAC;AAGnF,MAAM,CAAC,MAAM,kCAAkC,GAAG,0BAA0B,CAAC;AAC7E,MAAM,CAAC,MAAM,qCAAqC,GAAG,6BAA6B,CAAC;AAEnF,MAAM,CAAC,MAAM,6BAA6B,GAAoB;IAC1D,QAAQ;IACR,MAAM;IACN,IAAI;IACJ,MAAM;IACN,KAAK;IACL,QAAQ;IACR,QAAQ;CACX,CAAC;AACF,MAAM,CAAC,MAAM,8BAA8B,GAAoB,CAAC,QAAQ,CAAC,CAAC;AAE1E,MAAM,6BAA6B,GAAG;IAClC,MAAM;IACN,IAAI;IACJ,MAAM;IACN,SAAS;IACT,QAAQ;IACR,SAAS;IACT,gBAAgB;CACoB,CAAC;AAEzC,MAAM,CAAC,MAAM,8BAA8B,GAAmB,6BAA6B,CAAC,GAAG,CAC3F,CAAC,KAAK,EAAE,EAAE;IACN,OAAO;QACH,KAAK,EAAE,KAAK;QACZ,OAAO,EAAE,oBAAoB,CAAC,KAAK,CAAC;KACvC,CAAC;AACN,CAAC,CACJ,CAAC;AAEF,MAAM,CAAC,MAAM,8BAA8B,GAAG,CAAC;KAC1C,MAAM,CAAgC,CAAC,KAAK,EAAE,EAAE,CAAC,6BAA6B,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;KAC/F,KAAK,CAAC,SAAS,CAAC,CAAC"}
|
@@ -1,18 +1,19 @@
|
|
1
1
|
import React from 'react';
|
2
|
+
import { NODES_COLUMNS_IDS, NODES_COLUMNS_TITLES, } from '../../../../components/nodesColumns/constants';
|
2
3
|
import { VISIBLE_ENTITIES } from '../../../../store/reducers/storage/constants';
|
3
4
|
import { useSelectedColumns } from '../../../../utils/hooks/useSelectedColumns';
|
4
5
|
import { getStorageNodesColumns } from './columns';
|
5
|
-
import { DEFAULT_STORAGE_NODES_COLUMNS, REQUIRED_STORAGE_NODES_COLUMNS,
|
6
|
+
import { DEFAULT_STORAGE_NODES_COLUMNS, REQUIRED_STORAGE_NODES_COLUMNS, STORAGE_NODES_SELECTED_COLUMNS_LS_KEY, } from './constants';
|
6
7
|
export function useStorageNodesSelectedColumns({ visibleEntities, database, additionalNodesProps, viewContext, }) {
|
7
8
|
const columns = React.useMemo(() => {
|
8
9
|
return getStorageNodesColumns({ database, additionalNodesProps, viewContext });
|
9
10
|
}, [database, additionalNodesProps, viewContext]);
|
10
11
|
const requiredColumns = React.useMemo(() => {
|
11
12
|
if (visibleEntities === VISIBLE_ENTITIES.missing) {
|
12
|
-
return [...REQUIRED_STORAGE_NODES_COLUMNS,
|
13
|
+
return [...REQUIRED_STORAGE_NODES_COLUMNS, NODES_COLUMNS_IDS.Missing];
|
13
14
|
}
|
14
15
|
return REQUIRED_STORAGE_NODES_COLUMNS;
|
15
16
|
}, [visibleEntities]);
|
16
|
-
return useSelectedColumns(columns, STORAGE_NODES_SELECTED_COLUMNS_LS_KEY,
|
17
|
+
return useSelectedColumns(columns, STORAGE_NODES_SELECTED_COLUMNS_LS_KEY, NODES_COLUMNS_TITLES, DEFAULT_STORAGE_NODES_COLUMNS, requiredColumns);
|
17
18
|
}
|
18
19
|
//# sourceMappingURL=hooks.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"hooks.js","sourceRoot":"","sources":["../../../../../src/containers/Storage/StorageNodes/columns/hooks.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,gBAAgB,EAAC,MAAM,8CAA8C,CAAC;AAC9E,OAAO,EAAC,kBAAkB,EAAC,MAAM,4CAA4C,CAAC;AAE9E,OAAO,EAAC,sBAAsB,EAAC,MAAM,WAAW,CAAC;AACjD,OAAO,EACH,6BAA6B,EAC7B,8BAA8B,EAC9B,
|
1
|
+
{"version":3,"file":"hooks.js","sourceRoot":"","sources":["../../../../../src/containers/Storage/StorageNodes/columns/hooks.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EACH,iBAAiB,EACjB,oBAAoB,GACvB,MAAM,+CAA+C,CAAC;AACvD,OAAO,EAAC,gBAAgB,EAAC,MAAM,8CAA8C,CAAC;AAC9E,OAAO,EAAC,kBAAkB,EAAC,MAAM,4CAA4C,CAAC;AAE9E,OAAO,EAAC,sBAAsB,EAAC,MAAM,WAAW,CAAC;AACjD,OAAO,EACH,6BAA6B,EAC7B,8BAA8B,EAC9B,qCAAqC,GACxC,MAAM,aAAa,CAAC;AAGrB,MAAM,UAAU,8BAA8B,CAAC,EAC3C,eAAe,EACf,QAAQ,EACR,oBAAoB,EACpB,WAAW,GACgB;IAC3B,MAAM,OAAO,GAAG,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE;QAC/B,OAAO,sBAAsB,CAAC,EAAC,QAAQ,EAAE,oBAAoB,EAAE,WAAW,EAAC,CAAC,CAAC;IACjF,CAAC,EAAE,CAAC,QAAQ,EAAE,oBAAoB,EAAE,WAAW,CAAC,CAAC,CAAC;IAElD,MAAM,eAAe,GAAG,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE;QACvC,IAAI,eAAe,KAAK,gBAAgB,CAAC,OAAO,EAAE,CAAC;YAC/C,OAAO,CAAC,GAAG,8BAA8B,EAAE,iBAAiB,CAAC,OAAO,CAAC,CAAC;QAC1E,CAAC;QACD,OAAO,8BAA8B,CAAC;IAC1C,CAAC,EAAE,CAAC,eAAe,CAAC,CAAC,CAAC;IAEtB,OAAO,kBAAkB,CACrB,OAAO,EACP,qCAAqC,EACrC,oBAAoB,EACpB,6BAA6B,EAC7B,eAAe,CAClB,CAAC;AACN,CAAC"}
|
@@ -1,6 +1,6 @@
|
|
1
|
-
import type { Column } from '../../../../components/nodesColumns/types';
|
2
1
|
import type { PreparedStorageNode, VisibleEntities } from '../../../../store/reducers/storage/types';
|
3
2
|
import type { AdditionalNodesProps } from '../../../../types/additionalProps';
|
3
|
+
import type { Column } from '../../../../utils/tableUtils/types';
|
4
4
|
import type { StorageViewContext } from '../../types';
|
5
5
|
export type StorageNodesColumn = Column<PreparedStorageNode>;
|
6
6
|
export interface GetStorageNodesColumnsParams {
|
@@ -1,13 +1,16 @@
|
|
1
|
+
import { NODES_COLUMNS_TO_DATA_FIELDS } from '../../../components/nodesColumns/constants';
|
1
2
|
import { prepareStorageNodesResponse } from '../../../store/reducers/storage/utils';
|
2
3
|
import { prepareSortValue } from '../../../utils/filters';
|
3
4
|
import { getUptimeParamValue, isSortableNodesProperty } from '../../../utils/nodes';
|
5
|
+
import { getRequiredDataFields } from '../../../utils/tableUtils/getRequiredDataFields';
|
4
6
|
export const getStorageNodes = async (params) => {
|
5
|
-
const { type = 'static', storage = true, limit, offset, sortParams, filters } = params;
|
7
|
+
const { type = 'static', storage = true, limit, offset, sortParams, filters, columnsIds, } = params;
|
6
8
|
const { searchValue, nodesUptimeFilter, visibleEntities, database, nodeId, groupId, filterGroup, filterGroupBy, } = filters !== null && filters !== void 0 ? filters : {};
|
7
9
|
const { sortOrder, columnId } = sortParams !== null && sortParams !== void 0 ? sortParams : {};
|
8
10
|
const sort = isSortableNodesProperty(columnId)
|
9
11
|
? prepareSortValue(columnId, sortOrder)
|
10
12
|
: undefined;
|
13
|
+
const dataFieldsRequired = getRequiredDataFields(columnsIds, NODES_COLUMNS_TO_DATA_FIELDS);
|
11
14
|
const response = await window.api.getNodes({
|
12
15
|
type,
|
13
16
|
storage,
|
@@ -22,6 +25,7 @@ export const getStorageNodes = async (params) => {
|
|
22
25
|
group_id: groupId,
|
23
26
|
filter_group: filterGroup,
|
24
27
|
filter_group_by: filterGroupBy,
|
28
|
+
fieldsRequired: dataFieldsRequired,
|
25
29
|
});
|
26
30
|
const preparedResponse = prepareStorageNodesResponse(response);
|
27
31
|
return {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"getNodes.js","sourceRoot":"","sources":["../../../../src/containers/Storage/StorageNodes/getNodes.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"getNodes.js","sourceRoot":"","sources":["../../../../src/containers/Storage/StorageNodes/getNodes.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,4BAA4B,EAAC,MAAM,4CAA4C,CAAC;AAKxF,OAAO,EAAC,2BAA2B,EAAC,MAAM,uCAAuC,CAAC;AAElF,OAAO,EAAC,gBAAgB,EAAC,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAC,mBAAmB,EAAE,uBAAuB,EAAC,MAAM,sBAAsB,CAAC;AAClF,OAAO,EAAC,qBAAqB,EAAC,MAAM,iDAAiD,CAAC;AAEtF,MAAM,CAAC,MAAM,eAAe,GAIxB,KAAK,EAAE,MAAM,EAAE,EAAE;IACjB,MAAM,EACF,IAAI,GAAG,QAAQ,EACf,OAAO,GAAG,IAAI,EACd,KAAK,EACL,MAAM,EACN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elector } from '../../../utils/hooks';
|
14
14
|
import { Heatmap } from '../../Heatmap';
|
15
15
|
import { NodesWrapper } from '../../Nodes/NodesWrapper';
|
16
|
+
import { Operations } from '../../Operations';
|
16
17
|
import { StorageWrapper } from '../../Storage/StorageWrapper';
|
17
18
|
import { Tablets } from '../../Tablets';
|
18
19
|
import { SchemaViewer } from '../Schema/SchemaViewer/SchemaViewer';
|
@@ -98,6 +99,9 @@ function Diagnostics(props) {
|
|
98
99
|
case TENANT_DIAGNOSTICS_TABS_IDS.configs: {
|
99
100
|
return _jsx(Configs, { database: tenantName });
|
100
101
|
}
|
102
|
+
case TENANT_DIAGNOSTICS_TABS_IDS.operations: {
|
103
|
+
return _jsx(Operations, { database: tenantName });
|
104
|
+
}
|
101
105
|
default: {
|
102
106
|
return _jsx("div", { children: "No data..." });
|
103
107
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Diagnostics.js","sourceRoot":"","sources":["../../../../src/containers/Tenant/Diagnostics/Diagnostics.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,IAAI,EAAC,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAC,MAAM,EAAC,MAAM,oBAAoB,CAAC;AAC1C,OAAO,EAAC,IAAI,EAAC,MAAM,kBAAkB,CAAC;AACtC,OAAO,EAAC,WAAW,EAAE,cAAc,EAAC,MAAM,kBAAkB,CAAC;AAE7D,OAAO,EAAC,kBAAkB,EAAC,MAAM,2DAA2D,CAAC;AAC7F,OAAO,MAAM,EAAE,EAAC,UAAU,EAAC,MAAM,iBAAiB,CAAC;AACnD,OAAO,EAAC,wBAAwB,EAAC,MAAM,4CAA4C,CAAC;AACpF,OAAO,EAAC,2BAA2B,EAAC,MAAM,0CAA0C,CAAC;AACrF,OAAO,EAAC,iBAAiB,EAAC,MAAM,uCAAuC,CAAC;AAGxE,OAAO,EAAC,EAAE,EAAC,MAAM,mBAAmB,CAAC;AACrC,OA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L,CAAC,CAAC;IACF,MAAM,UAAU,GAAG,GAAG,EAAE;QACpB,OAAO,CACH,cAAK,SAAS,EAAE,CAAC,CAAC,gBAAgB,CAAC,YAC/B,eAAK,SAAS,EAAE,CAAC,CAAC,MAAM,CAAC,aACrB,KAAC,IAAI,IACD,IAAI,EAAC,GAAG,EACR,KAAK,EAAE,KAAK,EACZ,SAAS,EAAE,SAAS,aAAT,SAAS,uBAAT,SAAS,CAAE,EAAE,EACxB,MAAM,EAAE,CAAC,EAAC,EAAE,EAAC,EAAE,IAAI,EAAE,EAAE;4BACnB,MAAM,IAAI,GAAG,UAAU,CAAC,MAAM,CAAC,MAAM,EAAE,SAAS,EAAE;gCAC9C,GAAG,WAAW;gCACd,CAAC,gBAAgB,CAAC,cAAc,CAAC,EAAE,EAAE;6BACxC,CAAC,CAAC;4BAEH,OAAO,CACH,KAAC,IAAI,IAAC,EAAE,EAAE,IAAI,EAAW,SAAS,EAAE,CAAC,CAAC,KAAK,CAAC,YACvC,IAAI,IADY,EAAE,CAEhB,CACV,CAAC;wBACN,CAAC,EACD,gBAAgB,EAAE,IAAI,GACxB,EACF,KAAC,kBAAkB,KAAG,IACpB,GACJ,CACT,CAAC;IACN,CAAC,CAAC;IAEF,OAAO,CACH,eAAK,SAAS,EAAE,CAAC,EAAE,aACd,SAAS,CAAC,CAAC,CAAC,CACT,KAAC,MAAM,cACH,0BAAQ,SAAS,CAAC,KAAK,GAAS,GAC3B,CACZ,CAAC,CAAC,CAAC,IAAI,EACP,UAAU,EAAE,EACb,cAAK,SAAS,EAAE,CAAC,CAAC,cAAc,CAAC,EAAE,GAAG,EAAE,YAAY,YAC/C,gBAAgB,EAAE,GACjB,IACJ,CACT,CAAC;AACN,CAAC;AAED,eAAe,WAAW,CAAC"}
|
1
|
+
{"version":3,"file":"Diagnostics.js","sourceRoot":"","sources":["../../../../src/containers/Tenant/Diagnostics/Diagnostics.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC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C,CAAC,CAAC;4BAEH,OAAO,CACH,KAAC,IAAI,IAAC,EAAE,EAAE,IAAI,EAAW,SAAS,EAAE,CAAC,CAAC,KAAK,CAAC,YACvC,IAAI,IADY,EAAE,CAEhB,CACV,CAAC;wBACN,CAAC,EACD,gBAAgB,EAAE,IAAI,GACxB,EACF,KAAC,kBAAkB,KAAG,IACpB,GACJ,CACT,CAAC;IACN,CAAC,CAAC;IAEF,OAAO,CACH,eAAK,SAAS,EAAE,CAAC,EAAE,aACd,SAAS,CAAC,CAAC,CAAC,CACT,KAAC,MAAM,cACH,0BAAQ,SAAS,CAAC,KAAK,GAAS,GAC3B,CACZ,CAAC,CAAC,CAAC,IAAI,EACP,UAAU,EAAE,EACb,cAAK,SAAS,EAAE,CAAC,CAAC,cAAc,CAAC,EAAE,GAAG,EAAE,YAAY,YAC/C,gBAAgB,EAAE,GACjB,IACJ,CACT,CAAC;AACN,CAAC;AAED,eAAe,WAAW,CAAC"}
|
@@ -41,6 +41,9 @@ export declare const DATABASE_PAGES: ({
|
|
41
41
|
} | {
|
42
42
|
id: "configs";
|
43
43
|
title: string;
|
44
|
+
} | {
|
45
|
+
id: "operations";
|
46
|
+
title: string;
|
44
47
|
})[];
|
45
48
|
export declare const TABLE_PAGES: ({
|
46
49
|
id: "overview";
|
@@ -194,5 +197,8 @@ export declare const getDataBasePages: ({ hasFeatureFlags }: {
|
|
194
197
|
} | {
|
195
198
|
id: "configs";
|
196
199
|
title: string;
|
200
|
+
} | {
|
201
|
+
id: "operations";
|
202
|
+
title: string;
|
197
203
|
})[];
|
198
204
|
export {};
|
@@ -56,6 +56,10 @@ const configs = {
|
|
56
56
|
id: TENANT_DIAGNOSTICS_TABS_IDS.configs,
|
57
57
|
title: 'Configs',
|
58
58
|
};
|
59
|
+
const operations = {
|
60
|
+
id: TENANT_DIAGNOSTICS_TABS_IDS.operations,
|
61
|
+
title: 'Operations',
|
62
|
+
};
|
59
63
|
export const ASYNC_REPLICATION_PAGES = [overview, tablets, describe];
|
60
64
|
export const DATABASE_PAGES = [
|
61
65
|
overview,
|
@@ -67,6 +71,7 @@ export const DATABASE_PAGES = [
|
|
67
71
|
network,
|
68
72
|
describe,
|
69
73
|
configs,
|
74
|
+
operations,
|
70
75
|
];
|
71
76
|
export const TABLE_PAGES = [overview, schema, topShards, nodes, graph, tablets, hotKeys, describe];
|
72
77
|
export const COLUMN_TABLE_PAGES = [overview, schema, topShards, nodes, tablets, describe];
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"DiagnosticsPages.js","sourceRoot":"","sources":["../../../../src/containers/Tenant/Diagnostics/DiagnosticsPages.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,2BAA2B,EAAC,MAAM,0CAA0C,CAAC;AAErF,OAAO,EAAC,SAAS,EAAC,MAAM,2BAA2B,CAAC;AAOpD,MAAM,QAAQ,GAAG;IACb,EAAE,EAAE,2BAA2B,CAAC,QAAQ;IACxC,KAAK,EAAE,MAAM;CAChB,CAAC;AAEF,MAAM,MAAM,GAAG;IACX,EAAE,EAAE,2BAA2B,CAAC,MAAM;IACtC,KAAK,EAAE,QAAQ;CAClB,CAAC;AAEF,MAAM,UAAU,GAAG;IACf,EAAE,EAAE,2BAA2B,CAAC,UAAU;IAC1C,KAAK,EAAE,SAAS;CACnB,CAAC;AAEF,MAAM,SAAS,GAAG;IACd,EAAE,EAAE,2BAA2B,CAAC,SAAS;IACzC,KAAK,EAAE,YAAY;CACtB,CAAC;AAEF,MAAM,KAAK,GAAG;IACV,EAAE,EAAE,2BAA2B,CAAC,KAAK;IACrC,KAAK,EAAE,OAAO;CACjB,CAAC;AAEF,MAAM,OAAO,GAAG;IACZ,EAAE,EAAE,2BAA2B,CAAC,OAAO;IACvC,KAAK,EAAE,SAAS;CACnB,CAAC;AACF,MAAM,OAAO,GAAG;IACZ,EAAE,EAAE,2BAA2B,CAAC,OAAO;IACvC,KAAK,EAAE,SAAS;CACnB,CAAC;AACF,MAAM,OAAO,GAAG;IACZ,EAAE,EAAE,2BAA2B,CAAC,OAAO;IACvC,KAAK,EAAE,SAAS;CACnB,CAAC;AAEF,MAAM,QAAQ,GAAG;IACb,EAAE,EAAE,2BAA2B,CAAC,QAAQ;IACxC,KAAK,EAAE,UAAU;CACpB,CAAC;AAEF,MAAM,OAAO,GAAG;IACZ,EAAE,EAAE,2BAA2B,CAAC,OAAO;IACvC,KAAK,EAAE,UAAU;CACpB,CAAC;AAEF,MAAM,KAAK,GAAG;IACV,EAAE,EAAE,2BAA2B,CAAC,KAAK;IACrC,KAAK,EAAE,OAAO;CACjB,CAAC;AAEF,MAAM,SAAS,GAAG;IACd,EAAE,EAAE,2BAA2B,CAAC,SAAS;IACzC,KAAK,EAAE,WAAW;CACrB,CAAC;AAEF,MAAM,UAAU,GAAG;IACf,EAAE,EAAE,2BAA2B,CAAC,UAAU;IAC1C,KAAK,EAAE,YAAY;CACtB,CAAC;AAEF,MAAM,OAAO,GAAG;IACZ,EAAE,EAAE,2BAA2B,CAAC,OAAO;IACvC,KAAK,EAAE,SAAS;CACnB,CAAC;AAEF,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,QAAQ,EAAE,OAAO,EAAE,QAAQ,CAAC,CAAC;AAErE,MAAM,CAAC,MAAM,cAAc,GAAG;IAC1B,QAAQ;IACR,UAAU;IACV,SAAS;IACT,KAAK;IACL,OAAO;IACP,OAAO;IACP,OAAO;IACP,QAAQ;IACR,OAAO;
|
1
|
+
{"version":3,"file":"DiagnosticsPages.js","sourceRoot":"","sources":["../../../../src/containers/Tenant/Diagnostics/DiagnosticsPages.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,2BAA2B,EAAC,MAAM,0CAA0C,CAAC;AAErF,OAAO,EAAC,SAAS,EAAC,MAAM,2BAA2B,CAAC;AAOpD,MAAM,QAAQ,GAAG;IACb,EAAE,EAAE,2BAA2B,CAAC,QAAQ;IACxC,KAAK,EAAE,MAAM;CAChB,CAAC;AAEF,MAAM,MAAM,GAAG;IACX,EAAE,EAA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,"file":"TopNodesByLoad.js","sourceRoot":"","sources":["../../../../../../src/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopNodesByLoad.tsx"],"names":[],"mappings":";
|
1
|
+
{"version":3,"file":"TopNodesByLoad.js","sourceRoot":"","sources":["../../../../../../src/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopNodesByLoad.tsx"],"names":[],"mappings":";AAEA,OAAO,EACH,aAAa,EACb,aAAa,EACb,eAAe,EACf,gBAAgB,GACnB,MAAM,gDAAgD,CAAC;AACxD,OAAO,EAAC,0BAA0B,EAAC,MAAM,kDAAkD,CAAC;AAE5F,OAAO,EAAC,QAAQ,EAAC,MAAM,2CAA2C,CAAC;AAEnE,OAAO,EAAC,2BAA2B,EAAC,MAAM,gDAAgD,CAAC;AAE3F,OAAO,EAAC,4BAA4B,EAAC,MAAM,gCAAgC,CAAC;AAC5E,OAAO,EAAC,sBAAsB,EAAE,cAAc,EAAC,MAAM,4BAA4B,CAAC;AAClF,OAAO,EAAC,gBAAgB,EAAE,aAAa,EAAC,MAAM,sBAAsB,CAAC;AACrE,OAAO,EAAC,yBAAyB,EAAC,MAAM,8BAA8B,CAAC;AACvE,OAAO,EAAC,eAAe,EAAC,MAAM,oBAAoB,CAAC;AACnD,OAAO,IAAI,MAAM,SAAS,CAAC;AAE3B,SAAS,wBAAwB,CAAC,MAA6B;IAC3D,MAAM,UAAU,GAAG;QACf,GAAG,aAAa,CAAsB,MAAM,CAAC;QAC7C,KAAK,EAAE,SAAS;KACnB,CAAC;IAEF,MAAM,OAAO,GAAG;QACZ,aAAa,EAAuB;QACpC,eAAe,EAAuB;QACtC,UAAU;QACV,gBAAgB,EAAuB;KAC1C,CAAC;IAEF,OAAO,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;QAC5B,GAAG,MAAM;QACT,QAAQ,EAAE,KAAK;KAClB,CAAC,CAAC,CAAC;AACR,CAAC;AAOD,MAAM,UAAU,cAAc,CAAC,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ultTable } from '../../../../components/QueryResultTable';
|
|
7
7
|
import { previewApi } from '../../../../store/reducers/preview';
|
8
8
|
import { setShowPreview } from '../../../../store/reducers/schema/schema';
|
9
9
|
import { cn } from '../../../../utils/cn';
|
10
|
-
import {
|
10
|
+
import { useTypedDispatch } from '../../../../utils/hooks';
|
11
11
|
import { parseQueryErrorToString } from '../../../../utils/query';
|
12
12
|
import { isExternalTableType, isTableType } from '../../utils/schema';
|
13
13
|
import i18n from '../i18n';
|
@@ -17,10 +17,8 @@ export const Preview = ({ database, path, type }) => {
|
|
17
17
|
var _a, _b;
|
18
18
|
const dispatch = useTypedDispatch();
|
19
19
|
const isPreviewAvailable = isTableType(type);
|
20
|
-
const [autoRefreshInterval] = useAutoRefreshInterval();
|
21
20
|
const query = `select * from \`${path}\` limit 32`;
|
22
21
|
const { currentData, isFetching, error } = previewApi.useSendQueryQuery({ database, query, action: isExternalTableType(type) ? 'execute-query' : 'execute-scan' }, {
|
23
|
-
pollingInterval: autoRefreshInterval,
|
24
22
|
skip: !isPreviewAvailable,
|
25
23
|
refetchOnMountOrArgChange: true,
|
26
24
|
});
|