ydb-embedded-ui 7.0.0 → 7.2.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/components/JSONTree/JSONTree.d.ts +9 -0
- package/dist/components/JSONTree/JSONTree.js +23 -0
- package/dist/components/JSONTree/JSONTree.js.map +1 -0
- package/dist/components/JSONTree/JSONTree.scss +20 -0
- package/dist/components/JSONTree/i18n/en.json +4 -0
- package/dist/components/JSONTree/i18n/index.d.ts +2 -0
- package/dist/components/JSONTree/i18n/index.js +5 -0
- package/dist/components/JSONTree/i18n/index.js.map +1 -0
- package/dist/components/MemoryViewer/MemoryViewer.scss +1 -1
- package/dist/components/Table/Table.d.ts +13 -0
- package/dist/components/Table/Table.js +21 -0
- package/dist/components/Table/Table.js.map +1 -0
- package/dist/components/Table/Table.scss +60 -0
- package/dist/components/TooltipsContent/TabletTooltipContent/TabletTooltipContent.js +2 -2
- package/dist/components/TooltipsContent/TabletTooltipContent/TabletTooltipContent.js.map +1 -1
- package/dist/components/nodesColumns/columns.js +1 -1
- package/dist/components/nodesColumns/constants.js +1 -1
- package/dist/components/nodesColumns/constants.js.map +1 -1
- package/dist/containers/Cluster/ClusterInfo/ClusterInfo.js +3 -2
- package/dist/containers/Cluster/ClusterInfo/ClusterInfo.js.map +1 -1
- package/dist/containers/Cluster/ClusterInfo/utils.d.ts +1 -0
- package/dist/containers/Cluster/ClusterInfo/utils.js +39 -0
- package/dist/containers/Cluster/ClusterInfo/utils.js.map +1 -1
- package/dist/containers/Cluster/i18n/en.json +2 -0
- package/dist/containers/Cluster/i18n/index.d.ts +1 -1
- package/dist/containers/Clusters/columns.js +5 -2
- package/dist/containers/Clusters/columns.js.map +1 -1
- package/dist/containers/Storage/Storage.d.ts +6 -0
- package/dist/containers/Storage/Storage.js +22 -12
- package/dist/containers/Storage/Storage.js.map +1 -1
- package/dist/containers/Storage/StorageGroups/StorageGroupsTable.d.ts +1 -1
- package/dist/containers/Storage/StorageNodes/StorageNodesTable.d.ts +1 -1
- package/dist/containers/Tablet/components/TabletInfo/TabletInfo.js +5 -2
- package/dist/containers/Tablet/components/TabletInfo/TabletInfo.js.map +1 -1
- package/dist/containers/Tablet/components/TabletStorageInfo/TabletStorageInfo.js +3 -14
- package/dist/containers/Tablet/components/TabletStorageInfo/TabletStorageInfo.js.map +1 -1
- package/dist/containers/Tablet/components/TabletStorageInfo/TabletStorageInfo.scss +0 -51
- package/dist/containers/Tablet/components/TabletStorageInfo/columns.js +6 -8
- package/dist/containers/Tablet/components/TabletStorageInfo/columns.js.map +1 -1
- package/dist/containers/Tablet/components/TabletTable/TabletTable.js +2 -2
- package/dist/containers/Tablet/components/TabletTable/TabletTable.js.map +1 -1
- package/dist/containers/Tablets/TabletsTable.js +2 -2
- package/dist/containers/Tablets/TabletsTable.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/Configs/i18n/index.d.ts +1 -1
- package/dist/containers/Tenant/Diagnostics/Describe/Describe.d.ts +0 -1
- package/dist/containers/Tenant/Diagnostics/Describe/Describe.js +2 -5
- package/dist/containers/Tenant/Diagnostics/Describe/Describe.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/Describe/Describe.scss +1 -9
- package/dist/containers/Tenant/Diagnostics/TenantOverview/Healthcheck/IssuesViewer/IssueTree.js +2 -2
- package/dist/containers/Tenant/Diagnostics/TenantOverview/Healthcheck/IssuesViewer/IssueTree.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/Healthcheck/IssuesViewer/IssueTree.scss +0 -2
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopQueries.js +5 -2
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopQueries.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopShards.js +2 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopShards.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/TopQueries/RunningQueriesData.js +11 -4
- package/dist/containers/Tenant/Diagnostics/TopQueries/RunningQueriesData.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/TopQueries/TopQueriesData.js +11 -10
- package/dist/containers/Tenant/Diagnostics/TopQueries/TopQueriesData.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/TopQueries/columns/columns.d.ts +105 -0
- package/dist/containers/Tenant/Diagnostics/TopQueries/{getTopQueriesColumns.js → columns/columns.js} +53 -44
- package/dist/containers/Tenant/Diagnostics/TopQueries/columns/columns.js.map +1 -0
- package/dist/containers/Tenant/Diagnostics/TopQueries/columns/constants.d.ts +21 -0
- package/dist/containers/Tenant/Diagnostics/TopQueries/columns/constants.js +71 -0
- package/dist/containers/Tenant/Diagnostics/TopQueries/columns/constants.js.map +1 -0
- package/dist/containers/Tenant/Diagnostics/TopQueries/columns/i18n/en.json +12 -0
- package/dist/containers/Tenant/Diagnostics/TopQueries/columns/i18n/index.d.ts +2 -0
- package/dist/containers/Tenant/Diagnostics/TopQueries/columns/i18n/index.js +5 -0
- package/dist/containers/Tenant/Diagnostics/TopQueries/columns/i18n/index.js.map +1 -0
- package/dist/containers/Tenant/Diagnostics/TopQueries/i18n/en.json +1 -5
- package/dist/containers/Tenant/Diagnostics/TopQueries/i18n/index.d.ts +1 -1
- package/dist/containers/Tenant/Diagnostics/TopQueries/utils.d.ts +12 -0
- package/dist/containers/Tenant/Diagnostics/TopQueries/utils.js +28 -0
- package/dist/containers/Tenant/Diagnostics/TopQueries/utils.js.map +1 -0
- package/dist/containers/Tenant/Diagnostics/TopShards/TopShards.js +9 -34
- package/dist/containers/Tenant/Diagnostics/TopShards/TopShards.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/TopShards/{getTopShardsColumns.d.ts → columns/columns.d.ts} +1 -2
- package/dist/containers/Tenant/Diagnostics/TopShards/{getTopShardsColumns.js → columns/columns.js} +16 -36
- package/dist/containers/Tenant/Diagnostics/TopShards/columns/columns.js.map +1 -0
- package/dist/containers/Tenant/Diagnostics/TopShards/columns/constants.d.ts +17 -0
- package/dist/containers/Tenant/Diagnostics/TopShards/columns/constants.js +55 -0
- package/dist/containers/Tenant/Diagnostics/TopShards/columns/constants.js.map +1 -0
- package/dist/containers/Tenant/Diagnostics/TopShards/columns/i18n/en.json +10 -0
- package/dist/containers/Tenant/Diagnostics/TopShards/columns/i18n/index.d.ts +2 -0
- package/dist/containers/Tenant/Diagnostics/TopShards/columns/i18n/index.js +5 -0
- package/dist/containers/Tenant/Diagnostics/TopShards/columns/i18n/index.js.map +1 -0
- package/dist/containers/Tenant/Diagnostics/TopShards/utils.d.ts +5 -0
- package/dist/containers/Tenant/Diagnostics/TopShards/utils.js +17 -0
- package/dist/containers/Tenant/Diagnostics/TopShards/utils.js.map +1 -0
- package/dist/containers/Tenant/Query/QueryResult/components/QueryJSONViewer/QueryJSONViewer.d.ts +0 -1
- package/dist/containers/Tenant/Query/QueryResult/components/QueryJSONViewer/QueryJSONViewer.js +2 -5
- package/dist/containers/Tenant/Query/QueryResult/components/QueryJSONViewer/QueryJSONViewer.js.map +1 -1
- package/dist/containers/Tenant/Query/QueryResult/components/QueryJSONViewer/QueryJSONViewer.scss +0 -3
- package/dist/containers/Tenant/Query/QueryResult/components/SimplifiedPlan/OperationCell.js +1 -1
- package/dist/containers/Tenant/Query/QueryResult/components/SimplifiedPlan/OperationCell.js.map +1 -1
- package/dist/containers/Tenant/Query/QueryResult/components/SimplifiedPlan/SimplifiedPlan.js +16 -25
- package/dist/containers/Tenant/Query/QueryResult/components/SimplifiedPlan/SimplifiedPlan.js.map +1 -1
- package/dist/containers/Tenant/Query/QueryResult/components/SimplifiedPlan/SimplifiedPlan.scss +3 -53
- package/dist/services/settings.d.ts +1 -0
- package/dist/services/settings.js +2 -1
- package/dist/services/settings.js.map +1 -1
- package/dist/store/reducers/cluster/cluster.d.ts +6 -0
- package/dist/store/reducers/executeTopQueries/executeTopQueries.d.ts +8 -8
- package/dist/store/reducers/executeTopQueries/executeTopQueries.js +10 -7
- package/dist/store/reducers/executeTopQueries/executeTopQueries.js.map +1 -1
- package/dist/store/reducers/nodes/selectors.d.ts +0 -7
- package/dist/store/reducers/nodes/selectors.js +2 -28
- package/dist/store/reducers/nodes/selectors.js.map +1 -1
- package/dist/store/reducers/nodes/types.d.ts +2 -2
- package/dist/store/reducers/shardsWorkload/shardsWorkload.d.ts +1 -4
- package/dist/store/reducers/shardsWorkload/shardsWorkload.js +3 -5
- package/dist/store/reducers/shardsWorkload/shardsWorkload.js.map +1 -1
- package/dist/store/reducers/storage/types.d.ts +2 -2
- package/dist/types/api/autocomplete.d.ts +1 -1
- package/dist/types/api/meta.d.ts +3 -0
- package/dist/utils/constants.d.ts +1 -0
- package/dist/utils/constants.js +1 -0
- package/dist/utils/constants.js.map +1 -1
- package/dist/utils/dataFormatters/__test__/formatUptime.test.d.ts +1 -0
- package/dist/utils/dataFormatters/__test__/formatUptime.test.js +21 -0
- package/dist/utils/dataFormatters/__test__/formatUptime.test.js.map +1 -0
- package/dist/utils/dataFormatters/dataFormatters.d.ts +4 -3
- package/dist/utils/dataFormatters/dataFormatters.js +23 -11
- package/dist/utils/dataFormatters/dataFormatters.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/hooks/__test__/useTableSort.test.d.ts +1 -0
- package/dist/utils/hooks/__test__/useTableSort.test.js +188 -0
- package/dist/utils/hooks/__test__/useTableSort.test.js.map +1 -0
- package/dist/utils/hooks/useTableSort.d.ts +10 -5
- package/dist/utils/hooks/useTableSort.js +61 -16
- package/dist/utils/hooks/useTableSort.js.map +1 -1
- package/dist/utils/monaco/yql/generateSuggestions.js +6 -3
- package/dist/utils/monaco/yql/generateSuggestions.js.map +1 -1
- package/dist/utils/nodes.d.ts +1 -1
- package/dist/utils/nodes.js +10 -4
- package/dist/utils/nodes.js.map +1 -1
- package/package.json +3 -3
- package/dist/containers/Tenant/Diagnostics/TopQueries/getTopQueriesColumns.d.ts +0 -8
- package/dist/containers/Tenant/Diagnostics/TopQueries/getTopQueriesColumns.js.map +0 -1
- package/dist/containers/Tenant/Diagnostics/TopShards/getTopShardsColumns.js.map +0 -1
- package/dist/utils/diagnostics.d.ts +0 -23
- package/dist/utils/diagnostics.js +0 -37
- package/dist/utils/diagnostics.js.map +0 -1
@@ -0,0 +1,105 @@
|
|
1
|
+
import type { Column } from '@gravity-ui/react-data-table';
|
2
|
+
import type { KeyValueRow } from '../../../../../types/api/query';
|
3
|
+
import '../TopQueries.scss';
|
4
|
+
export declare function getTopQueriesColumns(): {
|
5
|
+
sortable: boolean;
|
6
|
+
name: string;
|
7
|
+
header?: import("react").ReactNode;
|
8
|
+
headerTitle?: string;
|
9
|
+
className?: string;
|
10
|
+
width?: number | string;
|
11
|
+
align?: import("@gravity-ui/react-data-table").AlignType;
|
12
|
+
accessor?: string | ((row: KeyValueRow) => any) | undefined;
|
13
|
+
title?: string | ((row: KeyValueRow) => string) | undefined;
|
14
|
+
render?: ((props: {
|
15
|
+
value?: unknown;
|
16
|
+
row: KeyValueRow;
|
17
|
+
index: number;
|
18
|
+
footer?: boolean;
|
19
|
+
headerData?: boolean;
|
20
|
+
}) => import("react").ReactNode) | undefined;
|
21
|
+
customStyle?: ((props: import("@gravity-ui/react-data-table").CustomStyleParams<KeyValueRow>) => import("react").CSSProperties) | undefined;
|
22
|
+
onClick?: ((data: {
|
23
|
+
row: KeyValueRow;
|
24
|
+
index: number;
|
25
|
+
footer?: boolean;
|
26
|
+
headerData?: boolean;
|
27
|
+
}, column: Column<KeyValueRow>, event: import("react").MouseEvent<HTMLTableCellElement>) => void) | undefined;
|
28
|
+
defaultOrder?: import("@gravity-ui/react-data-table").OrderType;
|
29
|
+
sortAccessor?: string | ((row: KeyValueRow) => any) | undefined;
|
30
|
+
sortAscending?: import("@gravity-ui/react-data-table").Comparator<KeyValueRow> | undefined;
|
31
|
+
sub?: Column<KeyValueRow>[] | undefined;
|
32
|
+
group?: boolean;
|
33
|
+
autogroup?: boolean;
|
34
|
+
resizeable?: boolean;
|
35
|
+
resizeMinWidth?: number;
|
36
|
+
resizeMaxWidth?: number;
|
37
|
+
}[];
|
38
|
+
export declare function getTenantOverviewTopQueriesColumns(): {
|
39
|
+
sortable: boolean;
|
40
|
+
name: string;
|
41
|
+
header?: import("react").ReactNode;
|
42
|
+
headerTitle?: string;
|
43
|
+
className?: string;
|
44
|
+
width?: number | string;
|
45
|
+
align?: import("@gravity-ui/react-data-table").AlignType;
|
46
|
+
accessor?: string | ((row: KeyValueRow) => any) | undefined;
|
47
|
+
title?: string | ((row: KeyValueRow) => string) | undefined;
|
48
|
+
render?: ((props: {
|
49
|
+
value?: unknown;
|
50
|
+
row: KeyValueRow;
|
51
|
+
index: number;
|
52
|
+
footer?: boolean;
|
53
|
+
headerData?: boolean;
|
54
|
+
}) => import("react").ReactNode) | undefined;
|
55
|
+
customStyle?: ((props: import("@gravity-ui/react-data-table").CustomStyleParams<KeyValueRow>) => import("react").CSSProperties) | undefined;
|
56
|
+
onClick?: ((data: {
|
57
|
+
row: KeyValueRow;
|
58
|
+
index: number;
|
59
|
+
footer?: boolean;
|
60
|
+
headerData?: boolean;
|
61
|
+
}, column: Column<KeyValueRow>, event: import("react").MouseEvent<HTMLTableCellElement>) => void) | undefined;
|
62
|
+
defaultOrder?: import("@gravity-ui/react-data-table").OrderType;
|
63
|
+
sortAccessor?: string | ((row: KeyValueRow) => any) | undefined;
|
64
|
+
sortAscending?: import("@gravity-ui/react-data-table").Comparator<KeyValueRow> | undefined;
|
65
|
+
sub?: Column<KeyValueRow>[] | undefined;
|
66
|
+
group?: boolean;
|
67
|
+
autogroup?: boolean;
|
68
|
+
resizeable?: boolean;
|
69
|
+
resizeMinWidth?: number;
|
70
|
+
resizeMaxWidth?: number;
|
71
|
+
}[];
|
72
|
+
export declare function getRunningQueriesColumns(): {
|
73
|
+
sortable: boolean;
|
74
|
+
name: string;
|
75
|
+
header?: import("react").ReactNode;
|
76
|
+
headerTitle?: string;
|
77
|
+
className?: string;
|
78
|
+
width?: number | string;
|
79
|
+
align?: import("@gravity-ui/react-data-table").AlignType;
|
80
|
+
accessor?: string | ((row: KeyValueRow) => any) | undefined;
|
81
|
+
title?: string | ((row: KeyValueRow) => string) | undefined;
|
82
|
+
render?: ((props: {
|
83
|
+
value?: unknown;
|
84
|
+
row: KeyValueRow;
|
85
|
+
index: number;
|
86
|
+
footer?: boolean;
|
87
|
+
headerData?: boolean;
|
88
|
+
}) => import("react").ReactNode) | undefined;
|
89
|
+
customStyle?: ((props: import("@gravity-ui/react-data-table").CustomStyleParams<KeyValueRow>) => import("react").CSSProperties) | undefined;
|
90
|
+
onClick?: ((data: {
|
91
|
+
row: KeyValueRow;
|
92
|
+
index: number;
|
93
|
+
footer?: boolean;
|
94
|
+
headerData?: boolean;
|
95
|
+
}, column: Column<KeyValueRow>, event: import("react").MouseEvent<HTMLTableCellElement>) => void) | undefined;
|
96
|
+
defaultOrder?: import("@gravity-ui/react-data-table").OrderType;
|
97
|
+
sortAccessor?: string | ((row: KeyValueRow) => any) | undefined;
|
98
|
+
sortAscending?: import("@gravity-ui/react-data-table").Comparator<KeyValueRow> | undefined;
|
99
|
+
sub?: Column<KeyValueRow>[] | undefined;
|
100
|
+
group?: boolean;
|
101
|
+
autogroup?: boolean;
|
102
|
+
resizeable?: boolean;
|
103
|
+
resizeMinWidth?: number;
|
104
|
+
resizeMaxWidth?: number;
|
105
|
+
}[];
|
package/dist/containers/Tenant/Diagnostics/TopQueries/{getTopQueriesColumns.js → columns/columns.js}
RENAMED
@@ -1,19 +1,17 @@
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
2
2
|
import DataTable from '@gravity-ui/react-data-table';
|
3
|
-
import { OneLineQueryWithPopover, TruncatedQuery, } from '
|
4
|
-
import { cn } from '
|
5
|
-
import { formatDateTime, formatNumber } from '
|
6
|
-
import {
|
7
|
-
import {
|
8
|
-
import {
|
9
|
-
import {
|
10
|
-
import
|
11
|
-
import './TopQueries.scss';
|
3
|
+
import { OneLineQueryWithPopover, TruncatedQuery, } from '../../../../../components/TruncatedQuery/TruncatedQuery';
|
4
|
+
import { cn } from '../../../../../utils/cn';
|
5
|
+
import { formatDateTime, formatNumber } from '../../../../../utils/dataFormatters/dataFormatters';
|
6
|
+
import { generateHash } from '../../../../../utils/generateHash';
|
7
|
+
import { formatToMs, parseUsToMs } from '../../../../../utils/timeParsers';
|
8
|
+
import { MAX_QUERY_HEIGHT } from '../../../utils/constants';
|
9
|
+
import { TOP_QUERIES_COLUMNS_IDS, TOP_QUERIES_COLUMNS_TITLES, isSortableTopQueriesColumn, } from './constants';
|
10
|
+
import '../TopQueries.scss';
|
12
11
|
const b = cn('kv-top-queries');
|
13
|
-
export const TOP_QUERIES_COLUMNS_WIDTH_LS_KEY = 'topQueriesColumnsWidth';
|
14
|
-
export const RUNNING_QUERIES_COLUMNS_WIDTH_LS_KEY = 'runningQueriesColumnsWidth';
|
15
12
|
const cpuTimeUsColumn = {
|
16
|
-
name: TOP_QUERIES_COLUMNS_IDS.
|
13
|
+
name: TOP_QUERIES_COLUMNS_IDS.CPUTime,
|
14
|
+
header: TOP_QUERIES_COLUMNS_TITLES.CPUTime,
|
17
15
|
sortAccessor: (row) => Number(row.CPUTimeUs),
|
18
16
|
render: ({ row }) => { var _a; return formatToMs(parseUsToMs((_a = row.CPUTimeUs) !== null && _a !== void 0 ? _a : undefined)); },
|
19
17
|
width: 120,
|
@@ -22,6 +20,7 @@ const cpuTimeUsColumn = {
|
|
22
20
|
};
|
23
21
|
const queryTextColumn = {
|
24
22
|
name: TOP_QUERIES_COLUMNS_IDS.QueryText,
|
23
|
+
header: TOP_QUERIES_COLUMNS_TITLES.QueryText,
|
25
24
|
sortAccessor: (row) => Number(row.CPUTimeUs),
|
26
25
|
render: ({ row }) => {
|
27
26
|
var _a;
|
@@ -32,12 +31,14 @@ const queryTextColumn = {
|
|
32
31
|
};
|
33
32
|
const endTimeColumn = {
|
34
33
|
name: TOP_QUERIES_COLUMNS_IDS.EndTime,
|
34
|
+
header: TOP_QUERIES_COLUMNS_TITLES.EndTime,
|
35
35
|
render: ({ row }) => formatDateTime(new Date(row.EndTime).getTime()),
|
36
36
|
align: DataTable.RIGHT,
|
37
37
|
width: 200,
|
38
38
|
};
|
39
39
|
const readRowsColumn = {
|
40
40
|
name: TOP_QUERIES_COLUMNS_IDS.ReadRows,
|
41
|
+
header: TOP_QUERIES_COLUMNS_TITLES.ReadRows,
|
41
42
|
render: ({ row }) => formatNumber(row.ReadRows),
|
42
43
|
sortAccessor: (row) => Number(row.ReadRows),
|
43
44
|
align: DataTable.RIGHT,
|
@@ -45,6 +46,7 @@ const readRowsColumn = {
|
|
45
46
|
};
|
46
47
|
const readBytesColumn = {
|
47
48
|
name: TOP_QUERIES_COLUMNS_IDS.ReadBytes,
|
49
|
+
header: TOP_QUERIES_COLUMNS_TITLES.ReadBytes,
|
48
50
|
render: ({ row }) => formatNumber(row.ReadBytes),
|
49
51
|
sortAccessor: (row) => Number(row.ReadBytes),
|
50
52
|
align: DataTable.RIGHT,
|
@@ -52,68 +54,75 @@ const readBytesColumn = {
|
|
52
54
|
};
|
53
55
|
const userSIDColumn = {
|
54
56
|
name: TOP_QUERIES_COLUMNS_IDS.UserSID,
|
57
|
+
header: TOP_QUERIES_COLUMNS_TITLES.UserSID,
|
55
58
|
render: ({ row }) => _jsx("div", { className: b('user-sid'), children: row.UserSID || '–' }),
|
56
59
|
sortAccessor: (row) => String(row.UserSID),
|
57
60
|
align: DataTable.LEFT,
|
58
61
|
};
|
59
62
|
const oneLineQueryTextColumn = {
|
60
63
|
name: TOP_QUERIES_COLUMNS_IDS.OneLineQueryText,
|
61
|
-
header:
|
64
|
+
header: TOP_QUERIES_COLUMNS_TITLES.OneLineQueryText,
|
62
65
|
render: ({ row }) => { var _a; return _jsx(OneLineQueryWithPopover, { value: (_a = row.QueryText) === null || _a === void 0 ? void 0 : _a.toString() }); },
|
63
66
|
sortable: false,
|
64
67
|
width: 500,
|
65
68
|
};
|
66
69
|
const queryHashColumn = {
|
67
70
|
name: TOP_QUERIES_COLUMNS_IDS.QueryHash,
|
71
|
+
header: TOP_QUERIES_COLUMNS_TITLES.QueryHash,
|
68
72
|
render: ({ row }) => generateHash(String(row.QueryText)),
|
69
73
|
width: 130,
|
70
74
|
sortable: false,
|
71
75
|
};
|
72
76
|
const durationColumn = {
|
73
77
|
name: TOP_QUERIES_COLUMNS_IDS.Duration,
|
74
|
-
header:
|
78
|
+
header: TOP_QUERIES_COLUMNS_TITLES.Duration,
|
75
79
|
render: ({ row }) => { var _a; return formatToMs(parseUsToMs((_a = row.Duration) !== null && _a !== void 0 ? _a : undefined)); },
|
76
80
|
sortAccessor: (row) => Number(row.Duration),
|
77
81
|
align: DataTable.RIGHT,
|
78
82
|
width: 150,
|
79
83
|
};
|
80
84
|
const queryStartColumn = {
|
81
|
-
name:
|
82
|
-
|
83
|
-
return i18n('col_start-time');
|
84
|
-
},
|
85
|
+
name: TOP_QUERIES_COLUMNS_IDS.QueryStartAt,
|
86
|
+
header: TOP_QUERIES_COLUMNS_TITLES.QueryStartAt,
|
85
87
|
render: ({ row }) => formatDateTime(new Date(row.QueryStartAt).getTime()),
|
86
88
|
sortable: true,
|
87
89
|
resizeable: false,
|
88
90
|
defaultOrder: DataTable.DESCENDING,
|
89
91
|
};
|
90
92
|
const applicationColumn = {
|
91
|
-
name:
|
92
|
-
|
93
|
-
return i18n('col_app');
|
94
|
-
},
|
93
|
+
name: TOP_QUERIES_COLUMNS_IDS.ApplicationName,
|
94
|
+
header: TOP_QUERIES_COLUMNS_TITLES.ApplicationName,
|
95
95
|
render: ({ row }) => _jsx("div", { className: b('user-sid'), children: row.ApplicationName || '–' }),
|
96
96
|
sortable: true,
|
97
97
|
};
|
98
|
-
export
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
98
|
+
export function getTopQueriesColumns() {
|
99
|
+
const columns = [
|
100
|
+
queryHashColumn,
|
101
|
+
cpuTimeUsColumn,
|
102
|
+
queryTextColumn,
|
103
|
+
endTimeColumn,
|
104
|
+
durationColumn,
|
105
|
+
readRowsColumn,
|
106
|
+
readBytesColumn,
|
107
|
+
userSIDColumn,
|
108
|
+
];
|
109
|
+
return columns.map((column) => ({
|
110
|
+
...column,
|
111
|
+
sortable: isSortableTopQueriesColumn(column.name),
|
112
|
+
}));
|
113
|
+
}
|
114
|
+
export function getTenantOverviewTopQueriesColumns() {
|
115
|
+
const columns = [queryHashColumn, oneLineQueryTextColumn, cpuTimeUsColumn];
|
116
|
+
return columns.map((column) => ({
|
117
|
+
...column,
|
118
|
+
sortable: false,
|
119
|
+
}));
|
120
|
+
}
|
121
|
+
export function getRunningQueriesColumns() {
|
122
|
+
const columns = [userSIDColumn, queryStartColumn, queryTextColumn, applicationColumn];
|
123
|
+
return columns.map((column) => ({
|
124
|
+
...column,
|
125
|
+
sortable: isSortableTopQueriesColumn(column.name),
|
126
|
+
}));
|
127
|
+
}
|
128
|
+
//# sourceMappingURL=columns.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"columns.js","sourceRoot":"","sources":["../../../../../../src/containers/Tenant/Diagnostics/TopQueries/columns/columns.tsx"],"names":[],"mappings":";AAAA,OAAO,SAAS,MAAM,8BAA8B,CAAC;AAGrD,OAAO,EACH,uBAAuB,EACvB,cAAc,GACjB,MAAM,yDAAyD,CAAC;AAEjE,OAAO,EAAC,EAAE,EAAC,MAAM,yBAAyB,CAAC;AAC3C,OAAO,EAAC,cAAc,EAAE,YAAY,EAAC,MAAM,oDAAoD,CAAC;AAChG,OAAO,EAAC,YAAY,EAAC,MAAM,mCAAmC,CAAC;AAC/D,OAAO,EAAC,UAAU,EAAE,WAAW,EAAC,MAAM,kCAAkC,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,CAAC;IAEtF,OAAO,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;QAC5B,GAAG,MAAM;QACT,QAAQ,EAAE,0BAA0B,CAAC,MAAM,CAAC,IAAI,CAAC;KACpD,CAAC,CAAC,CAAC;AACR,CAAC"}
|
@@ -0,0 +1,21 @@
|
|
1
|
+
import type { ValueOf } from '../../../../../types/common';
|
2
|
+
export declare const TOP_QUERIES_COLUMNS_WIDTH_LS_KEY = "topQueriesColumnsWidth";
|
3
|
+
export declare const RUNNING_QUERIES_COLUMNS_WIDTH_LS_KEY = "runningQueriesColumnsWidth";
|
4
|
+
export declare const TOP_QUERIES_COLUMNS_IDS: {
|
5
|
+
readonly CPUTime: "CPUTime";
|
6
|
+
readonly QueryText: "QueryText";
|
7
|
+
readonly EndTime: "EndTime";
|
8
|
+
readonly ReadRows: "ReadRows";
|
9
|
+
readonly ReadBytes: "ReadBytes";
|
10
|
+
readonly UserSID: "UserSID";
|
11
|
+
readonly OneLineQueryText: "OneLineQueryText";
|
12
|
+
readonly QueryHash: "QueryHash";
|
13
|
+
readonly Duration: "Duration";
|
14
|
+
readonly QueryStartAt: "QueryStartAt";
|
15
|
+
readonly ApplicationName: "ApplicationName";
|
16
|
+
};
|
17
|
+
type TopQueriesColumnId = ValueOf<typeof TOP_QUERIES_COLUMNS_IDS>;
|
18
|
+
export declare const TOP_QUERIES_COLUMNS_TITLES: Record<TopQueriesColumnId, string>;
|
19
|
+
export declare function getTopQueriesColumnSortField(columnId?: string): string | undefined;
|
20
|
+
export declare function isSortableTopQueriesColumn(columnId: string): boolean;
|
21
|
+
export {};
|
@@ -0,0 +1,71 @@
|
|
1
|
+
import i18n from './i18n';
|
2
|
+
export const TOP_QUERIES_COLUMNS_WIDTH_LS_KEY = 'topQueriesColumnsWidth';
|
3
|
+
export const RUNNING_QUERIES_COLUMNS_WIDTH_LS_KEY = 'runningQueriesColumnsWidth';
|
4
|
+
export const TOP_QUERIES_COLUMNS_IDS = {
|
5
|
+
CPUTime: 'CPUTime',
|
6
|
+
QueryText: 'QueryText',
|
7
|
+
EndTime: 'EndTime',
|
8
|
+
ReadRows: 'ReadRows',
|
9
|
+
ReadBytes: 'ReadBytes',
|
10
|
+
UserSID: 'UserSID',
|
11
|
+
OneLineQueryText: 'OneLineQueryText',
|
12
|
+
QueryHash: 'QueryHash',
|
13
|
+
Duration: 'Duration',
|
14
|
+
QueryStartAt: 'QueryStartAt',
|
15
|
+
ApplicationName: 'ApplicationName',
|
16
|
+
};
|
17
|
+
export const TOP_QUERIES_COLUMNS_TITLES = {
|
18
|
+
get CPUTime() {
|
19
|
+
return i18n('cpu-time');
|
20
|
+
},
|
21
|
+
get QueryText() {
|
22
|
+
return i18n('query-text');
|
23
|
+
},
|
24
|
+
get EndTime() {
|
25
|
+
return i18n('end-time');
|
26
|
+
},
|
27
|
+
get ReadRows() {
|
28
|
+
return i18n('read-rows');
|
29
|
+
},
|
30
|
+
get ReadBytes() {
|
31
|
+
return i18n('read-bytes');
|
32
|
+
},
|
33
|
+
get UserSID() {
|
34
|
+
return i18n('user');
|
35
|
+
},
|
36
|
+
get OneLineQueryText() {
|
37
|
+
return i18n('query-text');
|
38
|
+
},
|
39
|
+
get QueryHash() {
|
40
|
+
return i18n('query-hash');
|
41
|
+
},
|
42
|
+
get Duration() {
|
43
|
+
return i18n('duration');
|
44
|
+
},
|
45
|
+
get QueryStartAt() {
|
46
|
+
return i18n('start-time');
|
47
|
+
},
|
48
|
+
get ApplicationName() {
|
49
|
+
return i18n('application');
|
50
|
+
},
|
51
|
+
};
|
52
|
+
const TOP_QUERIES_COLUMNS_TO_SORT_FIELDS = {
|
53
|
+
CPUTime: 'CPUTimeUs',
|
54
|
+
QueryText: undefined,
|
55
|
+
EndTime: 'EndTime',
|
56
|
+
ReadRows: 'ReadRows',
|
57
|
+
ReadBytes: 'ReadBytes',
|
58
|
+
UserSID: 'UserSID',
|
59
|
+
OneLineQueryText: undefined,
|
60
|
+
QueryHash: undefined,
|
61
|
+
Duration: 'Duration',
|
62
|
+
QueryStartAt: 'QueryStartAt',
|
63
|
+
ApplicationName: 'ApplicationName',
|
64
|
+
};
|
65
|
+
export function getTopQueriesColumnSortField(columnId) {
|
66
|
+
return TOP_QUERIES_COLUMNS_TO_SORT_FIELDS[columnId];
|
67
|
+
}
|
68
|
+
export function isSortableTopQueriesColumn(columnId) {
|
69
|
+
return Boolean(getTopQueriesColumnSortField(columnId));
|
70
|
+
}
|
71
|
+
//# sourceMappingURL=constants.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../src/containers/Tenant/Diagnostics/TopQueries/columns/constants.ts"],"names":[],"mappings":"AAEA,OAAO,IAAI,MAAM,QAAQ,CAAC;AAE1B,MAAM,CAAC,MAAM,gCAAgC,GAAG,wBAAwB,CAAC;AACzE,MAAM,CAAC,MAAM,oCAAoC,GAAG,4BAA4B,CAAC;AAEjF,MAAM,CAAC,MAAM,uBAAuB,GAAG;IACnC,OAAO,EAAE,SAAS;IAClB,SAAS,EAAE,WAAW;IACtB,OAAO,EAAE,SAAS;IAClB,QAAQ,EAAE,UAAU;IACpB,SAAS,EAAE,WAAW;IACtB,OAAO,EAAE,SAAS;IAClB,gBAAgB,EAAE,kBAAkB;IACpC,SAAS,EAAE,WAAW;IACtB,QAAQ,EAAE,UAAU;IACpB,YAAY,EAAE,cAAc;IAC5B,eAAe,EAAE,iBAAiB;CAC5B,CAAC;AAIX,MAAM,CAAC,MAAM,0BAA0B,GAAuC;IAC1E,IAAI,OAAO;QACP,OAAO,IAAI,CAAC,UAAU,CAAC,CAAC;IAC5B,CAAC;IACD,IAAI,SAAS;QACT,OAAO,IAAI,CAAC,YAAY,CAAC,CAAC;IAC9B,CAAC;IACD,IAAI,OAAO;QACP,OAAO,IAAI,CAAC,UAAU,CAAC,CAAC;IAC5B,CAAC;IACD,IAAI,QAAQ;QACR,OAAO,IAAI,CAAC,WAAW,CAAC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7
|
+
"start-time": "Start time",
|
8
|
+
"end-time": "End time",
|
9
|
+
"duration": "Duration",
|
10
|
+
"query-text": "Query text",
|
11
|
+
"application": "Application"
|
12
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/containers/Tenant/Diagnostics/TopQueries/columns/i18n/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,eAAe,EAAC,MAAM,8BAA8B,CAAC;AAE7D,OAAO,EAAE,MAAM,WAAW,CAAC;AAE3B,MAAM,SAAS,GAAG,yBAAyB,CAAC;AAE5C,eAAe,eAAe,CAAC,SAAS,EAAE,EAAC,EAAE,EAAC,CAAC,CAAC"}
|
@@ -2,9 +2,5 @@
|
|
2
2
|
"no-data": "No data",
|
3
3
|
"filter.text.placeholder": "Search by query text or userSID...",
|
4
4
|
"mode_top": "Top",
|
5
|
-
"mode_running": "Running"
|
6
|
-
"col_user": "User",
|
7
|
-
"col_start-time": "Start time",
|
8
|
-
"col_query-text": "Query text",
|
9
|
-
"col_app": "Application"
|
5
|
+
"mode_running": "Running"
|
10
6
|
}
|
@@ -1,2 +1,2 @@
|
|
1
|
-
declare const _default: (key: "no-data" | "filter.text.placeholder" | "mode_top" | "mode_running"
|
1
|
+
declare const _default: (key: "no-data" | "filter.text.placeholder" | "mode_top" | "mode_running", params?: import("@gravity-ui/i18n").Params) => string;
|
2
2
|
export default _default;
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import type { Settings } from '@gravity-ui/react-data-table';
|
2
|
+
export declare const TOP_QUERIES_TABLE_SETTINGS: Settings;
|
3
|
+
export declare function useTopQueriesSort(): {
|
4
|
+
tableSort: import("@gravity-ui/react-data-table").SortOrder[] | undefined;
|
5
|
+
handleTableSort: import("../../../../utils/hooks").HandleSort;
|
6
|
+
backendSort: import("@gravity-ui/react-data-table").SortOrder[] | undefined;
|
7
|
+
};
|
8
|
+
export declare function useRunningQueriesSort(): {
|
9
|
+
tableSort: import("@gravity-ui/react-data-table").SortOrder[] | undefined;
|
10
|
+
handleTableSort: import("../../../../utils/hooks").HandleSort;
|
11
|
+
backendSort: import("@gravity-ui/react-data-table").SortOrder[] | undefined;
|
12
|
+
};
|
@@ -0,0 +1,28 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
import { prepareBackendSortFieldsFromTableSort, useTableSort } from '../../../../utils/hooks';
|
3
|
+
import { QUERY_TABLE_SETTINGS } from '../../utils/constants';
|
4
|
+
import { TOP_QUERIES_COLUMNS_IDS, getTopQueriesColumnSortField } from './columns/constants';
|
5
|
+
export const TOP_QUERIES_TABLE_SETTINGS = {
|
6
|
+
...QUERY_TABLE_SETTINGS,
|
7
|
+
disableSortReset: true,
|
8
|
+
};
|
9
|
+
function useQueriesSort(initialSortColumn) {
|
10
|
+
const [tableSort, handleTableSort] = useTableSort({
|
11
|
+
initialSortColumn: initialSortColumn,
|
12
|
+
initialSortOrder: -1,
|
13
|
+
multiple: true,
|
14
|
+
});
|
15
|
+
const backendSort = React.useMemo(() => prepareBackendSortFieldsFromTableSort(tableSort, getTopQueriesColumnSortField), [tableSort]);
|
16
|
+
return {
|
17
|
+
tableSort,
|
18
|
+
handleTableSort,
|
19
|
+
backendSort,
|
20
|
+
};
|
21
|
+
}
|
22
|
+
export function useTopQueriesSort() {
|
23
|
+
return useQueriesSort(TOP_QUERIES_COLUMNS_IDS.CPUTime);
|
24
|
+
}
|
25
|
+
export function useRunningQueriesSort() {
|
26
|
+
return useQueriesSort(TOP_QUERIES_COLUMNS_IDS.QueryStartAt);
|
27
|
+
}
|
28
|
+
//# sourceMappingURL=utils.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../../src/containers/Tenant/Diagnostics/TopQueries/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAC,qCAAqC,EAAE,YAAY,EAAC,MAAM,yBAAyB,CAAC;AAC5F,OAAO,EAAC,oBAAoB,EAAC,MAAM,uBAAuB,CAAC;AAE3D,OAAO,EAAC,uBAAuB,EAAE,4BAA4B,EAAC,MAAM,qBAAqB,CAAC;AAE1F,MAAM,CAAC,MAAM,0BAA0B,GAAa;IAChD,GAAG,oBAAoB;IACvB,gBAAgB,EAAE,IAAI;CACzB,CAAC;AAEF,SAAS,cAAc,CAAC,iBAAyB;IAC7C,MAAM,CAAC,SAAS,EAAE,eAAe,CAAC,GAAG,YAAY,CAAC;QAC9C,iBAAiB,EAAE,iBAAiB;QACpC,gBAAgB,EAAE,CAAC,CAAC;QACpB,QAAQ,EAAE,IAAI;KACjB,CAAC,CAAC;IAEH,MAAM,WAAW,GAAG,KAAK,CAAC,OAAO,CAC7B,GAAG,EAAE,CAAC,qCAAqC,CAAC,SAAS,EAAE,4BAA4B,CAAC,EACpF,CAAC,SAAS,CAAC,CACd,CAAC;IAEF,OAAO;QACH,SAAS;QACT,eAAe;QACf,WAAW;KACd,CAAC;AACN,CAAC;AACD,MAAM,UAAU,iBAAiB;IAC7B,OAAO,cAAc,CAAC,uBAAuB,CAAC,OAAO,CAAC,CAAC;AAC3D,CAAC;AACD,MAAM,UAAU,qBAAqB;IACjC,OAAO,cAAc,CAAC,uBAAuB,CAAC,YAAY,CAAC,CAAC;AAChE,CAAC"}
|
@@ -10,13 +10,14 @@ import { EShardsWorkloadMode } from '../../../../store/reducers/shardsWorkload/t
|
|
10
10
|
import { cn } from '../../../../utils/cn';
|
11
11
|
import { DEFAULT_TABLE_SETTINGS } from '../../../../utils/constants';
|
12
12
|
import { formatDateTime } from '../../../../utils/dataFormatters/dataFormatters';
|
13
|
-
import { TOP_SHARD_COLUMNS_IDS, isSortableTopShardsProperty } from '../../../../utils/diagnostics';
|
14
13
|
import { useAutoRefreshInterval, useTypedDispatch, useTypedSelector } from '../../../../utils/hooks';
|
15
14
|
import { parseQueryErrorToString } from '../../../../utils/query';
|
16
15
|
import { isColumnEntityType } from '../../utils/schema';
|
17
16
|
import { Filters } from './Filters';
|
18
|
-
import {
|
17
|
+
import { getShardsWorkloadColumns } from './columns/columns';
|
18
|
+
import { TOP_SHARDS_COLUMNS_IDS, TOP_SHARDS_COLUMNS_WIDTH_LS_KEY, isSortableTopShardsColumn, } from './columns/constants';
|
19
19
|
import i18n from './i18n';
|
20
|
+
import { useTopShardSort } from './utils';
|
20
21
|
import './TopShards.scss';
|
21
22
|
const b = cn('top-shards');
|
22
23
|
const TABLE_SETTINGS = {
|
@@ -32,26 +33,6 @@ function prepareDateTimeValue(value) {
|
|
32
33
|
}
|
33
34
|
return formatDateTime(new Date(value).getTime());
|
34
35
|
}
|
35
|
-
function stringToDataTableSortOrder(value) {
|
36
|
-
return value
|
37
|
-
? value.split(',').map((columnId) => ({
|
38
|
-
columnId,
|
39
|
-
order: DataTable.DESCENDING,
|
40
|
-
}))
|
41
|
-
: undefined;
|
42
|
-
}
|
43
|
-
function stringToQuerySortOrder(value) {
|
44
|
-
return value
|
45
|
-
? value.split(',').map((columnId) => ({
|
46
|
-
columnId,
|
47
|
-
order: 'DESC',
|
48
|
-
}))
|
49
|
-
: undefined;
|
50
|
-
}
|
51
|
-
function dataTableToStringSortOrder(value = []) {
|
52
|
-
const sortOrders = Array.isArray(value) ? value : [value];
|
53
|
-
return sortOrders.map(({ columnId }) => columnId).join(',');
|
54
|
-
}
|
55
36
|
function fillDateRangeFor(value) {
|
56
37
|
value.to = 'now';
|
57
38
|
value.from = 'now-1h';
|
@@ -75,21 +56,15 @@ export const TopShards = ({ tenantName, path, type }) => {
|
|
75
56
|
}
|
76
57
|
return defaultValue;
|
77
58
|
});
|
78
|
-
const
|
59
|
+
const { tableSort, handleTableSort, backendSort } = useTopShardSort();
|
79
60
|
const { currentData: result, isFetching, error, } = shardApi.useSendShardQueryQuery({
|
80
61
|
database: tenantName,
|
81
62
|
path: path,
|
82
|
-
sortOrder:
|
63
|
+
sortOrder: backendSort,
|
83
64
|
filters,
|
84
65
|
}, { pollingInterval: autoRefreshInterval });
|
85
66
|
const loading = isFetching && result === undefined;
|
86
67
|
const data = ((_b = (_a = result === null || result === void 0 ? void 0 : result.resultSets) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.result) || [];
|
87
|
-
const onSort = (newSortOrder) => {
|
88
|
-
// omit information about sort order to disable ASC order, only DESC makes sense for top shards
|
89
|
-
// use a string (and not the DataTable default format) to prevent reference change,
|
90
|
-
// which would cause an excess state change, to avoid repeating requests
|
91
|
-
setSortOrder(dataTableToStringSortOrder(newSortOrder));
|
92
|
-
};
|
93
68
|
const handleFiltersChange = (value) => {
|
94
69
|
const newStateValue = { ...value };
|
95
70
|
const isDateRangePristine = !storeFilters.from && !storeFilters.to && !value.from && !value.to;
|
@@ -111,19 +86,19 @@ export const TopShards = ({ tenantName, path, type }) => {
|
|
111
86
|
const rawColumns = getShardsWorkloadColumns(tenantName, location);
|
112
87
|
const columns = rawColumns.map((column) => ({
|
113
88
|
...column,
|
114
|
-
sortable:
|
89
|
+
sortable: isSortableTopShardsColumn(column.name),
|
115
90
|
}));
|
116
91
|
if (filters.mode === EShardsWorkloadMode.History) {
|
117
92
|
// after NodeId
|
118
93
|
columns.splice(5, 0, {
|
119
|
-
name:
|
94
|
+
name: TOP_SHARDS_COLUMNS_IDS.PeakTime,
|
120
95
|
render: ({ row }) => {
|
121
96
|
return prepareDateTimeValue(row.PeakTime);
|
122
97
|
},
|
123
98
|
sortable: false,
|
124
99
|
});
|
125
100
|
columns.push({
|
126
|
-
name:
|
101
|
+
name: TOP_SHARDS_COLUMNS_IDS.IntervalEnd,
|
127
102
|
render: ({ row }) => {
|
128
103
|
return prepareDateTimeValue(row.IntervalEnd);
|
129
104
|
},
|
@@ -141,7 +116,7 @@ export const TopShards = ({ tenantName, path, type }) => {
|
|
141
116
|
if (!data || isColumnEntityType(type)) {
|
142
117
|
return i18n('no-data');
|
143
118
|
}
|
144
|
-
return (_jsx(ResizeableDataTable, { columnsWidthLSKey: TOP_SHARDS_COLUMNS_WIDTH_LS_KEY, columns: tableColumns, data: data, settings: TABLE_SETTINGS, onSort:
|
119
|
+
return (_jsx(ResizeableDataTable, { columnsWidthLSKey: TOP_SHARDS_COLUMNS_WIDTH_LS_KEY, columns: tableColumns, data: data, settings: TABLE_SETTINGS, onSort: handleTableSort, sortOrder: tableSort }));
|
145
120
|
};
|
146
121
|
return (_jsxs(TableWithControlsLayout, { children: [_jsx(TableWithControlsLayout.Controls, { children: renderControls() }), filters.mode === EShardsWorkloadMode.History && (_jsx("div", { className: b('hint'), children: i18n('description') })), error ? _jsx(ResponseError, { error: parseQueryErrorToString(error) }) : null, _jsx(TableWithControlsLayout.Table, { loading: loading, children: renderContent() })] }));
|
147
122
|
};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"TopShards.js","sourceRoot":"","sources":["../../../../../src/containers/Tenant/Diagnostics/TopShards/TopShards.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,SAAS,MAAM,8BAA8B,CAAC;AACrD,OAAO,EAAC,WAAW,EAAC,MAAM,kBAAkB,CAAC;AAE7C,OAAO,EAAC,aAAa,EAAC,MAAM,6CAA6C,CAAC;AAC1E,OAAO,EAAC,mBAAmB,EAAC,MAAM,gEAAgE,CAAC;AACnG,OAAO,EAAC,uBAAuB,EAAC,MAAM,wEAAwE,CAAC;AAC/G,OAAO,EACH,qBAAqB,EACrB,QAAQ,GACX,MAAM,0DAA0D,CAAC;AAClE,OAAO,EAAC,mBAAmB,EAAC,MAAM,iDAAiD,CAAC;AAIpF,OAAO,EAAC,EAAE,EAAC,MAAM,sBAAsB,CAAC;AACxC,OAAO,EAAC,sBAAsB,EAAC,MAAM,6BAA6B,CAAC;AACnE,OAAO,EAAC,cAAc,EAAC,MAAM,iDAAiD,CAAC;AAC/E,OAAO,EAAC,
|
1
|
+
{"version":3,"file":"TopShards.js","sourceRoot":"","sources":["../../../../../src/containers/Tenant/Diagnostics/TopShards/TopShards.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,KAAK,IAAI,CAAC,IAAI,EAAE,CAAC;YACjB,OAAO,IAAI,CAAC;QAChB,CAAC;QAED,IAAI,CAAC,IAAI,IAAI,kBAAkB,CAAC,IAAI,CAAC,EAAE,CAAC;YACpC,OAAO,IAAI,CAAC,SAAS,CAAC,CAAC;QAC3B,CAAC;QAED,OAAO,CACH,KAAC,mBAAmB,IAChB,iBAAiB,EAAE,+BAA+B,EAClD,OAAO,EAAE,YAAY,EACrB,IAAI,EAAE,IAAI,EACV,QAAQ,EAAE,cAAc,EACxB,MAAM,EAAE,eAAe,EACvB,SAAS,EAAE,SAAS,GACtB,CACL,CAAC;IACN,CAAC,CAAC;IAEF,OAAO,CACH,MAAC,uBAAuB,eACpB,KAAC,uBAAuB,CAAC,QAAQ,cAAE,cAAc,EAAE,GAAoC,EAEtF,OAAO,CAAC,IAAI,KAAK,mBAAmB,CAAC,OAAO,IAAI,CAC7C,cAAK,SAAS,EAAE,CAAC,CAAC,MAAM,CAAC,YAAG,IAAI,CAAC,aAAa,CAAC,GAAO,CACzD,EAEA,KAAK,CAAC,CAAC,CAAC,KAAC,aAAa,IAAC,KAAK,EAAE,uBAAuB,CAAC,KAAK,CAAC,GAAI,CAAC,CAAC,CAAC,IAAI,EACxE,KAAC,uBAAuB,CAAC,KAAK,IAAC,OAAO,EAAE,OAAO,YAC1C,aAAa,EAAE,GACY,IACV,CAC7B,CAAC;AACN,CAAC,CAAC"}
|
@@ -1,6 +1,5 @@
|
|
1
1
|
import type { Column } from '@gravity-ui/react-data-table';
|
2
2
|
import type { Location } from 'history';
|
3
|
-
import type { KeyValueRow } from '
|
4
|
-
export declare const TOP_SHARDS_COLUMNS_WIDTH_LS_KEY = "topShardsColumnsWidth";
|
3
|
+
import type { KeyValueRow } from '../../../../../types/api/query';
|
5
4
|
export declare const getShardsWorkloadColumns: (schemaPath: string, location: Location) => Column<KeyValueRow>[];
|
6
5
|
export declare const getTopShardsColumns: (schemaPath: string, location: Location) => Column<KeyValueRow>[];
|