ydb-embedded-ui 6.11.0 → 6.13.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/components/AutoRefreshControl/i18n/index.d.ts +1 -1
- package/dist/components/ButtonWithConfirmDialog/ButtonWithConfirmDialog.d.ts +3 -2
- package/dist/components/ButtonWithConfirmDialog/ButtonWithConfirmDialog.js +9 -5
- package/dist/components/CriticalActionDialog/CriticalActionDialog.d.ts +5 -3
- package/dist/components/CriticalActionDialog/CriticalActionDialog.js +8 -7
- package/dist/components/CriticalActionDialog/CriticalActionDialog.scss +1 -1
- package/dist/components/CriticalActionDialog/i18n/en.json +1 -0
- package/dist/components/CriticalActionDialog/i18n/index.d.ts +1 -1
- package/dist/components/DateRange/DateRange.d.ts +4 -4
- package/dist/components/DateRange/DateRange.js +23 -26
- package/dist/components/DateRange/DateRange.scss +14 -13
- package/dist/components/DateRange/__test__/fromDateRangeValues.test.js +80 -0
- package/dist/components/DateRange/__test__/getdatePickerSize.test.d.ts +1 -0
- package/dist/components/DateRange/__test__/getdatePickerSize.test.js +56 -0
- package/dist/components/DateRange/__test__/toDateRangeValues.test.d.ts +1 -0
- package/dist/components/DateRange/__test__/toDateRangeValues.test.js +80 -0
- package/dist/components/DateRange/i18n/en.json +4 -0
- package/dist/components/DateRange/i18n/index.d.ts +2 -0
- package/dist/components/DateRange/i18n/index.js +5 -0
- package/dist/components/DateRange/i18n/ru.json +4 -0
- package/dist/components/DateRange/utils.d.ts +5 -0
- package/dist/components/DateRange/utils.js +41 -0
- package/dist/components/DeveloperUILinkButton/DeveloperUILinkButton.d.ts +8 -0
- package/dist/components/{DeveloperUiLink/DeveloperUiLink.js → DeveloperUILinkButton/DeveloperUILinkButton.js} +3 -3
- package/dist/components/{DeveloperUiLink/DeveloperUiLink.scss → DeveloperUILinkButton/DeveloperUILinkButton.scss} +3 -2
- package/dist/components/DiskStateProgressBar/DiskStateProgressBar.d.ts +6 -1
- package/dist/components/DiskStateProgressBar/DiskStateProgressBar.js +22 -12
- package/dist/components/DiskStateProgressBar/DiskStateProgressBar.scss +45 -45
- package/dist/components/EntityStatus/EntityStatus.js +1 -1
- package/dist/components/EntityStatus/EntityStatus.scss +6 -2
- package/dist/components/Errors/PageError/PageError.d.ts +11 -0
- package/dist/components/Errors/PageError/PageError.js +19 -0
- package/dist/components/Errors/i18n/en.json +2 -1
- package/dist/components/Errors/i18n/index.d.ts +1 -1
- package/dist/components/Errors/i18n/ru.json +2 -1
- package/dist/components/Fullscreen/Fullscreen.d.ts +1 -1
- package/dist/components/Fullscreen/Fullscreen.js +34 -27
- package/dist/components/Fullscreen/Fullscreen.scss +16 -8
- package/dist/components/Graph/Graph.d.ts +13 -0
- package/dist/components/Graph/Graph.js +41 -0
- package/dist/components/LabelWithPopover/LabelWithPopover.d.ts +4 -1
- package/dist/components/LabelWithPopover/LabelWithPopover.js +1 -1
- package/dist/components/Loader/Loader.d.ts +2 -1
- package/dist/components/Loader/Loader.js +6 -1
- package/dist/components/LoaderWrapper/LoaderWrapper.d.ts +10 -0
- package/dist/components/LoaderWrapper/LoaderWrapper.js +8 -0
- package/dist/components/MetricChart/reducer.d.ts +2 -2
- package/dist/components/MonacoEditor/MonacoEditor.js +0 -2
- package/dist/components/NodeHostWrapper/NodeHostWrapper.d.ts +0 -1
- package/dist/components/NodeHostWrapper/NodeHostWrapper.js +3 -6
- package/dist/components/PDiskInfo/PDiskInfo.d.ts +8 -5
- package/dist/components/PDiskInfo/PDiskInfo.js +76 -26
- package/dist/components/PDiskInfo/PDiskInfo.scss +15 -1
- package/dist/components/PDiskInfo/i18n/en.json +11 -5
- package/dist/components/PDiskInfo/i18n/index.d.ts +1 -1
- package/dist/components/PDiskPopup/PDiskPopup.js +8 -2
- package/dist/components/ProgressViewer/ProgressViewer.js +3 -0
- package/dist/components/QueryExecutionStatus/QueryExecutionStatus.js +13 -3
- package/dist/components/QueryExecutionStatus/QueryExecutionStatus.scss +4 -0
- package/dist/components/QuerySettingsDescription/QuerySettingsDescription.d.ts +7 -0
- package/dist/components/QuerySettingsDescription/QuerySettingsDescription.js +8 -0
- package/dist/components/QuerySettingsDescription/QuerySettingsDescription.scss +8 -0
- package/dist/components/QuerySettingsDescription/index.d.ts +1 -0
- package/dist/components/QuerySettingsDescription/index.js +1 -0
- package/dist/components/VDisk/VDisk.js +3 -4
- package/dist/components/VDiskInfo/VDiskInfo.d.ts +4 -3
- package/dist/components/VDiskInfo/VDiskInfo.js +12 -5
- package/dist/components/VDiskInfo/VDiskInfo.scss +7 -1
- package/dist/components/VDiskInfo/i18n/en.json +2 -1
- package/dist/components/VDiskInfo/i18n/index.d.ts +1 -1
- package/dist/containers/App/Content.js +15 -19
- package/dist/containers/AsideNavigation/AsideNavigation.js +2 -1
- package/dist/containers/AsideNavigation/YdbInternalUser/YdbInternalUser.js +4 -4
- package/dist/containers/Authentication/Authentication.js +8 -10
- package/dist/containers/Authentication/utils.d.ts +8 -0
- package/dist/containers/Authentication/utils.js +15 -0
- package/dist/containers/Cluster/Cluster.scss +1 -4
- package/dist/containers/Cluster/ClusterInfo/ClusterInfo.js +6 -6
- package/dist/containers/Cluster/ClusterInfo/ClusterInfo.scss +1 -1
- package/dist/containers/Clusters/constants.d.ts +1 -1
- package/dist/containers/Heatmap/Heatmap.d.ts +2 -1
- package/dist/containers/Heatmap/Heatmap.js +7 -6
- package/dist/containers/Node/Node.js +5 -7
- package/dist/containers/Node/Node.scss +5 -4
- package/dist/containers/Node/NodeStructure/NodeStructure.js +4 -4
- package/dist/containers/Node/NodeStructure/NodeStructure.scss +4 -20
- package/dist/containers/Node/NodeStructure/Pdisk.js +3 -3
- package/dist/containers/Nodes/Nodes.js +6 -8
- package/dist/containers/Nodes/getNodesColumns.js +6 -21
- package/dist/containers/PDiskPage/PDiskGroups/PDiskGroups.d.ts +6 -0
- package/dist/containers/PDiskPage/PDiskGroups/PDiskGroups.js +24 -0
- package/dist/containers/PDiskPage/PDiskPage.js +79 -30
- package/dist/containers/PDiskPage/PDiskPage.scss +8 -5
- package/dist/containers/PDiskPage/PDiskSpaceDistribution/PDiskSpaceDistribution.d.ts +7 -0
- package/dist/containers/PDiskPage/PDiskSpaceDistribution/PDiskSpaceDistribution.js +93 -0
- package/dist/containers/PDiskPage/PDiskSpaceDistribution/PDiskSpaceDistribution.scss +52 -0
- package/dist/containers/PDiskPage/PDiskSpaceDistribution/utils.d.ts +4 -0
- package/dist/containers/PDiskPage/PDiskSpaceDistribution/utils.js +9 -0
- package/dist/containers/PDiskPage/i18n/en.json +9 -1
- package/dist/containers/PDiskPage/i18n/index.d.ts +1 -1
- package/dist/containers/Storage/PDisk/PDisk.js +3 -4
- package/dist/containers/Storage/Storage.js +4 -6
- package/dist/containers/Storage/StorageGroups/getStorageGroupsColumns.js +16 -6
- package/dist/containers/Tablet/Tablet.js +2 -2
- package/dist/containers/Tablet/TabletControls/TabletControls.js +2 -1
- package/dist/containers/Tablets/Tablets.js +14 -13
- package/dist/containers/Tenant/Acl/Acl.d.ts +2 -1
- package/dist/containers/Tenant/Acl/Acl.js +10 -8
- package/dist/containers/Tenant/Acl/Acl.scss +8 -8
- package/dist/containers/Tenant/Acl/i18n/en.json +6 -0
- package/dist/containers/Tenant/Acl/i18n/index.d.ts +2 -0
- package/dist/containers/Tenant/Acl/i18n/index.js +4 -0
- package/dist/containers/Tenant/Diagnostics/Consumers/Consumers.js +2 -5
- package/dist/containers/Tenant/Diagnostics/Describe/Describe.d.ts +2 -1
- package/dist/containers/Tenant/Diagnostics/Describe/Describe.js +14 -17
- package/dist/containers/Tenant/Diagnostics/DetailedOverview/DetailedOverview.js +1 -1
- package/dist/containers/Tenant/Diagnostics/DetailedOverview/DetailedOverview.scss +1 -0
- package/dist/containers/Tenant/Diagnostics/Diagnostics.js +3 -3
- package/dist/containers/Tenant/Diagnostics/Diagnostics.scss +3 -1
- package/dist/containers/Tenant/Diagnostics/HotKeys/HotKeys.d.ts +2 -1
- package/dist/containers/Tenant/Diagnostics/HotKeys/HotKeys.js +3 -3
- package/dist/containers/Tenant/Diagnostics/Network/Network.js +8 -11
- package/dist/containers/Tenant/Diagnostics/Network/Network.scss +1 -0
- package/dist/containers/Tenant/Diagnostics/Overview/Overview.d.ts +2 -2
- package/dist/containers/Tenant/Diagnostics/Overview/Overview.js +8 -10
- package/dist/containers/Tenant/Diagnostics/Overview/TableInfo/i18n/en.json +14 -1
- package/dist/containers/Tenant/Diagnostics/Overview/TableInfo/i18n/index.d.ts +1 -1
- package/dist/containers/Tenant/Diagnostics/Overview/TableInfo/i18n/index.js +1 -2
- package/dist/containers/Tenant/Diagnostics/Overview/TableInfo/prepareTableInfo.js +36 -17
- package/dist/containers/Tenant/Diagnostics/Overview/TopicStats/TopicStats.js +3 -4
- package/dist/containers/Tenant/Diagnostics/Partitions/Partitions.js +1 -4
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopQueries.js +8 -5
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantOverview.js +1 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantOverviewTableLayout.js +3 -3
- package/dist/containers/Tenant/Diagnostics/TenantOverview/getSectionTitle.d.ts +2 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/getSectionTitle.js +2 -2
- package/dist/containers/Tenant/Diagnostics/TenantOverview/i18n/en.json +3 -2
- package/dist/containers/Tenant/Diagnostics/TenantOverview/i18n/index.d.ts +1 -1
- package/dist/containers/Tenant/Diagnostics/TopQueries/TopQueries.js +6 -5
- package/dist/containers/Tenant/Diagnostics/TopQueries/getTopQueriesColumns.d.ts +2 -2
- package/dist/containers/Tenant/Diagnostics/TopQueries/getTopQueriesColumns.js +14 -14
- package/dist/containers/Tenant/Diagnostics/TopShards/TopShards.js +7 -6
- package/dist/containers/Tenant/Diagnostics/TopShards/getTopShardsColumns.js +4 -4
- package/dist/containers/Tenant/ObjectSummary/ObjectSummary.js +31 -18
- package/dist/containers/Tenant/Query/ExecuteResult/ExecuteResult.d.ts +2 -2
- package/dist/containers/Tenant/Query/ExecuteResult/ExecuteResult.js +56 -20
- package/dist/containers/Tenant/Query/ExecuteResult/ExecuteResult.scss +10 -6
- package/dist/containers/Tenant/Query/ExecuteResult/i18n/en.json +7 -0
- package/dist/containers/Tenant/Query/ExecuteResult/i18n/index.d.ts +2 -0
- package/dist/containers/Tenant/Query/ExecuteResult/i18n/index.js +4 -0
- package/dist/containers/Tenant/Query/ExecuteResult/utils.d.ts +18 -0
- package/dist/containers/Tenant/Query/ExecuteResult/utils.js +36 -0
- package/dist/containers/Tenant/Query/ExplainResult/ExplainResult.d.ts +23 -1
- package/dist/containers/Tenant/Query/ExplainResult/ExplainResult.js +56 -111
- package/dist/containers/Tenant/Query/ExplainResult/ExplainResult.scss +1 -30
- package/dist/containers/Tenant/Query/ExplainResult/components/Ast/Ast.d.ts +7 -0
- package/dist/containers/Tenant/Query/ExplainResult/components/Ast/Ast.js +18 -0
- package/dist/containers/Tenant/Query/ExplainResult/components/Ast/Ast.scss +8 -0
- package/dist/containers/Tenant/Query/ExplainResult/components/Graph/Graph.d.ts +8 -0
- package/dist/containers/Tenant/Query/ExplainResult/components/Graph/Graph.js +14 -0
- package/dist/containers/Tenant/Query/ExplainResult/components/Graph/Graph.scss +14 -0
- package/dist/containers/Tenant/Query/ExplainResult/components/SimplifiedPlan/MetricsCell.d.ts +6 -0
- package/dist/containers/Tenant/Query/ExplainResult/components/SimplifiedPlan/MetricsCell.js +11 -0
- package/dist/containers/Tenant/Query/ExplainResult/components/SimplifiedPlan/OperationCell.d.ts +13 -0
- package/dist/containers/Tenant/Query/ExplainResult/components/SimplifiedPlan/OperationCell.js +48 -0
- package/dist/containers/Tenant/Query/ExplainResult/components/SimplifiedPlan/OperationParams.d.ts +6 -0
- package/dist/containers/Tenant/Query/ExplainResult/components/SimplifiedPlan/OperationParams.js +66 -0
- package/dist/containers/Tenant/Query/ExplainResult/components/SimplifiedPlan/SimplifiedPlan.d.ts +7 -0
- package/dist/containers/Tenant/Query/ExplainResult/components/SimplifiedPlan/SimplifiedPlan.js +100 -0
- package/dist/containers/Tenant/Query/ExplainResult/components/SimplifiedPlan/SimplifiedPlan.scss +128 -0
- package/dist/containers/Tenant/Query/ExplainResult/components/SimplifiedPlan/types.d.ts +5 -0
- package/dist/containers/Tenant/Query/ExplainResult/components/SimplifiedPlan/types.js +1 -0
- package/dist/containers/Tenant/Query/ExplainResult/components/SimplifiedPlan/utils.d.ts +5 -0
- package/dist/containers/Tenant/Query/ExplainResult/components/SimplifiedPlan/utils.js +59 -0
- package/dist/containers/Tenant/Query/ExplainResult/components/TextExplain/TextExplain.d.ts +8 -0
- package/dist/containers/Tenant/Query/ExplainResult/components/TextExplain/TextExplain.js +11 -0
- package/dist/containers/Tenant/Query/ExplainResult/components/TextExplain/TextExplain.scss +14 -0
- package/dist/containers/Tenant/Query/ExplainResult/i18n/en.json +8 -0
- package/dist/containers/Tenant/Query/ExplainResult/i18n/index.d.ts +2 -0
- package/dist/containers/Tenant/Query/ExplainResult/i18n/index.js +4 -0
- package/dist/containers/Tenant/Query/Preview/Preview.js +2 -3
- package/dist/containers/Tenant/Query/QueriesHistory/QueriesHistory.js +1 -19
- package/dist/containers/Tenant/Query/QueryDuration/QueryDuration.js +1 -1
- package/dist/containers/Tenant/Query/QueryDuration/QueryDuration.scss +11 -0
- package/dist/containers/Tenant/Query/QueryEditor/QueryEditor.d.ts +1 -1
- package/dist/containers/Tenant/Query/QueryEditor/QueryEditor.js +96 -95
- package/dist/containers/Tenant/Query/QueryEditorControls/QueryEditorControls.d.ts +5 -6
- package/dist/containers/Tenant/Query/QueryEditorControls/QueryEditorControls.js +18 -47
- package/dist/containers/Tenant/Query/QueryEditorControls/utils/getChangedQueryExecutionSettings.d.ts +2 -0
- package/dist/containers/Tenant/Query/QueryEditorControls/utils/getChangedQueryExecutionSettings.js +5 -0
- package/dist/containers/Tenant/Query/QueryEditorControls/utils/getChangedQueryExecutionSettings.test.d.ts +1 -0
- package/dist/containers/Tenant/Query/QueryEditorControls/utils/getChangedQueryExecutionSettings.test.js +42 -0
- package/dist/containers/Tenant/Query/QueryEditorControls/utils/getChangedQueryExecutionSettingsDescription.d.ts +5 -0
- package/dist/containers/Tenant/Query/QueryEditorControls/utils/getChangedQueryExecutionSettingsDescription.js +19 -0
- package/dist/containers/Tenant/Query/QueryEditorControls/utils/getChangedQueryExecutionSettingsDescription.test.d.ts +1 -0
- package/dist/containers/Tenant/Query/QueryEditorControls/utils/getChangedQueryExecutionSettingsDescription.test.js +56 -0
- package/dist/containers/Tenant/Query/QuerySettingsBanner/QuerySettingsBanner.d.ts +2 -0
- package/dist/containers/Tenant/Query/QuerySettingsBanner/QuerySettingsBanner.js +12 -0
- package/dist/containers/Tenant/Query/QuerySettingsBanner/QuerySettingsBanner.scss +3 -0
- package/dist/containers/Tenant/Query/QuerySettingsDialog/QuerySettingsDialog.d.ts +2 -0
- package/dist/containers/Tenant/Query/QuerySettingsDialog/QuerySettingsDialog.js +35 -0
- package/dist/containers/Tenant/Query/QuerySettingsDialog/QuerySettingsDialog.scss +63 -0
- package/dist/containers/Tenant/Query/QuerySettingsDialog/QuerySettingsSelect.d.ts +15 -0
- package/dist/containers/Tenant/Query/QuerySettingsDialog/QuerySettingsSelect.js +14 -0
- package/dist/containers/Tenant/Query/QuerySettingsDialog/QuerySettingsSelect.scss +19 -0
- package/dist/containers/Tenant/Query/QuerySettingsDialog/constants.d.ts +215 -0
- package/dist/containers/Tenant/Query/QuerySettingsDialog/constants.js +131 -0
- package/dist/containers/Tenant/Query/QuerySettingsDialog/i18n/en.json +13 -0
- package/dist/containers/Tenant/Query/QuerySettingsDialog/i18n/index.d.ts +2 -0
- package/dist/containers/Tenant/Query/QuerySettingsDialog/i18n/index.js +5 -0
- package/dist/containers/Tenant/Query/QuerySettingsDialog/i18n/ru.json +13 -0
- package/dist/containers/Tenant/Query/i18n/en.json +17 -1
- package/dist/containers/Tenant/Query/i18n/index.d.ts +1 -1
- package/dist/containers/Tenant/Schema/CreateDirectoryDialog/CreateDirectoryDialog.d.ts +3 -2
- package/dist/containers/Tenant/Schema/CreateDirectoryDialog/CreateDirectoryDialog.js +2 -2
- package/dist/containers/Tenant/Schema/SchemaTree/SchemaTree.js +8 -8
- package/dist/containers/Tenant/Schema/SchemaViewer/SchemaViewer.js +6 -3
- package/dist/containers/Tenant/Schema/SchemaViewer/columns.d.ts +2 -1
- package/dist/containers/Tenant/Schema/SchemaViewer/columns.js +13 -1
- package/dist/containers/Tenant/Schema/SchemaViewer/i18n/en.json +1 -0
- package/dist/containers/Tenant/Schema/SchemaViewer/i18n/index.d.ts +1 -1
- package/dist/containers/Tenant/Schema/SchemaViewer/prepareData.js +3 -2
- package/dist/containers/Tenant/Schema/SchemaViewer/types.d.ts +1 -0
- package/dist/containers/Tenant/Tenant.js +4 -8
- package/dist/containers/Tenant/TenantPages.d.ts +12 -1
- package/dist/containers/Tenant/TenantPages.js +1 -1
- package/dist/containers/Tenant/i18n/en.json +2 -2
- package/dist/containers/Tenant/i18n/index.d.ts +1 -1
- package/dist/containers/Tenant/utils/schema.js +1 -1
- package/dist/containers/Tenant/utils/schemaActions.d.ts +2 -2
- package/dist/containers/Tenant/utils/schemaActions.js +2 -2
- package/dist/containers/Tenants/Tenants.js +5 -8
- package/dist/containers/Tenants/Tenants.scss +0 -4
- package/dist/containers/UserSettings/i18n/en.json +3 -3
- package/dist/containers/UserSettings/i18n/index.d.ts +1 -1
- package/dist/containers/UserSettings/settings.d.ts +2 -2
- package/dist/containers/UserSettings/settings.js +18 -19
- package/dist/containers/VDiskPage/VDiskPage.js +27 -13
- package/dist/containers/VDiskPage/i18n/en.json +1 -0
- package/dist/containers/VDiskPage/i18n/index.d.ts +1 -1
- package/dist/routes.js +2 -2
- package/dist/services/api.d.ts +59 -28
- package/dist/services/api.js +74 -98
- package/dist/services/settings.d.ts +11 -3
- package/dist/services/settings.js +7 -5
- package/dist/store/configureStore.d.ts +7 -7
- package/dist/store/defaultStore.d.ts +3 -3
- package/dist/store/reducers/api.d.ts +1 -1
- package/dist/store/reducers/api.js +1 -1
- package/dist/store/reducers/authentication/authentication.d.ts +37 -24
- package/dist/store/reducers/authentication/authentication.js +77 -57
- package/dist/store/reducers/authentication/types.d.ts +0 -8
- package/dist/store/reducers/capabilities/capabilities.d.ts +106 -0
- package/dist/store/reducers/capabilities/capabilities.js +22 -0
- package/dist/store/reducers/capabilities/hooks.d.ts +2 -0
- package/dist/store/reducers/capabilities/hooks.js +13 -0
- package/dist/store/reducers/cluster/cluster.d.ts +2 -2
- package/dist/store/reducers/clusterNodes/clusterNodes.d.ts +2 -2
- package/dist/store/reducers/clusters/clusters.d.ts +2 -2
- package/dist/store/reducers/describe.d.ts +5 -2
- package/dist/store/reducers/describe.js +2 -2
- package/dist/store/reducers/executeQuery.d.ts +7 -14
- package/dist/store/reducers/executeQuery.js +19 -14
- package/dist/store/reducers/executeTopQueries/executeTopQueries.d.ts +2 -2
- package/dist/store/reducers/executeTopQueries/executeTopQueries.js +19 -14
- package/dist/store/reducers/executeTopQueries/types.d.ts +2 -2
- package/dist/store/reducers/executeTopQueries/utils.js +11 -7
- package/dist/store/reducers/explainQuery/explainQuery.d.ts +5 -4
- package/dist/store/reducers/explainQuery/explainQuery.js +20 -5
- package/dist/store/reducers/explainQuery/types.d.ts +13 -1
- package/dist/store/reducers/explainQuery/utils.js +7 -2
- package/dist/store/reducers/healthcheckInfo/healthcheckInfo.d.ts +58 -58
- package/dist/store/reducers/heatmap.d.ts +2 -2
- package/dist/store/reducers/heatmap.js +3 -3
- package/dist/store/reducers/hotKeys/hotKeys.d.ts +3 -2
- package/dist/store/reducers/hotKeys/hotKeys.js +3 -3
- package/dist/store/reducers/index.d.ts +6 -6
- package/dist/store/reducers/network/network.d.ts +2 -2
- package/dist/store/reducers/network/network.js +1 -1
- package/dist/store/reducers/node/node.d.ts +3 -3
- package/dist/store/reducers/node/selectors.d.ts +1 -1
- package/dist/store/reducers/node/selectors.js +2 -2
- package/dist/store/reducers/nodes/nodes.d.ts +3 -3
- package/dist/store/reducers/nodesList.d.ts +3 -3
- package/dist/store/reducers/overview/overview.d.ts +5 -2
- package/dist/store/reducers/overview/overview.js +2 -2
- package/dist/store/reducers/partitions/partitions.d.ts +2 -2
- package/dist/store/reducers/pdisk/pdisk.d.ts +3 -3
- package/dist/store/reducers/pdisk/pdisk.js +15 -2
- package/dist/store/reducers/pdisk/types.d.ts +17 -1
- package/dist/store/reducers/pdisk/utils.d.ts +2 -2
- package/dist/store/reducers/pdisk/utils.js +68 -8
- package/dist/store/reducers/preview.d.ts +2 -2
- package/dist/store/reducers/preview.js +1 -1
- package/dist/store/reducers/queryActions/types.d.ts +1 -1
- package/dist/store/reducers/schema/schema.d.ts +28 -10
- package/dist/store/reducers/schema/schema.js +20 -14
- package/dist/store/reducers/schemaAcl/schemaAcl.d.ts +4 -2
- package/dist/store/reducers/schemaAcl/schemaAcl.js +9 -3
- package/dist/store/reducers/shardsWorkload/shardsWorkload.d.ts +2 -2
- package/dist/store/reducers/shardsWorkload/shardsWorkload.js +22 -6
- package/dist/store/reducers/shardsWorkload/types.d.ts +2 -2
- package/dist/store/reducers/storage/storage.d.ts +3 -3
- package/dist/store/reducers/tablet.d.ts +3 -3
- package/dist/store/reducers/tablets.d.ts +13 -13
- package/dist/store/reducers/tabletsFilters.d.ts +1 -1
- package/dist/store/reducers/tenant/tenant.d.ts +2 -2
- package/dist/store/reducers/tenantOverview/executeTopTables/executeTopTables.d.ts +2 -2
- package/dist/store/reducers/tenantOverview/executeTopTables/executeTopTables.js +1 -1
- package/dist/store/reducers/tenantOverview/topNodes/topNodes.d.ts +2 -2
- package/dist/store/reducers/tenantOverview/topShards/tenantOverviewTopShards.d.ts +2 -2
- package/dist/store/reducers/tenantOverview/topShards/tenantOverviewTopShards.js +1 -1
- package/dist/store/reducers/tenantOverview/topStorageGroups/topStorageGroups.d.ts +2 -2
- package/dist/store/reducers/tenants/selectors.d.ts +31 -30
- package/dist/store/reducers/tenants/selectors.js +8 -2
- package/dist/store/reducers/tenants/tenants.d.ts +2 -2
- package/dist/store/reducers/topic.d.ts +44 -44
- package/dist/store/reducers/vdisk/vdisk.d.ts +2 -2
- package/dist/store/reducers/vdisk/vdisk.js +1 -1
- package/dist/store/reducers/viewSchema/viewSchema.d.ts +2 -2
- package/dist/store/reducers/viewSchema/viewSchema.js +1 -1
- package/dist/store/state-url-mapping.d.ts +70 -0
- package/dist/store/state-url-mapping.js +1 -5
- package/dist/styles/mixins.scss +13 -0
- package/dist/types/api/acl.d.ts +1 -0
- package/dist/types/api/capabilities.d.ts +7 -0
- package/dist/types/api/capabilities.js +1 -0
- package/dist/types/api/modifyDisk.d.ts +8 -0
- package/dist/types/api/modifyDisk.js +1 -0
- package/dist/types/api/pdisk.d.ts +65 -2
- package/dist/types/api/query.d.ts +39 -3
- package/dist/types/api/query.js +9 -1
- package/dist/types/api/schema/shared.d.ts +8 -0
- package/dist/types/api/vdisk.d.ts +33 -2
- package/dist/types/common.d.ts +3 -0
- package/dist/types/store/heatmap.d.ts +1 -0
- package/dist/types/store/query.d.ts +11 -1
- package/dist/utils/__test__/prepareQueryExplain.test.d.ts +1 -0
- package/dist/utils/__test__/prepareQueryExplain.test.js +115 -0
- package/dist/utils/constants.d.ts +13 -3
- package/dist/utils/constants.js +15 -3
- package/dist/utils/dataFormatters/dataFormatters.d.ts +0 -5
- package/dist/utils/dataFormatters/dataFormatters.js +3 -12
- package/dist/utils/developerUI/developerUI.d.ts +1 -0
- package/dist/utils/developerUI/developerUI.js +3 -0
- package/dist/utils/disks/getPDiskType.d.ts +3 -3
- package/dist/utils/disks/helpers.d.ts +1 -0
- package/dist/utils/disks/helpers.js +3 -0
- package/dist/utils/disks/prepareDisks.d.ts +2 -2
- package/dist/utils/disks/prepareDisks.js +17 -22
- package/dist/utils/disks/types.d.ts +7 -5
- package/dist/utils/hooks/index.d.ts +2 -1
- package/dist/utils/hooks/index.js +2 -1
- package/dist/utils/hooks/useChangedQuerySettings.d.ts +10 -0
- package/dist/utils/hooks/useChangedQuerySettings.js +46 -0
- package/dist/utils/hooks/useDelayed.d.ts +1 -0
- package/dist/utils/hooks/useDelayed.js +13 -0
- package/dist/utils/hooks/useEventHandler.d.ts +6 -0
- package/dist/utils/hooks/useEventHandler.js +17 -0
- package/dist/utils/hooks/useLastQueryExecutionSettings.d.ts +2 -0
- package/dist/utils/hooks/useLastQueryExecutionSettings.js +5 -0
- package/dist/utils/hooks/useQueryExecutionSettings.d.ts +8 -0
- package/dist/utils/hooks/useQueryExecutionSettings.js +15 -0
- package/dist/utils/monaco/constats.d.ts +2 -0
- package/dist/utils/monaco/constats.js +2 -0
- package/dist/utils/monaco/yql/constants.d.ts +0 -1
- package/dist/utils/monaco/yql/constants.js +0 -1
- package/dist/utils/monaco/yql/yql.completionItemProvider.js +2 -2
- package/dist/utils/prepareQueryExplain.d.ts +3 -1
- package/dist/utils/prepareQueryExplain.js +54 -2
- package/dist/utils/query.d.ts +24 -1
- package/dist/utils/query.js +41 -0
- package/dist/utils/query.test.js +3 -0
- package/dist/utils/utils.d.ts +8 -7
- package/dist/utils/utils.js +23 -11
- package/package.json +8 -2
- package/dist/components/DeveloperUiLink/DeveloperUiLink.d.ts +0 -8
- package/dist/components/NodeHostWrapper/NodeHostWrapper.scss +0 -15
- package/dist/containers/Node/NodeStructure/Vdisk.d.ts +0 -6
- package/dist/containers/Node/NodeStructure/Vdisk.js +0 -13
- package/dist/containers/PDiskPage/PDiskGroups.d.ts +0 -9
- package/dist/containers/PDiskPage/PDiskGroups.js +0 -20
- package/dist/containers/Tenant/Diagnostics/Overview/TableInfo/i18n/ru.json +0 -5
- package/dist/containers/Tenant/Query/ExplainResult/utils.d.ts +0 -2
- package/dist/containers/Tenant/Query/ExplainResult/utils.js +0 -4
- package/dist/store/reducers/tenantOverview/topQueries/tenantOverviewTopQueries.d.ts +0 -5
- package/dist/store/reducers/tenantOverview/topQueries/tenantOverviewTopQueries.js +0 -38
- package/dist/store/utils.d.ts +0 -23
- package/dist/store/utils.js +0 -49
- package/dist/types/api/restartPDisk.d.ts +0 -4
- package/dist/utils/hooks/useQueryModes.d.ts +0 -2
- package/dist/utils/hooks/useQueryModes.js +0 -5
- package/dist/utils/monaco/index.d.ts +0 -1
- package/dist/utils/monaco/index.js +0 -6
- package/dist/utils/monaco/s-expression/constants.d.ts +0 -1
- package/dist/utils/monaco/s-expression/constants.js +0 -1
- package/dist/utils/monaco/s-expression/registerLanguage.d.ts +0 -1
- package/dist/utils/monaco/s-expression/registerLanguage.js +0 -59
- package/dist/utils/monaco/yql/registerLanguage.d.ts +0 -1
- package/dist/utils/monaco/yql/registerLanguage.js +0 -8
- package/dist/utils/monaco/yql/yql.d.ts +0 -7
- package/dist/utils/monaco/yql/yql.js +0 -180
- package/dist/utils/monaco/yql/yql.keywords.d.ts +0 -3
- package/dist/utils/monaco/yql/yql.keywords.js +0 -3
- /package/dist/{types/api/restartPDisk.js → components/DateRange/__test__/fromDateRangeValues.test.d.ts} +0 -0
@@ -78,13 +78,13 @@ function Diagnostics(props) {
|
|
78
78
|
return _jsx(Network, { tenantName: tenantName });
|
79
79
|
}
|
80
80
|
case TENANT_DIAGNOSTICS_TABS_IDS.describe: {
|
81
|
-
return _jsx(Describe, { path: path, type: type });
|
81
|
+
return _jsx(Describe, { path: path, database: tenantName, type: type });
|
82
82
|
}
|
83
83
|
case TENANT_DIAGNOSTICS_TABS_IDS.hotKeys: {
|
84
|
-
return _jsx(HotKeys, { path: path });
|
84
|
+
return _jsx(HotKeys, { path: path, database: tenantName });
|
85
85
|
}
|
86
86
|
case TENANT_DIAGNOSTICS_TABS_IDS.graph: {
|
87
|
-
return _jsx(Heatmap, { path: path });
|
87
|
+
return _jsx(Heatmap, { path: path, database: tenantName });
|
88
88
|
}
|
89
89
|
case TENANT_DIAGNOSTICS_TABS_IDS.consumers: {
|
90
90
|
return _jsx(Consumers, { path: path, type: type });
|
@@ -1,3 +1,5 @@
|
|
1
|
+
@import '../../../styles/mixins.scss';
|
2
|
+
|
1
3
|
.kv-tenant-diagnostics {
|
2
4
|
display: flex;
|
3
5
|
overflow: hidden;
|
@@ -16,7 +18,7 @@
|
|
16
18
|
justify-content: space-between;
|
17
19
|
align-items: center;
|
18
20
|
|
19
|
-
|
21
|
+
@include tabs-wrapper-styles();
|
20
22
|
& .g-tabs_direction_horizontal {
|
21
23
|
box-shadow: unset;
|
22
24
|
}
|
@@ -1,6 +1,7 @@
|
|
1
1
|
import './HotKeys.scss';
|
2
2
|
interface HotKeysProps {
|
3
|
+
database: string;
|
3
4
|
path: string;
|
4
5
|
}
|
5
|
-
export declare function HotKeys({ path }: HotKeysProps): import("react/jsx-runtime").JSX.Element;
|
6
|
+
export declare function HotKeys({ path, database }: HotKeysProps): import("react/jsx-runtime").JSX.Element;
|
6
7
|
export {};
|
@@ -37,11 +37,11 @@ const getHotKeysColumns = (keyColumnsIds = []) => {
|
|
37
37
|
},
|
38
38
|
];
|
39
39
|
};
|
40
|
-
export function HotKeys({ path }) {
|
40
|
+
export function HotKeys({ path, database }) {
|
41
41
|
var _a, _b;
|
42
|
-
const { currentData: data, isFetching, error } = hotKeysApi.useGetHotKeysQuery({ path });
|
42
|
+
const { currentData: data, isFetching, error } = hotKeysApi.useGetHotKeysQuery({ path, database });
|
43
43
|
const loading = isFetching && data === undefined;
|
44
|
-
const { data: schemaData, isLoading: schemaLoading } = useGetSchemaQuery({ path });
|
44
|
+
const { data: schemaData, isLoading: schemaLoading } = useGetSchemaQuery({ path, database });
|
45
45
|
const keyColumnsIds = (_b = (_a = schemaData === null || schemaData === void 0 ? void 0 : schemaData.PathDescription) === null || _a === void 0 ? void 0 : _a.Table) === null || _b === void 0 ? void 0 : _b.KeyColumnNames;
|
46
46
|
const tableColumns = React.useMemo(() => {
|
47
47
|
return getHotKeysColumns(keyColumnsIds);
|
@@ -31,23 +31,20 @@ export function Network({ tenantName }) {
|
|
31
31
|
if (loading) {
|
32
32
|
return (_jsx("div", { className: "loader", children: _jsx(Loader, { size: "l" }) }));
|
33
33
|
}
|
34
|
-
if (error) {
|
35
|
-
return _jsx(ResponseError, { error: error });
|
36
|
-
}
|
37
34
|
const netWorkInfo = currentData;
|
38
35
|
const nodes = (_a = ((netWorkInfo === null || netWorkInfo === void 0 ? void 0 : netWorkInfo.Tenants) && netWorkInfo.Tenants[0].Nodes)) !== null && _a !== void 0 ? _a : [];
|
39
|
-
if (nodes.length === 0) {
|
36
|
+
if (!error && nodes.length === 0) {
|
40
37
|
return _jsx("div", { className: "error", children: "no nodes data" });
|
41
38
|
}
|
42
39
|
const nodesGroupedByType = groupNodesByField(nodes, 'NodeType');
|
43
40
|
const rightNodes = clickedNode ? groupNodesByField((_b = clickedNode.Peers) !== null && _b !== void 0 ? _b : [], 'NodeType') : {};
|
44
|
-
return (
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
41
|
+
return (_jsxs("div", { className: b(), children: [error ? _jsx(ResponseError, { error: error }) : null, nodes.length > 0 ? (_jsx("div", { className: b('inner'), children: _jsxs("div", { className: b('nodes-row'), children: [_jsxs("div", { className: b('left'), children: [_jsx("div", { className: b('controls-wrapper'), children: _jsxs("div", { className: b('controls'), children: [_jsx(ProblemFilter, { value: filter, onChange: (v) => {
|
42
|
+
dispatch(changeFilter(v));
|
43
|
+
}, className: b('problem-filter') }), _jsx("div", { className: b('checkbox-wrapper'), children: _jsx(Checkbox, { onUpdate: () => {
|
44
|
+
setShowId(!showId);
|
45
|
+
}, checked: showId, children: "ID" }) }), _jsx("div", { className: b('checkbox-wrapper'), children: _jsx(Checkbox, { onUpdate: () => {
|
46
|
+
setShowRacks(!showRacks);
|
47
|
+
}, checked: showRacks, children: "Racks" }) })] }) }), _jsx(Nodes, { nodes: nodesGroupedByType, showId: showId, showRacks: showRacks, clickedNode: clickedNode, onClickNode: setClickedNode })] }), _jsx("div", { className: b('right'), children: clickedNode ? (_jsxs("div", { children: [_jsxs("div", { className: b('label'), children: ["Connectivity of node", ' ', _jsx(Link, { className: b('link'), to: getDefaultNodePath(clickedNode.NodeId), children: clickedNode.NodeId }), ' ', "to other nodes"] }), _jsx("div", { className: b('nodes-row'), children: _jsx(Nodes, { nodes: rightNodes, isRight: true, showId: showId, showRacks: showRacks, clickedNode: clickedNode, onClickNode: setClickedNode }) })] })) : (_jsxs("div", { className: b('placeholder'), children: [_jsx("div", { className: b('placeholder-img'), children: _jsx(Icon, { data: networkIcon, width: 221, height: 204 }) }), _jsx("div", { className: b('placeholder-text'), children: "Select node to see its connectivity to other nodes" })] })) })] }) })) : null] }));
|
51
48
|
}
|
52
49
|
function Nodes({ nodes, isRight, showId, showRacks, clickedNode, onClickNode }) {
|
53
50
|
const filter = useTypedSelector(selectProblemFilter);
|
@@ -1,8 +1,8 @@
|
|
1
|
-
import React from 'react';
|
2
1
|
import { EPathType } from '../../../../types/api/schema';
|
3
2
|
interface OverviewProps {
|
4
3
|
type?: EPathType;
|
5
4
|
path: string;
|
5
|
+
database: string;
|
6
6
|
}
|
7
|
-
declare function Overview({ type, path }: OverviewProps):
|
7
|
+
declare function Overview({ type, path, database }: OverviewProps): import("react/jsx-runtime").JSX.Element;
|
8
8
|
export default Overview;
|
@@ -1,4 +1,5 @@
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
2
|
+
import React from 'react';
|
2
3
|
import { skipToken } from '@reduxjs/toolkit/query';
|
3
4
|
import { shallowEqual } from 'react-redux';
|
4
5
|
import { ResponseError } from '../../../../components/Errors/ResponseError';
|
@@ -16,24 +17,24 @@ import { AsyncReplicationInfo } from './AsyncReplicationInfo';
|
|
16
17
|
import { ChangefeedInfo } from './ChangefeedInfo';
|
17
18
|
import { TableInfo } from './TableInfo';
|
18
19
|
import { TopicInfo } from './TopicInfo';
|
19
|
-
function Overview({ type, path }) {
|
20
|
+
function Overview({ type, path, database }) {
|
20
21
|
const [autoRefreshInterval] = useAutoRefreshInterval();
|
21
22
|
const isEntityWithMergedImpl = isEntityWithMergedImplementation(type);
|
22
23
|
// shallowEqual prevents rerenders when new schema data is loaded
|
23
|
-
const mergedChildrenPaths = useTypedSelector((state) => selectSchemaMergedChildrenPaths(state, path, type), shallowEqual);
|
24
|
-
let paths =
|
24
|
+
const mergedChildrenPaths = useTypedSelector((state) => selectSchemaMergedChildrenPaths(state, path, type, database), shallowEqual);
|
25
|
+
let paths = [];
|
25
26
|
if (!isEntityWithMergedImpl) {
|
26
27
|
paths = [path];
|
27
28
|
}
|
28
29
|
else if (mergedChildrenPaths) {
|
29
30
|
paths = [path, ...mergedChildrenPaths];
|
30
31
|
}
|
31
|
-
const { currentData, isFetching, error: overviewError, } = overviewApi.useGetOverviewQuery(paths, {
|
32
|
+
const { currentData, isFetching, error: overviewError, } = overviewApi.useGetOverviewQuery(paths.length ? { paths, database } : skipToken, {
|
32
33
|
pollingInterval: autoRefreshInterval,
|
33
34
|
});
|
34
35
|
const overviewLoading = isFetching && currentData === undefined;
|
35
36
|
const { data: rawData, additionalData } = currentData || {};
|
36
|
-
const { error: schemaError } = useGetSchemaQuery({ path });
|
37
|
+
const { error: schemaError } = useGetSchemaQuery({ path, database });
|
37
38
|
const entityLoading = overviewLoading;
|
38
39
|
const entityNotReady = isEntityWithMergedImpl && !mergedChildrenPaths;
|
39
40
|
const renderContent = () => {
|
@@ -65,9 +66,6 @@ function Overview({ type, path }) {
|
|
65
66
|
if (entityLoading || entityNotReady) {
|
66
67
|
return _jsx(Loader, { size: "m" });
|
67
68
|
}
|
68
|
-
|
69
|
-
return _jsx(ResponseError, { error: schemaError || overviewError });
|
70
|
-
}
|
71
|
-
return renderContent();
|
69
|
+
return (_jsxs(React.Fragment, { children: [schemaError ? _jsx(ResponseError, { error: schemaError }) : null, overviewError ? _jsx(ResponseError, { error: overviewError }) : null, overviewError && !rawData ? null : renderContent()] }));
|
72
70
|
}
|
73
71
|
export default Overview;
|
@@ -1,5 +1,18 @@
|
|
1
1
|
{
|
2
2
|
"tableStats": "Table Stats",
|
3
3
|
"tabletMetrics": "Tablet Metrics",
|
4
|
-
"partitionConfig": "Partition Config"
|
4
|
+
"partitionConfig": "Partition Config",
|
5
|
+
"label.ttl": "TTL for rows",
|
6
|
+
"value.ttl": "column: '{{columnName}}', expire after: {{expireTime}}",
|
7
|
+
"label.standalone": "Standalone",
|
8
|
+
"label.partitioning": "Partitioning",
|
9
|
+
"label.partitioning-by-size": "Partitioning by size",
|
10
|
+
"value.partitioning-by-size.enabled": "Enabled, split size: {{size}}",
|
11
|
+
"label.partitioning-by-load": "Partitioning by load",
|
12
|
+
"label.partitions-min": "Min number of partitions",
|
13
|
+
"label.partitions-max": "Max number of partitions",
|
14
|
+
"label.read-replicas": "Read replicas (followers)",
|
15
|
+
"label.bloom-filter": "Bloom filter",
|
16
|
+
"enabled": "Enabled",
|
17
|
+
"disabled": "Disabled"
|
5
18
|
}
|
@@ -1,2 +1,2 @@
|
|
1
|
-
declare const _default: (key: "tableStats" | "tabletMetrics" | "partitionConfig", params?: import("@gravity-ui/i18n").Params) => string;
|
1
|
+
declare const _default: (key: "disabled" | "tableStats" | "tabletMetrics" | "partitionConfig" | "label.ttl" | "value.ttl" | "label.standalone" | "label.partitioning" | "label.partitioning-by-size" | "value.partitioning-by-size.enabled" | "label.partitioning-by-load" | "label.partitions-min" | "label.partitions-max" | "label.read-replicas" | "label.bloom-filter" | "enabled", params?: import("@gravity-ui/i18n").Params) => string;
|
2
2
|
export default _default;
|
@@ -1,5 +1,4 @@
|
|
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-overview-table-info';
|
5
|
-
export default registerKeysets(COMPONENT, {
|
4
|
+
export default registerKeysets(COMPONENT, { en });
|
@@ -1,8 +1,12 @@
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
2
|
+
import { Text } from '@gravity-ui/uikit';
|
3
|
+
import omit from 'lodash/omit';
|
1
4
|
import { formatObject } from '../../../../../components/InfoViewer';
|
2
5
|
import { formatFollowerGroupItem, formatPartitionConfigItem, formatTableStatsItem, formatTabletMetricsItem, } from '../../../../../components/InfoViewer/formatters';
|
3
6
|
import { EPathType } from '../../../../../types/api/schema';
|
4
7
|
import { formatBytes, formatNumber } from '../../../../../utils/dataFormatters/dataFormatters';
|
5
8
|
import { formatDurationToShortTimeFormat } from '../../../../../utils/timeParsers';
|
9
|
+
import i18n from './i18n';
|
6
10
|
const isInStoreColumnTable = (table) => {
|
7
11
|
// SchemaPresetId could be 0
|
8
12
|
return table.SchemaPresetName && table.SchemaPresetId !== undefined;
|
@@ -10,19 +14,28 @@ const isInStoreColumnTable = (table) => {
|
|
10
14
|
const prepareTTL = (ttl) => {
|
11
15
|
// ExpireAfterSeconds could be 0
|
12
16
|
if (ttl.Enabled && ttl.Enabled.ColumnName && ttl.Enabled.ExpireAfterSeconds !== undefined) {
|
13
|
-
const value =
|
14
|
-
|
17
|
+
const value = i18n('value.ttl', {
|
18
|
+
columnName: ttl.Enabled.ColumnName,
|
19
|
+
expireTime: formatDurationToShortTimeFormat(ttl.Enabled.ExpireAfterSeconds * 1000, 1),
|
20
|
+
});
|
21
|
+
return { label: i18n('label.ttl'), value };
|
15
22
|
}
|
16
23
|
return undefined;
|
17
24
|
};
|
18
25
|
function prepareColumnTableGeneralInfo(columnTable) {
|
26
|
+
var _a, _b;
|
19
27
|
const columnTableGeneralInfo = [];
|
20
28
|
columnTableGeneralInfo.push({
|
21
|
-
label: '
|
29
|
+
label: i18n('label.standalone'),
|
22
30
|
value: String(!isInStoreColumnTable(columnTable)),
|
23
31
|
});
|
24
|
-
if (columnTable.Sharding
|
25
|
-
|
32
|
+
if ((_b = (_a = columnTable.Sharding) === null || _a === void 0 ? void 0 : _a.HashSharding) === null || _b === void 0 ? void 0 : _b.Columns) {
|
33
|
+
const columns = columnTable.Sharding.HashSharding.Columns.join(', ');
|
34
|
+
const content = `PARTITION BY HASH(${columns})`;
|
35
|
+
columnTableGeneralInfo.push({
|
36
|
+
label: i18n('label.partitioning'),
|
37
|
+
value: (_jsx(Text, { variant: "code-2", wordBreak: "break-word", children: content })),
|
38
|
+
});
|
26
39
|
}
|
27
40
|
if (columnTable.TtlSettings) {
|
28
41
|
const ttlInfo = prepareTTL(columnTable === null || columnTable === void 0 ? void 0 : columnTable.TtlSettings);
|
@@ -37,18 +50,20 @@ const prepareTableGeneralInfo = (PartitionConfig, TTLSettings) => {
|
|
37
50
|
const { PartitioningPolicy = {}, FollowerGroups, EnableFilterByKey } = PartitionConfig;
|
38
51
|
const generalTableInfo = [];
|
39
52
|
const partitioningBySize = PartitioningPolicy.SizeToSplit && Number(PartitioningPolicy.SizeToSplit) > 0
|
40
|
-
?
|
41
|
-
|
53
|
+
? i18n('value.partitioning-by-size.enabled', {
|
54
|
+
size: formatBytes(PartitioningPolicy.SizeToSplit),
|
55
|
+
})
|
56
|
+
: i18n('disabled');
|
42
57
|
const partitioningByLoad = ((_a = PartitioningPolicy.SplitByLoadSettings) === null || _a === void 0 ? void 0 : _a.Enabled)
|
43
|
-
? '
|
44
|
-
: '
|
45
|
-
generalTableInfo.push({ label: '
|
46
|
-
label: '
|
58
|
+
? i18n('enabled')
|
59
|
+
: i18n('disabled');
|
60
|
+
generalTableInfo.push({ label: i18n('label.partitioning-by-size'), value: partitioningBySize }, { label: i18n('label.partitioning-by-load'), value: partitioningByLoad }, {
|
61
|
+
label: i18n('label.partitions-min'),
|
47
62
|
value: formatNumber(PartitioningPolicy.MinPartitionsCount || 0),
|
48
63
|
});
|
49
64
|
if (PartitioningPolicy.MaxPartitionsCount) {
|
50
65
|
generalTableInfo.push({
|
51
|
-
label: '
|
66
|
+
label: i18n('label.partitions-max'),
|
52
67
|
value: formatNumber(PartitioningPolicy.MaxPartitionsCount),
|
53
68
|
});
|
54
69
|
}
|
@@ -61,7 +76,7 @@ const prepareTableGeneralInfo = (PartitionConfig, TTLSettings) => {
|
|
61
76
|
else {
|
62
77
|
readReplicasConfig = `ANY_AZ: ${FollowerCount}`;
|
63
78
|
}
|
64
|
-
generalTableInfo.push({ label: '
|
79
|
+
generalTableInfo.push({ label: i18n('label.read-replicas'), value: readReplicasConfig });
|
65
80
|
}
|
66
81
|
if (TTLSettings) {
|
67
82
|
const ttlInfo = prepareTTL(TTLSettings);
|
@@ -70,8 +85,8 @@ const prepareTableGeneralInfo = (PartitionConfig, TTLSettings) => {
|
|
70
85
|
}
|
71
86
|
}
|
72
87
|
generalTableInfo.push({
|
73
|
-
label: '
|
74
|
-
value: EnableFilterByKey ? '
|
88
|
+
label: i18n('label.bloom-filter'),
|
89
|
+
value: EnableFilterByKey ? i18n('enabled') : i18n('disabled'),
|
75
90
|
});
|
76
91
|
return generalTableInfo;
|
77
92
|
};
|
@@ -122,8 +137,12 @@ export const prepareTableInfo = (data, type) => {
|
|
122
137
|
RangeReadRows,
|
123
138
|
}),
|
124
139
|
];
|
125
|
-
|
126
|
-
|
140
|
+
const tabletMetricsInfo = formatObject(formatTabletMetricsItem, omit(TabletMetrics, [
|
141
|
+
'GroupReadIops',
|
142
|
+
'GroupReadThroughput',
|
143
|
+
'GroupWriteIops',
|
144
|
+
'GroupWriteThroughput',
|
145
|
+
]));
|
127
146
|
let partitionConfigInfo = [];
|
128
147
|
if (Array.isArray(FollowerGroups) && FollowerGroups.length > 0) {
|
129
148
|
partitionConfigInfo = formatObject(formatFollowerGroupItem, FollowerGroups[0]);
|
@@ -1,4 +1,5 @@
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
2
|
+
import React from 'react';
|
2
3
|
import { ResponseError } from '../../../../../components/Errors/ResponseError';
|
3
4
|
import { InfoViewer } from '../../../../../components/InfoViewer';
|
4
5
|
import { LabelWithPopover } from '../../../../../components/LabelWithPopover';
|
@@ -58,8 +59,6 @@ export const TopicStats = ({ path }) => {
|
|
58
59
|
// If there is at least some empty data object
|
59
60
|
// we initialize its fields with zero values
|
60
61
|
// so no data at all is considered to be error as well
|
61
|
-
|
62
|
-
|
63
|
-
}
|
64
|
-
return (_jsxs("div", { className: b(), children: [_jsx("div", { className: b('title'), children: "Stats" }), _jsx("div", { className: b('info'), children: _jsx(InfoViewer, { info: prepareTopicInfo(data), multilineLabels: true }) }), _jsx("div", { className: b('bytes-written'), children: _jsx(InfoViewer, { info: prepareBytesWrittenInfo(data) }) })] }));
|
62
|
+
const errorContent = error || !data ? _jsx(ResponseError, { error: error }) : null;
|
63
|
+
return (_jsxs("div", { className: b(), children: [_jsx("div", { className: b('title'), children: "Stats" }), errorContent, data ? (_jsxs(React.Fragment, { children: [_jsx("div", { className: b('info'), children: _jsx(InfoViewer, { info: prepareTopicInfo(data), multilineLabels: true }) }), _jsx("div", { className: b('bytes-written'), children: _jsx(InfoViewer, { info: prepareBytesWrittenInfo(data) }) })] })) : null] }));
|
65
64
|
};
|
@@ -64,10 +64,7 @@ export const Partitions = ({ path }) => {
|
|
64
64
|
if (loading) {
|
65
65
|
return _jsx(TableSkeleton, { className: b('loader') });
|
66
66
|
}
|
67
|
-
if (error) {
|
68
|
-
return _jsx(ResponseError, { error: error });
|
69
|
-
}
|
70
67
|
return (_jsx(ResizeableDataTable, { columnsWidthLSKey: PARTITIONS_COLUMNS_WIDTH_LS_KEY, wrapperClassName: b('table'), data: partitionsToRender, columns: columnsToShow, settings: DEFAULT_TABLE_SETTINGS, emptyDataMessage: i18n('table.emptyDataMessage') }));
|
71
68
|
};
|
72
|
-
return (_jsxs("div", { className: b(), children: [_jsx("div", { className: b('controls'), children: renderControls() }), _jsx("div", { className: b('table-wrapper'), children: _jsx("div", { className: b('table-content'), children: renderContent() }) })] }));
|
69
|
+
return (_jsxs("div", { className: b(), children: [_jsx("div", { className: b('controls'), children: renderControls() }), error ? _jsx(ResponseError, { error: error }) : null, _jsx("div", { className: b('table-wrapper'), children: _jsx("div", { className: b('table-content'), children: partitionsData ? renderContent() : null }) })] }));
|
73
70
|
};
|
@@ -3,12 +3,12 @@ import React from 'react';
|
|
3
3
|
import { useHistory, useLocation } from 'react-router-dom';
|
4
4
|
import { parseQuery } from '../../../../../routes';
|
5
5
|
import { changeUserInput } from '../../../../../store/reducers/executeQuery';
|
6
|
+
import { setTopQueriesFilters, topQueriesApi, } from '../../../../../store/reducers/executeTopQueries/executeTopQueries';
|
6
7
|
import { TENANT_DIAGNOSTICS_TABS_IDS, TENANT_PAGE, TENANT_PAGES_IDS, TENANT_QUERY_TABS_ID, } from '../../../../../store/reducers/tenant/constants';
|
7
|
-
import { topQueriesApi } from '../../../../../store/reducers/tenantOverview/topQueries/tenantOverviewTopQueries';
|
8
8
|
import { useAutoRefreshInterval, useTypedDispatch } from '../../../../../utils/hooks';
|
9
9
|
import { parseQueryErrorToString } from '../../../../../utils/query';
|
10
10
|
import { TenantTabsGroups, getTenantPath } from '../../../TenantPages';
|
11
|
-
import {
|
11
|
+
import { TENANT_OVERVIEW_TOP_QUERUES_COLUMNS, TOP_QUERIES_COLUMNS_WIDTH_LS_KEY, } from '../../TopQueries/getTopQueriesColumns';
|
12
12
|
import { TenantOverviewTableLayout } from '../TenantOverviewTableLayout';
|
13
13
|
import { getSectionTitle } from '../getSectionTitle';
|
14
14
|
import i18n from '../i18n';
|
@@ -19,8 +19,8 @@ export function TopQueries({ tenantName }) {
|
|
19
19
|
const history = useHistory();
|
20
20
|
const query = parseQuery(location);
|
21
21
|
const [autoRefreshInterval] = useAutoRefreshInterval();
|
22
|
-
const columns =
|
23
|
-
const { currentData, isFetching, error } = topQueriesApi.
|
22
|
+
const columns = TENANT_OVERVIEW_TOP_QUERUES_COLUMNS;
|
23
|
+
const { currentData, isFetching, error } = topQueriesApi.useGetTopQueriesQuery({ database: tenantName }, { pollingInterval: autoRefreshInterval });
|
24
24
|
const loading = isFetching && currentData === undefined;
|
25
25
|
const { result: data } = currentData || {};
|
26
26
|
const handleRowClick = React.useCallback((row) => {
|
@@ -36,7 +36,10 @@ export function TopQueries({ tenantName }) {
|
|
36
36
|
}, [dispatch, history, location]);
|
37
37
|
const title = getSectionTitle({
|
38
38
|
entity: i18n('queries'),
|
39
|
-
postfix: i18n('by-cpu-time'),
|
39
|
+
postfix: i18n('by-cpu-time', { executionPeriod: i18n('executed-last-hour') }),
|
40
|
+
onClick: () => {
|
41
|
+
dispatch(setTopQueriesFilters({ from: undefined, to: undefined }));
|
42
|
+
},
|
40
43
|
link: getTenantPath({
|
41
44
|
...query,
|
42
45
|
[TenantTabsGroups.diagnosticsTab]: TENANT_DIAGNOSTICS_TABS_IDS.topQueries,
|
@@ -27,7 +27,7 @@ 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 });
|
30
|
+
const { data: tenantSchemaData } = useGetSchemaQuery({ path: tenantName, database: tenantName });
|
31
31
|
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
32
|
const usedTabletStorage = [
|
33
33
|
Tables === null || Tables === void 0 ? void 0 : Tables.TotalSize,
|
@@ -7,13 +7,13 @@ import { TENANT_OVERVIEW_TABLES_LIMIT, TENANT_OVERVIEW_TABLES_SETTINGS, } from '
|
|
7
7
|
import { b } from './utils';
|
8
8
|
export function TenantOverviewTableLayout({ title, error, loading, tableClassNameModifiers = {}, ...props }) {
|
9
9
|
const renderContent = () => {
|
10
|
-
if (error) {
|
11
|
-
return
|
10
|
+
if (error && props.data.length === 0) {
|
11
|
+
return null;
|
12
12
|
}
|
13
13
|
if (loading) {
|
14
14
|
return _jsx(TableSkeleton, { rows: TENANT_OVERVIEW_TABLES_LIMIT });
|
15
15
|
}
|
16
16
|
return _jsx(ResizeableDataTable, { settings: TENANT_OVERVIEW_TABLES_SETTINGS, ...props });
|
17
17
|
};
|
18
|
-
return (_jsxs(React.Fragment, { children: [_jsx("div", { className: b('title'), children: title }), _jsx("div", { className: b('table', tableClassNameModifiers), children: renderContent() })] }));
|
18
|
+
return (_jsxs(React.Fragment, { children: [_jsx("div", { className: b('title'), children: title }), error ? _jsx(ResponseError, { error: error }) : null, _jsx("div", { className: b('table', tableClassNameModifiers), children: renderContent() })] }));
|
19
19
|
}
|
@@ -3,6 +3,7 @@ interface GetSectionTitleParams {
|
|
3
3
|
postfix: string;
|
4
4
|
prefix?: string;
|
5
5
|
link?: string;
|
6
|
+
onClick?: () => void;
|
6
7
|
}
|
7
|
-
export declare const getSectionTitle: ({ prefix, entity, postfix, link, }: GetSectionTitleParams) => string | import("react/jsx-runtime").JSX.Element;
|
8
|
+
export declare const getSectionTitle: ({ prefix, entity, postfix, link, onClick, }: GetSectionTitleParams) => string | import("react/jsx-runtime").JSX.Element;
|
8
9
|
export {};
|
@@ -3,9 +3,9 @@ import React from 'react';
|
|
3
3
|
import { InternalLink } from '../../../../components/InternalLink/InternalLink';
|
4
4
|
import i18n from './i18n';
|
5
5
|
// Titles are formed by the principle "Top entities by parameter"
|
6
|
-
export const getSectionTitle = ({ prefix = i18n('top'), entity, postfix, link, }) => {
|
6
|
+
export const getSectionTitle = ({ prefix = i18n('top'), entity, postfix, link, onClick, }) => {
|
7
7
|
if (link) {
|
8
|
-
return (_jsxs(React.Fragment, { children: [prefix,
|
8
|
+
return (_jsxs(React.Fragment, { children: [prefix, ' ', _jsx(InternalLink, { to: link, onClick: onClick, children: entity }), ' ', postfix] }));
|
9
9
|
}
|
10
10
|
return `${prefix} ${entity} ${postfix}`;
|
11
11
|
};
|
@@ -10,7 +10,7 @@
|
|
10
10
|
"queries": "queries",
|
11
11
|
"tables": "tables",
|
12
12
|
"by-pools-usage": "by pools usage",
|
13
|
-
"by-cpu-time": "by cpu time",
|
13
|
+
"by-cpu-time": "by cpu time, {{executionPeriod}}",
|
14
14
|
"by-cpu-usage": "by cpu usage",
|
15
15
|
"by-load": "by load",
|
16
16
|
"by-memory": "by memory",
|
@@ -27,5 +27,6 @@
|
|
27
27
|
"storage.tablet-storage-title": "Tablet storage",
|
28
28
|
"storage.tablet-storage-description": "Size of user data and indexes stored in schema objects (tables, topics, etc.)",
|
29
29
|
"storage.db-storage-title": "Database storage",
|
30
|
-
"storage.db-storage-description": "Size of data stored in distributed storage with all overheads for redundancy"
|
30
|
+
"storage.db-storage-description": "Size of data stored in distributed storage with all overheads for redundancy",
|
31
|
+
"executed-last-hour": "executed in the last hour"
|
31
32
|
}
|
@@ -1,2 +1,2 @@
|
|
1
|
-
declare const _default: (key: "
|
1
|
+
declare const _default: (key: "queries" | "nodes" | "groups" | "no-data" | "top" | "shards" | "tables" | "no-pools-data" | "top-nodes.empty-data" | "top-groups.empty-data" | "by-pools-usage" | "by-cpu-time" | "by-cpu-usage" | "by-load" | "by-memory" | "by-usage" | "by-size" | "cards.cpu-label" | "cards.storage-label" | "cards.memory-label" | "charts.queries-per-second" | "charts.transaction-latency" | "charts.cpu-usage" | "charts.storage-usage" | "charts.memory-usage" | "storage.tablet-storage-title" | "storage.tablet-storage-description" | "storage.db-storage-title" | "storage.db-storage-description" | "executed-last-hour", params?: import("@gravity-ui/i18n").Params) => string;
|
2
2
|
export default _default;
|
@@ -2,6 +2,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import React from 'react';
|
3
3
|
import { useHistory, useLocation } from 'react-router-dom';
|
4
4
|
import { DateRange } from '../../../../components/DateRange';
|
5
|
+
import { ResponseError } from '../../../../components/Errors/ResponseError';
|
5
6
|
import { ResizeableDataTable } from '../../../../components/ResizeableDataTable/ResizeableDataTable';
|
6
7
|
import { Search } from '../../../../components/Search';
|
7
8
|
import { TableWithControlsLayout } from '../../../../components/TableWithControlsLayout/TableWithControlsLayout';
|
@@ -16,7 +17,7 @@ import { parseQueryErrorToString } from '../../../../utils/query';
|
|
16
17
|
import { TenantTabsGroups, getTenantPath } from '../../TenantPages';
|
17
18
|
import { QUERY_TABLE_SETTINGS } from '../../utils/constants';
|
18
19
|
import { isColumnEntityType } from '../../utils/schema';
|
19
|
-
import {
|
20
|
+
import { TOP_QUERIES_COLUMNS, TOP_QUERIES_COLUMNS_WIDTH_LS_KEY } from './getTopQueriesColumns';
|
20
21
|
import i18n from './i18n';
|
21
22
|
import './TopQueries.scss';
|
22
23
|
const b = cn('kv-top-queries');
|
@@ -32,7 +33,7 @@ export const TopQueries = ({ tenantName, type }) => {
|
|
32
33
|
}, { pollingInterval: autoRefreshInterval });
|
33
34
|
const loading = isFetching && currentData === undefined;
|
34
35
|
const { result: data } = currentData || {};
|
35
|
-
const rawColumns =
|
36
|
+
const rawColumns = TOP_QUERIES_COLUMNS;
|
36
37
|
const columns = rawColumns.map((column) => ({
|
37
38
|
...column,
|
38
39
|
sortable: isSortableTopQueriesProperty(column.name),
|
@@ -55,8 +56,8 @@ export const TopQueries = ({ tenantName, type }) => {
|
|
55
56
|
dispatch(setTopQueriesFilters(value));
|
56
57
|
};
|
57
58
|
const renderContent = () => {
|
58
|
-
if (error) {
|
59
|
-
return
|
59
|
+
if (error && !data) {
|
60
|
+
return null;
|
60
61
|
}
|
61
62
|
if (!data || isColumnEntityType(type)) {
|
62
63
|
return i18n('no-data');
|
@@ -66,5 +67,5 @@ export const TopQueries = ({ tenantName, type }) => {
|
|
66
67
|
const renderControls = () => {
|
67
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 })] }));
|
68
69
|
};
|
69
|
-
return (_jsxs(TableWithControlsLayout, { children: [_jsx(TableWithControlsLayout.Controls, { children: renderControls() }), _jsx(TableWithControlsLayout.Table, { loading: loading, children: renderContent() })] }));
|
70
|
+
return (_jsxs(TableWithControlsLayout, { children: [_jsx(TableWithControlsLayout.Controls, { children: renderControls() }), error ? _jsx(ResponseError, { error: parseQueryErrorToString(error) }) : null, _jsx(TableWithControlsLayout.Table, { loading: loading, children: renderContent() })] }));
|
70
71
|
};
|
@@ -2,5 +2,5 @@ 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
|
6
|
-
export declare const
|
5
|
+
export declare const TOP_QUERIES_COLUMNS: Column<KeyValueRow>[];
|
6
|
+
export declare const TENANT_OVERVIEW_TOP_QUERUES_COLUMNS: Column<KeyValueRow>[];
|
@@ -75,17 +75,17 @@ const durationColumn = {
|
|
75
75
|
align: DataTable.RIGHT,
|
76
76
|
width: 150,
|
77
77
|
};
|
78
|
-
export const
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
78
|
+
export const TOP_QUERIES_COLUMNS = [
|
79
|
+
cpuTimeUsColumn,
|
80
|
+
queryTextColumn,
|
81
|
+
endTimeColumn,
|
82
|
+
durationColumn,
|
83
|
+
readRowsColumn,
|
84
|
+
readBytesColumn,
|
85
|
+
userSIDColumn,
|
86
|
+
];
|
87
|
+
export const TENANT_OVERVIEW_TOP_QUERUES_COLUMNS = [
|
88
|
+
queryHashColumn,
|
89
|
+
oneLineQueryTextColumn,
|
90
|
+
cpuTimeUsColumn,
|
91
|
+
];
|
@@ -2,12 +2,13 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import React from 'react';
|
3
3
|
import DataTable from '@gravity-ui/react-data-table';
|
4
4
|
import { useLocation } from 'react-router-dom';
|
5
|
+
import { ResponseError } from '../../../../components/Errors/ResponseError';
|
5
6
|
import { ResizeableDataTable } from '../../../../components/ResizeableDataTable/ResizeableDataTable';
|
6
7
|
import { TableWithControlsLayout } from '../../../../components/TableWithControlsLayout/TableWithControlsLayout';
|
7
8
|
import { setShardsQueryFilters, shardApi, } from '../../../../store/reducers/shardsWorkload/shardsWorkload';
|
8
9
|
import { EShardsWorkloadMode } from '../../../../store/reducers/shardsWorkload/types';
|
9
10
|
import { cn } from '../../../../utils/cn';
|
10
|
-
import { DEFAULT_TABLE_SETTINGS
|
11
|
+
import { DEFAULT_TABLE_SETTINGS } from '../../../../utils/constants';
|
11
12
|
import { formatDateTime } from '../../../../utils/dataFormatters/dataFormatters';
|
12
13
|
import { TOP_SHARD_COLUMNS_IDS, isSortableTopShardsProperty } from '../../../../utils/diagnostics';
|
13
14
|
import { useAutoRefreshInterval, useTypedDispatch, useTypedSelector } from '../../../../utils/hooks';
|
@@ -52,8 +53,8 @@ function dataTableToStringSortOrder(value = []) {
|
|
52
53
|
return sortOrders.map(({ columnId }) => columnId).join(',');
|
53
54
|
}
|
54
55
|
function fillDateRangeFor(value) {
|
55
|
-
value.to =
|
56
|
-
value.from =
|
56
|
+
value.to = 'now';
|
57
|
+
value.from = 'now-1h';
|
57
58
|
return value;
|
58
59
|
}
|
59
60
|
export const TopShards = ({ tenantName, path, type }) => {
|
@@ -133,13 +134,13 @@ export const TopShards = ({ tenantName, path, type }) => {
|
|
133
134
|
return _jsx(Filters, { value: filters, onChange: handleFiltersChange });
|
134
135
|
};
|
135
136
|
const renderContent = () => {
|
136
|
-
if (error) {
|
137
|
-
return
|
137
|
+
if (error && !data) {
|
138
|
+
return null;
|
138
139
|
}
|
139
140
|
if (!data || isColumnEntityType(type)) {
|
140
141
|
return i18n('no-data');
|
141
142
|
}
|
142
143
|
return (_jsx(ResizeableDataTable, { columnsWidthLSKey: TOP_SHARDS_COLUMNS_WIDTH_LS_KEY, columns: tableColumns, data: data, settings: TABLE_SETTINGS, onSort: onSort, sortOrder: stringToDataTableSortOrder(sortOrder) }));
|
143
144
|
};
|
144
|
-
return (_jsxs(TableWithControlsLayout, { children: [_jsx(TableWithControlsLayout.Controls, { children: renderControls() }), filters.mode === EShardsWorkloadMode.History && (_jsx("div", { className: b('hint'), children: i18n('description') })), _jsx(TableWithControlsLayout.Table, { loading: loading, children: renderContent() })] }));
|
145
|
+
return (_jsxs(TableWithControlsLayout, { children: [_jsx(TableWithControlsLayout.Controls, { children: renderControls() }), filters.mode === EShardsWorkloadMode.History && (_jsx("div", { className: b('hint'), children: i18n('description') })), error ? _jsx(ResponseError, { error: parseQueryErrorToString(error) }) : null, _jsx(TableWithControlsLayout.Table, { loading: loading, children: renderContent() })] }));
|
145
146
|
};
|