ydb-embedded-ui 6.22.0 → 6.23.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (261) hide show
  1. package/dist/components/PDiskPopup/PDiskPopup.d.ts +2 -4
  2. package/dist/components/PDiskPopup/PDiskPopup.js +10 -5
  3. package/dist/components/PDiskPopup/PDiskPopup.js.map +1 -1
  4. package/dist/components/PaginatedTable/PaginatedTable.d.ts +2 -1
  5. package/dist/components/PaginatedTable/PaginatedTable.js +9 -7
  6. package/dist/components/PaginatedTable/PaginatedTable.js.map +1 -1
  7. package/dist/components/PaginatedTable/TableChunk.d.ts +2 -1
  8. package/dist/components/PaginatedTable/TableChunk.js +5 -2
  9. package/dist/components/PaginatedTable/TableChunk.js.map +1 -1
  10. package/dist/components/QueryResultTable/QueryResultTable.js +11 -16
  11. package/dist/components/QueryResultTable/QueryResultTable.js.map +1 -1
  12. package/dist/components/QueryResultTable/utils/getColumnWidth.d.ts +7 -0
  13. package/dist/components/QueryResultTable/utils/getColumnWidth.js +16 -0
  14. package/dist/components/QueryResultTable/utils/getColumnWidth.js.map +1 -0
  15. package/dist/components/QueryResultTable/utils/getColumnWidth.test.d.ts +1 -0
  16. package/dist/components/QueryResultTable/utils/getColumnWidth.test.js +32 -0
  17. package/dist/components/QueryResultTable/utils/getColumnWidth.test.js.map +1 -0
  18. package/dist/components/StorageGroupInfo/StorageGroupInfo.js +7 -7
  19. package/dist/components/StorageGroupInfo/StorageGroupInfo.js.map +1 -1
  20. package/dist/components/StorageGroupInfo/i18n/index.d.ts +1 -1
  21. package/dist/components/TableSkeleton/TableSkeleton.d.ts +2 -1
  22. package/dist/components/TableSkeleton/TableSkeleton.js +5 -1
  23. package/dist/components/TableSkeleton/TableSkeleton.js.map +1 -1
  24. package/dist/components/TableSkeleton/TableSkeleton.scss +7 -1
  25. package/dist/components/VDisk/VDisk.d.ts +1 -3
  26. package/dist/components/VDisk/VDisk.js +2 -2
  27. package/dist/components/VDisk/VDisk.js.map +1 -1
  28. package/dist/components/VDiskPopup/VDiskPopup.d.ts +1 -3
  29. package/dist/components/VDiskPopup/VDiskPopup.js +7 -2
  30. package/dist/components/VDiskPopup/VDiskPopup.js.map +1 -1
  31. package/dist/containers/Cluster/Cluster.scss +2 -2
  32. package/dist/containers/Header/breadcrumbs.js +2 -3
  33. package/dist/containers/Header/breadcrumbs.js.map +1 -1
  34. package/dist/containers/Nodes/columns/columns.js +8 -0
  35. package/dist/containers/Nodes/columns/columns.js.map +1 -1
  36. package/dist/containers/Nodes/columns/constants.d.ts +2 -0
  37. package/dist/containers/Nodes/columns/constants.js +4 -0
  38. package/dist/containers/Nodes/columns/constants.js.map +1 -1
  39. package/dist/containers/Nodes/columns/i18n/en.json +1 -0
  40. package/dist/containers/Nodes/columns/i18n/index.d.ts +1 -1
  41. package/dist/containers/Storage/Disks/Disks.d.ts +3 -3
  42. package/dist/containers/Storage/Disks/Disks.js +6 -7
  43. package/dist/containers/Storage/Disks/Disks.js.map +1 -1
  44. package/dist/containers/Storage/PDisk/PDisk.d.ts +3 -2
  45. package/dist/containers/Storage/PDisk/PDisk.js +3 -2
  46. package/dist/containers/Storage/PDisk/PDisk.js.map +1 -1
  47. package/dist/containers/Storage/PDisk/PDisk.scss +1 -1
  48. package/dist/containers/Storage/PaginatedStorage.d.ts +5 -5
  49. package/dist/containers/Storage/PaginatedStorage.js +7 -73
  50. package/dist/containers/Storage/PaginatedStorage.js.map +1 -1
  51. package/dist/containers/Storage/PaginatedStorageGroups.d.ts +3 -0
  52. package/dist/containers/Storage/PaginatedStorageGroups.js +84 -0
  53. package/dist/containers/Storage/PaginatedStorageGroups.js.map +1 -0
  54. package/dist/containers/Storage/PaginatedStorageNodes.d.ts +3 -0
  55. package/dist/containers/Storage/PaginatedStorageNodes.js +98 -0
  56. package/dist/containers/Storage/PaginatedStorageNodes.js.map +1 -0
  57. package/dist/containers/Storage/Storage.js +15 -70
  58. package/dist/containers/Storage/Storage.js.map +1 -1
  59. package/dist/containers/Storage/Storage.scss +4 -0
  60. package/dist/containers/Storage/StorageControls/StorageControls.d.ts +3 -16
  61. package/dist/containers/Storage/StorageControls/StorageControls.js +18 -11
  62. package/dist/containers/Storage/StorageControls/StorageControls.js.map +1 -1
  63. package/dist/containers/Storage/StorageGroups/PaginatedStorageGroupsTable.d.ts +22 -0
  64. package/dist/containers/Storage/StorageGroups/{PaginatedStorageGroups.js → PaginatedStorageGroupsTable.js} +23 -5
  65. package/dist/containers/Storage/StorageGroups/PaginatedStorageGroupsTable.js.map +1 -0
  66. package/dist/containers/Storage/StorageGroups/{StorageGroups.d.ts → StorageGroupsTable.d.ts} +3 -4
  67. package/dist/containers/Storage/StorageGroups/{StorageGroups.js → StorageGroupsTable.js} +4 -3
  68. package/dist/containers/Storage/StorageGroups/StorageGroupsTable.js.map +1 -0
  69. package/dist/containers/Storage/StorageGroups/columns/columns.js +35 -10
  70. package/dist/containers/Storage/StorageGroups/columns/columns.js.map +1 -1
  71. package/dist/containers/Storage/StorageGroups/columns/constants.d.ts +17 -0
  72. package/dist/containers/Storage/StorageGroups/columns/constants.js +46 -1
  73. package/dist/containers/Storage/StorageGroups/columns/constants.js.map +1 -1
  74. package/dist/containers/Storage/StorageGroups/columns/hooks.d.ts +3 -3
  75. package/dist/containers/Storage/StorageGroups/columns/hooks.js +5 -8
  76. package/dist/containers/Storage/StorageGroups/columns/hooks.js.map +1 -1
  77. package/dist/containers/Storage/StorageGroups/columns/i18n/en.json +6 -0
  78. package/dist/containers/Storage/StorageGroups/columns/i18n/index.d.ts +1 -1
  79. package/dist/containers/Storage/StorageGroups/columns/types.d.ts +7 -5
  80. package/dist/containers/Storage/StorageGroups/getGroups.js +6 -5
  81. package/dist/containers/Storage/StorageGroups/getGroups.js.map +1 -1
  82. package/dist/containers/Storage/StorageNodes/PaginatedStorageNodesTable.d.ts +23 -0
  83. package/dist/containers/Storage/StorageNodes/{PaginatedStorageNodes.js → PaginatedStorageNodesTable.js} +23 -5
  84. package/dist/containers/Storage/StorageNodes/PaginatedStorageNodesTable.js.map +1 -0
  85. package/dist/containers/Storage/StorageNodes/{StorageNodes.d.ts → StorageNodesTable.d.ts} +3 -4
  86. package/dist/containers/Storage/StorageNodes/{StorageNodes.js → StorageNodesTable.js} +8 -6
  87. package/dist/containers/Storage/StorageNodes/StorageNodesTable.js.map +1 -0
  88. package/dist/containers/Storage/StorageNodes/columns/StorageNodesColumns.scss +1 -0
  89. package/dist/containers/Storage/StorageNodes/columns/columns.d.ts +1 -1
  90. package/dist/containers/Storage/StorageNodes/columns/columns.js +4 -5
  91. package/dist/containers/Storage/StorageNodes/columns/columns.js.map +1 -1
  92. package/dist/containers/Storage/StorageNodes/columns/constants.d.ts +9 -0
  93. package/dist/containers/Storage/StorageNodes/columns/constants.js +27 -0
  94. package/dist/containers/Storage/StorageNodes/columns/constants.js.map +1 -1
  95. package/dist/containers/Storage/StorageNodes/columns/i18n/en.json +2 -0
  96. package/dist/containers/Storage/StorageNodes/columns/i18n/index.d.ts +1 -1
  97. package/dist/containers/Storage/StorageNodes/getNodes.js +6 -5
  98. package/dist/containers/Storage/StorageNodes/getNodes.js.map +1 -1
  99. package/dist/containers/Storage/TableGroup/TableGroup.d.ts +12 -0
  100. package/dist/containers/Storage/TableGroup/TableGroup.js +21 -0
  101. package/dist/containers/Storage/TableGroup/TableGroup.js.map +1 -0
  102. package/dist/containers/Storage/TableGroup/TableGroup.scss +49 -0
  103. package/dist/containers/Storage/TableGroup/useExpandedTableGroups.d.ts +5 -0
  104. package/dist/containers/Storage/TableGroup/useExpandedTableGroups.js +28 -0
  105. package/dist/containers/Storage/TableGroup/useExpandedTableGroups.js.map +1 -0
  106. package/dist/containers/Storage/i18n/en.json +4 -1
  107. package/dist/containers/Storage/i18n/index.d.ts +1 -1
  108. package/dist/containers/Storage/i18n/index.js +1 -2
  109. package/dist/containers/Storage/i18n/index.js.map +1 -1
  110. package/dist/containers/Storage/shared.d.ts +2 -0
  111. package/dist/containers/Storage/shared.js +9 -0
  112. package/dist/containers/Storage/shared.js.map +1 -1
  113. package/dist/containers/Storage/useStorageQueryParams.d.ts +18 -0
  114. package/dist/containers/Storage/useStorageQueryParams.js +64 -0
  115. package/dist/containers/Storage/useStorageQueryParams.js.map +1 -0
  116. package/dist/containers/Storage/utils/index.d.ts +6 -2
  117. package/dist/containers/Storage/utils/index.js +11 -6
  118. package/dist/containers/Storage/utils/index.js.map +1 -1
  119. package/dist/containers/Tenant/Diagnostics/Describe/Describe.js +17 -3
  120. package/dist/containers/Tenant/Diagnostics/Describe/Describe.js.map +1 -1
  121. package/dist/containers/Tenant/Diagnostics/Diagnostics.js +1 -1
  122. package/dist/containers/Tenant/Diagnostics/Diagnostics.js.map +1 -1
  123. package/dist/containers/Tenant/Diagnostics/DiagnosticsPages.d.ts +0 -3
  124. package/dist/containers/Tenant/Diagnostics/DiagnosticsPages.js +2 -2
  125. package/dist/containers/Tenant/Diagnostics/DiagnosticsPages.js.map +1 -1
  126. package/dist/containers/Tenant/Diagnostics/HotKeys/HotKeys.js +10 -3
  127. package/dist/containers/Tenant/Diagnostics/HotKeys/HotKeys.js.map +1 -1
  128. package/dist/containers/Tenant/Diagnostics/Overview/Overview.js +2 -3
  129. package/dist/containers/Tenant/Diagnostics/Overview/Overview.js.map +1 -1
  130. package/dist/containers/Tenant/Diagnostics/Partitions/Partitions.js +4 -4
  131. package/dist/containers/Tenant/Diagnostics/Partitions/Partitions.js.map +1 -1
  132. package/dist/containers/Tenant/Diagnostics/Partitions/utils/index.d.ts +2 -2
  133. package/dist/containers/Tenant/Diagnostics/Partitions/utils/index.js +5 -5
  134. package/dist/containers/Tenant/Diagnostics/Partitions/utils/index.js.map +1 -1
  135. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantOverview.js +8 -2
  136. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantOverview.js.map +1 -1
  137. package/dist/containers/Tenant/Diagnostics/TopQueries/RunningQueriesData.d.ts +5 -0
  138. package/dist/containers/Tenant/Diagnostics/TopQueries/RunningQueriesData.js +21 -0
  139. package/dist/containers/Tenant/Diagnostics/TopQueries/RunningQueriesData.js.map +1 -0
  140. package/dist/containers/Tenant/Diagnostics/TopQueries/TopQueries.d.ts +1 -3
  141. package/dist/containers/Tenant/Diagnostics/TopQueries/TopQueries.js +32 -37
  142. package/dist/containers/Tenant/Diagnostics/TopQueries/TopQueries.js.map +1 -1
  143. package/dist/containers/Tenant/Diagnostics/TopQueries/TopQueriesData.d.ts +6 -0
  144. package/dist/containers/Tenant/Diagnostics/TopQueries/TopQueriesData.js +33 -0
  145. package/dist/containers/Tenant/Diagnostics/TopQueries/TopQueriesData.js.map +1 -0
  146. package/dist/containers/Tenant/Diagnostics/TopQueries/getTopQueriesColumns.d.ts +2 -0
  147. package/dist/containers/Tenant/Diagnostics/TopQueries/getTopQueriesColumns.js +26 -0
  148. package/dist/containers/Tenant/Diagnostics/TopQueries/getTopQueriesColumns.js.map +1 -1
  149. package/dist/containers/Tenant/Diagnostics/TopQueries/i18n/en.json +7 -1
  150. package/dist/containers/Tenant/Diagnostics/TopQueries/i18n/index.d.ts +1 -1
  151. package/dist/containers/Tenant/Diagnostics/TopQueries/i18n/index.js +1 -2
  152. package/dist/containers/Tenant/Diagnostics/TopQueries/i18n/index.js.map +1 -1
  153. package/dist/containers/Tenant/ObjectSummary/ObjectSummary.js +27 -9
  154. package/dist/containers/Tenant/ObjectSummary/ObjectSummary.js.map +1 -1
  155. package/dist/containers/Tenant/ObjectSummary/__test__/transformPath.test.js +27 -3
  156. package/dist/containers/Tenant/ObjectSummary/__test__/transformPath.test.js.map +1 -1
  157. package/dist/containers/Tenant/ObjectSummary/transformPath.d.ts +2 -0
  158. package/dist/containers/Tenant/ObjectSummary/transformPath.js +10 -0
  159. package/dist/containers/Tenant/ObjectSummary/transformPath.js.map +1 -1
  160. package/dist/containers/Tenant/Query/ExecuteResult/ExecuteResult.js +3 -1
  161. package/dist/containers/Tenant/Query/ExecuteResult/ExecuteResult.js.map +1 -1
  162. package/dist/containers/Tenant/Query/ExecuteResult/i18n/en.json +2 -1
  163. package/dist/containers/Tenant/Query/ExecuteResult/i18n/index.d.ts +1 -1
  164. package/dist/containers/Tenant/Query/NewSQL/NewSQL.d.ts +1 -0
  165. package/dist/containers/Tenant/Query/NewSQL/NewSQL.js +135 -0
  166. package/dist/containers/Tenant/Query/NewSQL/NewSQL.js.map +1 -0
  167. package/dist/containers/Tenant/Query/NewSQL/i18n/en.json +32 -0
  168. package/dist/containers/Tenant/Query/NewSQL/i18n/index.d.ts +2 -0
  169. package/dist/containers/Tenant/Query/NewSQL/i18n/index.js +5 -0
  170. package/dist/containers/Tenant/Query/NewSQL/i18n/index.js.map +1 -0
  171. package/dist/containers/Tenant/Query/QueryEditorControls/QueryEditorControls.js +2 -1
  172. package/dist/containers/Tenant/Query/QueryEditorControls/QueryEditorControls.js.map +1 -1
  173. package/dist/containers/Tenant/Query/QueryEditorControls/QueryEditorControls.scss +1 -0
  174. package/dist/containers/Tenant/Schema/SchemaTree/SchemaTree.js +1 -1
  175. package/dist/containers/Tenant/Schema/SchemaTree/SchemaTree.js.map +1 -1
  176. package/dist/containers/Tenant/Schema/SchemaViewer/SchemaViewer.js +10 -2
  177. package/dist/containers/Tenant/Schema/SchemaViewer/SchemaViewer.js.map +1 -1
  178. package/dist/containers/Tenant/Schema/SchemaViewer/prepareData.d.ts +2 -1
  179. package/dist/containers/Tenant/Schema/SchemaViewer/prepareData.js.map +1 -1
  180. package/dist/containers/Tenant/Tenant.js +7 -3
  181. package/dist/containers/Tenant/Tenant.js.map +1 -1
  182. package/dist/containers/Tenant/utils/newSQLQueryActions.d.ts +27 -0
  183. package/dist/containers/Tenant/utils/newSQLQueryActions.js +35 -0
  184. package/dist/containers/Tenant/utils/newSQLQueryActions.js.map +1 -0
  185. package/dist/containers/Tenant/utils/newSQLQueryTemplates.d.ts +24 -0
  186. package/dist/containers/Tenant/utils/newSQLQueryTemplates.js +228 -0
  187. package/dist/containers/Tenant/utils/newSQLQueryTemplates.js.map +1 -0
  188. package/dist/containers/Tenant/utils/schemaActions.d.ts +1 -1
  189. package/dist/containers/Tenant/utils/schemaActions.js +8 -6
  190. package/dist/containers/Tenant/utils/schemaActions.js.map +1 -1
  191. package/dist/containers/Tenant/utils/{queryTemplates.js → schemaQueryTemplates.js} +1 -1
  192. package/dist/containers/Tenant/utils/schemaQueryTemplates.js.map +1 -0
  193. package/dist/services/api.js +3 -3
  194. package/dist/services/api.js.map +1 -1
  195. package/dist/store/reducers/capabilities/hooks.d.ts +2 -0
  196. package/dist/store/reducers/capabilities/hooks.js +6 -0
  197. package/dist/store/reducers/capabilities/hooks.js.map +1 -1
  198. package/dist/store/reducers/executeTopQueries/executeTopQueries.d.ts +4 -0
  199. package/dist/store/reducers/executeTopQueries/executeTopQueries.js +27 -1
  200. package/dist/store/reducers/executeTopQueries/executeTopQueries.js.map +1 -1
  201. package/dist/store/reducers/nodes/types.d.ts +1 -0
  202. package/dist/store/reducers/nodesList.d.ts +5 -5
  203. package/dist/store/reducers/nodesList.js +2 -2
  204. package/dist/store/reducers/nodesList.js.map +1 -1
  205. package/dist/store/reducers/overview/overview.js +5 -1
  206. package/dist/store/reducers/overview/overview.js.map +1 -1
  207. package/dist/store/reducers/storage/requestStorageData.d.ts +3 -3
  208. package/dist/store/reducers/storage/requestStorageData.js.map +1 -1
  209. package/dist/store/reducers/storage/selectors.d.ts +2 -3
  210. package/dist/store/reducers/storage/selectors.js +1 -27
  211. package/dist/store/reducers/storage/selectors.js.map +1 -1
  212. package/dist/store/reducers/storage/storage.d.ts +2 -2
  213. package/dist/store/reducers/storage/storage.js.map +1 -1
  214. package/dist/store/reducers/storage/types.d.ts +19 -10
  215. package/dist/store/reducers/storage/utils.js +27 -3
  216. package/dist/store/reducers/storage/utils.js.map +1 -1
  217. package/dist/store/reducers/tablet.js +5 -3
  218. package/dist/store/reducers/tablet.js.map +1 -1
  219. package/dist/store/reducers/tablets.d.ts +3 -3
  220. package/dist/store/reducers/tablets.js +4 -4
  221. package/dist/store/reducers/tablets.js.map +1 -1
  222. package/dist/types/api/capabilities.d.ts +1 -1
  223. package/dist/types/api/nodes.d.ts +3 -2
  224. package/dist/types/api/nodes.js.map +1 -1
  225. package/dist/types/api/storage.d.ts +22 -4
  226. package/dist/types/store/nodesList.d.ts +1 -1
  227. package/dist/utils/hooks/useSelectedColumns.js +7 -2
  228. package/dist/utils/hooks/useSelectedColumns.js.map +1 -1
  229. package/dist/utils/nodes.d.ts +2 -2
  230. package/dist/utils/nodes.js +4 -4
  231. package/dist/utils/nodes.js.map +1 -1
  232. package/dist/utils/storage.js +2 -0
  233. package/dist/utils/storage.js.map +1 -1
  234. package/dist/utils/utils.js +2 -1
  235. package/dist/utils/utils.js.map +1 -1
  236. package/package.json +1 -1
  237. package/dist/containers/Storage/StorageGroups/PaginatedStorageGroups.d.ts +0 -16
  238. package/dist/containers/Storage/StorageGroups/PaginatedStorageGroups.js.map +0 -1
  239. package/dist/containers/Storage/StorageGroups/StorageGroups.js.map +0 -1
  240. package/dist/containers/Storage/StorageNodes/PaginatedStorageNodes.d.ts +0 -17
  241. package/dist/containers/Storage/StorageNodes/PaginatedStorageNodes.js.map +0 -1
  242. package/dist/containers/Storage/StorageNodes/StorageNodes.js.map +0 -1
  243. package/dist/containers/Storage/UsageFilter/UsageFilter.d.ts +0 -14
  244. package/dist/containers/Storage/UsageFilter/UsageFilter.js +0 -39
  245. package/dist/containers/Storage/UsageFilter/UsageFilter.js.map +0 -1
  246. package/dist/containers/Storage/UsageFilter/UsageFilter.scss +0 -38
  247. package/dist/containers/Storage/UsageFilter/i18n/en.json +0 -5
  248. package/dist/containers/Storage/UsageFilter/i18n/index.d.ts +0 -2
  249. package/dist/containers/Storage/UsageFilter/i18n/index.js +0 -6
  250. package/dist/containers/Storage/UsageFilter/i18n/index.js.map +0 -1
  251. package/dist/containers/Storage/UsageFilter/i18n/ru.json +0 -5
  252. package/dist/containers/Storage/UsageFilter/index.d.ts +0 -1
  253. package/dist/containers/Storage/UsageFilter/index.js +0 -2
  254. package/dist/containers/Storage/UsageFilter/index.js.map +0 -1
  255. package/dist/containers/Storage/i18n/ru.json +0 -6
  256. package/dist/containers/Tenant/Diagnostics/TopQueries/i18n/ru.json +0 -4
  257. package/dist/containers/Tenant/utils/queryTemplates.js.map +0 -1
  258. package/dist/store/reducers/describe.d.ts +0 -7
  259. package/dist/store/reducers/describe.js +0 -25
  260. package/dist/store/reducers/describe.js.map +0 -1
  261. /package/dist/containers/Tenant/utils/{queryTemplates.d.ts → schemaQueryTemplates.d.ts} +0 -0
