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,188 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
import { renderHook } from '@testing-library/react';
|
3
|
+
import { useTableSort } from '../useTableSort';
|
4
|
+
describe('useTableSort', function () {
|
5
|
+
it('It works with single sort', () => {
|
6
|
+
const onSortSpy = jest.fn();
|
7
|
+
const { result } = renderHook(() => useTableSort({
|
8
|
+
initialSortColumn: 'col1',
|
9
|
+
initialSortOrder: 1,
|
10
|
+
onSort: onSortSpy,
|
11
|
+
}));
|
12
|
+
const [sortOrder, handleTableSort] = result.current;
|
13
|
+
expect(sortOrder).toStrictEqual([
|
14
|
+
{
|
15
|
+
columnId: 'col1',
|
16
|
+
order: 1,
|
17
|
+
},
|
18
|
+
]);
|
19
|
+
// Change sort order
|
20
|
+
React.act(() => handleTableSort([
|
21
|
+
{
|
22
|
+
columnId: 'col1',
|
23
|
+
order: -1,
|
24
|
+
},
|
25
|
+
]));
|
26
|
+
expect(onSortSpy).toHaveBeenLastCalledWith([
|
27
|
+
{
|
28
|
+
columnId: 'col1',
|
29
|
+
order: -1,
|
30
|
+
},
|
31
|
+
]);
|
32
|
+
// Reset sort order
|
33
|
+
React.act(() => handleTableSort(undefined));
|
34
|
+
expect(onSortSpy).toHaveBeenLastCalledWith(undefined);
|
35
|
+
// Sort another column
|
36
|
+
React.act(() => handleTableSort({
|
37
|
+
columnId: 'col2',
|
38
|
+
order: 1,
|
39
|
+
}));
|
40
|
+
expect(onSortSpy).toHaveBeenLastCalledWith([
|
41
|
+
{
|
42
|
+
columnId: 'col2',
|
43
|
+
order: 1,
|
44
|
+
},
|
45
|
+
]);
|
46
|
+
// Sort multiple columns
|
47
|
+
React.act(() => handleTableSort([
|
48
|
+
{
|
49
|
+
columnId: 'col1',
|
50
|
+
order: -1,
|
51
|
+
},
|
52
|
+
{
|
53
|
+
columnId: 'col2',
|
54
|
+
order: 1,
|
55
|
+
},
|
56
|
+
]));
|
57
|
+
expect(onSortSpy).toHaveBeenLastCalledWith([
|
58
|
+
{
|
59
|
+
columnId: 'col1',
|
60
|
+
order: -1,
|
61
|
+
},
|
62
|
+
]);
|
63
|
+
});
|
64
|
+
it('It works with multiple sort', () => {
|
65
|
+
const onSortSpy = jest.fn();
|
66
|
+
const { result } = renderHook(() => useTableSort({
|
67
|
+
initialSortColumn: 'col1',
|
68
|
+
initialSortOrder: 1,
|
69
|
+
multiple: true,
|
70
|
+
onSort: onSortSpy,
|
71
|
+
}));
|
72
|
+
const [sortOrder, handleTableSort] = result.current;
|
73
|
+
expect(sortOrder).toStrictEqual([
|
74
|
+
{
|
75
|
+
columnId: 'col1',
|
76
|
+
order: 1,
|
77
|
+
},
|
78
|
+
]);
|
79
|
+
// Change sort order
|
80
|
+
React.act(() => handleTableSort([
|
81
|
+
{
|
82
|
+
columnId: 'col1',
|
83
|
+
order: -1,
|
84
|
+
},
|
85
|
+
]));
|
86
|
+
expect(onSortSpy).toHaveBeenLastCalledWith([
|
87
|
+
{
|
88
|
+
columnId: 'col1',
|
89
|
+
order: -1,
|
90
|
+
},
|
91
|
+
]);
|
92
|
+
// Reset sort order
|
93
|
+
React.act(() => handleTableSort(undefined));
|
94
|
+
expect(onSortSpy).toHaveBeenLastCalledWith(undefined);
|
95
|
+
// Sort another column
|
96
|
+
React.act(() => handleTableSort({
|
97
|
+
columnId: 'col2',
|
98
|
+
order: 1,
|
99
|
+
}));
|
100
|
+
expect(onSortSpy).toHaveBeenLastCalledWith([
|
101
|
+
{
|
102
|
+
columnId: 'col2',
|
103
|
+
order: 1,
|
104
|
+
},
|
105
|
+
]);
|
106
|
+
// Sort multiple columns
|
107
|
+
React.act(() => handleTableSort([
|
108
|
+
{
|
109
|
+
columnId: 'col1',
|
110
|
+
order: -1,
|
111
|
+
},
|
112
|
+
{
|
113
|
+
columnId: 'col2',
|
114
|
+
order: 1,
|
115
|
+
},
|
116
|
+
]));
|
117
|
+
expect(onSortSpy).toHaveBeenLastCalledWith([
|
118
|
+
{
|
119
|
+
columnId: 'col1',
|
120
|
+
order: -1,
|
121
|
+
},
|
122
|
+
{
|
123
|
+
columnId: 'col2',
|
124
|
+
order: 1,
|
125
|
+
},
|
126
|
+
]);
|
127
|
+
});
|
128
|
+
it('Have the same sort order if sort order is fixed', () => {
|
129
|
+
const onSortSpy = jest.fn();
|
130
|
+
const { result } = renderHook(() => useTableSort({
|
131
|
+
initialSortColumn: 'col1',
|
132
|
+
fixedOrderType: -1,
|
133
|
+
onSort: onSortSpy,
|
134
|
+
multiple: true,
|
135
|
+
}));
|
136
|
+
const [sortOrder, handleTableSort] = result.current;
|
137
|
+
expect(sortOrder).toStrictEqual([
|
138
|
+
{
|
139
|
+
columnId: 'col1',
|
140
|
+
order: -1,
|
141
|
+
},
|
142
|
+
]);
|
143
|
+
// Change sort order, sort should remain DESC
|
144
|
+
React.act(() => handleTableSort([
|
145
|
+
{
|
146
|
+
columnId: 'col1',
|
147
|
+
order: 1,
|
148
|
+
},
|
149
|
+
]));
|
150
|
+
expect(onSortSpy).not.toHaveBeenCalled();
|
151
|
+
// Reset sort order, sort should remain DESC
|
152
|
+
React.act(() => handleTableSort(undefined));
|
153
|
+
expect(onSortSpy).not.toHaveBeenCalled();
|
154
|
+
// Sort another column
|
155
|
+
React.act(() => handleTableSort({
|
156
|
+
columnId: 'col2',
|
157
|
+
order: 1,
|
158
|
+
}));
|
159
|
+
expect(onSortSpy).toHaveBeenLastCalledWith([
|
160
|
+
{
|
161
|
+
columnId: 'col2',
|
162
|
+
order: -1,
|
163
|
+
},
|
164
|
+
]);
|
165
|
+
// Sort multiple columns
|
166
|
+
React.act(() => handleTableSort([
|
167
|
+
{
|
168
|
+
columnId: 'col1',
|
169
|
+
order: -1,
|
170
|
+
},
|
171
|
+
{
|
172
|
+
columnId: 'col2',
|
173
|
+
order: 1,
|
174
|
+
},
|
175
|
+
]));
|
176
|
+
expect(onSortSpy).toHaveBeenLastCalledWith([
|
177
|
+
{
|
178
|
+
columnId: 'col1',
|
179
|
+
order: -1,
|
180
|
+
},
|
181
|
+
{
|
182
|
+
columnId: 'col2',
|
183
|
+
order: -1,
|
184
|
+
},
|
185
|
+
]);
|
186
|
+
});
|
187
|
+
});
|
188
|
+
//# sourceMappingURL=useTableSort.test.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"useTableSort.test.js","sourceRoot":"","sources":["../../../../src/utils/hooks/__test__/useTableSort.test.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,UAAU,EAAC,MAAM,wBAAwB,CAAC;AAElD,OAAO,EAAC,YAAY,EAAC,MAAM,iBAAiB,CAAC;AAE7C,QAAQ,CAAC,cAAc,EAAE;IACrB,EAAE,CAAC,2BAA2B,EAAE,GAAG,EAAE;QACjC,MAAM,SAAS,GAAG,IAAI,CAAC,EAAE,EAAE,CAAC;QAC5B,MAAM,EAAC,MAAM,EAAC,GAAG,UAAU,CAAC,GAAG,EAAE,CAC7B,YAAY,CAAC;YACT,iBAAiB,EAAE,MAAM;YACzB,gBAAgB,EAAE,CAAC;YACnB,MAAM,EAAE,SAAS;SACpB,CAAC,CACL,CAAC;QACF,MAAM,CAAC,SAAS,EAAE,eAAe,CAAC,GAAG,MAAM,CAAC,OAAO,CAAC;QACpD,MAAM,CAAC,SAAS,CAAC,CAAC,aAAa,CAAC;YAC5B;gBACI,QAAQ,EAAE,MAAM;gBAChB,KAAK,EAAE,CAAC;aACX;SACJ,CAAC,CAAC;QAEH,oBAAoB;QACpB,KAAK,CAAC,GAAG,CAAC,GAAG,EAAE,CACX,eAAe,CAAC;YACZ;gBACI,QAAQ,EAAE,MAAM;gBAChB,KAAK,EAAE,CAAC,CAAC;aACZ;SACJ,C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AC;SACX,CAAC,CACL,CAAC;QACF,MAAM,CAAC,SAAS,CAAC,CAAC,wBAAwB,CAAC;YACvC;gBACI,QAAQ,EAAE,MAAM;gBAChB,KAAK,EAAE,CAAC,CAAC;aACZ;SACJ,CAAC,CAAC;QAEH,wBAAwB;QACxB,KAAK,CAAC,GAAG,CAAC,GAAG,EAAE,CACX,eAAe,CAAC;YACZ;gBACI,QAAQ,EAAE,MAAM;gBAChB,KAAK,EAAE,CAAC,CAAC;aACZ;YACD;gBACI,QAAQ,EAAE,MAAM;gBAChB,KAAK,EAAE,CAAC;aACX;SACJ,CAAC,CACL,CAAC;QACF,MAAM,CAAC,SAAS,CAAC,CAAC,wBAAwB,CAAC;YACvC;gBACI,QAAQ,EAAE,MAAM;gBAChB,KAAK,EAAE,CAAC,CAAC;aACZ;YACD;gBACI,QAAQ,EAAE,MAAM;gBAChB,KAAK,EAAE,CAAC,CAAC;aACZ;SACJ,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"}
|
@@ -1,8 +1,13 @@
|
|
1
1
|
import type { OrderType, SortOrder } from '@gravity-ui/react-data-table';
|
2
|
-
interface SortParams {
|
3
|
-
sortValue: string | undefined;
|
4
|
-
sortOrder: OrderType | undefined;
|
5
|
-
}
|
6
2
|
export type HandleSort = (rawValue: SortOrder | SortOrder[] | undefined) => void;
|
7
|
-
|
3
|
+
interface TableSortProps {
|
4
|
+
initialSortColumn?: string;
|
5
|
+
initialSortOrder?: OrderType;
|
6
|
+
multiple?: boolean;
|
7
|
+
fixedOrderType?: OrderType;
|
8
|
+
onSort?: (params: SortOrder[] | undefined) => void;
|
9
|
+
}
|
10
|
+
export declare function useTableSort({ initialSortColumn, initialSortOrder, fixedOrderType, multiple, onSort, }: TableSortProps): [SortOrder[] | undefined, HandleSort];
|
11
|
+
export declare function prepareBackendSortFieldsFromTableSort(sortOrder: SortOrder[] | undefined, getSortFieldFromColumnId: (columnId: string) => string | undefined): SortOrder[] | undefined;
|
12
|
+
export declare function prepareOrderByFromTableSort(sortOrder?: SortOrder[]): string;
|
8
13
|
export {};
|
@@ -1,22 +1,67 @@
|
|
1
1
|
import React from 'react';
|
2
|
-
import
|
3
|
-
export
|
4
|
-
const
|
5
|
-
if (!
|
2
|
+
import isEqual from 'lodash/isEqual';
|
3
|
+
export function useTableSort({ initialSortColumn, initialSortOrder = -1, fixedOrderType, multiple, onSort, }) {
|
4
|
+
const [sortOrder, setSortOrder] = React.useState(() => {
|
5
|
+
if (!initialSortColumn) {
|
6
6
|
return undefined;
|
7
7
|
}
|
8
|
+
return [
|
9
|
+
{
|
10
|
+
columnId: initialSortColumn,
|
11
|
+
order: fixedOrderType ? fixedOrderType : initialSortOrder,
|
12
|
+
},
|
13
|
+
];
|
14
|
+
});
|
15
|
+
const handleTableSort = React.useCallback((rawValue) => {
|
16
|
+
if (!rawValue || (Array.isArray(rawValue) && !rawValue.length)) {
|
17
|
+
// In case we have fixedOrderType, we should not reset table sort to undefined, but use previously set order
|
18
|
+
if (!fixedOrderType) {
|
19
|
+
onSort === null || onSort === void 0 ? void 0 : onSort(undefined);
|
20
|
+
setSortOrder(undefined);
|
21
|
+
}
|
22
|
+
return;
|
23
|
+
}
|
24
|
+
let newSortOrder = Array.isArray(rawValue) ? rawValue : [rawValue];
|
25
|
+
if (fixedOrderType) {
|
26
|
+
newSortOrder = newSortOrder.map((value) => {
|
27
|
+
return {
|
28
|
+
columnId: value.columnId,
|
29
|
+
order: fixedOrderType,
|
30
|
+
};
|
31
|
+
});
|
32
|
+
}
|
33
|
+
if (!multiple) {
|
34
|
+
newSortOrder = newSortOrder.slice(0, 1);
|
35
|
+
}
|
36
|
+
setSortOrder((currentSortOrder) => {
|
37
|
+
if (newSortOrder && !isEqual(currentSortOrder, newSortOrder)) {
|
38
|
+
onSort === null || onSort === void 0 ? void 0 : onSort(newSortOrder);
|
39
|
+
return newSortOrder;
|
40
|
+
}
|
41
|
+
return currentSortOrder;
|
42
|
+
});
|
43
|
+
}, [fixedOrderType, multiple, onSort]);
|
44
|
+
return [sortOrder, handleTableSort];
|
45
|
+
}
|
46
|
+
export function prepareBackendSortFieldsFromTableSort(sortOrder = [], getSortFieldFromColumnId) {
|
47
|
+
const preparedSort = sortOrder
|
48
|
+
.map((value) => {
|
8
49
|
return {
|
9
|
-
columnId:
|
10
|
-
order:
|
50
|
+
columnId: getSortFieldFromColumnId(value.columnId),
|
51
|
+
order: value.order,
|
11
52
|
};
|
12
|
-
}
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
}
|
53
|
+
})
|
54
|
+
.filter((value) => Boolean(value.columnId));
|
55
|
+
if (preparedSort.length) {
|
56
|
+
return preparedSort;
|
57
|
+
}
|
58
|
+
return undefined;
|
59
|
+
}
|
60
|
+
function formatSortOrderToQuerySort({ columnId, order }) {
|
61
|
+
const queryOrder = order === -1 ? 'DESC' : 'ASC';
|
62
|
+
return `${columnId} ${queryOrder}`;
|
63
|
+
}
|
64
|
+
export function prepareOrderByFromTableSort(sortOrder) {
|
65
|
+
return sortOrder ? `ORDER BY ${sortOrder.map(formatSortOrderToQuerySort).join(', ')}` : '';
|
66
|
+
}
|
22
67
|
//# sourceMappingURL=useTableSort.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"useTableSort.js","sourceRoot":"","sources":["../../../src/utils/hooks/useTableSort.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,
|
1
|
+
{"version":3,"file":"useTableSort.js","sourceRoot":"","sources":["../../../src/utils/hooks/useTableSort.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,OAAO,MAAM,gBAAgB,CAAC;AAYrC,MAAM,UAAU,YAAY,CAAC,EACzB,iBAAiB,EACjB,gBAAgB,GAAG,CAAC,CAAC,EACrB,cAAc,EACd,QAAQ,EACR,MAAM,GACO;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EAAE,CAAC;AAC/F,CAAC"}
|
@@ -52,7 +52,7 @@ function filterAutocompleteEntities(autocompleteEntities, suggestions) {
|
|
52
52
|
}
|
53
53
|
return acc;
|
54
54
|
}, new Set(commonSuggestionEntities));
|
55
|
-
return autocompleteEntities.filter(({ Type }) => suggestionsSet.has(Type));
|
55
|
+
return autocompleteEntities === null || autocompleteEntities === void 0 ? void 0 : autocompleteEntities.filter(({ Type }) => suggestionsSet.has(Type));
|
56
56
|
}
|
57
57
|
function wrapStringToBackticks(value) {
|
58
58
|
let result = value;
|
@@ -152,7 +152,7 @@ function getColumnDetails(col) {
|
|
152
152
|
return detailsString;
|
153
153
|
}
|
154
154
|
export async function generateColumnsSuggestion(rangeToInsertSuggestion, suggestColumns, database) {
|
155
|
-
var _a, _b, _c;
|
155
|
+
var _a, _b, _c, _d;
|
156
156
|
if (!(suggestColumns === null || suggestColumns === void 0 ? void 0 : suggestColumns.tables)) {
|
157
157
|
return [];
|
158
158
|
}
|
@@ -186,7 +186,7 @@ export async function generateColumnsSuggestion(rangeToInsertSuggestion, suggest
|
|
186
186
|
acc[normalizedEntityName] = aliases;
|
187
187
|
return acc;
|
188
188
|
}, {});
|
189
|
-
autocompleteResponse.Result.Entities.forEach((col) => {
|
189
|
+
(_d = autocompleteResponse.Result.Entities) === null || _d === void 0 ? void 0 : _d.forEach((col) => {
|
190
190
|
if (!isAutocompleteColumn(col)) {
|
191
191
|
return;
|
192
192
|
}
|
@@ -278,6 +278,9 @@ export async function generateEntitiesSuggestion(rangeToInsertSuggestion, sugges
|
|
278
278
|
const withBackticks = prefix === null || prefix === void 0 ? void 0 : prefix.startsWith('`');
|
279
279
|
if (data.Success) {
|
280
280
|
const filteredEntities = filterAutocompleteEntities(data.Result.Entities, suggestEntities);
|
281
|
+
if (!filteredEntities) {
|
282
|
+
return [];
|
283
|
+
}
|
281
284
|
return filteredEntities.reduce((acc, { Name, Type }) => {
|
282
285
|
const isDir = directoryTypes.includes(Type);
|
283
286
|
const label = isDir ? `${Name}/` : Name;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"generateSuggestions.js","sourceRoot":"","sources":["../../../../src/utils/monaco/yql/generateSuggestions.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,MAAM,MAAM,wCAAwC,CAAC;AAEjE,OAAO,EAAC,oBAAoB,EAAC,MAAM,iCAAiC,CAAC;AAOrE,OAAO,EACH,kBAAkB,EAClB,cAAc,EACd,OAAO,EACP,eAAe,EACf,WAAW,EACX,aAAa,EACb,IAAI,EACJ,eAAe,GAClB,MAAM,aAAa,CAAC;AAErB,MAAM,kBAAkB,GAEpB;IACA,MAAM,EAAE,CAAC;IACT,QAAQ,EAAE,CAAC;IACX,WAAW,EAAE,CAAC;IACd,KAAK,EAAE,CAAC;IACR,QAAQ,EAAE,CAAC;IACX,KAAK,EAAE,CAAC;IACR,MAAM,EAAE,CAAC;IACT,SAAS,EAAE,CAAC;IACZ,MAAM,EAAE,CAAC;IACT,QAAQ,EAAE,CAAC;IACX,KAAK,EAAE,EAAE;IACT,QAAQ,EAAE,EAAE;IACZ,IAAI,EAAE,EAAE;IACR,KAAK,EAAE,EAAE;IACT,QAAQ,EAAE,EAAE;IACZ,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,EAAE;IACd,OAAO,EAAE,EAAE;IACX,IAAI,EAAE,EAAE;IACR,KAAK,EAAE,EAAE;IACT,IAAI,EAAE,EAAE;IACR,SAAS,EAAE,EAAE;IACb,WAAW,EAAE,EAAE;IACf,MAAM,EAAE,EAAE;IACV,aAAa,EAAE,EAAE;IACjB,IAAI,EAAE,EAAE;IACR,KAAK,EAAE,EAAE;IACT,OAAO,EAAE,EAAE;CACd,CAAC;AAEF,MAAM,EAAE,GAAG,WAAW,CAAC;AAEvB,MAAM,8BAA8B,GAAyD;IACzF,kBAAkB,EAAE,CAAC,sBAAsB,CAAC;IAC5C,aAAa,EAAE,CAAC,gBAAgB,CAAC;IACjC,WAAW,EAAE,CAAC,aAAa,CAAC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iBAAiB,CAAC,UAAU,CAAC,CAAC;IAC3D,OAAO,cAAc,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;QAC/B,KAAK,EAAE,EAAE;QACT,UAAU,EAAE,EAAE;QACd,IAAI,EAAE,kBAAkB,CAAC,QAAQ;QACjC,MAAM,EAAE,SAAS;QACjB,KAAK,EAAE,uBAAuB;QAC9B,QAAQ,EAAE,uBAAuB,CAAC,kBAAkB,CAAC,uBAAuB,CAAC,CAAC;KACjF,CAAC,CAAC,CAAC;AACR,CAAC;AAED,MAAM,QAAQ,GAAG,4BAA4B,CAAC;AAE9C,SAAS,uBAAuB,CAAC,KAAa;IAC1C,MAAM,uBAAuB,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAChD,IAAI,uBAAuB,EAAE,CAAC;QAC1B,OAAO,uBAAuB,CAAC;IACnC,CAAC;IAED,MAAM,cAAc,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,GAAG,QAAQ,CAAC,MAAM,CAAC,CAAC;IAC3D,MAAM,OAAO,GAAG,KAAK,GAAG,QAAQ,CAAC,MAAM,CAAC;IAExC,MAAM,aAAa,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;IAEzC,OAAO,aAAa,CAAC,MAAM,CAAC,cAAc,CAAC,GAAG,QAAQ,CAAC,OAAO,CAAC,CAAC;AACpE,CAAC"}
|
package/dist/utils/nodes.d.ts
CHANGED
@@ -24,6 +24,6 @@ export interface PreparedNodeSystemState extends TSystemStateInfo {
|
|
24
24
|
SharedCacheLimit?: number;
|
25
25
|
SharedCacheUsed?: number;
|
26
26
|
}
|
27
|
-
export declare
|
27
|
+
export declare function prepareNodeSystemState(systemState?: TSystemStateInfo): PreparedNodeSystemState;
|
28
28
|
export declare const getProblemParamValue: (problemFilter: ProblemFilterValue | undefined) => problemFilter is "With problems";
|
29
29
|
export declare const getUptimeParamValue: (nodesUptimeFilter: NodesUptimeFilterValues | undefined) => number | undefined;
|
package/dist/utils/nodes.js
CHANGED
@@ -2,7 +2,7 @@ import { z } from 'zod';
|
|
2
2
|
import { ProblemFilterValues } from '../store/reducers/settings/settings';
|
3
3
|
import { EFlag } from '../types/api/enums';
|
4
4
|
import { HOUR_IN_SECONDS } from './constants';
|
5
|
-
import {
|
5
|
+
import { getDowntimeFromDateFormatted, getUptimeFromDateFormatted, } from './dataFormatters/dataFormatters';
|
6
6
|
import { valueIsDefined } from '.';
|
7
7
|
export var NodesUptimeFilterValues;
|
8
8
|
(function (NodesUptimeFilterValues) {
|
@@ -34,13 +34,19 @@ export function calculateLoadAveragePercents(node = {}) {
|
|
34
34
|
return (value * 100) / NumberOfCpus;
|
35
35
|
});
|
36
36
|
}
|
37
|
-
export
|
37
|
+
export function prepareNodeSystemState(systemState = {}) {
|
38
38
|
var _a, _b, _c, _d, _e, _f;
|
39
39
|
// There is no Rack in Location field for din nodes
|
40
40
|
const Rack = ((_a = systemState.Location) === null || _a === void 0 ? void 0 : _a.Rack) || systemState.Rack;
|
41
41
|
const DC = ((_b = systemState.Location) === null || _b === void 0 ? void 0 : _b.DataCenter) || systemState.DataCenter;
|
42
42
|
const TenantName = (_c = systemState === null || systemState === void 0 ? void 0 : systemState.Tenants) === null || _c === void 0 ? void 0 : _c[0];
|
43
|
-
|
43
|
+
let Uptime;
|
44
|
+
if (systemState.DisconnectTime) {
|
45
|
+
Uptime = getDowntimeFromDateFormatted(systemState.DisconnectTime);
|
46
|
+
}
|
47
|
+
else {
|
48
|
+
Uptime = getUptimeFromDateFormatted(systemState.StartTime);
|
49
|
+
}
|
44
50
|
const LoadAveragePercents = calculateLoadAveragePercents(systemState);
|
45
51
|
// 0 limit means that limit is not set, so it should be undefined
|
46
52
|
const SharedCacheLimit = Number((_d = systemState.SharedCacheStats) === null || _d === void 0 ? void 0 : _d.LimitBytes) || undefined;
|
@@ -57,7 +63,7 @@ export const prepareNodeSystemState = (systemState = {}) => {
|
|
57
63
|
SharedCacheLimit,
|
58
64
|
SharedCacheUsed,
|
59
65
|
};
|
60
|
-
}
|
66
|
+
}
|
61
67
|
export const getProblemParamValue = (problemFilter) => {
|
62
68
|
return problemFilter === ProblemFilterValues.PROBLEMS;
|
63
69
|
};
|
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,
|
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,EACH,4BAA4B,EAC5B,0BAA0B,GAC7B,MAAM,iCAAiC,CAAC;AAEzC,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,KA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ED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "ydb-embedded-ui",
|
3
|
-
"version": "7.
|
3
|
+
"version": "7.2.0",
|
4
4
|
"files": [
|
5
5
|
"dist"
|
6
6
|
],
|
@@ -22,7 +22,7 @@
|
|
22
22
|
"@gravity-ui/navigation": "^2.16.0",
|
23
23
|
"@gravity-ui/paranoid": "^2.0.1",
|
24
24
|
"@gravity-ui/react-data-table": "^2.1.1",
|
25
|
-
"@gravity-ui/table": "^
|
25
|
+
"@gravity-ui/table": "^1.7.0",
|
26
26
|
"@gravity-ui/uikit": "^6.33.0",
|
27
27
|
"@gravity-ui/websql-autocomplete": "^12.1.2",
|
28
28
|
"@hookform/resolvers": "^3.9.0",
|
@@ -127,7 +127,7 @@
|
|
127
127
|
"@gravity-ui/tsconfig": "^1.0.0",
|
128
128
|
"@playwright/test": "^1.42.1",
|
129
129
|
"@testing-library/jest-dom": "^6.4.6",
|
130
|
-
"@testing-library/react": "^
|
130
|
+
"@testing-library/react": "^16.0.1",
|
131
131
|
"@testing-library/user-event": "^14.5.2",
|
132
132
|
"@types/jest": "^29.5.12",
|
133
133
|
"@types/lodash": "^4.17.0",
|
@@ -1,8 +0,0 @@
|
|
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 const TOP_QUERIES_COLUMNS_WIDTH_LS_KEY = "topQueriesColumnsWidth";
|
5
|
-
export declare const RUNNING_QUERIES_COLUMNS_WIDTH_LS_KEY = "runningQueriesColumnsWidth";
|
6
|
-
export declare const TOP_QUERIES_COLUMNS: Column<KeyValueRow>[];
|
7
|
-
export declare const TENANT_OVERVIEW_TOP_QUERUES_COLUMNS: Column<KeyValueRow>[];
|
8
|
-
export declare const RUNNING_QUERIES_COLUMNS: Column<KeyValueRow>[];
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"getTopQueriesColumns.js","s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AE,CAAC,MAAM,CAAC,GAAG,CAAC,QAAQ,CAAC;IAC3C,KAAK,EAAE,SAAS,CAAC,KAAK;IACtB,KAAK,EAAE,GAAG;CACb,CAAC;AAEF,MAAM,gBAAgB,GAAwB;IAC1C,IAAI,EAAE,cAAc;IACpB,IAAI,MAAM;QACN,OAAO,IAAI,CAAC,gBAAgB,CAAC,CAAC;IAClC,CAAC;IACD,MAAM,EAAE,CAAC,EAAC,GAAG,EAAC,EAAE,EAAE,CAAC,cAAc,CAAC,IAAI,IAAI,CAAC,GAAG,CAAC,YAAsB,CAAC,CAAC,OAAO,EAAE,CAAC;IACjF,QAAQ,EAAE,IAAI;IACd,UAAU,EAAE,KAAK;IACjB,YAAY,EAAE,SAAS,CAAC,UAAU;CACrC,CAAC;AAEF,MAAM,iBAAiB,GAAwB;IAC3C,IAAI,EAAE,iBAAiB;IACvB,IAAI,MAAM;QACN,OAAO,IAAI,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IACD,MAAM,EAAE,CAAC,EAAC,GAAG,EAAC,EAAE,EAAE,CAAC,cAAK,SAAS,EAAE,CAAC,CAAC,UAAU,CAAC,YAAG,GAAG,CAAC,eAAe,IAAI,GAAG,GAAO;IACpF,QAAQ,EAAE,IAAI;CACjB,CAAC;AAEF,MAAM,CAAC,MAAM,mBAAmB,GAAG;IAC/B,eAAe;IACf,eAAe;IACf,eAAe;IACf,aAAa;IACb,cAAc;IACd,cAAc;IACd,eAAe;IACf,aAAa;CAChB,CAAC;AAEF,MAAM,CAAC,MAAM,mCAAmC,GAAG;IAC/C,eAAe;IACf,sBAAsB;IACtB,eAAe;CAClB,CAAC;AAEF,MAAM,CAAC,MAAM,uBAAuB,GAAG;IACnC,aAAa;IACb,gBAAgB;IAChB,eAAe;IACf,iBAAiB;CACpB,CAAC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"getTopShardsColumns.js","sourceRoot":"","sources":["../../../../../src/containers/Tenant/Diagnostics/TopShards/getTopShard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eAAe,CAAC;IACjE,MAAM,EAAE,CAAC,EAAC,GAAG,EAAC,EAAE,EAAE,CAAC,YAAY,CAAC,GAAG,CAAC,eAAe,CAAC;IACpD,KAAK,EAAE,SAAS,CAAC,KAAK;CACzB,CAAC;AAEF,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,UAAkB,EAAE,QAAkB,EAAE,EAAE;IAC/E,OAAO;QACH,aAAa,CAAC,UAAU,EAAE,QAAQ,CAAC;QACnC,cAAc;QACd,cAAc;QACd,cAAc;QACd,YAAY;QACZ,qBAAqB;KACxB,CAAC;AACN,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,UAAkB,EAAE,QAAkB,EAAE,EAAE;IAC1E,OAAO,CAAC,cAAc,EAAE,aAAa,CAAC,UAAU,EAAE,QAAQ,CAAC,EAAE,uBAAuB,CAAC,CAAC;AAC1F,CAAC,CAAC"}
|
@@ -1,23 +0,0 @@
|
|
1
|
-
export declare const TOP_QUERIES_COLUMNS_IDS: {
|
2
|
-
CPUTimeUs: string;
|
3
|
-
QueryText: string;
|
4
|
-
EndTime: string;
|
5
|
-
ReadRows: string;
|
6
|
-
ReadBytes: string;
|
7
|
-
UserSID: string;
|
8
|
-
OneLineQueryText: string;
|
9
|
-
QueryHash: string;
|
10
|
-
Duration: string;
|
11
|
-
};
|
12
|
-
export declare const TOP_SHARD_COLUMNS_IDS: {
|
13
|
-
TabletId: string;
|
14
|
-
CPUCores: string;
|
15
|
-
DataSize: string;
|
16
|
-
Path: string;
|
17
|
-
NodeId: string;
|
18
|
-
PeakTime: string;
|
19
|
-
InFlightTxCount: string;
|
20
|
-
IntervalEnd: string;
|
21
|
-
};
|
22
|
-
export declare const isSortableTopShardsProperty: (value: string) => boolean;
|
23
|
-
export declare const isSortableTopQueriesProperty: (value: string) => boolean;
|
@@ -1,37 +0,0 @@
|
|
1
|
-
export const TOP_QUERIES_COLUMNS_IDS = {
|
2
|
-
CPUTimeUs: 'CPUTime',
|
3
|
-
QueryText: 'QueryText',
|
4
|
-
EndTime: 'EndTime',
|
5
|
-
ReadRows: 'ReadRows',
|
6
|
-
ReadBytes: 'ReadBytes',
|
7
|
-
UserSID: 'UserSID',
|
8
|
-
OneLineQueryText: 'OneLineQueryText',
|
9
|
-
QueryHash: 'QueryHash',
|
10
|
-
Duration: 'Duration',
|
11
|
-
};
|
12
|
-
export const TOP_SHARD_COLUMNS_IDS = {
|
13
|
-
TabletId: 'TabletId',
|
14
|
-
CPUCores: 'CPUCores',
|
15
|
-
DataSize: 'DataSize',
|
16
|
-
Path: 'Path',
|
17
|
-
NodeId: 'NodeId',
|
18
|
-
PeakTime: 'PeakTime',
|
19
|
-
InFlightTxCount: 'InFlightTxCount',
|
20
|
-
IntervalEnd: 'IntervalEnd',
|
21
|
-
};
|
22
|
-
const TOP_SHARDS_SORT_VALUES = [
|
23
|
-
TOP_SHARD_COLUMNS_IDS.CPUCores,
|
24
|
-
TOP_SHARD_COLUMNS_IDS.DataSize,
|
25
|
-
TOP_SHARD_COLUMNS_IDS.InFlightTxCount,
|
26
|
-
];
|
27
|
-
const TOP_QUERIES_SORT_VALUES = [
|
28
|
-
TOP_QUERIES_COLUMNS_IDS.CPUTimeUs,
|
29
|
-
TOP_QUERIES_COLUMNS_IDS.EndTime,
|
30
|
-
TOP_QUERIES_COLUMNS_IDS.ReadRows,
|
31
|
-
TOP_QUERIES_COLUMNS_IDS.ReadBytes,
|
32
|
-
TOP_QUERIES_COLUMNS_IDS.UserSID,
|
33
|
-
TOP_QUERIES_COLUMNS_IDS.Duration,
|
34
|
-
];
|
35
|
-
export const isSortableTopShardsProperty = (value) => Object.values(TOP_SHARDS_SORT_VALUES).includes(value);
|
36
|
-
export const isSortableTopQueriesProperty = (value) => Object.values(TOP_QUERIES_SORT_VALUES).includes(value);
|
37
|
-
//# sourceMappingURL=diagnostics.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"diagnostics.js","sourceRoot":"","sources":["../../src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