ydb-embedded-ui 6.35.0 → 6.36.1
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/components/AutoRefreshControl/AutoRefreshControl.js +1 -1
- package/dist/components/AutoRefreshControl/AutoRefreshControl.js.map +1 -1
- package/dist/components/MemoryViewer/MemoryViewer.d.ts +1 -3
- package/dist/components/MemoryViewer/MemoryViewer.js +3 -1
- package/dist/components/MemoryViewer/MemoryViewer.js.map +1 -1
- package/dist/components/PaginatedTable/PaginatedTable.js +9 -7
- package/dist/components/PaginatedTable/PaginatedTable.js.map +1 -1
- package/dist/components/PaginatedTable/TableChunk.d.ts +4 -5
- package/dist/components/PaginatedTable/TableChunk.js +7 -1
- package/dist/components/PaginatedTable/TableChunk.js.map +1 -1
- package/dist/components/nodesColumns/columns.js +1 -1
- package/dist/components/nodesColumns/columns.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopQueries.js +1 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopQueries.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantMemory/TenantMemory.d.ts +5 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantMemory/TenantMemory.js +6 -2
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantMemory/TenantMemory.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantOverview.js +1 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantOverview.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantOverview.scss +5 -0
- package/dist/containers/Tenant/Diagnostics/TopQueries/TopQueries.js +1 -1
- package/dist/containers/Tenant/Diagnostics/TopQueries/TopQueries.js.map +1 -1
- package/dist/containers/Tenant/ObjectSummary/SchemaTree/SchemaTree.js +1 -1
- package/dist/containers/Tenant/ObjectSummary/SchemaTree/SchemaTree.js.map +1 -1
- package/dist/containers/Tenant/Query/ExecuteResult/ExecuteResult.d.ts +2 -2
- package/dist/containers/Tenant/Query/ExecuteResult/utils.d.ts +1 -1
- package/dist/containers/Tenant/Query/ExecuteResult/utils.js +1 -1
- package/dist/containers/Tenant/Query/ExecuteResult/utils.js.map +1 -1
- package/dist/containers/Tenant/Query/ExplainResult/ExplainResult.d.ts +2 -2
- package/dist/containers/Tenant/Query/ExplainResult/ExplainResult.js +1 -1
- package/dist/containers/Tenant/Query/ExplainResult/ExplainResult.js.map +1 -1
- package/dist/containers/Tenant/Query/ExplainResult/components/Graph/Graph.d.ts +2 -2
- package/dist/containers/Tenant/Query/ExplainResult/components/Graph/Graph.js +1 -1
- package/dist/containers/Tenant/Query/ExplainResult/components/Graph/Graph.js.map +1 -1
- package/dist/containers/Tenant/Query/ExplainResult/components/SimplifiedPlan/SimplifiedPlan.d.ts +1 -1
- package/dist/containers/Tenant/Query/ExplainResult/components/SimplifiedPlan/types.d.ts +1 -1
- package/dist/containers/Tenant/Query/ExplainResult/components/SimplifiedPlan/utils.d.ts +1 -1
- package/dist/containers/Tenant/Query/QueriesHistory/QueriesHistory.js +1 -1
- package/dist/containers/Tenant/Query/QueriesHistory/QueriesHistory.js.map +1 -1
- package/dist/containers/Tenant/Query/Query.js +1 -1
- package/dist/containers/Tenant/Query/Query.js.map +1 -1
- package/dist/containers/Tenant/Query/QueryEditor/QueryEditor.js +8 -9
- package/dist/containers/Tenant/Query/QueryEditor/QueryEditor.js.map +1 -1
- package/dist/containers/Tenant/Query/QuerySettingsDialog/QuerySettingsDialog.js +5 -3
- package/dist/containers/Tenant/Query/QuerySettingsDialog/QuerySettingsDialog.js.map +1 -1
- package/dist/containers/Tenant/Query/QuerySettingsDialog/QuerySettingsSelect.d.ts +1 -0
- package/dist/containers/Tenant/Query/QuerySettingsDialog/QuerySettingsSelect.js +2 -2
- package/dist/containers/Tenant/Query/QuerySettingsDialog/QuerySettingsSelect.js.map +1 -1
- package/dist/containers/Tenant/Query/QuerySettingsDialog/i18n/en.json +1 -0
- package/dist/containers/Tenant/Query/QuerySettingsDialog/i18n/index.d.ts +1 -1
- package/dist/containers/Tenant/Query/QuerySettingsDialog/i18n/ru.json +1 -0
- package/dist/containers/Tenant/utils/schemaQueryTemplates.js +2 -3
- package/dist/containers/Tenant/utils/schemaQueryTemplates.js.map +1 -1
- package/dist/containers/UserSettings/i18n/en.json +2 -2
- package/dist/containers/Versions/groupNodes.js +1 -1
- package/dist/containers/Versions/groupNodes.js.map +1 -1
- package/dist/services/api.js +1 -0
- package/dist/services/api.js.map +1 -1
- package/dist/store/configureStore.d.ts +4 -4
- package/dist/store/configureStore.js +1 -1
- package/dist/store/configureStore.js.map +1 -1
- package/dist/store/defaultStore.d.ts +2 -2
- package/dist/store/reducers/cancelQuery.js +2 -2
- package/dist/store/reducers/cancelQuery.js.map +1 -1
- package/dist/store/reducers/capabilities/capabilities.d.ts +8 -8
- package/dist/store/reducers/cluster/cluster.d.ts +6 -6
- package/dist/store/reducers/cluster/utils.js +2 -2
- package/dist/store/reducers/cluster/utils.js.map +1 -1
- package/dist/store/reducers/executeTopQueries/executeTopQueries.js +3 -3
- package/dist/store/reducers/executeTopQueries/executeTopQueries.js.map +1 -1
- package/dist/store/reducers/healthcheckInfo/healthcheckInfo.d.ts +20 -20
- package/dist/store/reducers/index.d.ts +3 -3
- package/dist/store/reducers/index.js +2 -2
- package/dist/store/reducers/index.js.map +1 -1
- package/dist/store/reducers/node/selectors.d.ts +1 -1
- package/dist/store/reducers/nodesList.d.ts +1 -1
- package/dist/store/reducers/preview.js +2 -2
- package/dist/store/reducers/preview.js.map +1 -1
- package/dist/store/reducers/query/__test__/utils.test.d.ts +1 -0
- package/dist/store/reducers/query/__test__/utils.test.js +24 -0
- package/dist/store/reducers/query/__test__/utils.test.js.map +1 -0
- package/dist/store/reducers/query/prepareQueryData.d.ts +6 -0
- package/dist/store/reducers/{explainQuery/utils.js → query/prepareQueryData.js} +11 -10
- package/dist/store/reducers/query/prepareQueryData.js.map +1 -0
- package/dist/store/reducers/query/query.d.ts +55 -0
- package/dist/store/reducers/{executeQuery.js → query/query.js} +32 -45
- package/dist/store/reducers/query/query.js.map +1 -0
- package/dist/store/reducers/query/types.d.ts +57 -0
- package/dist/store/reducers/query/types.js.map +1 -0
- package/dist/store/reducers/query/utils.d.ts +7 -0
- package/dist/store/reducers/query/utils.js +21 -0
- package/dist/store/reducers/query/utils.js.map +1 -0
- package/dist/store/reducers/queryActions/queryActions.js +1 -1
- package/dist/store/reducers/queryActions/queryActions.js.map +1 -1
- package/dist/store/reducers/shardsWorkload/shardsWorkload.js +2 -2
- package/dist/store/reducers/shardsWorkload/shardsWorkload.js.map +1 -1
- package/dist/store/reducers/tablets.d.ts +5 -5
- package/dist/store/reducers/tenantOverview/executeTopTables/executeTopTables.js +2 -2
- package/dist/store/reducers/tenantOverview/executeTopTables/executeTopTables.js.map +1 -1
- package/dist/store/reducers/tenantOverview/topShards/tenantOverviewTopShards.js +2 -2
- package/dist/store/reducers/tenantOverview/topShards/tenantOverviewTopShards.js.map +1 -1
- package/dist/store/reducers/tenants/selectors.d.ts +9 -9
- package/dist/store/reducers/topic.d.ts +15 -15
- package/dist/store/reducers/trace.js +1 -1
- package/dist/store/reducers/trace.js.map +1 -1
- package/dist/types/api/tenant.d.ts +2 -1
- package/dist/types/api/tenant.js.map +1 -1
- package/dist/utils/hooks/useQueryExecutionSettings.d.ts +2 -8
- package/dist/utils/hooks/useQueryExecutionSettings.js +14 -3
- package/dist/utils/hooks/useQueryExecutionSettings.js.map +1 -1
- package/dist/utils/hooks/withConfirmation/useChangeInputWithConfirmation.js +1 -1
- package/dist/utils/hooks/withConfirmation/useChangeInputWithConfirmation.js.map +1 -1
- package/dist/utils/prepareQueryExplain.d.ts +1 -1
- package/dist/utils/query.d.ts +1 -2
- package/dist/utils/query.js +5 -10
- package/dist/utils/query.js.map +1 -1
- package/dist/utils/query.test.js +20 -34
- package/dist/utils/query.test.js.map +1 -1
- package/package.json +1 -1
- package/dist/store/reducers/executeQuery.d.ts +0 -54
- package/dist/store/reducers/executeQuery.js.map +0 -1
- package/dist/store/reducers/explainQuery/explainQuery.d.ts +0 -10
- package/dist/store/reducers/explainQuery/explainQuery.js +0 -72
- package/dist/store/reducers/explainQuery/explainQuery.js.map +0 -1
- package/dist/store/reducers/explainQuery/types.d.ts +0 -28
- package/dist/store/reducers/explainQuery/types.js.map +0 -1
- package/dist/store/reducers/explainQuery/utils.d.ts +0 -6
- package/dist/store/reducers/explainQuery/utils.js.map +0 -1
- package/dist/types/store/executeQuery.d.ts +0 -42
- package/dist/types/store/executeQuery.js +0 -6
- package/dist/types/store/executeQuery.js.map +0 -1
- /package/dist/store/reducers/{explainQuery → query}/types.js +0 -0
@@ -14,7 +14,7 @@ export declare const store: import("@reduxjs/toolkit").EnhancedStore<{
|
|
14
14
|
partitions: {
|
15
15
|
selectedConsumer?: string;
|
16
16
|
};
|
17
|
-
|
17
|
+
query: import("./reducers/query/types").QueryState;
|
18
18
|
heatmap: import("../types/store/heatmap").IHeatmapState;
|
19
19
|
settings: import("./reducers/settings/types").SettingsState;
|
20
20
|
executeTopQueries: import("./reducers/executeTopQueries/types").TopQueriesFilters;
|
@@ -49,7 +49,7 @@ export declare const store: import("@reduxjs/toolkit").EnhancedStore<{
|
|
49
49
|
partitions: {
|
50
50
|
selectedConsumer?: string;
|
51
51
|
};
|
52
|
-
|
52
|
+
query: import("./reducers/query/types").QueryState;
|
53
53
|
heatmap: import("../types/store/heatmap").IHeatmapState;
|
54
54
|
settings: import("./reducers/settings/types").SettingsState;
|
55
55
|
executeTopQueries: import("./reducers/executeTopQueries/types").TopQueriesFilters;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { isQueryErrorResponse,
|
1
|
+
import { isQueryErrorResponse, parseQueryAPIResponse } from '../../utils/query';
|
2
2
|
import { api } from './api';
|
3
3
|
export const cancelQueryApi = api.injectEndpoints({
|
4
4
|
endpoints: (build) => ({
|
@@ -14,7 +14,7 @@ export const cancelQueryApi = api.injectEndpoints({
|
|
14
14
|
if (isQueryErrorResponse(response)) {
|
15
15
|
return { error: response };
|
16
16
|
}
|
17
|
-
const data =
|
17
|
+
const data = parseQueryAPIResponse(response);
|
18
18
|
return { data };
|
19
19
|
}
|
20
20
|
catch (error) {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"cancelQuery.js","sourceRoot":"","sources":["../../../src/store/reducers/cancelQuery.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,oBAAoB,EAAE,
|
1
|
+
{"version":3,"file":"cancelQuery.js","sourceRoot":"","sources":["../../../src/store/reducers/cancelQuery.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,oBAAoB,EAAE,qBAAqB,EAAC,MAAM,mBAAmB,CAAC;AAE9E,OAAO,EAAC,GAAG,EAAC,MAAM,OAAO,CAAC;AAM1B,MAAM,CAAC,MAAM,cAAc,GAAG,GAAG,CAAC,eAAe,CAAC;IAC9C,SAAS,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;QACnB,WAAW,EAAE,KAAK,CAAC,QAAQ,CAAgC;YACvD,OAAO,EAAE,KAAK,EAAE,EAAC,OAAO,EAAE,QAAQ,EAAC,EAAE,EAAC,MAAM,EAAC,EAAE,EAAE;gBAC7C,MAAM,MAAM,GAAkB,cAAc,CAAC;gBAE7C,IAAI,CAAC;oBACD,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,GAAG,CAAC,SAAS,CACvC;wBACI,QAAQ;wBACR,MAAM;wBACN,QAAQ,EAAE,OAAO;qBACpB,EACD,EAAC,MAAM,EAAC,CACX,CAAC;oBAEF,IAAI,oBAAoB,CAAC,QAAQ,CAAC,EAAE,CAAC;wBACjC,OAAO,EAAC,KAAK,EAAE,QAAQ,EAAC,CAAC;oBAC7B,CAAC;oBAED,MAAM,IAAI,GAAG,qBAAqB,CAAC,QAAQ,CAAC,CAAC;oBAE7C,OAAO,EAAC,IAAI,EAAC,CAAC;gBAClB,CAAC;gBAAC,OAAO,KAAK,EAAE,CAAC;oBACb,OAAO,EAAC,KAAK,EAAC,CAAC;gBACnB,CAAC;YACL,CAAC;SACJ,CAAC;KACL,CAAC;IACF,gBAAgB,EAAE,OAAO;CAC5B,CAAC,CAAC"}
|
@@ -21,7 +21,7 @@ export declare const selectDatabaseCapabilities: ((state: {
|
|
21
21
|
partitions: {
|
22
22
|
selectedConsumer?: string;
|
23
23
|
};
|
24
|
-
|
24
|
+
query: import("../query/types").QueryState;
|
25
25
|
heatmap: import("../../../types/store/heatmap").IHeatmapState;
|
26
26
|
settings: import("../settings/types").SettingsState;
|
27
27
|
executeTopQueries: import("../executeTopQueries/types").TopQueriesFilters;
|
@@ -118,7 +118,7 @@ export declare const selectDatabaseCapabilities: ((state: {
|
|
118
118
|
partitions: {
|
119
119
|
selectedConsumer?: string;
|
120
120
|
};
|
121
|
-
|
121
|
+
query: import("../query/types").QueryState;
|
122
122
|
heatmap: import("../../../types/store/heatmap").IHeatmapState;
|
123
123
|
settings: import("../settings/types").SettingsState;
|
124
124
|
executeTopQueries: import("../executeTopQueries/types").TopQueriesFilters;
|
@@ -217,7 +217,7 @@ export declare const selectDatabaseCapabilities: ((state: {
|
|
217
217
|
partitions: {
|
218
218
|
selectedConsumer?: string;
|
219
219
|
};
|
220
|
-
|
220
|
+
query: import("../query/types").QueryState;
|
221
221
|
heatmap: import("../../../types/store/heatmap").IHeatmapState;
|
222
222
|
settings: import("../settings/types").SettingsState;
|
223
223
|
executeTopQueries: import("../executeTopQueries/types").TopQueriesFilters;
|
@@ -387,7 +387,7 @@ export declare const selectDatabaseCapabilities: ((state: {
|
|
387
387
|
partitions: {
|
388
388
|
selectedConsumer?: string;
|
389
389
|
};
|
390
|
-
|
390
|
+
query: import("../query/types").QueryState;
|
391
391
|
heatmap: import("../../../types/store/heatmap").IHeatmapState;
|
392
392
|
settings: import("../settings/types").SettingsState;
|
393
393
|
executeTopQueries: import("../executeTopQueries/types").TopQueriesFilters;
|
@@ -428,7 +428,7 @@ export declare const selectCapabilityVersion: ((state: {
|
|
428
428
|
partitions: {
|
429
429
|
selectedConsumer?: string;
|
430
430
|
};
|
431
|
-
|
431
|
+
query: import("../query/types").QueryState;
|
432
432
|
heatmap: import("../../../types/store/heatmap").IHeatmapState;
|
433
433
|
settings: import("../settings/types").SettingsState;
|
434
434
|
executeTopQueries: import("../executeTopQueries/types").TopQueriesFilters;
|
@@ -459,7 +459,7 @@ export declare const selectCapabilityVersion: ((state: {
|
|
459
459
|
partitions: {
|
460
460
|
selectedConsumer?: string;
|
461
461
|
};
|
462
|
-
|
462
|
+
query: import("../query/types").QueryState;
|
463
463
|
heatmap: import("../../../types/store/heatmap").IHeatmapState;
|
464
464
|
settings: import("../settings/types").SettingsState;
|
465
465
|
executeTopQueries: import("../executeTopQueries/types").TopQueriesFilters;
|
@@ -486,7 +486,7 @@ export declare const selectCapabilityVersion: ((state: {
|
|
486
486
|
partitions: {
|
487
487
|
selectedConsumer?: string;
|
488
488
|
};
|
489
|
-
|
489
|
+
query: import("../query/types").QueryState;
|
490
490
|
heatmap: import("../../../types/store/heatmap").IHeatmapState;
|
491
491
|
settings: import("../settings/types").SettingsState;
|
492
492
|
executeTopQueries: import("../executeTopQueries/types").TopQueriesFilters;
|
@@ -518,7 +518,7 @@ export declare const selectCapabilityVersion: ((state: {
|
|
518
518
|
partitions: {
|
519
519
|
selectedConsumer?: string;
|
520
520
|
};
|
521
|
-
|
521
|
+
query: import("../query/types").QueryState;
|
522
522
|
heatmap: import("../../../types/store/heatmap").IHeatmapState;
|
523
523
|
settings: import("../settings/types").SettingsState;
|
524
524
|
executeTopQueries: import("../executeTopQueries/types").TopQueriesFilters;
|
@@ -70,7 +70,7 @@ export declare const selectClusterInfo: ((state: {
|
|
70
70
|
partitions: {
|
71
71
|
selectedConsumer?: string;
|
72
72
|
};
|
73
|
-
|
73
|
+
query: import("../query/types").QueryState;
|
74
74
|
heatmap: import("../../../types/store/heatmap").IHeatmapState;
|
75
75
|
settings: import("../settings/types").SettingsState;
|
76
76
|
executeTopQueries: import("../executeTopQueries/types").TopQueriesFilters;
|
@@ -104,7 +104,7 @@ export declare const selectClusterInfo: ((state: {
|
|
104
104
|
partitions: {
|
105
105
|
selectedConsumer?: string;
|
106
106
|
};
|
107
|
-
|
107
|
+
query: import("../query/types").QueryState;
|
108
108
|
heatmap: import("../../../types/store/heatmap").IHeatmapState;
|
109
109
|
settings: import("../settings/types").SettingsState;
|
110
110
|
executeTopQueries: import("../executeTopQueries/types").TopQueriesFilters;
|
@@ -143,7 +143,7 @@ export declare const selectClusterInfo: ((state: {
|
|
143
143
|
partitions: {
|
144
144
|
selectedConsumer?: string;
|
145
145
|
};
|
146
|
-
|
146
|
+
query: import("../query/types").QueryState;
|
147
147
|
heatmap: import("../../../types/store/heatmap").IHeatmapState;
|
148
148
|
settings: import("../settings/types").SettingsState;
|
149
149
|
executeTopQueries: import("../executeTopQueries/types").TopQueriesFilters;
|
@@ -190,7 +190,7 @@ export declare const selectClusterInfo: ((state: {
|
|
190
190
|
partitions: {
|
191
191
|
selectedConsumer?: string;
|
192
192
|
};
|
193
|
-
|
193
|
+
query: import("../query/types").QueryState;
|
194
194
|
heatmap: import("../../../types/store/heatmap").IHeatmapState;
|
195
195
|
settings: import("../settings/types").SettingsState;
|
196
196
|
executeTopQueries: import("../executeTopQueries/types").TopQueriesFilters;
|
@@ -234,7 +234,7 @@ export declare const selectClusterTitle: ((state: {
|
|
234
234
|
partitions: {
|
235
235
|
selectedConsumer?: string;
|
236
236
|
};
|
237
|
-
|
237
|
+
query: import("../query/types").QueryState;
|
238
238
|
heatmap: import("../../../types/store/heatmap").IHeatmapState;
|
239
239
|
settings: import("../settings/types").SettingsState;
|
240
240
|
executeTopQueries: import("../executeTopQueries/types").TopQueriesFilters;
|
@@ -290,7 +290,7 @@ export declare const selectClusterTabletsWithFqdn: ((state: {
|
|
290
290
|
partitions: {
|
291
291
|
selectedConsumer?: string;
|
292
292
|
};
|
293
|
-
|
293
|
+
query: import("../query/types").QueryState;
|
294
294
|
heatmap: import("../../../types/store/heatmap").IHeatmapState;
|
295
295
|
settings: import("../settings/types").SettingsState;
|
296
296
|
executeTopQueries: import("../executeTopQueries/types").TopQueriesFilters;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import {
|
1
|
+
import { parseQueryAPIResponse } from '../../../utils/query';
|
2
2
|
export const createSelectClusterGroupsQuery = (clusterRoot) => {
|
3
3
|
return `
|
4
4
|
SELECT
|
@@ -67,7 +67,7 @@ function getGroupStats(data) {
|
|
67
67
|
}
|
68
68
|
export const parseGroupsStatsQueryResponse = (data) => {
|
69
69
|
var _a, _b;
|
70
|
-
const parsedData = (_b = (_a =
|
70
|
+
const parsedData = (_b = (_a = parseQueryAPIResponse(data).resultSets) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.result;
|
71
71
|
return getGroupStats(parsedData);
|
72
72
|
};
|
73
73
|
export function getGroupStatsFromClusterInfo(info) {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../src/store/reducers/cluster/utils.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../src/store/reducers/cluster/utils.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,qBAAqB,EAAC,MAAM,sBAAsB,CAAC;AAI3D,MAAM,CAAC,MAAM,8BAA8B,GAAG,CAAC,WAAmB,EAAE,EAAE;IAClE,OAAO;;;;;;;;aAQE,WAAW;;CAEvB,CAAC;AACF,CAAC,CAAC;AAEF,MAAM,WAAW,GAAG,CAAC,aAAqB,EAAE,EAAE;;IAC1C,6DAA6D;IAC7D,MAAM,UAAU,GAAG,0BAA0B,CAAC;IAE9C,MAAM,QAAQ,GAAG,MAAA,MAAA,aAAa,CAAC,KAAK,CAAC,UAAU,CAAC,0CAAE,MAAM,0CAAG,MAAM,CAAC,CAAC;IAEnE,IAAI,QAAQ,KAAK,KAAK,EAAE,CAAC;QACrB,qBAAqB;QACrB,OAAO,KAAK,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import { isLikeRelative } from '@gravity-ui/date-utils';
|
2
2
|
import { createSlice } from '@reduxjs/toolkit';
|
3
|
-
import { isQueryErrorResponse,
|
3
|
+
import { isQueryErrorResponse, parseQueryAPIResponse } from '../../../utils/query';
|
4
4
|
import { api } from '../api';
|
5
5
|
import { getFiltersConditions } from './utils';
|
6
6
|
const initialState = {};
|
@@ -51,7 +51,7 @@ export const topQueriesApi = api.injectEndpoints({
|
|
51
51
|
if (isQueryErrorResponse(response)) {
|
52
52
|
throw response;
|
53
53
|
}
|
54
|
-
const data =
|
54
|
+
const data = parseQueryAPIResponse(response);
|
55
55
|
return { data };
|
56
56
|
}
|
57
57
|
catch (error) {
|
@@ -93,7 +93,7 @@ export const topQueriesApi = api.injectEndpoints({
|
|
93
93
|
if (isQueryErrorResponse(response)) {
|
94
94
|
throw response;
|
95
95
|
}
|
96
|
-
const data =
|
96
|
+
const data = parseQueryAPIResponse(response);
|
97
97
|
return { data };
|
98
98
|
}
|
99
99
|
catch (error) {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"executeTopQueries.js","sourceRoot":"","sources":["../../../../src/store/reducers/executeTopQueries/executeTopQueries.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,cAAc,EAAC,MAAM,wBAAwB,CAAC;AACtD,OAAO,EAAC,WAAW,EAAC,MAAM,kBAAkB,CAAC;AAG7C,OAAO,EAAC,oBAAoB,EAAE,
|
1
|
+
{"version":3,"file":"executeTopQueries.js","sourceRoot":"","sources":["../../../../src/store/reducers/executeTopQueries/executeTopQueries.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,cAAc,EAAC,MAAM,wBAAwB,CAAC;AACtD,OAAO,EAAC,WAAW,EAAC,MAAM,kBAAkB,CAAC;AAG7C,OAAO,EAAC,oBAAoB,EAAE,qBAAqB,EAAC,MAAM,sBAAsB,CAAC;AACjF,OAAO,EAAC,GAAG,EAAC,MAAM,QAAQ,CAAC;AAG3B,OAAO,EAAC,oBAAoB,EAAC,MAAM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G,CAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,IAAI;wBAClC,CAAC,CAAC,iBAAiB,OAAO,CAAC,IAAI,yBAAyB,OAAO,CAAC,IAAI,IAAI;wBACxE,CAAC,CAAC,EAAE,CAAC;oBAET,MAAM,SAAS,GAAG,UAAU,oBAAoB;;;;;0BAK1C,gBAAgB,IAAI,MAAM,yBAAyB,oBAAoB;;;8BAGnE,CAAC;oBAEX,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,GAAG,CAAC,SAAS,CACvC;wBACI,KAAK,EAAE,SAAS;wBAChB,QAAQ;wBACR,MAAM,EAAE,cAAc;qBACzB,EACD,EAAC,MAAM,EAAE,WAAW,EAAE,IAAI,EAAC,CAC9B,CAAC;oBAEF,IAAI,oBAAoB,CAAC,QAAQ,CAAC,EAAE,CAAC;wBACjC,MAAM,QAAQ,CAAC;oBACnB,CAAC;oBAED,MAAM,IAAI,GAAG,qBAAqB,CAAC,QAAQ,CAAC,CAAC;oBAE7C,OAAO,EAAC,IAAI,EAAC,CAAC;gBAClB,CAAC;gBAAC,OAAO,KAAK,EAAE,CAAC;oBACb,OAAO,EAAC,KAAK,EAAC,CAAC;gBACnB,CAAC;YACL,CAAC;YACD,YAAY;gBACR,OAAO,IAAI,CAAC;YAChB,CAAC;YACD,YAAY,EAAE,CAAC,KAAK,CAAC;SACxB,CAAC;KACL,CAAC;IACF,gBAAgB,EAAE,OAAO;CAC5B,CAAC,CAAC"}
|
@@ -23,7 +23,7 @@ export declare const selectIssuesTreesRoots: ((state: {
|
|
23
23
|
partitions: {
|
24
24
|
selectedConsumer?: string;
|
25
25
|
};
|
26
|
-
|
26
|
+
query: import("../query/types").QueryState;
|
27
27
|
heatmap: import("../../../types/store/heatmap").IHeatmapState;
|
28
28
|
settings: import("../settings/types").SettingsState;
|
29
29
|
executeTopQueries: import("../executeTopQueries/types").TopQueriesFilters;
|
@@ -61,7 +61,7 @@ export declare const selectIssuesTreesRoots: ((state: {
|
|
61
61
|
partitions: {
|
62
62
|
selectedConsumer?: string;
|
63
63
|
};
|
64
|
-
|
64
|
+
query: import("../query/types").QueryState;
|
65
65
|
heatmap: import("../../../types/store/heatmap").IHeatmapState;
|
66
66
|
settings: import("../settings/types").SettingsState;
|
67
67
|
executeTopQueries: import("../executeTopQueries/types").TopQueriesFilters;
|
@@ -92,7 +92,7 @@ export declare const selectIssuesTreesRoots: ((state: {
|
|
92
92
|
partitions: {
|
93
93
|
selectedConsumer?: string;
|
94
94
|
};
|
95
|
-
|
95
|
+
query: import("../query/types").QueryState;
|
96
96
|
heatmap: import("../../../types/store/heatmap").IHeatmapState;
|
97
97
|
settings: import("../settings/types").SettingsState;
|
98
98
|
executeTopQueries: import("../executeTopQueries/types").TopQueriesFilters;
|
@@ -127,7 +127,7 @@ export declare const selectIssuesTreesRoots: ((state: {
|
|
127
127
|
partitions: {
|
128
128
|
selectedConsumer?: string;
|
129
129
|
};
|
130
|
-
|
130
|
+
query: import("../query/types").QueryState;
|
131
131
|
heatmap: import("../../../types/store/heatmap").IHeatmapState;
|
132
132
|
settings: import("../settings/types").SettingsState;
|
133
133
|
executeTopQueries: import("../executeTopQueries/types").TopQueriesFilters;
|
@@ -167,7 +167,7 @@ export declare const selectIssuesTreesRoots: ((state: {
|
|
167
167
|
partitions: {
|
168
168
|
selectedConsumer?: string;
|
169
169
|
};
|
170
|
-
|
170
|
+
query: import("../query/types").QueryState;
|
171
171
|
heatmap: import("../../../types/store/heatmap").IHeatmapState;
|
172
172
|
settings: import("../settings/types").SettingsState;
|
173
173
|
executeTopQueries: import("../executeTopQueries/types").TopQueriesFilters;
|
@@ -218,7 +218,7 @@ export declare const selectIssuesTrees: ((state: {
|
|
218
218
|
partitions: {
|
219
219
|
selectedConsumer?: string;
|
220
220
|
};
|
221
|
-
|
221
|
+
query: import("../query/types").QueryState;
|
222
222
|
heatmap: import("../../../types/store/heatmap").IHeatmapState;
|
223
223
|
settings: import("../settings/types").SettingsState;
|
224
224
|
executeTopQueries: import("../executeTopQueries/types").TopQueriesFilters;
|
@@ -256,7 +256,7 @@ export declare const selectIssuesTrees: ((state: {
|
|
256
256
|
partitions: {
|
257
257
|
selectedConsumer?: string;
|
258
258
|
};
|
259
|
-
|
259
|
+
query: import("../query/types").QueryState;
|
260
260
|
heatmap: import("../../../types/store/heatmap").IHeatmapState;
|
261
261
|
settings: import("../settings/types").SettingsState;
|
262
262
|
executeTopQueries: import("../executeTopQueries/types").TopQueriesFilters;
|
@@ -287,7 +287,7 @@ export declare const selectIssuesTrees: ((state: {
|
|
287
287
|
partitions: {
|
288
288
|
selectedConsumer?: string;
|
289
289
|
};
|
290
|
-
|
290
|
+
query: import("../query/types").QueryState;
|
291
291
|
heatmap: import("../../../types/store/heatmap").IHeatmapState;
|
292
292
|
settings: import("../settings/types").SettingsState;
|
293
293
|
executeTopQueries: import("../executeTopQueries/types").TopQueriesFilters;
|
@@ -322,7 +322,7 @@ export declare const selectIssuesTrees: ((state: {
|
|
322
322
|
partitions: {
|
323
323
|
selectedConsumer?: string;
|
324
324
|
};
|
325
|
-
|
325
|
+
query: import("../query/types").QueryState;
|
326
326
|
heatmap: import("../../../types/store/heatmap").IHeatmapState;
|
327
327
|
settings: import("../settings/types").SettingsState;
|
328
328
|
executeTopQueries: import("../executeTopQueries/types").TopQueriesFilters;
|
@@ -362,7 +362,7 @@ export declare const selectIssuesTrees: ((state: {
|
|
362
362
|
partitions: {
|
363
363
|
selectedConsumer?: string;
|
364
364
|
};
|
365
|
-
|
365
|
+
query: import("../query/types").QueryState;
|
366
366
|
heatmap: import("../../../types/store/heatmap").IHeatmapState;
|
367
367
|
settings: import("../settings/types").SettingsState;
|
368
368
|
executeTopQueries: import("../executeTopQueries/types").TopQueriesFilters;
|
@@ -404,7 +404,7 @@ export declare const selectIssuesTrees: ((state: {
|
|
404
404
|
partitions: {
|
405
405
|
selectedConsumer?: string;
|
406
406
|
};
|
407
|
-
|
407
|
+
query: import("../query/types").QueryState;
|
408
408
|
heatmap: import("../../../types/store/heatmap").IHeatmapState;
|
409
409
|
settings: import("../settings/types").SettingsState;
|
410
410
|
executeTopQueries: import("../executeTopQueries/types").TopQueriesFilters;
|
@@ -442,7 +442,7 @@ export declare const selectIssuesTrees: ((state: {
|
|
442
442
|
partitions: {
|
443
443
|
selectedConsumer?: string;
|
444
444
|
};
|
445
|
-
|
445
|
+
query: import("../query/types").QueryState;
|
446
446
|
heatmap: import("../../../types/store/heatmap").IHeatmapState;
|
447
447
|
settings: import("../settings/types").SettingsState;
|
448
448
|
executeTopQueries: import("../executeTopQueries/types").TopQueriesFilters;
|
@@ -473,7 +473,7 @@ export declare const selectIssuesTrees: ((state: {
|
|
473
473
|
partitions: {
|
474
474
|
selectedConsumer?: string;
|
475
475
|
};
|
476
|
-
|
476
|
+
query: import("../query/types").QueryState;
|
477
477
|
heatmap: import("../../../types/store/heatmap").IHeatmapState;
|
478
478
|
settings: import("../settings/types").SettingsState;
|
479
479
|
executeTopQueries: import("../executeTopQueries/types").TopQueriesFilters;
|
@@ -508,7 +508,7 @@ export declare const selectIssuesTrees: ((state: {
|
|
508
508
|
partitions: {
|
509
509
|
selectedConsumer?: string;
|
510
510
|
};
|
511
|
-
|
511
|
+
query: import("../query/types").QueryState;
|
512
512
|
heatmap: import("../../../types/store/heatmap").IHeatmapState;
|
513
513
|
settings: import("../settings/types").SettingsState;
|
514
514
|
executeTopQueries: import("../executeTopQueries/types").TopQueriesFilters;
|
@@ -548,7 +548,7 @@ export declare const selectIssuesTrees: ((state: {
|
|
548
548
|
partitions: {
|
549
549
|
selectedConsumer?: string;
|
550
550
|
};
|
551
|
-
|
551
|
+
query: import("../query/types").QueryState;
|
552
552
|
heatmap: import("../../../types/store/heatmap").IHeatmapState;
|
553
553
|
settings: import("../settings/types").SettingsState;
|
554
554
|
executeTopQueries: import("../executeTopQueries/types").TopQueriesFilters;
|
@@ -607,7 +607,7 @@ export declare const selectIssuesStatistics: ((state: {
|
|
607
607
|
partitions: {
|
608
608
|
selectedConsumer?: string;
|
609
609
|
};
|
610
|
-
|
610
|
+
query: import("../query/types").QueryState;
|
611
611
|
heatmap: import("../../../types/store/heatmap").IHeatmapState;
|
612
612
|
settings: import("../settings/types").SettingsState;
|
613
613
|
executeTopQueries: import("../executeTopQueries/types").TopQueriesFilters;
|
@@ -645,7 +645,7 @@ export declare const selectIssuesStatistics: ((state: {
|
|
645
645
|
partitions: {
|
646
646
|
selectedConsumer?: string;
|
647
647
|
};
|
648
|
-
|
648
|
+
query: import("../query/types").QueryState;
|
649
649
|
heatmap: import("../../../types/store/heatmap").IHeatmapState;
|
650
650
|
settings: import("../settings/types").SettingsState;
|
651
651
|
executeTopQueries: import("../executeTopQueries/types").TopQueriesFilters;
|
@@ -676,7 +676,7 @@ export declare const selectIssuesStatistics: ((state: {
|
|
676
676
|
partitions: {
|
677
677
|
selectedConsumer?: string;
|
678
678
|
};
|
679
|
-
|
679
|
+
query: import("../query/types").QueryState;
|
680
680
|
heatmap: import("../../../types/store/heatmap").IHeatmapState;
|
681
681
|
settings: import("../settings/types").SettingsState;
|
682
682
|
executeTopQueries: import("../executeTopQueries/types").TopQueriesFilters;
|
@@ -711,7 +711,7 @@ export declare const selectIssuesStatistics: ((state: {
|
|
711
711
|
partitions: {
|
712
712
|
selectedConsumer?: string;
|
713
713
|
};
|
714
|
-
|
714
|
+
query: import("../query/types").QueryState;
|
715
715
|
heatmap: import("../../../types/store/heatmap").IHeatmapState;
|
716
716
|
settings: import("../settings/types").SettingsState;
|
717
717
|
executeTopQueries: import("../executeTopQueries/types").TopQueriesFilters;
|
@@ -751,7 +751,7 @@ export declare const selectIssuesStatistics: ((state: {
|
|
751
751
|
partitions: {
|
752
752
|
selectedConsumer?: string;
|
753
753
|
};
|
754
|
-
|
754
|
+
query: import("../query/types").QueryState;
|
755
755
|
heatmap: import("../../../types/store/heatmap").IHeatmapState;
|
756
756
|
settings: import("../settings/types").SettingsState;
|
757
757
|
executeTopQueries: import("../executeTopQueries/types").TopQueriesFilters;
|
@@ -15,7 +15,7 @@ export declare const rootReducer: {
|
|
15
15
|
partitions: import("redux").Reducer<{
|
16
16
|
selectedConsumer?: string;
|
17
17
|
}>;
|
18
|
-
|
18
|
+
query: import("redux").Reducer<import("./query/types").QueryState>;
|
19
19
|
heatmap: import("redux").Reducer<import("../../types/store/heatmap").IHeatmapState>;
|
20
20
|
settings: import("redux").Reducer<import("./settings/types").SettingsState>;
|
21
21
|
executeTopQueries: import("redux").Reducer<import("./executeTopQueries/types").TopQueriesFilters>;
|
@@ -46,7 +46,7 @@ declare const combinedReducer: import("redux").Reducer<{
|
|
46
46
|
partitions: {
|
47
47
|
selectedConsumer?: string;
|
48
48
|
};
|
49
|
-
|
49
|
+
query: import("./query/types").QueryState;
|
50
50
|
heatmap: import("../../types/store/heatmap").IHeatmapState;
|
51
51
|
settings: import("./settings/types").SettingsState;
|
52
52
|
executeTopQueries: import("./executeTopQueries/types").TopQueriesFilters;
|
@@ -80,7 +80,7 @@ declare const combinedReducer: import("redux").Reducer<{
|
|
80
80
|
partitions: {
|
81
81
|
selectedConsumer?: string;
|
82
82
|
} | undefined;
|
83
|
-
|
83
|
+
query: import("./query/types").QueryState | undefined;
|
84
84
|
heatmap: import("../../types/store/heatmap").IHeatmapState | undefined;
|
85
85
|
settings: import("./settings/types").SettingsState | undefined;
|
86
86
|
executeTopQueries: import("./executeTopQueries/types").TopQueriesFilters | undefined;
|
@@ -3,12 +3,12 @@ import { api } from './api';
|
|
3
3
|
import authentication from './authentication/authentication';
|
4
4
|
import cluster from './cluster/cluster';
|
5
5
|
import clusters from './clusters/clusters';
|
6
|
-
import executeQuery from './executeQuery';
|
7
6
|
import executeTopQueries from './executeTopQueries/executeTopQueries';
|
8
7
|
import fullscreen from './fullscreen';
|
9
8
|
import header from './header/header';
|
10
9
|
import heatmap from './heatmap';
|
11
10
|
import partitions from './partitions/partitions';
|
11
|
+
import query from './query/query';
|
12
12
|
import queryActions from './queryActions/queryActions';
|
13
13
|
import schema from './schema/schema';
|
14
14
|
import settings from './settings/settings';
|
@@ -26,7 +26,7 @@ export const rootReducer = {
|
|
26
26
|
schema,
|
27
27
|
tenants,
|
28
28
|
partitions,
|
29
|
-
|
29
|
+
query,
|
30
30
|
heatmap,
|
31
31
|
settings,
|
32
32
|
executeTopQueries,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/store/reducers/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,eAAe,EAAC,MAAM,kBAAkB,CAAC;AAEjD,OAAO,EAAC,GAAG,EAAC,MAAM,OAAO,CAAC;AAC1B,OAAO,cAAc,MAAM,iCAAiC,CAAC;AAC7D,OAAO,OAAO,MAAM,mBAAmB,CAAC;AACxC,OAAO,QAAQ,MAAM,qBAAqB,CAAC;AAC3C,OAAO,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/store/reducers/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,eAAe,EAAC,MAAM,kBAAkB,CAAC;AAEjD,OAAO,EAAC,GAAG,EAAC,MAAM,OAAO,CAAC;AAC1B,OAAO,cAAc,MAAM,iCAAiC,CAAC;AAC7D,OAAO,OAAO,MAAM,mBAAmB,CAAC;AACxC,OAAO,QAAQ,MAAM,qBAAqB,CAAC;AAC3C,OAAO,iBAAiB,MAAM,uCAAuC,CAAC;AACtE,OAAO,UAAU,MAAM,cAAc,CAAC;AACtC,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,OAAO,MAAM,WAAW,CAAC;AAChC,OAAO,UAAU,MAAM,yBAAyB,CAAC;AACjD,OAAO,KAAK,MAAM,eAAe,CAAC;AAClC,OAAO,YAAY,MAAM,6BAA6B,CAAC;AACvD,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,QAAQ,MAAM,qBAAqB,CAAC;AAC3C,OAAO,cAAc,MAAM,iCAAiC,CAAC;AAC7D,OAAO,iBAAiB,MAAM,qBAAqB,CAAC;AACpD,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,OAAO,MAAM,mBAAmB,CAAC;AACxC,OAAO,OAAO,MAAM,WAAW,CAAC;AAEhC,MAAM,CAAC,MAAM,WAAW,GAAG;IACvB,CAAC,GAAG,CAAC,WAAW,CAAC,EAAE,GAAG,CAAC,OAAO;IAC9B,iBAAiB;IACjB,OAAO;IACP,MAAM;IACN,OAAO;IACP,MAAM;IACN,OAAO;IACP,UAAU;IACV,KAAK;IACL,OAAO;IACP,QAAQ;IACR,iBAAiB;IACjB,cAAc;IACd,cAAc;IACd,MAAM;IACN,YAAY;IACZ,UAAU;IACV,QAAQ;CACX,CAAC;AAEF,MAAM,eAAe,GAAG,eAAe,CAAC;IACpC,GAAG,WAAW;CACjB,CAAC,CAAC;AAEH,eAAe,eAAe,CAAC"}
|
@@ -16,7 +16,7 @@ export declare const selectNodeStructure: ((state: {
|
|
16
16
|
partitions: {
|
17
17
|
selectedConsumer?: string;
|
18
18
|
};
|
19
|
-
|
19
|
+
query: import("../query/types").QueryState;
|
20
20
|
heatmap: import("../../../types/store/heatmap").IHeatmapState;
|
21
21
|
settings: import("../settings/types").SettingsState;
|
22
22
|
executeTopQueries: import("../executeTopQueries/types").TopQueriesFilters;
|
@@ -18,7 +18,7 @@ export declare const selectNodeHostsMap: ((state: {
|
|
18
18
|
partitions: {
|
19
19
|
selectedConsumer?: string;
|
20
20
|
};
|
21
|
-
|
21
|
+
query: import("./query/types").QueryState;
|
22
22
|
heatmap: import("../../types/store/heatmap").IHeatmapState;
|
23
23
|
settings: import("./settings/types").SettingsState;
|
24
24
|
executeTopQueries: import("./executeTopQueries/types").TopQueriesFilters;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { isQueryErrorResponse,
|
1
|
+
import { isQueryErrorResponse, parseQueryAPIResponse } from '../../utils/query';
|
2
2
|
import { api } from './api';
|
3
3
|
export const previewApi = api.injectEndpoints({
|
4
4
|
endpoints: (build) => ({
|
@@ -9,7 +9,7 @@ export const previewApi = api.injectEndpoints({
|
|
9
9
|
if (isQueryErrorResponse(response)) {
|
10
10
|
return { error: response };
|
11
11
|
}
|
12
|
-
return { data:
|
12
|
+
return { data: parseQueryAPIResponse(response) };
|
13
13
|
}
|
14
14
|
catch (error) {
|
15
15
|
return { error: error || new Error('Unauthorized') };
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"preview.js","sourceRoot":"","sources":["../../../src/store/reducers/preview.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,oBAAoB,EAAE,
|
1
|
+
{"version":3,"file":"preview.js","sourceRoot":"","sources":["../../../src/store/reducers/preview.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,oBAAoB,EAAE,qBAAqB,EAAC,MAAM,mBAAmB,CAAC;AAE9E,OAAO,EAAC,GAAG,EAAC,MAAM,OAAO,CAAC;AAQ1B,MAAM,CAAC,MAAM,UAAU,GAAG,GAAG,CAAC,eAAe,CAAC;IAC1C,SAAS,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;QACnB,SAAS,EAAE,KAAK,CAAC,KAAK,CAAC;YACnB,OAAO,EAAE,KAAK,EAAE,EAAC,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAkB,EAAE,EAAC,MAAM,EAAC,EAAE,EAAE;gBACpE,IAAI,CAAC;oBACD,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,GAAG,CAAC,SAAS,CACvC,EAAC,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAC,EACzB,EAAC,MAAM,EAAE,WAAW,EAAE,IAAI,EAAC,CAC9B,CAAC;oBAEF,IAAI,oBAAoB,CAAC,QAAQ,CAAC,EAAE,CAAC;wBACjC,OAAO,EAAC,KAAK,EAAE,QAAQ,EAAC,CAAC;oBAC7B,CAAC;oBAED,OAAO,EAAC,IAAI,EAAE,qBAAqB,CAAC,QAAQ,CAAC,EAAC,CAAC;gBACnD,CAAC;gBAAC,OAAO,KAAK,EAAE,CAAC;oBACb,OAAO,EAAC,KAAK,EAAE,KAAK,IAAI,IAAI,KAAK,CAAC,cAAc,CAAC,EAAC,CAAC;gBACvD,CAAC;YACL,CAAC;YACD,YAAY,EAAE,CAAC,KAAK,EAAE,aAAa,CAAC;SACvC,CAAC;KACL,CAAC;IACF,gBAAgB,EAAE,OAAO;CAC5B,CAAC,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
@@ -0,0 +1,24 @@
|
|
1
|
+
import { getActionAndSyntaxFromQueryMode } from '../utils';
|
2
|
+
describe('getActionAndSyntaxFromQueryMode', () => {
|
3
|
+
it('Correctly prepares execute action', () => {
|
4
|
+
const { action, syntax } = getActionAndSyntaxFromQueryMode('execute', 'script');
|
5
|
+
expect(action).toBe('execute-script');
|
6
|
+
expect(syntax).toBe('yql_v1');
|
7
|
+
});
|
8
|
+
it('Correctly prepares execute action with pg syntax', () => {
|
9
|
+
const { action, syntax } = getActionAndSyntaxFromQueryMode('execute', 'pg');
|
10
|
+
expect(action).toBe('execute-query');
|
11
|
+
expect(syntax).toBe('pg');
|
12
|
+
});
|
13
|
+
it('Correctly prepares explain action', () => {
|
14
|
+
const { action, syntax } = getActionAndSyntaxFromQueryMode('explain', 'script');
|
15
|
+
expect(action).toBe('explain-script');
|
16
|
+
expect(syntax).toBe('yql_v1');
|
17
|
+
});
|
18
|
+
it('Correctly prepares explain action with pg syntax', () => {
|
19
|
+
const { action, syntax } = getActionAndSyntaxFromQueryMode('explain', 'pg');
|
20
|
+
expect(action).toBe('explain-query');
|
21
|
+
expect(syntax).toBe('pg');
|
22
|
+
});
|
23
|
+
});
|
24
|
+
//# sourceMappingURL=utils.test.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"utils.test.js","sourceRoot":"","sources":["../../../../../src/store/reducers/query/__test__/utils.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,+BAA+B,EAAC,MAAM,UAAU,CAAC;AAEzD,QAAQ,CAAC,iCAAiC,EAAE,GAAG,EAAE;IAC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|
|
1
|
+
import type { ExecuteResponse, ExplainResponse } from '../../../types/api/query';
|
2
|
+
import type { PreparedQueryData } from './types';
|
3
|
+
export declare const explainVersions: {
|
4
|
+
v2: string;
|
5
|
+
};
|
6
|
+
export declare function prepareQueryData(response: ExplainResponse | ExecuteResponse | null): PreparedQueryData;
|
@@ -1,23 +1,24 @@
|
|
1
1
|
import { preparePlan, prepareSimplifiedPlan } from '../../../utils/prepareQueryExplain';
|
2
|
-
import {
|
2
|
+
import { parseQueryAPIResponse, parseQueryExplainPlan } from '../../../utils/query';
|
3
3
|
export const explainVersions = {
|
4
4
|
v2: '0.2',
|
5
5
|
};
|
6
6
|
const supportedExplainQueryVersions = Object.values(explainVersions);
|
7
|
-
export
|
8
|
-
const
|
7
|
+
export function prepareQueryData(response) {
|
8
|
+
const result = parseQueryAPIResponse(response);
|
9
|
+
const { plan: rawPlan } = result;
|
9
10
|
if (!rawPlan) {
|
10
|
-
return
|
11
|
+
return result;
|
11
12
|
}
|
12
13
|
const { tables, meta, Plan, SimplifiedPlan } = parseQueryExplainPlan(rawPlan);
|
13
14
|
if (supportedExplainQueryVersions.indexOf(meta.version) === -1) {
|
14
15
|
// Do not prepare plan for not supported versions
|
15
16
|
return {
|
16
|
-
|
17
|
+
...result,
|
18
|
+
preparedPlan: {
|
17
19
|
pristine: rawPlan,
|
18
20
|
version: meta.version,
|
19
21
|
},
|
20
|
-
ast,
|
21
22
|
};
|
22
23
|
}
|
23
24
|
let links = [];
|
@@ -32,7 +33,8 @@ export const prepareExplainResponse = (response) => {
|
|
32
33
|
preparedSimplifiedPlan = prepareSimplifiedPlan([SimplifiedPlan]);
|
33
34
|
}
|
34
35
|
return {
|
35
|
-
|
36
|
+
...result,
|
37
|
+
preparedPlan: {
|
36
38
|
links,
|
37
39
|
nodes,
|
38
40
|
tables,
|
@@ -40,7 +42,6 @@ export const prepareExplainResponse = (response) => {
|
|
40
42
|
pristine: rawPlan,
|
41
43
|
},
|
42
44
|
simplifiedPlan: { plan: preparedSimplifiedPlan, pristine: SimplifiedPlan },
|
43
|
-
ast,
|
44
45
|
};
|
45
|
-
}
|
46
|
-
//# sourceMappingURL=
|
46
|
+
}
|
47
|
+
//# sourceMappingURL=prepareQueryData.js.map
|