@@ -6,7 +6,7 @@ import { ResponseError } from '../../../../components/Errors/ResponseError';
6
6
  import { TableIndexInfo } from '../../../../components/InfoViewer/schemaInfo';
7
7
  import { Loader } from '../../../../components/Loader';
8
8
  import { overviewApi } from '../../../../store/reducers/overview/overview';
9
- import { selectSchemaMergedChildrenPaths, useGetSchemaQuery, } from '../../../../store/reducers/schema/schema';
9
+ import { selectSchemaMergedChildrenPaths } from '../../../../store/reducers/schema/schema';
10
10
  import { EPathType } from '../../../../types/api/schema';
11
11
  import { useAutoRefreshInterval, useTypedSelector } from '../../../../utils/hooks';
12
12
  import { ExternalDataSourceInfo } from '../../Info/ExternalDataSource/ExternalDataSource';
@@ -34,7 +34,6 @@ function Overview({ type, path, database }) {
34
34
  });
35
35
  const overviewLoading = isFetching && currentData === undefined;
36
36
  const { data: rawData, additionalData } = currentData || {};
37
- const { error: schemaError } = useGetSchemaQuery({ path, database });
38
37
  const entityLoading = overviewLoading;
39
38
  const entityNotReady = isEntityWithMergedImpl && !mergedChildrenPaths;
