ydb-embedded-ui 6.36.1 → 6.37.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (141) hide show
  1. package/dist/containers/Cluster/Cluster.js +2 -2
  2. package/dist/containers/Cluster/Cluster.js.map +1 -1
  3. package/dist/containers/Nodes/Nodes.d.ts +13 -3
  4. package/dist/containers/Nodes/Nodes.js +71 -39
  5. package/dist/containers/Nodes/Nodes.js.map +1 -1
  6. package/dist/containers/Nodes/{PaginatedNodesTable.d.ts → NodesTable.d.ts} +2 -2
  7. package/dist/containers/Nodes/{PaginatedNodesTable.js → NodesTable.js} +2 -2
  8. package/dist/containers/Nodes/NodesTable.js.map +1 -0
  9. package/dist/containers/Storage/i18n/index.d.ts +1 -1
  10. package/dist/containers/Tenant/Diagnostics/Diagnostics.js +2 -2
  11. package/dist/containers/Tenant/Diagnostics/Diagnostics.js.map +1 -1
  12. package/dist/containers/Tenant/Diagnostics/Network/NetworkWrapper.d.ts +2 -2
  13. package/dist/containers/Tenant/Diagnostics/Network/NetworkWrapper.js +2 -2
  14. package/dist/containers/Tenant/Diagnostics/Network/NetworkWrapper.js.map +1 -1
  15. package/dist/containers/Tenant/ObjectSummary/SchemaTree/SchemaTree.js +31 -26
  16. package/dist/containers/Tenant/ObjectSummary/SchemaTree/SchemaTree.js.map +1 -1
  17. package/dist/containers/Tenant/Query/QueryEditor/QueryEditor.js +3 -7
  18. package/dist/containers/Tenant/Query/QueryEditor/QueryEditor.js.map +1 -1
  19. package/dist/containers/Tenant/Query/QueryResult/QueryResultViewer.d.ts +14 -0
  20. package/dist/containers/Tenant/Query/QueryResult/QueryResultViewer.js +188 -0
  21. package/dist/containers/Tenant/Query/QueryResult/QueryResultViewer.js.map +1 -0
  22. package/dist/containers/Tenant/Query/{ExplainResult/ExplainResult.scss → QueryResult/QueryResultViewer.scss} +3 -15
  23. package/dist/containers/Tenant/Query/{ExplainResult → QueryResult}/components/Ast/Ast.d.ts +1 -1
  24. package/dist/containers/Tenant/Query/{ExplainResult → QueryResult}/components/Ast/Ast.js +1 -1
  25. package/dist/containers/Tenant/Query/QueryResult/components/Ast/Ast.js.map +1 -0
  26. package/dist/containers/Tenant/Query/{ExplainResult → QueryResult}/components/Ast/Ast.scss +1 -1
  27. package/dist/containers/Tenant/Query/{ExplainResult → QueryResult}/components/Graph/Graph.d.ts +2 -2
  28. package/dist/containers/Tenant/Query/QueryResult/components/Graph/Graph.js +16 -0
  29. package/dist/containers/Tenant/Query/QueryResult/components/Graph/Graph.js.map +1 -0
  30. package/dist/containers/Tenant/Query/{ExplainResult → QueryResult}/components/Graph/Graph.scss +0 -6
  31. package/dist/containers/Tenant/Query/{ExecuteResult → QueryResult/components/PlanToSvgButton}/PlanToSvgButton.d.ts +1 -1
  32. package/dist/containers/Tenant/Query/{ExecuteResult → QueryResult/components/PlanToSvgButton}/PlanToSvgButton.js +2 -2
  33. package/dist/containers/Tenant/Query/QueryResult/components/PlanToSvgButton/PlanToSvgButton.js.map +1 -0
  34. package/dist/containers/Tenant/Query/QueryResult/components/QueryJSONViewer/QueryJSONViewer.d.ts +7 -0
  35. package/dist/containers/Tenant/Query/QueryResult/components/QueryJSONViewer/QueryJSONViewer.js +12 -0
  36. package/dist/containers/Tenant/Query/QueryResult/components/QueryJSONViewer/QueryJSONViewer.js.map +1 -0
  37. package/dist/containers/Tenant/Query/{ExplainResult/components/TextExplain/TextExplain.scss → QueryResult/components/QueryJSONViewer/QueryJSONViewer.scss} +4 -6
  38. package/dist/containers/Tenant/Query/QueryResult/components/QueryResultError/QueryResultError.d.ts +4 -0
  39. package/dist/containers/Tenant/Query/QueryResult/components/QueryResultError/QueryResultError.js +20 -0
  40. package/dist/containers/Tenant/Query/QueryResult/components/QueryResultError/QueryResultError.js.map +1 -0
  41. package/dist/containers/Tenant/Query/QueryResult/components/QueryResultError/QueryResultError.scss +5 -0
  42. package/dist/containers/Tenant/Query/QueryResult/components/ResultSetsViewer/ResultSetsViewer.d.ts +9 -0
  43. package/dist/containers/Tenant/Query/QueryResult/components/ResultSetsViewer/ResultSetsViewer.js +30 -0
  44. package/dist/containers/Tenant/Query/QueryResult/components/ResultSetsViewer/ResultSetsViewer.js.map +1 -0
  45. package/dist/containers/Tenant/Query/QueryResult/components/ResultSetsViewer/ResultSetsViewer.scss +36 -0
  46. package/dist/containers/Tenant/Query/QueryResult/components/SimplifiedPlan/MetricsCell.js.map +1 -0
  47. package/dist/containers/Tenant/Query/QueryResult/components/SimplifiedPlan/OperationCell.js.map +1 -0
  48. package/dist/containers/Tenant/Query/QueryResult/components/SimplifiedPlan/OperationParams.js.map +1 -0
  49. package/dist/containers/Tenant/Query/QueryResult/components/SimplifiedPlan/SimplifiedPlan.js.map +1 -0
  50. package/dist/containers/Tenant/Query/{ExplainResult → QueryResult}/components/SimplifiedPlan/SimplifiedPlan.scss +1 -1
  51. package/dist/containers/Tenant/Query/QueryResult/components/SimplifiedPlan/types.js.map +1 -0
  52. package/dist/containers/Tenant/Query/{ExplainResult → QueryResult}/components/SimplifiedPlan/utils.js +1 -1
  53. package/dist/containers/Tenant/Query/QueryResult/components/SimplifiedPlan/utils.js.map +1 -0
  54. package/dist/containers/Tenant/Query/QueryResult/components/Stub/Stub.d.ts +6 -0
  55. package/dist/containers/Tenant/Query/QueryResult/components/Stub/Stub.js +8 -0
  56. package/dist/containers/Tenant/Query/QueryResult/components/Stub/Stub.js.map +1 -0
  57. package/dist/containers/Tenant/Query/QueryResult/components/Stub/Stub.scss +3 -0
  58. package/dist/containers/Tenant/Query/{ExecuteResult → QueryResult/components/TraceButton}/TraceButton.js +4 -4
  59. package/dist/containers/Tenant/Query/QueryResult/components/TraceButton/TraceButton.js.map +1 -0
  60. package/dist/containers/Tenant/Query/{ExecuteResult → QueryResult}/i18n/en.json +3 -0
  61. package/dist/containers/Tenant/Query/QueryResult/i18n/index.d.ts +2 -0
  62. package/dist/containers/Tenant/Query/QueryResult/i18n/index.js.map +1 -0
  63. package/dist/containers/Tenant/Schema/SchemaViewer/prepareData.js +2 -2
  64. package/dist/containers/Tenant/Schema/SchemaViewer/prepareData.js.map +1 -1
  65. package/dist/containers/Tenant/utils/schemaActions.d.ts +4 -4
  66. package/dist/containers/Tenant/utils/schemaActions.js +19 -16
  67. package/dist/containers/Tenant/utils/schemaActions.js.map +1 -1
  68. package/dist/containers/Tenant/utils/schemaQueryTemplates.d.ts +1 -1
  69. package/dist/containers/Tenant/utils/schemaQueryTemplates.js +3 -3
  70. package/dist/containers/Tenant/utils/schemaQueryTemplates.js.map +1 -1
  71. package/dist/services/api.d.ts +2 -1
  72. package/dist/services/api.js +3 -3
  73. package/dist/services/api.js.map +1 -1
  74. package/dist/store/reducers/overview/overview.d.ts +1 -0
  75. package/dist/store/reducers/overview/overview.js +2 -1
  76. package/dist/store/reducers/overview/overview.js.map +1 -1
  77. package/dist/store/reducers/query/prepareQueryData.d.ts +0 -3
  78. package/dist/store/reducers/query/prepareQueryData.js +42 -30
  79. package/dist/store/reducers/query/prepareQueryData.js.map +1 -1
  80. package/dist/store/reducers/tableSchemaData.d.ts +1 -1
  81. package/dist/store/reducers/tableSchemaData.js +5 -1
  82. package/dist/store/reducers/tableSchemaData.js.map +1 -1
  83. package/dist/store/reducers/viewSchema/viewSchema.d.ts +1 -0
  84. package/dist/store/reducers/viewSchema/viewSchema.js +2 -1
  85. package/dist/store/reducers/viewSchema/viewSchema.js.map +1 -1
  86. package/dist/types/api/autocomplete.d.ts +7 -0
  87. package/dist/types/api/autocomplete.js +3 -1
  88. package/dist/types/api/autocomplete.js.map +1 -1
  89. package/dist/utils/monaco/yql/generateSuggestions.js +31 -11
  90. package/dist/utils/monaco/yql/generateSuggestions.js.map +1 -1
  91. package/package.json +3 -3
  92. package/dist/containers/Nodes/NodesWrapper.d.ts +0 -9
  93. package/dist/containers/Nodes/NodesWrapper.js +0 -13
  94. package/dist/containers/Nodes/NodesWrapper.js.map +0 -1
  95. package/dist/containers/Nodes/PaginatedNodes.d.ts +0 -19
  96. package/dist/containers/Nodes/PaginatedNodes.js +0 -91
  97. package/dist/containers/Nodes/PaginatedNodes.js.map +0 -1
  98. package/dist/containers/Nodes/PaginatedNodesTable.js.map +0 -1
  99. package/dist/containers/Tenant/Query/ExecuteResult/ExecuteResult.d.ts +0 -12
  100. package/dist/containers/Tenant/Query/ExecuteResult/ExecuteResult.js +0 -154
  101. package/dist/containers/Tenant/Query/ExecuteResult/ExecuteResult.js.map +0 -1
  102. package/dist/containers/Tenant/Query/ExecuteResult/ExecuteResult.scss +0 -89
  103. package/dist/containers/Tenant/Query/ExecuteResult/PlanToSvgButton.js.map +0 -1
  104. package/dist/containers/Tenant/Query/ExecuteResult/TraceButton.js.map +0 -1
  105. package/dist/containers/Tenant/Query/ExecuteResult/i18n/index.d.ts +0 -2
  106. package/dist/containers/Tenant/Query/ExecuteResult/i18n/index.js.map +0 -1
  107. package/dist/containers/Tenant/Query/ExecuteResult/utils.d.ts +0 -21
  108. package/dist/containers/Tenant/Query/ExecuteResult/utils.js +0 -40
  109. package/dist/containers/Tenant/Query/ExecuteResult/utils.js.map +0 -1
  110. package/dist/containers/Tenant/Query/ExplainResult/ExplainResult.d.ts +0 -20
  111. package/dist/containers/Tenant/Query/ExplainResult/ExplainResult.js +0 -120
  112. package/dist/containers/Tenant/Query/ExplainResult/ExplainResult.js.map +0 -1
  113. package/dist/containers/Tenant/Query/ExplainResult/components/Ast/Ast.js.map +0 -1
  114. package/dist/containers/Tenant/Query/ExplainResult/components/Graph/Graph.js +0 -15
  115. package/dist/containers/Tenant/Query/ExplainResult/components/Graph/Graph.js.map +0 -1
  116. package/dist/containers/Tenant/Query/ExplainResult/components/SimplifiedPlan/MetricsCell.js.map +0 -1
  117. package/dist/containers/Tenant/Query/ExplainResult/components/SimplifiedPlan/OperationCell.js.map +0 -1
  118. package/dist/containers/Tenant/Query/ExplainResult/components/SimplifiedPlan/OperationParams.js.map +0 -1
  119. package/dist/containers/Tenant/Query/ExplainResult/components/SimplifiedPlan/SimplifiedPlan.js.map +0 -1
  120. package/dist/containers/Tenant/Query/ExplainResult/components/SimplifiedPlan/types.js.map +0 -1
  121. package/dist/containers/Tenant/Query/ExplainResult/components/SimplifiedPlan/utils.js.map +0 -1
  122. package/dist/containers/Tenant/Query/ExplainResult/components/TextExplain/TextExplain.d.ts +0 -8
  123. package/dist/containers/Tenant/Query/ExplainResult/components/TextExplain/TextExplain.js +0 -12
  124. package/dist/containers/Tenant/Query/ExplainResult/components/TextExplain/TextExplain.js.map +0 -1
  125. package/dist/containers/Tenant/Query/ExplainResult/i18n/en.json +0 -9
  126. package/dist/containers/Tenant/Query/ExplainResult/i18n/index.d.ts +0 -2
  127. package/dist/containers/Tenant/Query/ExplainResult/i18n/index.js +0 -5
  128. package/dist/containers/Tenant/Query/ExplainResult/i18n/index.js.map +0 -1
  129. /package/dist/containers/Tenant/Query/{ExplainResult → QueryResult}/components/SimplifiedPlan/MetricsCell.d.ts +0 -0
  130. /package/dist/containers/Tenant/Query/{ExplainResult → QueryResult}/components/SimplifiedPlan/MetricsCell.js +0 -0
  131. /package/dist/containers/Tenant/Query/{ExplainResult → QueryResult}/components/SimplifiedPlan/OperationCell.d.ts +0 -0
  132. /package/dist/containers/Tenant/Query/{ExplainResult → QueryResult}/components/SimplifiedPlan/OperationCell.js +0 -0
  133. /package/dist/containers/Tenant/Query/{ExplainResult → QueryResult}/components/SimplifiedPlan/OperationParams.d.ts +0 -0
  134. /package/dist/containers/Tenant/Query/{ExplainResult → QueryResult}/components/SimplifiedPlan/OperationParams.js +0 -0
  135. /package/dist/containers/Tenant/Query/{ExplainResult → QueryResult}/components/SimplifiedPlan/SimplifiedPlan.d.ts +0 -0
  136. /package/dist/containers/Tenant/Query/{ExplainResult → QueryResult}/components/SimplifiedPlan/SimplifiedPlan.js +0 -0
  137. /package/dist/containers/Tenant/Query/{ExplainResult → QueryResult}/components/SimplifiedPlan/types.d.ts +0 -0
  138. /package/dist/containers/Tenant/Query/{ExplainResult → QueryResult}/components/SimplifiedPlan/types.js +0 -0
  139. /package/dist/containers/Tenant/Query/{ExplainResult → QueryResult}/components/SimplifiedPlan/utils.d.ts +0 -0
  140. /package/dist/containers/Tenant/Query/{ExecuteResult → QueryResult/components/TraceButton}/TraceButton.d.ts +0 -0
  141. /package/dist/containers/Tenant/Query/{ExecuteResult → QueryResult}/i18n/index.js +0 -0