40
39
  const renderContent = () => {
@@ -66,7 +65,7 @@ function Overview({ type, path, database }) {
66
65
  if (entityLoading || entityNotReady) {
67
66
  return _jsx(Loader, { size: "m" });
68
67
  }
69
- return (_jsxs(React.Fragment, { children: [schemaError ? _jsx(ResponseError, { error: schemaError }) : null, overviewError ? _jsx(ResponseError, { error: overviewError }) : null, overviewError && !rawData ? null : renderContent()] }));
68
+ return (_jsxs(React.Fragment, { children: [overviewError ? _jsx(ResponseError, { error: overviewError }) : null, overviewError && !rawData ? null : renderContent()] }));
70
69
  }
71
70
  export default Overview;
72
71
  //# sourceMappingURL=Overview.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Overview.js","sourceRoot":"","sources":["../../../../../src/containers/Tenant/Diagnostics/Overview/Overview.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,SAAS,EAAC,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAC,YAAY,EAAC,MAAM,aAAa,CAAC;AAEzC,OAAO,EAAC,aAAa,EAAC,MAAM,6CAA6C,CAAC;AAC1E,OAAO,EAAC,cAAc,EAAC,MAAM,8CAA8C,CAAC;AAC5E,OAAO,EAAC,MAAM,EAAC,MAAM,+BAA+B,CAAC;AACrD,OAAO,EAAC,WAAW,EAAC,MAAM,8CAA8C,CAAC;AACzE,OAAO,EACH,+BAA+B,EAC/B,iBAAiB,GACpB,MAAM,0CAA0C,CAAC;AAClD,OAAO,EAAC,SAAS,EAAC,MAAM,8BAA8B,CAAC;AACvD,OAAO,EAAC,sBAAsB,EAAE,gBAAgB,EAAC,MAAM,yBAAyB,CAAC;AACjF,OAAO,EAAC,sBAAsB,EAAC,MAAM,kDAAkD,CAAC;AACxF,OAAO,EAAC,iBAAiB,EAAC,MAAM,wCAAwC,CAAC;AACzE,OAAO,EAAC,QAAQ,EAAC,MAAM,sBAAsB,CAAC;AAC9C,OAAO,EAAC,gCAAgC,EAAC,MAAM,oBAAoB,CAAC;AAEpE,OAAO,EAAC,oBAAoB,EAAC,MAAM,wBAAwB,CAAC;AAC5D,OAAO,EAAC,cAAc,EAAC,MAAM,kBAAkB,CAAC;AAChD,OAAO,EAAC,SAAS,EAAC,MAAM,aAAa,CAAC;AACtC,OAAO,EAAC,SAAS,EAAC,MAAM,aAAa,CAAC;AAQtC,SAAS,QAAQ,CAAC,EAAC,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAgB;IACnD,MAAM,CAAC,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pB,CAAC;AACN,CAAC;AAED,eAAe,QAAQ,CAAC"}
@@ -4,7 +4,7 @@ import { skipToken } from '@reduxjs/toolkit/query';
4
4
  import { ResponseError } from '../../../../components/Errors/ResponseError';
5
5
  import { ResizeableDataTable } from '../../../../components/ResizeableDataTable/ResizeableDataTable';
6
6
  import { TableSkeleton } from '../../../../components/TableSkeleton/TableSkeleton';
7
- import { nodesListApi, selectNodesMap } from '../../../../store/reducers/nodesList';
7
+ import { nodesListApi, selectNodeHostsMap } from '../../../../store/reducers/nodesList';
8
8
  import { partitionsApi, setSelectedConsumer } from '../../../../store/reducers/partitions/partitions';
9
9
  import { selectConsumersNames, topicApi } from '../../../../store/reducers/topic';
10
10
  import { cn } from '../../../../utils/cn';
@@ -27,7 +27,7 @@ export const Partitions = ({ path, database }) => {
27
27
  const topicLoading = topicIsFetching && topicData === undefined;
28
28
  const { currentData: nodesData, isFetching: nodesIsFetching, error: nodesError, } = nodesListApi.useGetNodesListQuery(undefined);
29
29
  const nodesLoading = nodesIsFetching && nodesData === undefined;
30
- const nodesMap = useTypedSelector(selectNodesMap);
30
+ const nodeHostsMap = useTypedSelector(selectNodeHostsMap);
31
31
  const [hiddenColumns, setHiddenColumns] = useSetting(PARTITIONS_HIDDEN_COLUMNS_KEY);
32
32
  const [columns, columnsIdsForSelector] = useGetPartitionsColumns(selectedConsumer);
33
33
  const params = topicLoading ? skipToken : { path, database, consumerName: selectedConsumer };
@@ -35,8 +35,8 @@ export const Partitions = ({ path, database }) => {
35
35
  const partitionsLoading = partitionsIsFetching && partitionsData === undefined;
36
36
  const rawPartitions = partitionsData;
37
37
  const partitionsWithHosts = React.useMemo(() => {
38
- return addHostToPartitions(rawPartitions, nodesMap);
39
- }, [rawPartitions, nodesMap]);
38
+ return addHostToPartitions(rawPartitions, nodeHostsMap);
39
+ }, [rawPartitions, nodeHostsMap]);
40
40
  // Wrong consumer could be passed in search query
41
41
  // Reset consumer if it doesn't exist for current topic
42
42
  React.useEffect(() => {
@@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AsB,EAChC,gBAAgB,EAAE,IAAI,CAAC,wBAAwB,CAAC,GAClD,CACL,CAAC;IACN,CAAC,CAAC;IAEF,OAAO,CACH,eAAK,SAAS,EAAE,CAAC,EAAE,aACf,cAAK,SAAS,EAAE,CAAC,CAAC,UAAU,CAAC,YAAG,cAAc,EAAE,GAAO,EACtD,KAAK,CAAC,CAAC,CAAC,KAAC,aAAa,IAAC,KAAK,EAAE,KAAK,GAAI,CAAC,CAAC,CAAC,IAAI,EAC/C,cAAK,SAAS,EAAE,CAAC,CAAC,eAAe,CAAC,YAC9B,cAAK,SAAS,EAAE,CAAC,CAAC,eAAe,CAAC,YAAG,cAAc,CAAC,CAAC,CAAC,aAAa,EAAE,CAAC,CAAC,CAAC,IAAI,GAAO,GACjF,IACJ,CACT,CAAC;AACN,CAAC,CAAC"}
@@ -1,4 +1,4 @@
1
1
  import type { PreparedPartitionData } from '../../../../../store/reducers/partitions/types';
2
- import type { NodesMap } from '../../../../../types/store/nodesList';
2
+ import type { NodeHostsMap } from '../../../../../types/store/nodesList';
3
3
  import type { PreparedPartitionDataWithHosts } from './types';
4
- export declare const addHostToPartitions: (partitions?: PreparedPartitionData[], nodesMap?: NodesMap) => PreparedPartitionDataWithHosts[];
4
+ export declare const addHostToPartitions: (partitions?: PreparedPartitionData[], nodeHosts?: NodeHostsMap) => PreparedPartitionDataWithHosts[];
@@ -1,10 +1,10 @@
1
- export const addHostToPartitions = (partitions = [], nodesMap) => {
1
+ export const addHostToPartitions = (partitions = [], nodeHosts) => {
2
2
  return partitions === null || partitions === void 0 ? void 0 : partitions.map((partition) => {
3
- const partitionHost = partition.partitionNodeId && nodesMap
4
- ? nodesMap.get(partition.partitionNodeId)
3
+ const partitionHost = partition.partitionNodeId && nodeHosts
4
+ ? nodeHosts.get(partition.partitionNodeId)
5
5
  : undefined;
6
- const connectionHost = partition.connectionNodeId && nodesMap
7
- ? nodesMap.get(partition.connectionNodeId)
6
+ const connectionHost = partition.connectionNodeId && nodeHosts
7
+ ? nodeHosts.get(partition.connectionNodeId)
8
8
  : undefined;
9
9
  return {
10
10
  ...partition,
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/containers/Tenant/Diagnostics/Partitions/utils/index.ts"],"names":[],"mappings":"AAKA,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAC/B,aAAsC,EAAE,EACxC,QAAmB,EACa,EAAE;IAClC,OAAO,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,GAAG,CAAC,CAAC,SAAS,EAAE,EAAE;QACjC,MAAM,aAAa,GACf,SAAS,CAAC,eAAe,IAAI,QAAQ;YACjC,CAAC,CAAC,QAAQ,CAAC,GAAG,CAAC,SAAS,CAAC,eAAe,CAAC;YACzC,CAAC,CAAC,SAAS,CAAC;QAEpB,MAAM,cAAc,GAChB,SAAS,CAAC,gBAAgB,IAAI,QAAQ;YAClC,CAAC,CAAC,QAAQ,CAAC,GAAG,CAAC,SAAS,CAAC,gBAAgB,CAAC;YAC1C,CAAC,CAAC,SAAS,CAAC;QAEpB,OAAO;YACH,GAAG,SAAS;YACZ,aAAa;YACb,cAAc;SACjB,CAAC;IACN,CAAC,CAAC,CAAC;AACP,CAAC,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/containers/Tenant/Diagnostics/Partitions/utils/index.ts"],"names":[],"mappings":"AAKA,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAC/B,aAAsC,EAAE,EACxC,SAAwB,EACQ,EAAE;IAClC,OAAO,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,GAAG,CAAC,CAAC,SAAS,EAAE,EAAE;QACjC,MAAM,aAAa,GACf,SAAS,CAAC,eAAe,IAAI,SAAS;YAClC,CAAC,CAAC,SAAS,CAAC,GAAG,CAAC,SAAS,CAAC,eAAe,CAAC;YAC1C,CAAC,CAAC,SAAS,CAAC;QAEpB,MAAM,cAAc,GAChB,SAAS,CAAC,gBAAgB,IAAI,SAAS;YACnC,CAAC,CAAC,SAAS,CAAC,GAAG,CAAC,SAAS,CAAC,gBAAgB,CAAC;YAC3C,CAAC,CAAC,SAAS,CAAC;QAEpB,OAAO;YACH,GAAG,SAAS;YACZ,aAAa;YACb,cAAc;SACjB,CAAC;IACN,CAAC,CAAC,CAAC;AACP,CAAC,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { Loader } from '@gravity-ui/uikit';
3
3
  import { EntityStatus } from '../../../../components/EntityStatus/EntityStatus';
4
- import { useGetSchemaQuery } from '../../../../store/reducers/schema/schema';
4
+ import { overviewApi } from '../../../../store/reducers/overview/overview';
5
5
  import { TENANT_METRICS_TABS_IDS } from '../../../../store/reducers/tenant/constants';
6
6
  import { tenantApi } from '../../../../store/reducers/tenant/tenant';
7
7
  import { calculateTenantMetrics } from '../../../../store/reducers/tenants/utils';
@@ -27,7 +27,13 @@ export function TenantOverview({ tenantName, additionalTenantProps, additionalNo
27
27
  const { Name, Type, Overall } = tenant || {};
28
28
  const tenantType = mapDatabaseTypeToDBName(Type);
29
29
  // FIXME: remove after correct data is added to tenantInfo
30
- const { data: tenantSchemaData } = useGetSchemaQuery({ path: tenantName, database: tenantName });
30
+ const { currentData } = overviewApi.useGetOverviewQuery({
31
+ paths: [tenantName],
32
+ database: tenantName,
33
+ }, {
34
+ pollingInterval: autoRefreshInterval,
35
+ });
36
+ const { data: tenantSchemaData } = currentData !== null && currentData !== void 0 ? currentData : {};
31
37
  const { Tables, Topics } = ((_b = (_a = tenantSchemaData === null || tenantSchemaData === void 0 ? void 0 : tenantSchemaData.PathDescription) === null || _a === void 0 ? void 0 : _a.DomainDescription) === null || _b === void 0 ? void 0 : _b.DiskSpaceUsage) || {};
32
38
  const usedTabletStorage = [
33
39
  Tables === null || Tables === void 0 ? void 0 : Tables.TotalSize,
@@ -1 +1 @@
1
- {"version":3,"file":"TenantOverview.js","sourceRoot":"","sources":["../../../../../src/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AAC,UAAU,EAAE,UAAU,GAAI,CAAC;YAC1D,CAAC;YACD,OAAO,CAAC,CAAC,CAAC;gBACN,OAAO,KAAC,sBAAsB,IAAC,QAAQ,EAAE,UAAU,GAAI,CAAC;YAC5D,CAAC;QACL,CAAC;IACL,CAAC,CAAC;IAEF,IAAI,aAAa,EAAE,CAAC;QAChB,OAAO,CACH,cAAK,SAAS,EAAE,CAAC,CAAC,QAAQ,CAAC,YACvB,KAAC,MAAM,IAAC,IAAI,EAAC,GAAG,GAAG,GACjB,CACT,CAAC;IACN,CAAC;IAED,OAAO,CACH,eAAK,SAAS,EAAE,CAAC,EAAE,aACf,eAAK,SAAS,EAAE,CAAC,CAAC,MAAM,CAAC,aACrB,cAAK,SAAS,EAAE,CAAC,CAAC,WAAW,CAAC,YAAG,UAAU,GAAO,EAClD,eAAK,SAAS,EAAE,CAAC,CAAC,KAAK,CAAC,aACnB,UAAU,EAAE,EACZ,MAAA,qBAAqB,aAArB,qBAAqB,uBAArB,qBAAqB,CAAE,iBAAiB,sEAAG,IAAI,EAAE,IAAI,CAAC,IACrD,EACN,KAAC,YAAY,IACT,aAAa,EAAE,UAAU,EACzB,WAAW,EAAE,WAAW,EACxB,gBAAgB,EAAE,gBAAgB,EAClC,kBAAkB,EAAE,kBAAkB,EACtC,UAAU,EAAE,UAAU,GACxB,IACA,EACL,gBAAgB,EAAE,IACjB,CACT,CAAC;AACN,CAAC"}
1
+ {"version":3,"file":"TenantOverview.js","sourceRoot":"","sources":["../../../../../src/containers/Tenant/Diagnostics/TenantOverview/TenantOverview.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,MAAM,EAAC,MAAM,mBAAmB,CAAC;AAEzC,OAAO,EAAC,YAAY,EAAC,MAAM,kDAAkD,CAAC;AAC9E,OAAO,EAAC,WAAW,EAAC,MAAM,8CAA8C,CAAC;AACzE,OAAO,EAAC,uBAAuB,EAAC,MAAM,6CAA6C,CAAC;AACpF,OAAO,EAAC,SAAS,EAAC,MAAM,0C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;IACL,CAAC,CAAC;IAEF,IAAI,aAAa,EAAE,CAAC;QAChB,OAAO,CACH,cAAK,SAAS,EAAE,CAAC,CAAC,QAAQ,CAAC,YACvB,KAAC,MAAM,IAAC,IAAI,EAAC,GAAG,GAAG,GACjB,CACT,CAAC;IACN,CAAC;IAED,OAAO,CACH,eAAK,SAAS,EAAE,CAAC,EAAE,aACf,eAAK,SAAS,EAAE,CAAC,CAAC,MAAM,CAAC,aACrB,cAAK,SAAS,EAAE,CAAC,CAAC,WAAW,CAAC,YAAG,UAAU,GAAO,EAClD,eAAK,SAAS,EAAE,CAAC,CAAC,KAAK,CAAC,aACnB,UAAU,EAAE,EACZ,MAAA,qBAAqB,aAArB,qBAAqB,uBAArB,qBAAqB,CAAE,iBAAiB,sEAAG,IAAI,EAAE,IAAI,CAAC,IACrD,EACN,KAAC,YAAY,IACT,aAAa,EAAE,UAAU,EACzB,WAAW,EAAE,WAAW,EACxB,gBAAgB,EAAE,gBAAgB,EAClC,kBAAkB,EAAE,kBAAkB,EACtC,UAAU,EAAE,UAAU,GACxB,IACA,EACL,gBAAgB,EAAE,IACjB,CACT,CAAC;AACN,CAAC"}
@@ -0,0 +1,5 @@
1
+ interface Props {
2
+ database: string;
3
+ }
4
+ export declare const RunningQueriesData: ({ database }: Props) => import("react/jsx-runtime").JSX.Element;
5
+ export {};
@@ -0,0 +1,21 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import React from 'react';
3
+ import { ResponseError } from '../../../../components/Errors/ResponseError';
4
+ import { ResizeableDataTable } from '../../../../components/ResizeableDataTable/ResizeableDataTable';
5
+ import { TableWithControlsLayout } from '../../../../components/TableWithControlsLayout/TableWithControlsLayout';
6
+ import { topQueriesApi } from '../../../../store/reducers/executeTopQueries/executeTopQueries';
7
+ import { useAutoRefreshInterval, useTypedSelector } from '../../../../utils/hooks';
8
+ import { parseQueryErrorToString } from '../../../../utils/query';
9
+ import { QUERY_TABLE_SETTINGS } from '../../utils/constants';
10
+ import { RUNNING_QUERIES_COLUMNS, RUNNING_QUERIES_COLUMNS_WIDTH_LS_KEY, } from './getTopQueriesColumns';
11
+ import i18n from './i18n';
12
+ export const RunningQueriesData = ({ database }) => {
13
+ const [autoRefreshInterval] = useAutoRefreshInterval();
14
+ const filters = useTypedSelector((state) => state.executeTopQueries);
15
+ const { currentData: data, isFetching, error, } = topQueriesApi.useGetRunningQueriesQuery({
16
+ database,
17
+ filters,
18
+ }, { pollingInterval: autoRefreshInterval });
19
+ return (_jsxs(React.Fragment, { children: [error ? _jsx(ResponseError, { error: parseQueryErrorToString(error) }) : null, _jsx(TableWithControlsLayout.Table, { loading: isFetching && data === undefined, children: _jsx(ResizeableDataTable, { emptyDataMessage: i18n('no-data'), columnsWidthLSKey: RUNNING_QUERIES_COLUMNS_WIDTH_LS_KEY, columns: RUNNING_QUERIES_COLUMNS, data: data || [], settings: QUERY_TABLE_SETTINGS }) })] }));
20
+ };
21
+ //# sourceMappingURL=RunningQueriesData.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RunningQueriesData.js","sourceRoot":"","sources":["../../../../../src/containers/Tenant/Diagnostics/TopQueries/RunningQueriesData.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,aAAa,EAAC,MAAM,6CAA6C,CAAC;AAC1E,OAAO,EAAC,mBAAmB,EAAC,MAAM,gEAAgE,CAAC;AACnG,OAAO,EAAC,uBAAuB,EAAC,MAAM,wEAAwE,CAAC;AAC/G,OAAO,EAAC,aAAa,EAAC,MAAM,gEAAgE,CAAC;AAC7F,OAAO,EAAC,sBAAsB,EAAE,gBAAgB,EAAC,MAAM,yBAAyB,CAAC;AACjF,OAAO,EAAC,uBAAuB,EAAC,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAC,oBAAoB,EAAC,MAAM,uBAAuB,CAAC;AAE3D,OAAO,EACH,uBAAuB,EACvB,oCAAoC,GACvC,MAAM,wBAAwB,CAAC;AAChC,OAAO,IAAI,MAAM,QAAQ,CAAC;AAM1B,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,EAAC,QAAQ,EAAQ,EAAE,EAAE;IACpD,MAAM,CAAC,mBAAmB,CAAC,GAAG,sBAAsB,EAAE,CAAC;IACvD,MAAM,OAAO,GAAG,gBAAgB,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAAC;IACrE,MAAM,EACF,WAAW,EAAE,IAAI,EACjB,UAAU,EACV,KAAK,GACR,GAAG,aAAa,CAAC,yBAAyB,CACvC;QACI,QAAQ;QACR,OAAO;KACV,EACD,EAAC,eAAe,EAAE,mBAAmB,EAAC,CACzC,CAAC;IAEF,OAAO,CACH,MAAC,KAAK,CAAC,QAAQ,eACV,KAAK,CAAC,CAAC,CAAC,KAAC,aAAa,IAAC,KAAK,EAAE,uBAAuB,CAAC,KAAK,CAAC,GAAI,CAAC,CAAC,CAAC,IAAI,EACxE,KAAC,uBAAuB,CAAC,KAAK,IAAC,OAAO,EAAE,UAAU,IAAI,IAAI,KAAK,SAAS,YACpE,KAAC,mBAAmB,IAChB,gBAAgB,EAAE,IAAI,CAAC,SAAS,CAAC,EACjC,iBAAiB,EAAE,oCAAoC,EACvD,OAAO,EAAE,uBAAuB,EAChC,IAAI,EAAE,IAAI,IAAI,EAAE,EAChB,QAAQ,EAAE,oBAAoB,GAChC,GAC0B,IACnB,CACpB,CAAC;AACN,CAAC,CAAC"}
@@ -1,8 +1,6 @@
1
- import type { EPathType } from '../../../../types/api/schema';
2
1
  import './TopQueries.scss';
3
2
  interface TopQueriesProps {
4
3
  tenantName: string;
5
- type?: EPathType;
6
4
  }
7
- export declare const TopQueries: ({ tenantName, type }: TopQueriesProps) => import("react/jsx-runtime").JSX.Element;
5
+ export declare const TopQueries: ({ tenantName }: TopQueriesProps) => import("react/jsx-runtime").JSX.Element;
8
6
  export {};
@@ -1,45 +1,52 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import React from 'react';
3
+ import { RadioButton } from '@gravity-ui/uikit';
3
4
  import { useHistory, useLocation } from 'react-router-dom';
5
+ import { StringParam, useQueryParam } from 'use-query-params';
6
+ import { z } from 'zod';
4
7
  import { DateRange } from '../../../../components/DateRange';
5
- import { ResponseError } from '../../../../components/Errors/ResponseError';
6
- import { ResizeableDataTable } from '../../../../components/ResizeableDataTable/ResizeableDataTable';
7
8
  import { Search } from '../../../../components/Search';
8
9
  import { TableWithControlsLayout } from '../../../../components/TableWithControlsLayout/TableWithControlsLayout';
9
10
  import { parseQuery } from '../../../../routes';
10
11
  import { changeUserInput } from '../../../../store/reducers/executeQuery';
11
- import { setTopQueriesFilters, topQueriesApi, } from '../../../../store/reducers/executeTopQueries/executeTopQueries';
12
+ import { setTopQueriesFilters } from '../../../../store/reducers/executeTopQueries/executeTopQueries';
12
13
  import { TENANT_PAGE, TENANT_PAGES_IDS, TENANT_QUERY_TABS_ID, } from '../../../../store/reducers/tenant/constants';
13
14
  import { cn } from '../../../../utils/cn';
14
- import { isSortableTopQueriesProperty } from '../../../../utils/diagnostics';
15
- import { useAutoRefreshInterval, useTypedDispatch, useTypedSelector } from '../../../../utils/hooks';
16
- import { parseQueryErrorToString } from '../../../../utils/query';
15
+ import { useTypedDispatch, useTypedSelector } from '../../../../utils/hooks';
17
16
  import { TenantTabsGroups, getTenantPath } from '../../TenantPages';
18
- import { QUERY_TABLE_SETTINGS } from '../../utils/constants';
19
- import { isColumnEntityType } from '../../utils/schema';
20
- import { TOP_QUERIES_COLUMNS, TOP_QUERIES_COLUMNS_WIDTH_LS_KEY } from './getTopQueriesColumns';
17
+ import { RunningQueriesData } from './RunningQueriesData';
18
+ import { TopQueriesData } from './TopQueriesData';
21
19
  import i18n from './i18n';
22
20
  import './TopQueries.scss';
23
21
  const b = cn('kv-top-queries');
24
- export const TopQueries = ({ tenantName, type }) => {
22
+ const QueryModeIds = {
23
+ top: 'top',
24
+ running: 'running',
25
+ };
26
+ const QUERY_MODE_OPTIONS = [
27
+ {
28
+ value: QueryModeIds.top,
29
+ get content() {
30
+ return i18n('mode_top');
31
+ },
32
+ },
33
+ {
34
+ value: QueryModeIds.running,
35
+ get content() {
36
+ return i18n('mode_running');
37
+ },
38
+ },
39
+ ];
40
+ const queryModeSchema = z.nativeEnum(QueryModeIds).catch(QueryModeIds.top);
41
+ export const TopQueries = ({ tenantName }) => {
25
42
  const dispatch = useTypedDispatch();
26
43
  const location = useLocation();
27
44
  const history = useHistory();
28
- const [autoRefreshInterval] = useAutoRefreshInterval();
45
+ const [_queryMode = QueryModeIds.top, setQueryMode] = useQueryParam('queryMode', StringParam);
46
+ const queryMode = queryModeSchema.parse(_queryMode);
47
+ const isTopQueries = queryMode === QueryModeIds.top;
29
48
  const filters = useTypedSelector((state) => state.executeTopQueries);
30
- const { currentData, isFetching, error } = topQueriesApi.useGetTopQueriesQuery({
31
- database: tenantName,
32
- filters,
33
- }, { pollingInterval: autoRefreshInterval });
34
- const loading = isFetching && currentData === undefined;
35
- const { result: data } = currentData || {};
36
- const rawColumns = TOP_QUERIES_COLUMNS;
37
- const columns = rawColumns.map((column) => ({
38
- ...column,
39
- sortable: isSortableTopQueriesProperty(column.name),
40
- }));
41
- const handleRowClick = React.useCallback((row) => {
42
- const { QueryText: input } = row;
49
+ const onRowClick = React.useCallback((input) => {
43
50
  dispatch(changeUserInput({ input }));
44
51
  const queryParams = parseQuery(location);
45
52
  const queryPath = getTenantPath({
@@ -55,18 +62,6 @@ export const TopQueries = ({ tenantName, type }) => {
55
62
  const handleDateRangeChange = (value) => {
56
63
  dispatch(setTopQueriesFilters(value));
57
64
  };
58
- const renderContent = () => {
59
- if (error && !data) {
60
- return null;
61
- }
62
- if (!data || isColumnEntityType(type)) {
63
- return i18n('no-data');
64
- }
65
- return (_jsx(ResizeableDataTable, { columnsWidthLSKey: TOP_QUERIES_COLUMNS_WIDTH_LS_KEY, columns: columns, data: data, settings: QUERY_TABLE_SETTINGS, onRowClick: handleRowClick, rowClassName: () => b('row') }));
66
- };
67
- const renderControls = () => {
68
- return (_jsxs(React.Fragment, { children: [_jsx(Search, { value: filters.text, onChange: handleTextSearchUpdate, placeholder: i18n('filter.text.placeholder'), className: b('search') }), _jsx(DateRange, { from: filters.from, to: filters.to, onChange: handleDateRangeChange })] }));
69
- };
70
- return (_jsxs(TableWithControlsLayout, { children: [_jsx(TableWithControlsLayout.Controls, { children: renderControls() }), error ? _jsx(ResponseError, { error: parseQueryErrorToString(error) }) : null, _jsx(TableWithControlsLayout.Table, { loading: loading, children: renderContent() })] }));
65
+ return (_jsxs(TableWithControlsLayout, { children: [_jsxs(TableWithControlsLayout.Controls, { children: [_jsx(RadioButton, { options: QUERY_MODE_OPTIONS, value: queryMode, onUpdate: setQueryMode }), _jsx(Search, { value: filters.text, onChange: handleTextSearchUpdate, placeholder: i18n('filter.text.placeholder'), className: b('search') }), isTopQueries ? (_jsx(DateRange, { from: filters.from, to: filters.to, onChange: handleDateRangeChange })) : null] }), isTopQueries ? (_jsx(TopQueriesData, { database: tenantName, onRowClick: onRowClick })) : (_jsx(RunningQueriesData, { database: tenantName }))] }));
71
66
  };
72
67
  //# sourceMappingURL=TopQueries.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"TopQueries.js","sourceRoot":"","sources":["../../../../../src/containers/Tenant/Diagnostics/TopQueries/TopQueries.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,UAAU,EAAE,WAAW,EAAC,MAAM,kBAAkB,CAAC;AAGzD,OAAO,EAAC,SAAS,EAAC,MAAM,kCAAkC,CAAC;AAC3D,OAAO,EAAC,aAAa,EAAC,MAAM,6CAA6C,CAAC;AAC1E,OAAO,EAAC,mBAAmB,EAAC,MAAM,gEAAgE,CAAC;AACnG,OAAO,EAAC,MAAM,EAAC,MAAM,+BAA+B,CAAC;AACrD,OAAO,EAAC,uBAAuB,EAAC,MAAM,wEAAw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AC,QAAQ,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU,GAAI,CACnE,CAAC,CAAC,CAAC,CACA,KAAC,kBAAkB,IAAC,QAAQ,EAAE,UAAU,GAAI,CAC/C,IACqB,CAC7B,CAAC;AACN,CAAC,CAAC"}
@@ -0,0 +1,6 @@
1
+ interface Props {
2
+ database: string;
3
+ onRowClick: (query: string) => void;
4
+ }
5
+ export declare const TopQueriesData: ({ database, onRowClick }: Props) => import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -0,0 +1,33 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import React from 'react';
3
+ import { ResponseError } from '../../../../components/Errors/ResponseError';
4
+ import { ResizeableDataTable } from '../../../../components/ResizeableDataTable/ResizeableDataTable';
5
+ import { TableWithControlsLayout } from '../../../../components/TableWithControlsLayout/TableWithControlsLayout';
6
+ import { topQueriesApi } from '../../../../store/reducers/executeTopQueries/executeTopQueries';
7
+ import { cn } from '../../../../utils/cn';
8
+ import { isSortableTopQueriesProperty } from '../../../../utils/diagnostics';
9
+ import { useAutoRefreshInterval, useTypedSelector } from '../../../../utils/hooks';
10
+ import { parseQueryErrorToString } from '../../../../utils/query';
11
+ import { QUERY_TABLE_SETTINGS } from '../../utils/constants';
12
+ import { TOP_QUERIES_COLUMNS, TOP_QUERIES_COLUMNS_WIDTH_LS_KEY } from './getTopQueriesColumns';
13
+ import i18n from './i18n';
14
+ const b = cn('kv-top-queries');
15
+ export const TopQueriesData = ({ database, onRowClick }) => {
16
+ const [autoRefreshInterval] = useAutoRefreshInterval();
17
+ const filters = useTypedSelector((state) => state.executeTopQueries);
18
+ const { currentData, isFetching, error } = topQueriesApi.useGetTopQueriesQuery({
19
+ database,
20
+ filters,
21
+ }, { pollingInterval: autoRefreshInterval });
22
+ const { result: data } = currentData || {};
23
+ const rawColumns = TOP_QUERIES_COLUMNS;
24
+ const columns = rawColumns.map((column) => ({
25
+ ...column,
26
+ sortable: isSortableTopQueriesProperty(column.name),
27
+ }));
28
+ const handleRowClick = (row) => {
29
+ return onRowClick(row.QueryText);
30
+ };
31
+ return (_jsxs(React.Fragment, { children: [error ? _jsx(ResponseError, { error: parseQueryErrorToString(error) }) : null, _jsx(TableWithControlsLayout.Table, { loading: isFetching && currentData === undefined, children: _jsx(ResizeableDataTable, { emptyDataMessage: i18n('no-data'), columnsWidthLSKey: TOP_QUERIES_COLUMNS_WIDTH_LS_KEY, columns: columns, data: data || [], settings: QUERY_TABLE_SETTINGS, onRowClick: handleRowClick, rowClassName: () => b('row') }) })] }));
32
+ };
33
+ //# sourceMappingURL=TopQueriesData.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TopQueriesData.js","sourceRoot":"","sources":["../../../../../src/containers/Tenant/Diagnostics/TopQueries/TopQueriesData.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,aAAa,EAAC,MAAM,6CAA6C,CAAC;AAC1E,OAAO,EAAC,mBAAmB,EAAC,MAAM,gEAAgE,CAAC;AACnG,OAAO,EAAC,uBAAuB,EAAC,MAAM,wEAAwE,CAAC;AAC/G,OAAO,EAAC,aAAa,EAAC,MAAM,gEAAgE,CAAC;AAE7F,OAAO,EAAC,EAAE,EAAC,MAAM,sBAAsB,CAAC;AACxC,OAAO,EAAC,4BAA4B,EAAC,MAAM,+BAA+B,CAAC;AAC3E,OAAO,EAAC,sBAAsB,EAAE,gBAAgB,EAAC,MAAM,yBAAyB,CAAC;AACjF,OAAO,EAAC,uBAAuB,EAAC,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAC,oBAAoB,EAAC,MAAM,uBAAuB,CAAC;AAE3D,OAAO,EAAC,mBAAmB,EAAE,gCAAgC,EAAC,MAAM,wBAAwB,CAAC;AAC7F,OAAO,IAAI,MAAM,QAAQ,CAAC;AAE1B,MAAM,CAAC,GAAG,EAAE,CAAC,gBAAgB,CAAC,CAAC;AAO/B,MAAM,CAAC,MAA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C9B,UAAU,EAAE,cAAc,EAC1B,YAAY,EAAE,GAAG,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,GAC9B,GAC0B,IACnB,CACpB,CAAC;AACN,CAAC,CAAC"}
@@ -2,5 +2,7 @@ import type { Column } from '@gravity-ui/react-data-table';
2
2
  import type { KeyValueRow } from '../../../../types/api/query';
3
3
  import './TopQueries.scss';
4
4
  export declare const TOP_QUERIES_COLUMNS_WIDTH_LS_KEY = "topQueriesColumnsWidth";
5
+ export declare const RUNNING_QUERIES_COLUMNS_WIDTH_LS_KEY = "runningQueriesColumnsWidth";
5
6
  export declare const TOP_QUERIES_COLUMNS: Column<KeyValueRow>[];
6
7
  export declare const TENANT_OVERVIEW_TOP_QUERUES_COLUMNS: Column<KeyValueRow>[];
8
+ export declare const RUNNING_QUERIES_COLUMNS: Column<KeyValueRow>[];
@@ -7,9 +7,11 @@ import { TOP_QUERIES_COLUMNS_IDS } from '../../../../utils/diagnostics';
7
7
  import { generateHash } from '../../../../utils/generateHash';
8
8
  import { formatToMs, parseUsToMs } from '../../../../utils/timeParsers';
9
9
  import { MAX_QUERY_HEIGHT } from '../../utils/constants';
10
+ import i18n from './i18n';
10
11
  import './TopQueries.scss';
11
12
  const b = cn('kv-top-queries');
12
13
  export const TOP_QUERIES_COLUMNS_WIDTH_LS_KEY = 'topQueriesColumnsWidth';
14
+ export const RUNNING_QUERIES_COLUMNS_WIDTH_LS_KEY = 'runningQueriesColumnsWidth';
13
15
  const cpuTimeUsColumn = {
14
16
  name: TOP_QUERIES_COLUMNS_IDS.CPUTimeUs,
15
17
  sortAccessor: (row) => Number(row.CPUTimeUs),
@@ -75,6 +77,24 @@ const durationColumn = {
75
77
  align: DataTable.RIGHT,
76
78
  width: 150,
77
79
  };
80
+ const queryStartColumn = {
81
+ name: 'QueryStartAt',
82
+ get header() {
83
+ return i18n('col_start-time');
84
+ },
85
+ render: ({ row }) => formatDateTime(new Date(row.QueryStartAt).getTime()),
86
+ sortable: true,
87
+ resizeable: false,
88
+ defaultOrder: DataTable.DESCENDING,
89
+ };
90
+ const applicationColumn = {
91
+ name: 'ApplicationName',
92
+ get header() {
93
+ return i18n('col_app');
94
+ },
95
+ render: ({ row }) => _jsx("div", { className: b('user-sid'), children: row.ApplicationName || '–' }),
96
+ sortable: true,
97
+ };
78
98
  export const TOP_QUERIES_COLUMNS = [
79
99
  cpuTimeUsColumn,
80
100
  queryTextColumn,
@@ -89,4 +109,10 @@ export const TENANT_OVERVIEW_TOP_QUERUES_COLUMNS = [
89
109
  oneLineQueryTextColumn,
90
110
  cpuTimeUsColumn,
91
111
  ];
112
+ export const RUNNING_QUERIES_COLUMNS = [
113
+ userSIDColumn,
114
+ queryStartColumn,
115
+ queryTextColumn,
116
+ applicationColumn,
117
+ ];
92
118
  //# sourceMappingURL=getTopQueriesColumns.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"getTopQueriesColumns.js","sourceRoot":"","sources":["../../../../../src/containers/Tenant/Diagnostics/TopQueries/getTopQueriesColumns.tsx"],"names":[],"mappings":";AAAA,OAAO,SAAS,MAAM,8BAA8B,CAAC;AAGrD,OAAO,EACH,uBAAuB,EACvB,cAAc,GACjB,MAAM,sDAAsD,CAAC;AAE9D,OAAO,EAAC,EAAE,EAAC,MAAM,sBAAsB,CAAC;AACxC,OAAO,EAAC,cAAc,EAAE,YAAY,EAAC,MAAM,iDAAiD,CAAC;AAC7F,OAAO,EAAC,uBAAuB,EAAC,MAAM,+BAA+B,CAAC;AACtE,OAAO,EAAC,YAAY,EAAC,MAAM,gCAAgC,CAAC;AAC5D,OAAO,EAAC,UAAU,EAAE,WAAW,EAAC,MAAM,+BAA+B,CAAC;AACtE,OAAO,EAAC,gBAAgB,EAAC,MAAM,uBAAuB,CAAC;AAEvD,OAAO,mBAAmB,CAAC;AAE3B,MAAM,CAAC,GAAG,EAAE,CAAC,gBAAgB,CAAC,CAAC;AAE/B,MAAM,CAAC,MAAM,gCAAgC,GAAG,wBAAwB,CAAC;AAEzE,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BAAuB,CAAC,SAAS;IACvC,MAAM,EAAE,CAAC,EAAC,GAAG,EAAC,EAAE,EAAE,CAAC,YAAY,CAAC,MAAM,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IACtD,KAAK,EAAE,GAAG;IACV,QAAQ,EAAE,KAAK;CAClB,CAAC;AAEF,MAAM,cAAc,GAAwB;IACxC,IAAI,EAAE,uBAAuB,CAAC,QAAQ;IACtC,MAAM,EAAE,UAAU;IAClB,MAAM,EAAE,CAAC,EAAC,GAAG,EAAC,EAAE,EAAE,WAAC,OAAA,UAAU,CAAC,WAAW,CAAC,MAAA,GAAG,CAAC,QAAQ,mCAAI,SAAS,CAAC,CAAC,CAAA,EAAA;IACrE,YAAY,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,MAAM,CAAC,GAAG,CAAC,QAAQ,CAAC;IAC3C,KAAK,EAAE,SAAS,CAAC,KAAK;IACtB,KAAK,EAAE,GAAG;CACb,CAAC;AAEF,MAAM,CAAC,MAAM,mBAAmB,GAAG;IAC/B,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"}
1
+ {"version":3,"file":"getTopQueriesColumns.js","sourceRoot":"","sources":["../../../../../src/containers/Tenant/Diagnostics/TopQueries/getTopQueriesColumns.tsx"],"names":[],"mappings":";AAAA,OAAO,SAAS,MAAM,8BAA8B,CAAC;AAGrD,OAAO,EACH,uBAAuB,EACvB,cAAc,GACjB,MAAM,sDAAsD,CAAC;AAE9D,OAAO,EAAC,EAAE,EAAC,MAAM,sBAAsB,CAAC;AACxC,OAAO,EAAC,cAAc,EAAE,YAAY,EAAC,MAAM,iDAAiD,CAAC;AAC7F,OAAO,EAAC,uBAAuB,EAAC,MAAM,+BAA+B,CAAC;AACtE,OAAO,EAAC,YAAY,EAAC,MA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ACjF,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,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,4 +1,10 @@
1
1
  {
2
2
  "no-data": "No data",
3
- "filter.text.placeholder": "Search by query text..."
3
+ "filter.text.placeholder": "Search by query text...",
4
+ "mode_top": "Top",
5
+ "mode_running": "Running",
6
+ "col_user": "User",
7
+ "col_start-time": "Start time",
8
+ "col_query-text": "Query text",
9
+ "col_app": "Application"
4
10
  }
@@ -1,2 +1,2 @@
1
- declare const _default: (key: "no-data" | "filter.text.placeholder", params?: import("@gravity-ui/i18n").Params) => string;
1
+ declare const _default: (key: "no-data" | "filter.text.placeholder" | "mode_top" | "mode_running" | "col_user" | "col_start-time" | "col_query-text" | "col_app", params?: import("@gravity-ui/i18n").Params) => string;
2
2
  export default _default;
@@ -1,6 +1,5 @@
1
1
  import { registerKeysets } from '../../../../../utils/i18n';
2
2
  import en from './en.json';
3
- import ru from './ru.json';
4
3
  const COMPONENT = 'ydb-diagnostics-top-queries';
5
- export default registerKeysets(COMPONENT, { ru, en });
4
+ export default registerKeysets(COMPONENT, { en });
6
5
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/containers/Tenant/Diagnostics/TopQueries/i18n/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,eAAe,EAAC,MAAM,2BAA2B,CAAC;AAE1D,OAAO,EAAE,MAAM,WAAW,CAAC;AAC3B,OAAO,EAAE,MAAM,WAAW,CAAC;AAE3B,MAAM,SAAS,GAAG,6BAA6B,CAAC;AAEhD,eAAe,eAAe,CAAC,SAAS,EAAE,EAAC,EAAE,EAAE,EAAE,EAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/containers/Tenant/Diagnostics/TopQueries/i18n/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,eAAe,EAAC,MAAM,2BAA2B,CAAC;AAE1D,OAAO,EAAE,MAAM,WAAW,CAAC;AAE3B,MAAM,SAAS,GAAG,6BAA6B,CAAC;AAEhD,eAAe,eAAe,CAAC,SAAS,EAAE,EAAC,EAAE,EAAC,CAAC,CAAC"}