@@ -2,10 +2,10 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import React from 'react';
3
3
  import { ArrowUpRightFromSquare } from '@gravity-ui/icons';
4
4
  import { Button } from '@gravity-ui/uikit';
5
- import { useClusterBaseInfo } from '../../../../store/reducers/cluster/cluster';
6
- import { traceApi } from '../../../../store/reducers/trace';
7
- import { replaceParams } from '../utils/replaceParams';
8
- import i18n from './i18n';
5
+ import { useClusterBaseInfo } from '../../../../../../store/reducers/cluster/cluster';
6
+ import { traceApi } from '../../../../../../store/reducers/trace';
7
+ import { replaceParams } from '../../../utils/replaceParams';
8
+ import i18n from '../../i18n';
9
9
  export function TraceButton({ traceId, isTraceReady }) {
10
10
  const { traceCheck, traceView } = useClusterBaseInfo();
11
11
  const checkTraceUrl = (traceCheck === null || traceCheck === void 0 ? void 0 : traceCheck.url) ? replaceParams(traceCheck.url, { traceId }) : '';
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TraceButton.js","sourceRoot":"","sources":["../../../../../../../src/containers/Tenant/Query/QueryResult/components/TraceButton/TraceButton.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,sBAAsB,EAAC,MAAM,mBAAmB,CAAC;AACzD,OAAO,EAAC,MAAM,EAAC,MAAM,mBAAmB,CAAC;AAEzC,OAAO,EAAC,kBAAkB,EAAC,MAAM,kDAAkD,CAAC;AACpF,OAAO,EAAC,QAAQ,EAAC,MAAM,wCAAwC,CAAC;AAChE,OAAO,EAAC,aAAa,EAAC,MAAM,8BAA8B,CAAC;AAC3D,OAAO,IAAI,MAAM,YAAY,CAAC;AAO9B,MAAM,UAAU,WAAW,CAAC,EAA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AEd,IAAI,CAAC,OAAO,CAAC,EACd,KAAC,MAAM,CAAC,IAAI,cACR,KAAC,sBAAsB,KAAG,GAChB,IACT,CACZ,CAAC;AACN,CAAC"}
@@ -1,9 +1,12 @@
1
1
  {
2
2
  "description.graph-is-not-supported": "Graph can not be rendered",
3
+ "description.empty-result": "There is no {{activeSection}} for the request",
3
4
  "action.result": "Result",
4
5
  "action.stats": "Stats",
5
6
  "action.schema": "Schema",
6
7
  "action.explain-plan": "Explain Plan",
8
+ "action.json": "JSON",
9
+ "action.ast": "AST",
7
10
  "action.copy": "Copy {{activeSection}}",
8
11
  "trace": "Trace",
9
12
  "title.truncated": "Truncated",
@@ -0,0 +1,2 @@
1
+ declare const _default: (key: "trace" | "description.graph-is-not-supported" | "description.empty-result" | "action.result" | "action.stats" | "action.schema" | "action.explain-plan" | "action.json" | "action.ast" | "action.copy" | "title.truncated" | "title.result" | "text_plan-svg" | "text_open-plan-svg" | "text_error-plan-svg", params?: import("@gravity-ui/i18n").Params) => string;
2
+ export default _default;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/containers/Tenant/Query/QueryResult/i18n/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,eAAe,EAAC,MAAM,2BAA2B,CAAC;AAE1D,OAAO,EAAE,MAAM,WAAW,CAAC;AAE3B,MAAM,SAAS,GAAG,oBAAoB,CAAC;AAEvC,eAAe,eAAe,CAAC,SAAS,EAAE,EAAC,EAAE,EAAC,CAAC,CAAC"}
@@ -25,7 +25,7 @@ function prepareRowTableSchema(data = {}) {
25
25
  const families = prepareFamilies(data);
26
26
  const { Columns, KeyColumnNames } = data;
27
27
  const preparedColumns = Columns === null || Columns === void 0 ? void 0 : Columns.map((column) => {
28
- var _a, _b, _c;
28
+ var _a, _b, _c, _d;
29
29
  const { Id, Name, NotNull, Type, Family, DefaultFromSequence, DefaultFromLiteral } = column;
30
30
  const keyColumnIndex = (_a = KeyColumnNames === null || KeyColumnNames === void 0 ? void 0 : KeyColumnNames.findIndex((keyColumnName) => keyColumnName === Name)) !== null && _a !== void 0 ? _a : -1;
31
31
  const familyName = Family ? families[Family].Name : undefined;
@@ -40,7 +40,7 @@ function prepareRowTableSchema(data = {}) {
40
40
  type: Type,
41
41
  notNull: NotNull,
42
42
  autoIncrement: Boolean(DefaultFromSequence),
43
- defaultValue: Object.values((DefaultFromLiteral === null || DefaultFromLiteral === void 0 ? void 0 : DefaultFromLiteral.value) || {})[0] || '-',
43
+ defaultValue: (_d = Object.values((DefaultFromLiteral === null || DefaultFromLiteral === void 0 ? void 0 : DefaultFromLiteral.value) || {})[0]) !== null && _d !== void 0 ? _d : '-',
44
44
  familyName,
45
45
  prefferedPoolKind,
46
46
  columnCodec,
@@ -1 +1 @@
1
- {"version":3,"file":"prepareData.js","sourceRoot":"","sources":["../../../../../src/containers/Tenant/Schema/SchemaViewer/prepareData.ts"],"names":[],"mappings":"AASA,OAAO,EAAC,YAAY,EAAC,MAAM,8BAA8B,CAAC;AAE1D,OAAO,EAAC,kBAAkB,EAAE,mBAAmB,EAAE,cAAc,EAAC,MAAM,oBAAoB,CAAC;AAI3F,SAAS,iBAAiB,CAAC,KAAoB;IAC3C,IAAI,CAAC,KAAK,EAAE,CAAC;QACT,OAAO,SAAS,CAAC;IACrB,CAAC;IACD,IAAI,KAAK,KAAK,YAAY,CAAC,gBAAgB,EAAE,CAAC;QAC1C,OAAO,MAAM,CAAC;IAClB,CAAC;IACD,OAAO,KAAK,CAAC,OAAO,CAAC,aAAa,EAAE,EAAE,CAAC,CAAC,iBAAiB,EAAE,CAAC;AAChE,CAAC;AAED,MAAM,UAAU,eAAe,CAAC,IAAwB;;IACpD,OAAO,CACH,MAAA,MAAA,MAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,eAAe,0CAAE,cAAc,0CAAE,MAAM,CACzC,CAAC,GAAG,EAAE,MAAM,EAAE,EAAE;QACZ,IAAI,MAAM,CAAC,EAAE,EAAE,C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;QACnC,OAAO,0BAA0B,CAAC,wBAAwB,CAAC,CAAC;IAChE,CAAC;IAED,OAAO,EAAE,CAAC;AACd,CAAC;AAED,MAAM,UAAU,iBAAiB,CAAC,OAAsB;IACpD,MAAM,eAAe,GAAG,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE;;QAC5C,8CAA8C;QAC9C,MAAM,IAAI,GAAG,CAAA,MAAA,MAAM,CAAC,IAAI,0CAAE,QAAQ,CAAC,GAAG,CAAC,EAAC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC;QAEjF,OAAO;YACH,IAAI;YACJ,IAAI,EAAE,MAAM,CAAC,IAAI;SACpB,CAAC;IACN,CAAC,CAAC,CAAC;IAEH,OAAO,eAAe,IAAI,EAAE,CAAC;AACjC,CAAC"}
@@ -1,14 +1,14 @@
1
1
  import type { NavigationTreeNodeType } from 'ydb-ui-components';
2
2
  import type { AppDispatch } from '../../../store';
3
- import type { GetTableSchemaDataParams } from '../../../store/reducers/tableSchemaData';
4
3
  import type { QuerySettings } from '../../../types/store/query';
5
4
  import type { SchemaData } from '../Schema/SchemaViewer/types';
6
- interface ActionsAdditionalEffects {
5
+ interface ActionsAdditionalParams {
7
6
  updateQueryExecutionSettings: (settings?: Partial<QuerySettings>) => void;
8
7
  setActivePath: (path: string) => void;
9
8
  showCreateDirectoryDialog?: (path: string) => void;
10
- getTableSchemaDataPromise?: (params: GetTableSchemaDataParams) => Promise<SchemaData[] | undefined>;
11
9
  getConfirmation?: () => Promise<boolean>;
10
+ schemaData?: SchemaData[];
11
+ isSchemaDataLoading?: boolean;
12
12
  }
13
- export declare const getActions: (dispatch: AppDispatch, additionalEffects: ActionsAdditionalEffects, rootPath?: string) => (path: string, type: NavigationTreeNodeType) => import("@gravity-ui/uikit").DropdownMenuItemMixed<any>[];
13
+ export declare const getActions: (dispatch: AppDispatch, additionalEffects: ActionsAdditionalParams, rootPath?: string) => (path: string, type: NavigationTreeNodeType) => import("@gravity-ui/uikit").DropdownMenuItemMixed<any>[];
14
14
  export {};
@@ -1,3 +1,5 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { Flex, Spin } from '@gravity-ui/uikit';
1
3
  import copy from 'copy-to-clipboard';
2
4
  import { TENANT_PAGES_IDS, TENANT_QUERY_TABS_ID } from '../../../store/reducers/tenant/constants';
3
5
  import { setQueryTab, setTenantPage } from '../../../store/reducers/tenant/tenant';
@@ -5,28 +7,16 @@ import createToast from '../../../utils/createToast';
5
7
  import { insertSnippetToEditor } from '../../../utils/monaco/insertSnippet';
6
8
  import { transformPath } from '../ObjectSummary/transformPath';
7
9
  import i18n from '../i18n';
8
- import { nodeTableTypeToPathType } from './schema';
9
10
  import { addTableIndex, alterAsyncReplicationTemplate, alterTableTemplate, alterTopicTemplate, createAsyncReplicationTemplate, createCdcStreamTemplate, createColumnTableTemplate, createExternalTableTemplate, createTableTemplate, createTopicTemplate, createViewTemplate, dropAsyncReplicationTemplate, dropExternalTableTemplate, dropTableIndex, dropTableTemplate, dropTopicTemplate, dropViewTemplate, selectQueryTemplate, upsertQueryTemplate, } from './schemaQueryTemplates';
10
11
  const bindActions = (params, dispatch, additionalEffects) => {
11
- const { setActivePath, showCreateDirectoryDialog, getTableSchemaDataPromise, getConfirmation } = additionalEffects;
12
+ const { setActivePath, showCreateDirectoryDialog, getConfirmation, schemaData } = additionalEffects;
12
13
  const inputQuery = (tmpl) => () => {
13
14
  const applyInsert = () => {
14
- const pathType = nodeTableTypeToPathType[params.type];
15
- const withTableData = [selectQueryTemplate, upsertQueryTemplate].includes(tmpl);
16
- const userInputDataPromise = withTableData && pathType && getTableSchemaDataPromise
17
- ? getTableSchemaDataPromise({
18
- path: params.path,
19
- tenantName: params.tenantName,
20
- type: pathType,
21
- })
22
- : Promise.resolve(undefined);
23
15
  //order is important here: firstly we should open query tab and initialize editor (it will be set to window.ydbEditor), after that it is possible to insert snippet
24
16
  dispatch(setTenantPage(TENANT_PAGES_IDS.query));
25
17
  dispatch(setQueryTab(TENANT_QUERY_TABS_ID.newQuery));
26
18
  setActivePath(params.path);
27
- userInputDataPromise.then((tableData) => {
28
- insertSnippetToEditor(tmpl({ ...params, tableData }));
29
- });
19
+ insertSnippetToEditor(tmpl({ ...params, schemaData }));
30
20
  };
31
21
  if (getConfirmation) {
32
22
  const confirmedPromise = getConfirmation();
@@ -85,6 +75,11 @@ const bindActions = (params, dispatch, additionalEffects) => {
85
75
  },
86
76
  };
87
77
  };
78
+ const getActionWithLoader = ({ text, action, isLoading }) => ({
79
+ text: (_jsxs(Flex, { justifyContent: "space-between", alignItems: "center", children: [text, isLoading && _jsx(Spin, { size: "xs" })] })),
80
+ action,
81
+ disabled: isLoading,
82
+ });
88
83
  export const getActions = (dispatch, additionalEffects, rootPath = '') => (path, type) => {
89
84
  const relativePath = transformPath(path, rootPath);
90
85
  const actions = bindActions({ path, relativePath, tenantName: rootPath, type }, dispatch, additionalEffects);
@@ -112,8 +107,16 @@ export const getActions = (dispatch, additionalEffects, rootPath = '') => (path,
112
107
  [
113
108
  { text: i18n('actions.alterTable'), action: actions.alterTable },
114
109
  { text: i18n('actions.dropTable'), action: actions.dropTable },
115
- { text: i18n('actions.selectQuery'), action: actions.selectQuery },
116
- { text: i18n('actions.upsertQuery'), action: actions.upsertQuery },
110
+ getActionWithLoader({
111
+ text: i18n('actions.selectQuery'),
112
+ action: actions.selectQuery,
113
+ isLoading: additionalEffects.isSchemaDataLoading,
114
+ }),
115
+ getActionWithLoader({
116
+ text: i18n('actions.upsertQuery'),
117
+ action: actions.upsertQuery,
118
+ isLoading: additionalEffects.isSchemaDataLoading,
119
+ }),
117
120
  { text: i18n('actions.addTableIndex'), action: actions.addTableIndex },
118
121
  { text: i18n('actions.createCdcStream'), action: actions.createCdcStream },
119
122
  ],
@@ -1 +1 @@
1
- {"version":3,"file":"schemaActions.js","sourceRoot":"","sources":["../../../../src/containers/Tenant/utils/schemaActions.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,mBAAmB,CAAC;AAKrC,OAAO,EAAC,gBAAgB,EAAE,oBAAoB,EAAC,MAAM,0CAA0C,CAAC;AAChG,OAAO,EAAC,WAAW,EAAE,aAAa,EAAC,MAAM,uCAAuC,CAAC;AAEjF,OAAO,WAAW,MAAM,4BAA4B,CAAC;AACrD,OAAO,EAAC,qBAAqB,EAAC,MAAM,qCAAqC,CAAC;AAC1E,OAAO,EAAC,aAAa,EAAC,MAAM,gCAAgC,CAAC;AAE7D,OAAO,IAAI,MAAM,SAAS,CAAC;AAE3B,OAAO,EAAC,uBAAuB,EAAC,MAAM,UAAU,CAAC;AAEjD,OAAO,EACH,aAAa,EACb,6BAA6B,EAC7B,kBAAkB,EAClB,kBAAkB,EAClB,8BAA8B,EAC9B,uBAAuB,EACvB,yBAAyB,EACzB,2BAA2B,EAC3B,mBAAmB,EACnB,mBAAmB,EACnB,kBAAkB,EAClB,4BAA4B,EAC5B,yBAAyB,EACzB,cAAc,EACd,iBAAiB,EACjB,iBAAiB,EACjB,gBAAgB,EAChB,mBAAmB,EACnB,mBAAmB,GACtB,MAAM,wBAAwB,CAAC;AAmBhC,MAAM,WAAW,GAAG,CAChB,MAAwB,EACxB,QAAqB,EACrB,iBAA2C,EAC7C,EAAE;IACA,MAAM,EAAC,aAAa,EAAE,yBAAyB,EAAE,yBAAyB,EAAE,eAAe,EAAC,GACxF,iBAAiB,CAAC;IAEtB,MAAM,UAAU,GAAG,CAAC,IAAgB,EAAE,EAAE,CAAC,GAAG,EAAE;QAC1C,MAAM,WAAW,GAAG,GAAG,EAAE;YACrB,MAAM,QAAQ,GAAG,uBAAuB,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;YACtD,MAAM,aAAa,GAAG,CAAC,mBAAmB,EAAE,mBAAmB,CAAC,CAAC,QAAQ,CAAC,I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AAE,IAAI,CAAC,kBAAkB,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,QAAQ,EAAC,CAAC;KAC/D,CAAC;IAEF,MAAM,qBAAqB,GAAe;QACtC,CAAC,QAAQ,CAAC;QACV;YACI,EAAC,IAAI,EAAE,IAAI,CAAC,0BAA0B,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,qBAAqB,EAAC;YAC/E,EAAC,IAAI,EAAE,IAAI,CAAC,yBAAyB,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,oBAAoB,EAAC;SAChF;KACJ,CAAC;IAEF,MAAM,SAAS,GAAe;QAC1B,CAAC,QAAQ,EAAE,EAAC,IAAI,EAAE,IAAI,CAAC,mBAAmB,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,SAAS,EAAC,CAAC;KAC3E,CAAC;IAEF,MAAM,SAAS,GAAe,CAAC,QAAQ,CAAC,CAAC;IAEzC,wEAAwE;IACxE,2EAA2E;IAC3E,MAAM,iBAAiB,GAA+C;QAClE,iBAAiB,EAAE,qBAAqB;QAExC,QAAQ,EAAE,OAAO;QACjB,SAAS,EAAE,OAAO;QAElB,KAAK,EAAE,aAAa;QACpB,YAAY,EAAE,gBAAgB;QAE9B,WAAW,EAAE,SAAS;QACtB,KAAK,EAAE,SAAS;QAChB,MAAM,EAAE,SAAS;QAEjB,KAAK,EAAE,SAAS;QAEhB,cAAc,EAAE,kBAAkB;QAClC,oBAAoB,EAAE,wBAAwB;QAE9C,IAAI,EAAE,QAAQ;KACjB,CAAC;IAEF,OAAO,iBAAiB,CAAC,IAAI,CAAC,CAAC;AACnC,CAAC,CAAC"}
@@ -2,7 +2,7 @@ import type { SchemaData } from '../Schema/SchemaViewer/types';
2
2
  export interface SchemaQueryParams {
3
3
  path: string;
4
4
  relativePath: string;
5
- tableData?: SchemaData[];
5
+ schemaData?: SchemaData[];
6
6
  }
7
7
  export type TemplateFn = (params?: SchemaQueryParams) => string;
8
8
  export declare const createTableTemplate: (params?: SchemaQueryParams) => string;
@@ -76,7 +76,7 @@ ALTER TABLE ${path}
76
76
  export const selectQueryTemplate = (params) => {
77
77
  var _a;
78
78
  const path = (params === null || params === void 0 ? void 0 : params.relativePath) ? `\`${params === null || params === void 0 ? void 0 : params.relativePath}\`` : '${2:<my_table>}';
79
- const columns = ((_a = params === null || params === void 0 ? void 0 : params.tableData) === null || _a === void 0 ? void 0 : _a.map((column) => '`' + column.name + '`').join(', ')) || '${1:*}';
79
+ const columns = ((_a = params === null || params === void 0 ? void 0 : params.schemaData) === null || _a === void 0 ? void 0 : _a.map((column) => '`' + column.name + '`').join(', ')) || '${1:*}';
80
80
  const filters = (params === null || params === void 0 ? void 0 : params.relativePath) ? '' : 'WHERE ${3:Key1 = 1}\nORDER BY ${4:Key1}\n';
81
81
  return `SELECT ${columns}
82
82
  FROM ${path}
@@ -85,8 +85,8 @@ ${filters}LIMIT \${5:10};`;
85
85
  export const upsertQueryTemplate = (params) => {
86
86
  var _a;
87
87
  const path = (params === null || params === void 0 ? void 0 : params.relativePath) ? `\`${params === null || params === void 0 ? void 0 : params.relativePath}\`` : '${1:<my_table>}';
88
- const columns = ((_a = params === null || params === void 0 ? void 0 : params.tableData) === null || _a === void 0 ? void 0 : _a.map((column) => `\`${column.name}\``).join(', ')) || '${2:id, name}';
89
- const values = (params === null || params === void 0 ? void 0 : params.tableData) ? '${3: }' : '${3:1, "foo"}';
88
+ const columns = ((_a = params === null || params === void 0 ? void 0 : params.schemaData) === null || _a === void 0 ? void 0 : _a.map((column) => `\`${column.name}\``).join(', ')) || '${2:id, name}';
89
+ const values = (params === null || params === void 0 ? void 0 : params.schemaData) ? '${3: }' : '${3:1, "foo"}';
90
90
  return `UPSERT INTO ${path}
91
91
  ( ${columns} )
92
92
  VALUES ( ${values} );`;
@@ -1 +1 @@
1
- {"version":3,"file":"schemaQueryTemplates.js","sourceRoot":"","sources":["../../../../src/containers/Tenant/utils/schemaQueryTemplates.ts"],"names":[],"mappings":"AAUA,MAAM,CAAC,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;QAC/B,CAAC,CAAC,8BAA8B,CAAC;IACrC,OAAO;KACN,IAAI;;;;;;;;;yEASgE,CAAC;AAC1E,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,MAA0B,EAAE,EAAE;IAClE,MAAM,IAAI,GAAG,CAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,YAAY;QAC7B,CAAC,CAAC,KAAK,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,YAAY,IAAI;QAC/B,CAAC,CAAC,8BAA8B,CAAC;IACrC,OAAO;KACN,IAAI;;;;;;;;iHAQwG,CAAC;AAClH,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,MAA0B,EAAE,EAAE;IAC9D,MAAM,IAAI,GAAG,CAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,YAAY,EAAC,CAAC,CAAC,KAAK,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,YAAY,IAAI,CAAC,CAAC,CAAC,iBAAiB,CAAC;IACtF,OAAO;SACF,IAAI;;sBAES,CAAC;AACvB,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,MAA0B,EAAE,EAAE;IAC5D,MAAM,IAAI,GAAG,CAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,YAAY,EAAC,CAAC,CAAC,KAAK,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,YAAY,IAAI,CAAC,CAAC,CAAC,iBAAiB,CAAC;IACtF,OAAO,cAAc,IAAI,GAAG,CAAC;AACjC,CAAC,CAAC"}
@@ -75,9 +75,10 @@ export declare class YdbEmbeddedAPI extends AxiosWrapper {
75
75
  path: string;
76
76
  database: string;
77
77
  }, { concurrentId, signal }?: AxiosOptions): Promise<Nullable<TEvDescribeSchemeResult>>;
78
- getDescribe({ path, database }: {
78
+ getDescribe({ path, database, timeout }: {
79
79
  path: string;
80
80
  database: string;
81
+ timeout?: number;
81
82
  }, { concurrentId, signal }?: AxiosOptions): Promise<Nullable<TEvDescribeSchemeResult>>;
82
83
  getSchemaAcl({ path, database }: {
83
84
  path: string;
@@ -191,14 +191,14 @@ export class YdbEmbeddedAPI extends AxiosWrapper {
191
191
  subs: 1,
192
192
  }, { concurrentId, requestConfig: { signal } });
193
193
  }
194
- getDescribe({ path, database }, { concurrentId, signal } = {}) {
194
+ getDescribe({ path, database, timeout }, { concurrentId, signal } = {}) {
195
195
  return this.get(this.getPath('/viewer/json/describe'), {
196
196
  database,
197
197
  path,
198
198
  enums: true,
199
199
  partition_stats: true,
200
200
  subs: 0,
201
- }, { concurrentId: concurrentId || `getDescribe|${path}`, requestConfig: { signal } });
201
+ }, { concurrentId: concurrentId || `getDescribe|${path}`, requestConfig: { signal }, timeout });
202
202
  }
203
203
  getSchemaAcl({ path, database }, { concurrentId, signal } = {}) {
204
204
  return this.get(this.getPath('/viewer/json/acl'), {
@@ -287,7 +287,7 @@ export class YdbEmbeddedAPI extends AxiosWrapper {
287
287
  */
288
288
  const base64 = !settingsManager.readUserSettingsValue(BINARY_DATA_IN_PLAIN_TEXT_DISPLAY, true);
289
289
  // FIXME: base64 is passed both to params and body to work on versions before and after 24-3
290
- return this.post(this.getPath('/viewer/json/query'), { ...params, base64 }, { schema: 'multi', base64 }, {
290
+ return this.post(this.getPath('/viewer/json/query'), { ...params, base64 }, { schema: 'multi', base64, timeout: params.timeout }, {
291
291
  concurrentId,
292
292
  timeout: params.timeout,
293
293
  requestConfig: {
@@ -1 +1 @@
1
- {"version":3,"file":"api.js","sourceRoot":"","sources":["../../src/services/api.ts"],"names":[],"mappings":"AAAA,OAAO,YAAY,MAAM,2BAA2B,CAAC;AAGrD,OAAO,UAAU,MAAM,aAAa,CAAC;AAErC,OAAO,EAAC,OAAO,IAAI,OAAO,EAAE,WAAW,IAAI,YAAY,EAAC,MAAM,UAAU,CAAC;AAwDzE,OAAO,EACH,iCAAiC,EACjC,mCAAmC,EACnC,YAAY,GAC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AED,kBAAkB,CACd,WAAmB,EACnB,EAAC,YAAY,EAAE,MAAM,KAAkB,EAAE;QAEzC,OAAO,IAAI,CAAC,GAAG,CACX,GAAG,YAAY,IAAI,EAAE,mBAAmB,EACxC;YACI,IAAI,EAAE,WAAW;SACpB,EACD,EAAC,YAAY,EAAE,aAAa,EAAE,EAAC,MAAM,EAAC,EAAC,CAC1C,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC;IACvC,CAAC;CACJ;AAED,MAAM,UAAU,SAAS,CAAC,EAAC,UAAU,GAAG,KAAK,EAAE,eAAe,GAAG,KAAK,EAAC,GAAG,EAAE;IACxE,MAAM,MAAM,GAAuB,EAAC,eAAe,EAAC,CAAC;IACrD,MAAM,GAAG,GAAG,UAAU,CAAC,CAAC,CAAC,IAAI,gBAAgB,CAAC,EAAC,MAAM,EAAC,CAAC,CAAC,CAAC,CAAC,IAAI,cAAc,CAAC,EAAC,MAAM,EAAC,CAAC,CAAC;IACvF,OAAO,GAAG,CAAC;AACf,CAAC"}
@@ -8,6 +8,7 @@ export declare const overviewApi: import("@reduxjs/toolkit/query").Api<import("@
8
8
  getOverview: import("@reduxjs/toolkit/query").QueryDefinition<{
9
9
  path: string;
10
10
  database: string;
11
+ timeout?: number;
11
12
  }, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../api")._NEVER, unknown, {}>, "All" | "PDiskData" | "PreviewData" | "StorageData" | "Tablet" | "UserData" | "VDiskData", import("../../../types/api/schema").TEvDescribeSchemeResult | null | undefined, "api">;
12
13
  }, "api", "All" | "PDiskData" | "PreviewData" | "StorageData" | "Tablet" | "UserData" | "VDiskData", typeof import("@reduxjs/toolkit/query").coreModuleName | typeof import("@reduxjs/toolkit/query/react").reactHooksModuleName>;
13
14
  export declare const selectSchemaMergedChildrenPaths: ((state: any, path: any, _type: any, database: string) => string[] | undefined) & {
@@ -21,11 +21,12 @@ export const overviewApi = api.injectEndpoints({
21
21
  providesTags: ['All'],
22
22
  }),
23
23
  getOverview: build.query({
24
- queryFn: async ({ path, database }, { signal }) => {
24
+ queryFn: async ({ path, database, timeout }, { signal }) => {
25
25
  try {
26
26
  const data = await window.api.getDescribe({
27
27
  path,
28
28
  database,
29
+ timeout,
29
30
  }, { signal });
30
31
  return { data };
31
32
  }
@@ -1 +1 @@
1
- {"version":3,"file":"overview.js","sourceRoot":"","sources":["../../../../src/store/reducers/overview/overview.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,cAAc,EAAC,MAAM,kBAAkB,CAAC;AAChD,OAAO,EAAC,SAAS,EAAC,MAAM,wBAAwB,CAAC;AAEjD,OAAO,EAAC,gCAAgC,EAAC,MAAM,yCAAyC,CAAC;AAIzF,OAAO,EAAC,GAAG,EAAC,MAAM,QAAQ,CAAC;AAE3B,MAAM,CAAC,MAAM,WAAW,GAAG,GAAG,CAAC,eAAe,CAAC;IAC3C,SAAS,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;QACnB,gBAAgB,EAAE,KAAK,CAAC,KAAK,CAAC;YAC1B,OAAO,EAAE,KAAK,EAAE,EAAC,KAAK,EAAE,QAAQ,EAAsC,EAAE,EAAC,MAAM,EAAC,EAAE,EAAE;gBAChF,IAAI,CAAC;oBACD,MAAM,IAAI,GAAG,MAAM,OAAO,CAAC,GAAG,CAC1B,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CACZ,MAAM,CAAC,GAAG,CAAC,WAAW,CAClB;wBACI,IAAI,EAAE,CAAC;wBACP,QAAQ;qBACX,EACD,EAAC,MAAM,EAAC,CACX,CACJ,CACJ,CAAC;oBACF,OAAO,EAAC,IAAI,EAAC,CAAC;gBAClB,CAAC;gBAAC,OAAO,KAAK,EAAE,CAAC;oBACb,OAAO,EAAC,KAAK,EAAC,CAAC;gBACnB,CAAC;YACL,CAAC;YACD,iBAAiB,EAAE,CAAC;YACpB,YAAY,EAAE,CAA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C;QAC1B,CAAC;QACD,OAAO,GAAG,CAAC;IACf,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,OAAO,EAAC,OAAO,EAAE,KAAK,EAAE,iBAAiB,IAAI,qBAAqB,EAAE,cAAc,EAAC,CAAC;AACxF,CAAC"}
@@ -1,6 +1,3 @@
1
1
  import type { ExecuteResponse, ExplainResponse } from '../../../types/api/query';
2
2
  import type { PreparedQueryData } from './types';
3
- export declare const explainVersions: {
4
- v2: string;
5
- };
6
3
  export declare function prepareQueryData(response: ExplainResponse | ExecuteResponse | null): PreparedQueryData;
@@ -1,47 +1,59 @@
1
1
  import { preparePlan, prepareSimplifiedPlan } from '../../../utils/prepareQueryExplain';
2
2
  import { parseQueryAPIResponse, parseQueryExplainPlan } from '../../../utils/query';
3
- export const explainVersions = {
3
+ const explainVersions = {
4
4
  v2: '0.2',
5
5
  };
6
6
  const supportedExplainQueryVersions = Object.values(explainVersions);
7
7
  export function prepareQueryData(response) {
8
+ var _a, _b, _c;
8
9
  const result = parseQueryAPIResponse(response);
9
- const { plan: rawPlan } = result;
10
- if (!rawPlan) {
11
- return result;
12
- }
13
- const { tables, meta, Plan, SimplifiedPlan } = parseQueryExplainPlan(rawPlan);
14
- if (supportedExplainQueryVersions.indexOf(meta.version) === -1) {
15
- // Do not prepare plan for not supported versions
10
+ const { plan: rawPlan, stats } = result;
11
+ if (rawPlan) {
12
+ const { tables, meta, Plan, SimplifiedPlan } = parseQueryExplainPlan(rawPlan);
13
+ if (supportedExplainQueryVersions.indexOf(meta.version) === -1) {
14
+ // Do not prepare plan for not supported versions
15
+ return {
16
+ ...result,
17
+ preparedPlan: {
18
+ pristine: rawPlan,
19
+ version: meta.version,
20
+ },
21
+ };
22
+ }
23
+ let links = [];
24
+ let nodes = [];
25
+ if (Plan) {
26
+ const preparedPlan = preparePlan(Plan);
27
+ links = preparedPlan.links;
28
+ nodes = preparedPlan.nodes;
29
+ }
30
+ let preparedSimplifiedPlan;
31
+ if (SimplifiedPlan) {
32
+ preparedSimplifiedPlan = prepareSimplifiedPlan([SimplifiedPlan]);
33
+ }
16
34
  return {
17
35
  ...result,
18
36
  preparedPlan: {
19
- pristine: rawPlan,
37
+ links,
38
+ nodes,
39
+ tables,
20
40
  version: meta.version,
41
+ pristine: rawPlan,
21
42
  },
43
+ simplifiedPlan: { plan: preparedSimplifiedPlan, pristine: SimplifiedPlan },
22
44
  };
23
45
  }
24
- let links = [];
25
- let nodes = [];
26
- if (Plan) {
27
- const preparedPlan = preparePlan(Plan);
28
- links = preparedPlan.links;
29
- nodes = preparedPlan.nodes;
30
- }
31
- let preparedSimplifiedPlan;
32
- if (SimplifiedPlan) {
33
- preparedSimplifiedPlan = prepareSimplifiedPlan([SimplifiedPlan]);
46
+ const planFromStats = (_c = (_b = (_a = stats === null || stats === void 0 ? void 0 : stats.Executions) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.TxPlansWithStats) === null || _c === void 0 ? void 0 : _c[0];
47
+ if (planFromStats) {
48
+ try {
49
+ const planWithStats = JSON.parse(planFromStats);
50
+ return {
51
+ ...result,
52
+ preparedPlan: { ...preparePlan(planWithStats), pristine: planWithStats },
53
+ };
54
+ }
55
+ catch (e) { }
34
56
  }
35
- return {
36
- ...result,
37
- preparedPlan: {
38
- links,
39
- nodes,
40
- tables,
41
- version: meta.version,
42
- pristine: rawPlan,
43
- },
44
- simplifiedPlan: { plan: preparedSimplifiedPlan, pristine: SimplifiedPlan },
45
- };
57
+ return result;
46
58
  }
47
59
  //# sourceMappingURL=prepareQueryData.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"prepareQueryData.js","sourceRoot":"","sources":["../../../../src/store/reducers/query/prepareQueryData.ts"],"names":[],"mappings":"AAGA,OAAO,EAAC,WAAW,EAAE,qBAAqB,EAAC,MAAM,oCAAoC,CAAC;AACtF,OAAO,EAAC,qBAAqB,EAAE,qBAAqB,EAAC,MAAM,sBAAsB,CAAC;AAIlF,MAAM,CAAC,MAAM,eA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CAAC,KAAK,CAAC;QAC/B,CAAC;QACD,IAAI,sBAAsB,CAAC;QAC3B,IAAI,cAAc,EAAE,CAAC;YACjB,sBAAsB,GAAG,qBAAqB,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC;QACrE,CAAC;QAED,OAAO;YACH,GAAG,MAAM;YACT,YAAY,EAAE;gBACV,KAAK;gBACL,KAAK;gBACL,MAAM;gBACN,OAAO,EAAE,IAAI,CAAC,OAAO;gBACrB,QAAQ,EAAE,OAAO;aACpB;YACD,cAAc,EAAE,EAAC,IAAI,EAAE,sBAAsB,EAAE,QAAQ,EAAE,cAAc,EAAC;SAC3E,CAAC;IACN,CAAC;IAED,MAAM,aAAa,GAAG,MAAA,MAAA,MAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,UAAU,0CAAG,CAAC,CAAC,0CAAE,gBAAgB,0CAAG,CAAC,CAAC,CAAC;IACpE,IAAI,aAAa,EAAE,CAAC;QAChB,IAAI,CAAC;YACD,MAAM,aAAa,GAAG,IAAI,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC;YAChD,OAAO;gBACH,GAAG,MAAM;gBACT,YAAY,EAAE,EAAC,GAAG,WAAW,CAAC,aAAa,CAAC,EAAE,QAAQ,EAAE,aAAa,EAAC;aACzE,CAAC;QACN,CAAC;QAAC,OAAO,CAAC,EAAE,CAAC,CAAA,CAAC;IAClB,CAAC;IAED,OAAO,MAAM,CAAC;AAClB,CAAC"}
@@ -6,5 +6,5 @@ export interface GetTableSchemaDataParams {
6
6
  type: EPathType;
7
7
  }
8
8
  export declare const tableSchemaDataApi: import("@reduxjs/toolkit/query").Api<import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("./api")._NEVER, unknown, {}>, {
9
- getTableSchemaData: import("@reduxjs/toolkit/query").MutationDefinition<GetTableSchemaDataParams, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("./api")._NEVER, unknown, {}>, "All" | "PDiskData" | "PreviewData" | "StorageData" | "Tablet" | "UserData" | "VDiskData", SchemaData[], "api">;
9
+ getTableSchemaData: import("@reduxjs/toolkit/query").QueryDefinition<GetTableSchemaDataParams, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("./api")._NEVER, unknown, {}>, "All" | "PDiskData" | "PreviewData" | "StorageData" | "Tablet" | "UserData" | "VDiskData", SchemaData[], "api">;
10
10
  }, "api", "All" | "PDiskData" | "PreviewData" | "StorageData" | "Tablet" | "UserData" | "VDiskData", typeof import("@reduxjs/toolkit/query").coreModuleName | typeof import("@reduxjs/toolkit/query/react").reactHooksModuleName>;