ydb-embedded-ui 22.9.0 → 22.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/BridgeSyncStatusLabel/BridgeSyncStatusLabel.d.ts +12 -0
- package/dist/components/BridgeSyncStatusLabel/BridgeSyncStatusLabel.js +47 -0
- package/dist/components/BridgeSyncStatusLabel/BridgeSyncStatusLabel.js.map +1 -0
- package/dist/components/BridgeSyncStatusLabel/i18n/en.json +7 -0
- package/dist/components/BridgeSyncStatusLabel/i18n/index.d.ts +2 -0
- package/dist/components/BridgeSyncStatusLabel/i18n/index.js +4 -0
- package/dist/components/BridgeSyncStatusLabel/i18n/index.js.map +1 -0
- package/dist/components/BridgeSyncStatusLabel/index.d.ts +1 -0
- package/dist/components/BridgeSyncStatusLabel/index.js +2 -0
- package/dist/components/BridgeSyncStatusLabel/index.js.map +1 -0
- package/dist/components/ConnectToDB/ConnectToDBDialog.js +2 -1
- package/dist/components/ConnectToDB/ConnectToDBDialog.js.map +1 -1
- package/dist/components/DataIssuesAlert/DataIssuesAlert.d.ts +19 -0
- package/dist/components/DataIssuesAlert/DataIssuesAlert.js +33 -0
- package/dist/components/DataIssuesAlert/DataIssuesAlert.js.map +1 -0
- package/dist/components/DataIssuesAlert/DataIssuesAlert.scss +21 -0
- package/dist/components/DataIssuesAlert/DataIssuesIndicator.d.ts +17 -0
- package/dist/components/DataIssuesAlert/DataIssuesIndicator.js +23 -0
- package/dist/components/DataIssuesAlert/DataIssuesIndicator.js.map +1 -0
- package/dist/components/DataIssuesAlert/EmptyTableGroups.d.ts +12 -0
- package/dist/components/DataIssuesAlert/EmptyTableGroups.js +12 -0
- package/dist/components/DataIssuesAlert/EmptyTableGroups.js.map +1 -0
- package/dist/components/DataIssuesAlert/i18n/en.json +15 -0
- package/dist/components/DataIssuesAlert/i18n/index.d.ts +2 -0
- package/dist/components/DataIssuesAlert/i18n/index.js +6 -0
- package/dist/components/DataIssuesAlert/i18n/index.js.map +1 -0
- package/dist/components/DataIssuesAlert/i18n/ru.json +15 -0
- package/dist/components/Datacenter/DatacenterLabel.scss +5 -0
- package/dist/components/DiskPopup/DiskPopup.d.ts +2 -1
- package/dist/components/DiskPopup/DiskPopup.js +3 -3
- package/dist/components/DiskPopup/DiskPopup.js.map +1 -1
- package/dist/components/DiskPopup/DiskPopup.scss +4 -0
- package/dist/components/EntityStatus/EntityStatus.d.ts +11 -2
- package/dist/components/EntityStatus/EntityStatus.js +6 -4
- package/dist/components/EntityStatus/EntityStatus.js.map +1 -1
- package/dist/components/EntityStatus/EntityStatus.scss +18 -0
- package/dist/components/NodeHostWrapper/NodeHostWrapper.d.ts +12 -3
- package/dist/components/NodeHostWrapper/NodeHostWrapper.js +32 -8
- package/dist/components/NodeHostWrapper/NodeHostWrapper.js.map +1 -1
- package/dist/components/NodeHostWrapper/NodeHostWrapper.scss +8 -0
- package/dist/components/NodeHostWrapper/i18n/en.json +3 -0
- package/dist/components/NodeHostWrapper/i18n/index.d.ts +2 -0
- package/dist/components/NodeHostWrapper/i18n/index.js +6 -0
- package/dist/components/NodeHostWrapper/i18n/index.js.map +1 -0
- package/dist/components/NodeHostWrapper/i18n/ru.json +3 -0
- package/dist/components/PaginatedTable/PaginatedTable.d.ts +6 -4
- package/dist/components/PaginatedTable/PaginatedTable.js +2 -2
- package/dist/components/PaginatedTable/PaginatedTable.js.map +1 -1
- package/dist/components/PaginatedTable/ResizeablePaginatedTable.d.ts +2 -2
- package/dist/components/PaginatedTable/ResizeablePaginatedTable.js.map +1 -1
- package/dist/components/PaginatedTable/TableChunk.d.ts +5 -4
- package/dist/components/PaginatedTable/TableChunk.js +15 -1
- package/dist/components/PaginatedTable/TableChunk.js.map +1 -1
- package/dist/components/PaginatedTable/TableChunksRenderer.d.ts +5 -4
- package/dist/components/PaginatedTable/TableChunksRenderer.js +3 -2
- package/dist/components/PaginatedTable/TableChunksRenderer.js.map +1 -1
- package/dist/components/PaginatedTable/requestBatcher.js +2 -0
- package/dist/components/PaginatedTable/requestBatcher.js.map +1 -1
- package/dist/components/PaginatedTable/types.d.ts +13 -2
- package/dist/components/QueryExecutionLabel/i18n/index.d.ts +1 -1
- package/dist/components/StatusIconNew/StatusIcon.d.ts +3 -1
- package/dist/components/StatusIconNew/StatusIcon.js +4 -3
- package/dist/components/StatusIconNew/StatusIcon.js.map +1 -1
- package/dist/components/SuggestInput/SuggestInput.d.ts +31 -0
- package/dist/components/SuggestInput/SuggestInput.js +123 -0
- package/dist/components/SuggestInput/SuggestInput.js.map +1 -0
- package/dist/components/SuggestInput/SuggestInput.scss +28 -0
- package/dist/components/nodesColumns/columns.d.ts +1 -1
- package/dist/components/nodesColumns/columns.js +2 -2
- package/dist/components/nodesColumns/columns.js.map +1 -1
- package/dist/components/nodesColumns/types.d.ts +2 -0
- package/dist/containers/Cluster/ClusterInfo/ClusterInfo.js +2 -1
- package/dist/containers/Cluster/ClusterInfo/ClusterInfo.js.map +1 -1
- package/dist/containers/Cluster/ClusterOverview/components/BridgeDatabasesSummary.d.ts +4 -0
- package/dist/containers/Cluster/ClusterOverview/components/BridgeDatabasesSummary.js +47 -0
- package/dist/containers/Cluster/ClusterOverview/components/BridgeDatabasesSummary.js.map +1 -0
- package/dist/containers/Cluster/ClusterOverview/components/BridgeInfoTable.d.ts +2 -1
- package/dist/containers/Cluster/ClusterOverview/components/BridgeInfoTable.js +53 -14
- package/dist/containers/Cluster/ClusterOverview/components/BridgeInfoTable.js.map +1 -1
- package/dist/containers/Cluster/ClusterOverview/components/BridgeInfoTable.scss +36 -23
- package/dist/containers/Cluster/ClusterOverview/components/bridgeInfo.d.ts +7 -0
- package/dist/containers/Cluster/ClusterOverview/components/bridgeInfo.js +24 -0
- package/dist/containers/Cluster/ClusterOverview/components/bridgeInfo.js.map +1 -0
- package/dist/containers/Cluster/i18n/en.json +13 -0
- package/dist/containers/Cluster/i18n/index.d.ts +1 -1
- package/dist/containers/Clusters/Clusters.js +23 -17
- package/dist/containers/Clusters/Clusters.js.map +1 -1
- package/dist/containers/Header/hooks/useDatabaseData.js +2 -1
- package/dist/containers/Header/hooks/useDatabaseData.js.map +1 -1
- package/dist/containers/Nodes/NodesControls/NodesControls.d.ts +4 -1
- package/dist/containers/Nodes/NodesControls/NodesControls.js +2 -2
- package/dist/containers/Nodes/NodesControls/NodesControls.js.map +1 -1
- package/dist/containers/Nodes/NodesTable.d.ts +6 -2
- package/dist/containers/Nodes/NodesTable.js +6 -2
- package/dist/containers/Nodes/NodesTable.js.map +1 -1
- package/dist/containers/Nodes/PaginatedNodes/GroupedNodesComponent.js +9 -5
- package/dist/containers/Nodes/PaginatedNodes/GroupedNodesComponent.js.map +1 -1
- package/dist/containers/Nodes/PaginatedNodes/NodesComponent.js +7 -1
- package/dist/containers/Nodes/PaginatedNodes/NodesComponent.js.map +1 -1
- package/dist/containers/Nodes/PaginatedNodes/NodesControlsWithTableState.d.ts +3 -1
- package/dist/containers/Nodes/PaginatedNodes/NodesControlsWithTableState.js +2 -2
- package/dist/containers/Nodes/PaginatedNodes/NodesControlsWithTableState.js.map +1 -1
- package/dist/containers/Nodes/getNodes.d.ts +2 -1
- package/dist/containers/Nodes/getNodes.js +1 -0
- package/dist/containers/Nodes/getNodes.js.map +1 -1
- package/dist/containers/Operations/OperationError.d.ts +5 -0
- package/dist/containers/Operations/OperationError.js +11 -0
- package/dist/containers/Operations/OperationError.js.map +1 -0
- package/dist/containers/Operations/OperationUser.d.ts +4 -0
- package/dist/containers/Operations/OperationUser.js +10 -0
- package/dist/containers/Operations/OperationUser.js.map +1 -0
- package/dist/containers/Operations/Operations.d.ts +2 -1
- package/dist/containers/Operations/Operations.js +28 -12
- package/dist/containers/Operations/Operations.js.map +1 -1
- package/dist/containers/Operations/Operations.scss +24 -0
- package/dist/containers/Operations/columns.js +13 -2
- package/dist/containers/Operations/columns.js.map +1 -1
- package/dist/containers/Operations/controlPlaneColumns.d.ts +8 -0
- package/dist/containers/Operations/controlPlaneColumns.js +65 -0
- package/dist/containers/Operations/controlPlaneColumns.js.map +1 -0
- package/dist/containers/Operations/i18n/en.json +21 -2
- package/dist/containers/Operations/i18n/index.d.ts +1 -1
- package/dist/containers/Operations/useOperationsInfiniteQuery.d.ts +7 -1
- package/dist/containers/Operations/useOperationsInfiniteQuery.js +32 -35
- package/dist/containers/Operations/useOperationsInfiniteQuery.js.map +1 -1
- package/dist/containers/Operations/useOperationsQueryParams.d.ts +4 -0
- package/dist/containers/Operations/useOperationsQueryParams.js +17 -4
- package/dist/containers/Operations/useOperationsQueryParams.js.map +1 -1
- package/dist/containers/Operations/useOperationsSource.d.ts +14 -0
- package/dist/containers/Operations/useOperationsSource.js +72 -0
- package/dist/containers/Operations/useOperationsSource.js.map +1 -0
- package/dist/containers/Operations/utils.d.ts +6 -1
- package/dist/containers/Operations/utils.js +23 -0
- package/dist/containers/Operations/utils.js.map +1 -1
- package/dist/containers/PDiskPage/PDiskStorageDetails.js +1 -0
- package/dist/containers/PDiskPage/PDiskStorageDetails.js.map +1 -1
- package/dist/containers/PDiskPage/PDiskStorageDetails.scss +4 -0
- package/dist/containers/Storage/PaginatedStorageGroups/GroupedStorageGroupsComponent.d.ts +3 -0
- package/dist/containers/Storage/PaginatedStorageGroups/GroupedStorageGroupsComponent.js +9 -5
- package/dist/containers/Storage/PaginatedStorageGroups/GroupedStorageGroupsComponent.js.map +1 -1
- package/dist/containers/Storage/PaginatedStorageGroups/PaginatedStorageGroups.js +5 -1
- package/dist/containers/Storage/PaginatedStorageGroups/PaginatedStorageGroups.js.map +1 -1
- package/dist/containers/Storage/PaginatedStorageGroups/StorageGroupsComponent.js +6 -1
- package/dist/containers/Storage/PaginatedStorageGroups/StorageGroupsComponent.js.map +1 -1
- package/dist/containers/Storage/PaginatedStorageGroups/StorageGroupsControls.d.ts +6 -2
- package/dist/containers/Storage/PaginatedStorageGroups/StorageGroupsControls.js +13 -8
- package/dist/containers/Storage/PaginatedStorageGroups/StorageGroupsControls.js.map +1 -1
- package/dist/containers/Storage/PaginatedStorageGroups/useStorageGroupsBridgeGrouping.d.ts +4 -0
- package/dist/containers/Storage/PaginatedStorageGroups/useStorageGroupsBridgeGrouping.js +10 -0
- package/dist/containers/Storage/PaginatedStorageGroups/useStorageGroupsBridgeGrouping.js.map +1 -0
- package/dist/containers/Storage/PaginatedStorageGroupsTable/PaginatedStorageGroupsTable.d.ts +7 -3
- package/dist/containers/Storage/PaginatedStorageGroupsTable/PaginatedStorageGroupsTable.js +5 -4
- package/dist/containers/Storage/PaginatedStorageGroupsTable/PaginatedStorageGroupsTable.js.map +1 -1
- package/dist/containers/Storage/PaginatedStorageGroupsTable/StorageGroupsEmptyDataMessage.d.ts +2 -1
- package/dist/containers/Storage/PaginatedStorageGroupsTable/StorageGroupsEmptyDataMessage.js +6 -1
- package/dist/containers/Storage/PaginatedStorageGroupsTable/StorageGroupsEmptyDataMessage.js.map +1 -1
- package/dist/containers/Storage/PaginatedStorageGroupsTable/columns/StorageGroupSyncPopover/StorageGroupSyncPopover.d.ts +5 -0
- package/dist/containers/Storage/PaginatedStorageGroupsTable/columns/StorageGroupSyncPopover/StorageGroupSyncPopover.js +24 -0
- package/dist/containers/Storage/PaginatedStorageGroupsTable/columns/StorageGroupSyncPopover/StorageGroupSyncPopover.js.map +1 -0
- package/dist/containers/Storage/PaginatedStorageGroupsTable/columns/StorageGroupSyncPopover/StorageGroupSyncPopover.scss +12 -0
- package/dist/containers/Storage/PaginatedStorageGroupsTable/columns/StorageGroupSyncPopover/i18n/en.json +4 -0
- package/dist/containers/Storage/PaginatedStorageGroupsTable/columns/StorageGroupSyncPopover/i18n/index.d.ts +2 -0
- package/dist/containers/Storage/PaginatedStorageGroupsTable/columns/StorageGroupSyncPopover/i18n/index.js +4 -0
- package/dist/containers/Storage/PaginatedStorageGroupsTable/columns/StorageGroupSyncPopover/i18n/index.js.map +1 -0
- package/dist/containers/Storage/PaginatedStorageGroupsTable/columns/columns.js +25 -2
- package/dist/containers/Storage/PaginatedStorageGroupsTable/columns/columns.js.map +1 -1
- package/dist/containers/Storage/PaginatedStorageGroupsTable/columns/constants.d.ts +6 -1
- package/dist/containers/Storage/PaginatedStorageGroupsTable/columns/constants.js +34 -5
- package/dist/containers/Storage/PaginatedStorageGroupsTable/columns/constants.js.map +1 -1
- package/dist/containers/Storage/PaginatedStorageGroupsTable/columns/hooks.js +24 -14
- package/dist/containers/Storage/PaginatedStorageGroupsTable/columns/hooks.js.map +1 -1
- package/dist/containers/Storage/PaginatedStorageGroupsTable/columns/i18n/en.json +5 -1
- package/dist/containers/Storage/PaginatedStorageGroupsTable/columns/i18n/index.d.ts +1 -1
- package/dist/containers/Storage/PaginatedStorageGroupsTable/getGroups.d.ts +2 -1
- package/dist/containers/Storage/PaginatedStorageGroupsTable/getGroups.js +5 -4
- package/dist/containers/Storage/PaginatedStorageGroupsTable/getGroups.js.map +1 -1
- package/dist/containers/Storage/PaginatedStorageNodes/GroupedStorageNodesComponent.d.ts +5 -1
- package/dist/containers/Storage/PaginatedStorageNodes/GroupedStorageNodesComponent.js +12 -6
- package/dist/containers/Storage/PaginatedStorageNodes/GroupedStorageNodesComponent.js.map +1 -1
- package/dist/containers/Storage/PaginatedStorageNodes/StorageNodesComponent.js +7 -3
- package/dist/containers/Storage/PaginatedStorageNodes/StorageNodesComponent.js.map +1 -1
- package/dist/containers/Storage/PaginatedStorageNodes/StorageNodesControls.d.ts +6 -2
- package/dist/containers/Storage/PaginatedStorageNodes/StorageNodesControls.js +4 -4
- package/dist/containers/Storage/PaginatedStorageNodes/StorageNodesControls.js.map +1 -1
- package/dist/containers/Storage/PaginatedStorageNodesTable/PaginatedStorageNodesTable.d.ts +6 -2
- package/dist/containers/Storage/PaginatedStorageNodesTable/PaginatedStorageNodesTable.js +6 -5
- package/dist/containers/Storage/PaginatedStorageNodesTable/PaginatedStorageNodesTable.js.map +1 -1
- package/dist/containers/Storage/PaginatedStorageNodesTable/StorageNodesEmptyDataMessage.d.ts +2 -1
- package/dist/containers/Storage/PaginatedStorageNodesTable/StorageNodesEmptyDataMessage.js +6 -1
- package/dist/containers/Storage/PaginatedStorageNodesTable/StorageNodesEmptyDataMessage.js.map +1 -1
- package/dist/containers/Storage/PaginatedStorageNodesTable/columns/columns.js +1 -1
- package/dist/containers/Storage/PaginatedStorageNodesTable/columns/columns.js.map +1 -1
- package/dist/containers/Storage/PaginatedStorageNodesTable/getNodes.d.ts +2 -1
- package/dist/containers/Storage/PaginatedStorageNodesTable/getNodes.js +1 -0
- package/dist/containers/Storage/PaginatedStorageNodesTable/getNodes.js.map +1 -1
- package/dist/containers/Storage/Storage.scss +16 -0
- package/dist/containers/Storage/StorageGroupSyncDetails/StorageGroupSyncDetails.d.ts +6 -0
- package/dist/containers/Storage/StorageGroupSyncDetails/StorageGroupSyncDetails.js +46 -0
- package/dist/containers/Storage/StorageGroupSyncDetails/StorageGroupSyncDetails.js.map +1 -0
- package/dist/containers/Storage/StorageGroupSyncDetails/StorageGroupSyncDetails.scss +78 -0
- package/dist/containers/Storage/StorageGroupSyncDetails/i18n/en.json +14 -0
- package/dist/containers/Storage/StorageGroupSyncDetails/i18n/index.d.ts +2 -0
- package/dist/containers/Storage/StorageGroupSyncDetails/i18n/index.js +5 -0
- package/dist/containers/Storage/StorageGroupSyncDetails/i18n/index.js.map +1 -0
- package/dist/containers/Storage/utils/index.d.ts +7 -0
- package/dist/containers/Storage/utils/index.js +10 -0
- package/dist/containers/Storage/utils/index.js.map +1 -1
- package/dist/containers/StorageGroupPage/StorageGroupPage.js +5 -3
- package/dist/containers/StorageGroupPage/StorageGroupPage.js.map +1 -1
- package/dist/containers/StorageGroupPage/StorageGroupPage.scss +18 -0
- package/dist/containers/StorageGroupPage/i18n/en.json +2 -0
- package/dist/containers/StorageGroupPage/i18n/index.d.ts +1 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopNodesByCpu.js +2 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopNodesByCpu.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopNodesByLoad.js +2 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopNodesByLoad.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantMemory/TopNodesByMemory.js +2 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantMemory/TopNodesByMemory.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantNetwork/TopNodesByPing.js +2 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantNetwork/TopNodesByPing.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantNetwork/TopNodesBySkew.js +2 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantNetwork/TopNodesBySkew.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantOverview.js +2 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantOverview.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantOverview.scss +4 -0
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantOverviewTableLayout.d.ts +3 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantOverviewTableLayout.js +2 -2
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantOverviewTableLayout.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/TenantStorage.js +1 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/TenantStorage.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/TopGroups.d.ts +3 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/TopGroups.js +3 -2
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/TopGroups.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TopTablesDataIssues.d.ts +12 -0
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TopTablesDataIssues.js +18 -0
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TopTablesDataIssues.js.map +1 -0
- package/dist/containers/Tenant/ObjectSummary/CreateDirectoryDialog/CreateDirectoryDialog.js +13 -12
- package/dist/containers/Tenant/ObjectSummary/CreateDirectoryDialog/CreateDirectoryDialog.js.map +1 -1
- package/dist/containers/Tenant/ObjectSummary/CreateDirectoryDialog/validateRelativePath.d.ts +5 -0
- package/dist/containers/Tenant/ObjectSummary/CreateDirectoryDialog/validateRelativePath.js +21 -0
- package/dist/containers/Tenant/ObjectSummary/CreateDirectoryDialog/validateRelativePath.js.map +1 -0
- package/dist/containers/Tenant/ObjectSummary/ObjectSummary.js +2 -2
- package/dist/containers/Tenant/ObjectSummary/ObjectSummary.js.map +1 -1
- package/dist/containers/Tenant/ObjectSummary/i18n/en.json +4 -0
- package/dist/containers/Tenant/ObjectSummary/i18n/index.d.ts +1 -1
- package/dist/containers/Tenant/Query/NewSQL/NewSQL.js +1 -1
- package/dist/containers/Tenant/Query/NewSQL/NewSQL.js.map +1 -1
- package/dist/containers/Tenant/Query/QueryEditor/QueryEditor.js +7 -7
- package/dist/containers/Tenant/Query/QueryEditor/QueryEditor.js.map +1 -1
- package/dist/containers/Tenant/Query/QueryEditor/QueryEditor.scss +4 -0
- package/dist/containers/Tenant/Query/QueryEditorControls/EditorButton.js +4 -4
- package/dist/containers/Tenant/Query/QueryEditorControls/EditorButton.js.map +1 -1
- package/dist/containers/Tenant/Query/QueryEditorControls/EditorButton.scss +12 -12
- package/dist/containers/Tenant/Query/QueryEditorControls/QueryEditorControls.js +2 -1
- package/dist/containers/Tenant/Query/QueryEditorControls/QueryEditorControls.js.map +1 -1
- package/dist/containers/Tenant/Query/QueryEditorControls/QueryEditorControls.scss +21 -5
- package/dist/containers/Tenant/Query/QueryResult/QueryResultViewer.js +79 -108
- package/dist/containers/Tenant/Query/QueryResult/QueryResultViewer.js.map +1 -1
- package/dist/containers/Tenant/Query/QueryResult/QueryResultViewer.scss +10 -6
- package/dist/containers/Tenant/Query/QueryResult/components/DiagnosticsButton/DiagnosticsButton.d.ts +11 -0
- package/dist/containers/Tenant/Query/QueryResult/components/DiagnosticsButton/DiagnosticsButton.js +21 -0
- package/dist/containers/Tenant/Query/QueryResult/components/DiagnosticsButton/DiagnosticsButton.js.map +1 -0
- package/dist/containers/Tenant/Query/QueryResult/components/ExecutionPlan/ExecutionPlan.d.ts +8 -0
- package/dist/containers/Tenant/Query/QueryResult/components/ExecutionPlan/ExecutionPlan.js +73 -0
- package/dist/containers/Tenant/Query/QueryResult/components/ExecutionPlan/ExecutionPlan.js.map +1 -0
- package/dist/containers/Tenant/Query/QueryResult/components/ExecutionPlan/ExecutionPlan.scss +34 -0
- package/dist/containers/Tenant/Query/QueryResult/components/ExecutionPlan/svgTheme.d.ts +18 -0
- package/dist/containers/Tenant/Query/QueryResult/components/ExecutionPlan/svgTheme.js +50 -0
- package/dist/containers/Tenant/Query/QueryResult/components/ExecutionPlan/svgTheme.js.map +1 -0
- package/dist/containers/Tenant/Query/QueryResult/components/ExecutionPlan/svgViewer.d.ts +1 -0
- package/dist/containers/Tenant/Query/QueryResult/components/ExecutionPlan/svgViewer.js +18 -0
- package/dist/containers/Tenant/Query/QueryResult/components/ExecutionPlan/svgViewer.js.map +1 -0
- package/dist/containers/Tenant/Query/QueryResult/components/PlanSection/PlanSection.d.ts +8 -7
- package/dist/containers/Tenant/Query/QueryResult/components/PlanSection/PlanSection.js +34 -35
- package/dist/containers/Tenant/Query/QueryResult/components/PlanSection/PlanSection.js.map +1 -1
- package/dist/containers/Tenant/Query/QueryResult/components/PlanSection/PlanSection.scss +31 -0
- package/dist/containers/Tenant/Query/QueryResult/components/QueryDataNotEnabled/QueryDataNotEnabled.d.ts +7 -0
- package/dist/containers/Tenant/Query/QueryResult/components/QueryDataNotEnabled/QueryDataNotEnabled.js +15 -0
- package/dist/containers/Tenant/Query/QueryResult/components/QueryDataNotEnabled/QueryDataNotEnabled.js.map +1 -0
- package/dist/containers/Tenant/Query/QueryResult/components/QueryDataNotEnabled/QueryDataNotEnabled.scss +8 -0
- package/dist/containers/Tenant/Query/QueryResult/components/QueryJSONViewer/QueryJSONViewer.js +3 -1
- package/dist/containers/Tenant/Query/QueryResult/components/QueryJSONViewer/QueryJSONViewer.js.map +1 -1
- package/dist/containers/Tenant/Query/QueryResult/components/QueryJSONViewer/QueryJSONViewer.scss +7 -2
- package/dist/containers/Tenant/Query/QueryResult/components/ResultSetsViewer/ResultSetsViewer.d.ts +1 -0
- package/dist/containers/Tenant/Query/QueryResult/components/ResultSetsViewer/ResultSetsViewer.js +12 -14
- package/dist/containers/Tenant/Query/QueryResult/components/ResultSetsViewer/ResultSetsViewer.js.map +1 -1
- package/dist/containers/Tenant/Query/QueryResult/components/ResultSetsViewer/ResultSetsViewer.scss +6 -1
- package/dist/containers/Tenant/Query/QueryResult/components/SimplifiedPlan/OperationCell.js +3 -3
- package/dist/containers/Tenant/Query/QueryResult/components/SimplifiedPlan/OperationCell.js.map +1 -1
- package/dist/containers/Tenant/Query/QueryResult/components/SimplifiedPlan/SimplifiedPlan.js +37 -16
- package/dist/containers/Tenant/Query/QueryResult/components/SimplifiedPlan/SimplifiedPlan.js.map +1 -1
- package/dist/containers/Tenant/Query/QueryResult/components/SimplifiedPlan/SimplifiedPlan.scss +28 -9
- package/dist/containers/Tenant/Query/QueryResult/constants.d.ts +3 -3
- package/dist/containers/Tenant/Query/QueryResult/constants.js +15 -12
- package/dist/containers/Tenant/Query/QueryResult/constants.js.map +1 -1
- package/dist/containers/Tenant/Query/QueryResult/i18n/en.json +22 -11
- package/dist/containers/Tenant/Query/QueryResult/i18n/index.d.ts +1 -1
- package/dist/containers/Tenant/Query/QueryResult/utils.d.ts +5 -2
- package/dist/containers/Tenant/Query/QueryResult/utils.js +67 -6
- package/dist/containers/Tenant/Query/QueryResult/utils.js.map +1 -1
- package/dist/containers/Tenant/Query/SaveQuery/SaveQuery.js +4 -3
- package/dist/containers/Tenant/Query/SaveQuery/SaveQuery.js.map +1 -1
- package/dist/containers/Tenant/Query/i18n/en.json +3 -2
- package/dist/containers/Tenant/Query/i18n/index.d.ts +1 -1
- package/dist/containers/Tenant/i18n/en.json +2 -0
- package/dist/containers/Tenant/i18n/index.d.ts +1 -1
- package/dist/containers/Tenant/utils/paneVisibilityToggleHelpers.d.ts +3 -1
- package/dist/containers/Tenant/utils/paneVisibilityToggleHelpers.js +3 -3
- package/dist/containers/Tenant/utils/paneVisibilityToggleHelpers.js.map +1 -1
- package/dist/containers/Tenant/utils/schemaQueryTemplates.js +14 -11
- package/dist/containers/Tenant/utils/schemaQueryTemplates.js.map +1 -1
- package/dist/containers/Tenant/utils/useSchemaPathSuggestions.d.ts +37 -0
- package/dist/containers/Tenant/utils/useSchemaPathSuggestions.js +44 -0
- package/dist/containers/Tenant/utils/useSchemaPathSuggestions.js.map +1 -0
- package/dist/containers/Tenants/TenantsTable.js +7 -1
- package/dist/containers/Tenants/TenantsTable.js.map +1 -1
- package/dist/containers/Tenants/bridgeColumns.d.ts +3 -0
- package/dist/containers/Tenants/bridgeColumns.js +37 -0
- package/dist/containers/Tenants/bridgeColumns.js.map +1 -0
- package/dist/containers/Tenants/constants.d.ts +4 -0
- package/dist/containers/Tenants/constants.js +10 -0
- package/dist/containers/Tenants/constants.js.map +1 -1
- package/dist/containers/Tenants/i18n/en.json +5 -1
- package/dist/containers/Tenants/i18n/index.d.ts +1 -1
- package/dist/containers/VDiskPage/VDiskStorageDetails.js +1 -0
- package/dist/containers/VDiskPage/VDiskStorageDetails.js.map +1 -1
- package/dist/containers/VDiskPage/VDiskStorageDetails.scss +4 -0
- package/dist/containers/Versions/Versions.js +10 -4
- package/dist/containers/Versions/Versions.js.map +1 -1
- package/dist/containers/Versions/Versions.scss +1 -4
- package/dist/containers/Versions/utils.d.ts +9 -1
- package/dist/containers/Versions/utils.js +17 -1
- package/dist/containers/Versions/utils.js.map +1 -1
- package/dist/lib.d.ts +1 -1
- package/dist/lib.js.map +1 -1
- package/dist/services/api/meta.d.ts +2 -0
- package/dist/services/api/meta.js +9 -0
- package/dist/services/api/meta.js.map +1 -1
- package/dist/services/parsers/parseControlPlaneOperation.d.ts +9 -0
- package/dist/services/parsers/parseControlPlaneOperation.js +27 -0
- package/dist/services/parsers/parseControlPlaneOperation.js.map +1 -0
- package/dist/store/configureStore.d.ts +1 -1
- package/dist/store/configureStore.js +3 -2
- package/dist/store/configureStore.js.map +1 -1
- package/dist/store/reducers/capabilities/hooks.d.ts +4 -0
- package/dist/store/reducers/capabilities/hooks.js +14 -0
- package/dist/store/reducers/capabilities/hooks.js.map +1 -1
- package/dist/store/reducers/clusters/selectors.d.ts +3 -2
- package/dist/store/reducers/clusters/selectors.js +8 -2
- package/dist/store/reducers/clusters/selectors.js.map +1 -1
- package/dist/store/reducers/operations.d.ts +6 -0
- package/dist/store/reducers/operations.js +25 -0
- package/dist/store/reducers/operations.js.map +1 -1
- package/dist/store/reducers/query/api.js +11 -7
- package/dist/store/reducers/query/api.js.map +1 -1
- package/dist/store/reducers/query/query.d.ts +1 -1
- package/dist/store/reducers/query/query.js +1 -1
- package/dist/store/reducers/query/query.js.map +1 -1
- package/dist/store/reducers/query/slice.d.ts +10 -2
- package/dist/store/reducers/query/slice.js +14 -3
- package/dist/store/reducers/query/slice.js.map +1 -1
- package/dist/store/reducers/query/streaming/reducers.js +1 -1
- package/dist/store/reducers/query/streaming/reducers.js.map +1 -1
- package/dist/store/reducers/query/types.d.ts +3 -0
- package/dist/store/reducers/query/utils.d.ts +1 -2
- package/dist/store/reducers/query/utils.js +0 -9
- package/dist/store/reducers/query/utils.js.map +1 -1
- package/dist/store/reducers/schema/schema.d.ts +25 -1
- package/dist/store/reducers/schema/schema.js +12 -0
- package/dist/store/reducers/schema/schema.js.map +1 -1
- package/dist/store/reducers/storage/types.d.ts +5 -2
- package/dist/store/reducers/storage/types.js.map +1 -1
- package/dist/store/reducers/storage/utils.js +3 -0
- package/dist/store/reducers/storage/utils.js.map +1 -1
- package/dist/store/reducers/streamingQuery/streamingQuery.js +5 -2
- package/dist/store/reducers/streamingQuery/streamingQuery.js.map +1 -1
- package/dist/store/reducers/tableData.d.ts +1 -1
- package/dist/store/reducers/tenant/tenant.d.ts +2 -0
- package/dist/store/reducers/tenant/tenant.js +9 -2
- package/dist/store/reducers/tenant/tenant.js.map +1 -1
- package/dist/store/reducers/tenants/utils.js +8 -1
- package/dist/store/reducers/tenants/utils.js.map +1 -1
- package/dist/store/runtimeParams.d.ts +3 -0
- package/dist/store/runtimeParams.js +5 -0
- package/dist/store/runtimeParams.js.map +1 -0
- package/dist/types/api/capabilities.d.ts +1 -1
- package/dist/types/api/cluster.d.ts +21 -0
- package/dist/types/api/cluster.js +8 -0
- package/dist/types/api/cluster.js.map +1 -1
- package/dist/types/api/controlPlaneOperations.d.ts +24 -0
- package/dist/types/api/controlPlaneOperations.js +2 -0
- package/dist/types/api/controlPlaneOperations.js.map +1 -0
- package/dist/types/api/nodes.d.ts +14 -0
- package/dist/types/api/nodes.js.map +1 -1
- package/dist/types/api/storage.d.ts +25 -4
- package/dist/types/api/storage.js.map +1 -1
- package/dist/types/api/tenant.d.ts +3 -0
- package/dist/types/api/tenant.js.map +1 -1
- package/dist/uiFactory/types.d.ts +6 -0
- package/dist/utils/dataIssues/classify.d.ts +37 -0
- package/dist/utils/dataIssues/classify.js +173 -0
- package/dist/utils/dataIssues/classify.js.map +1 -0
- package/dist/utils/dataIssues/dataQuality.d.ts +15 -0
- package/dist/utils/dataIssues/dataQuality.js +52 -0
- package/dist/utils/dataIssues/dataQuality.js.map +1 -0
- package/dist/utils/dataIssues/types.d.ts +18 -0
- package/dist/utils/dataIssues/types.js +2 -0
- package/dist/utils/dataIssues/types.js.map +1 -0
- package/dist/utils/dataIssues/useTableDataIssues.d.ts +45 -0
- package/dist/utils/dataIssues/useTableDataIssues.js +56 -0
- package/dist/utils/dataIssues/useTableDataIssues.js.map +1 -0
- package/dist/utils/dataIssues/useTableDataQuality.d.ts +24 -0
- package/dist/utils/dataIssues/useTableDataQuality.js +80 -0
- package/dist/utils/dataIssues/useTableDataQuality.js.map +1 -0
- package/dist/utils/nodes.d.ts +7 -0
- package/dist/utils/nodes.js +5 -0
- package/dist/utils/nodes.js.map +1 -1
- package/dist/utils/query.d.ts +1 -1
- package/dist/utils/query.js +3 -6
- package/dist/utils/query.js.map +1 -1
- package/package.json +2 -1
- package/src/components/BridgeSyncStatusLabel/BridgeSyncStatusLabel.tsx +77 -0
- package/src/components/BridgeSyncStatusLabel/i18n/en.json +7 -0
- package/src/components/BridgeSyncStatusLabel/i18n/index.ts +5 -0
- package/src/components/BridgeSyncStatusLabel/index.ts +1 -0
- package/src/components/ConnectToDB/ConnectToDBDialog.tsx +2 -1
- package/src/components/DataIssuesAlert/DataIssuesAlert.scss +21 -0
- package/src/components/DataIssuesAlert/DataIssuesAlert.tsx +79 -0
- package/src/components/DataIssuesAlert/DataIssuesIndicator.tsx +67 -0
- package/src/components/DataIssuesAlert/EmptyTableGroups.tsx +28 -0
- package/src/components/DataIssuesAlert/i18n/en.json +15 -0
- package/src/components/DataIssuesAlert/i18n/index.ts +8 -0
- package/src/components/DataIssuesAlert/i18n/ru.json +15 -0
- package/src/components/Datacenter/DatacenterLabel.scss +5 -0
- package/src/components/DiskPopup/DiskPopup.scss +4 -0
- package/src/components/DiskPopup/DiskPopup.tsx +4 -2
- package/src/components/EntityStatus/EntityStatus.scss +18 -0
- package/src/components/EntityStatus/EntityStatus.tsx +45 -13
- package/src/components/NodeHostWrapper/NodeHostWrapper.scss +8 -0
- package/src/components/NodeHostWrapper/NodeHostWrapper.tsx +65 -8
- package/src/components/NodeHostWrapper/i18n/en.json +3 -0
- package/src/components/NodeHostWrapper/i18n/index.ts +8 -0
- package/src/components/NodeHostWrapper/i18n/ru.json +3 -0
- package/src/components/PaginatedTable/PaginatedTable.tsx +9 -4
- package/src/components/PaginatedTable/ResizeablePaginatedTable.tsx +4 -4
- package/src/components/PaginatedTable/TableChunk.tsx +24 -4
- package/src/components/PaginatedTable/TableChunksRenderer.tsx +10 -5
- package/src/components/PaginatedTable/requestBatcher.ts +2 -0
- package/src/components/PaginatedTable/types.ts +18 -3
- package/src/components/StatusIconNew/StatusIcon.tsx +6 -2
- package/src/components/SuggestInput/SuggestInput.scss +28 -0
- package/src/components/SuggestInput/SuggestInput.tsx +210 -0
- package/src/components/nodesColumns/columns.tsx +2 -1
- package/src/components/nodesColumns/types.ts +2 -0
- package/src/containers/Cluster/ClusterInfo/ClusterInfo.tsx +2 -0
- package/src/containers/Cluster/ClusterOverview/components/BridgeDatabasesSummary.tsx +87 -0
- package/src/containers/Cluster/ClusterOverview/components/BridgeInfoTable.scss +36 -23
- package/src/containers/Cluster/ClusterOverview/components/BridgeInfoTable.tsx +165 -69
- package/src/containers/Cluster/ClusterOverview/components/bridgeInfo.ts +27 -0
- package/src/containers/Cluster/i18n/en.json +13 -0
- package/src/containers/Clusters/Clusters.tsx +34 -20
- package/src/containers/Header/hooks/useDatabaseData.ts +2 -1
- package/src/containers/Nodes/NodesControls/NodesControls.tsx +6 -0
- package/src/containers/Nodes/NodesTable.tsx +13 -1
- package/src/containers/Nodes/PaginatedNodes/GroupedNodesComponent.tsx +26 -1
- package/src/containers/Nodes/PaginatedNodes/NodesComponent.tsx +12 -0
- package/src/containers/Nodes/PaginatedNodes/NodesControlsWithTableState.tsx +5 -0
- package/src/containers/Nodes/getNodes.ts +4 -1
- package/src/containers/Operations/OperationError.tsx +42 -0
- package/src/containers/Operations/OperationUser.tsx +9 -0
- package/src/containers/Operations/Operations.scss +24 -0
- package/src/containers/Operations/Operations.tsx +121 -39
- package/src/containers/Operations/columns.tsx +15 -3
- package/src/containers/Operations/controlPlaneColumns.tsx +86 -0
- package/src/containers/Operations/i18n/en.json +21 -2
- package/src/containers/Operations/useOperationsInfiniteQuery.ts +61 -46
- package/src/containers/Operations/useOperationsQueryParams.ts +16 -0
- package/src/containers/Operations/useOperationsSource.ts +85 -0
- package/src/containers/Operations/utils.ts +29 -0
- package/src/containers/PDiskPage/PDiskStorageDetails.scss +4 -0
- package/src/containers/PDiskPage/PDiskStorageDetails.tsx +1 -0
- package/src/containers/Storage/PaginatedStorageGroups/GroupedStorageGroupsComponent.tsx +26 -1
- package/src/containers/Storage/PaginatedStorageGroups/PaginatedStorageGroups.tsx +6 -1
- package/src/containers/Storage/PaginatedStorageGroups/StorageGroupsComponent.tsx +11 -0
- package/src/containers/Storage/PaginatedStorageGroups/StorageGroupsControls.tsx +27 -7
- package/src/containers/Storage/PaginatedStorageGroups/useStorageGroupsBridgeGrouping.ts +13 -0
- package/src/containers/Storage/PaginatedStorageGroupsTable/PaginatedStorageGroupsTable.tsx +13 -3
- package/src/containers/Storage/PaginatedStorageGroupsTable/StorageGroupsEmptyDataMessage.tsx +8 -0
- package/src/containers/Storage/PaginatedStorageGroupsTable/columns/StorageGroupSyncPopover/StorageGroupSyncPopover.scss +12 -0
- package/src/containers/Storage/PaginatedStorageGroupsTable/columns/StorageGroupSyncPopover/StorageGroupSyncPopover.tsx +53 -0
- package/src/containers/Storage/PaginatedStorageGroupsTable/columns/StorageGroupSyncPopover/i18n/en.json +4 -0
- package/src/containers/Storage/PaginatedStorageGroupsTable/columns/StorageGroupSyncPopover/i18n/index.ts +5 -0
- package/src/containers/Storage/PaginatedStorageGroupsTable/columns/columns.tsx +31 -2
- package/src/containers/Storage/PaginatedStorageGroupsTable/columns/constants.ts +36 -4
- package/src/containers/Storage/PaginatedStorageGroupsTable/columns/hooks.ts +29 -14
- package/src/containers/Storage/PaginatedStorageGroupsTable/columns/i18n/en.json +5 -1
- package/src/containers/Storage/PaginatedStorageGroupsTable/getGroups.ts +12 -5
- package/src/containers/Storage/PaginatedStorageNodes/GroupedStorageNodesComponent.tsx +34 -3
- package/src/containers/Storage/PaginatedStorageNodes/StorageNodesComponent.tsx +17 -2
- package/src/containers/Storage/PaginatedStorageNodes/StorageNodesControls.tsx +11 -0
- package/src/containers/Storage/PaginatedStorageNodesTable/PaginatedStorageNodesTable.tsx +16 -3
- package/src/containers/Storage/PaginatedStorageNodesTable/StorageNodesEmptyDataMessage.tsx +8 -0
- package/src/containers/Storage/PaginatedStorageNodesTable/columns/columns.tsx +1 -1
- package/src/containers/Storage/PaginatedStorageNodesTable/getNodes.ts +4 -1
- package/src/containers/Storage/Storage.scss +16 -0
- package/src/containers/Storage/StorageGroupSyncDetails/StorageGroupSyncDetails.scss +78 -0
- package/src/containers/Storage/StorageGroupSyncDetails/StorageGroupSyncDetails.tsx +199 -0
- package/src/containers/Storage/StorageGroupSyncDetails/i18n/en.json +14 -0
- package/src/containers/Storage/StorageGroupSyncDetails/i18n/index.ts +6 -0
- package/src/containers/Storage/utils/index.ts +20 -0
- package/src/containers/StorageGroupPage/StorageGroupPage.scss +18 -0
- package/src/containers/StorageGroupPage/StorageGroupPage.tsx +27 -1
- package/src/containers/StorageGroupPage/i18n/en.json +2 -0
- package/src/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopNodesByCpu.tsx +12 -1
- package/src/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopNodesByLoad.tsx +12 -1
- package/src/containers/Tenant/Diagnostics/TenantOverview/TenantMemory/TopNodesByMemory.tsx +12 -1
- package/src/containers/Tenant/Diagnostics/TenantOverview/TenantNetwork/TopNodesByPing.tsx +12 -1
- package/src/containers/Tenant/Diagnostics/TenantOverview/TenantNetwork/TopNodesBySkew.tsx +12 -1
- package/src/containers/Tenant/Diagnostics/TenantOverview/TenantOverview.scss +4 -0
- package/src/containers/Tenant/Diagnostics/TenantOverview/TenantOverview.tsx +2 -1
- package/src/containers/Tenant/Diagnostics/TenantOverview/TenantOverviewTableLayout.tsx +4 -0
- package/src/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/TenantStorage.tsx +5 -1
- package/src/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/TopGroups.tsx +7 -1
- package/src/containers/Tenant/Diagnostics/TenantOverview/TopTablesDataIssues.tsx +41 -0
- package/src/containers/Tenant/ObjectSummary/CreateDirectoryDialog/CreateDirectoryDialog.tsx +18 -14
- package/src/containers/Tenant/ObjectSummary/CreateDirectoryDialog/validateRelativePath.ts +21 -0
- package/src/containers/Tenant/ObjectSummary/ObjectSummary.tsx +4 -0
- package/src/containers/Tenant/ObjectSummary/i18n/en.json +4 -0
- package/src/containers/Tenant/Query/NewSQL/NewSQL.tsx +1 -1
- package/src/containers/Tenant/Query/QueryEditor/QueryEditor.scss +4 -0
- package/src/containers/Tenant/Query/QueryEditor/QueryEditor.tsx +10 -9
- package/src/containers/Tenant/Query/QueryEditorControls/EditorButton.scss +12 -12
- package/src/containers/Tenant/Query/QueryEditorControls/EditorButton.tsx +10 -8
- package/src/containers/Tenant/Query/QueryEditorControls/QueryEditorControls.scss +21 -5
- package/src/containers/Tenant/Query/QueryEditorControls/QueryEditorControls.tsx +4 -1
- package/src/containers/Tenant/Query/QueryResult/QueryResultViewer.scss +10 -6
- package/src/containers/Tenant/Query/QueryResult/QueryResultViewer.tsx +144 -115
- package/src/containers/Tenant/Query/QueryResult/components/DiagnosticsButton/DiagnosticsButton.tsx +42 -0
- package/src/containers/Tenant/Query/QueryResult/components/ExecutionPlan/ExecutionPlan.scss +34 -0
- package/src/containers/Tenant/Query/QueryResult/components/ExecutionPlan/ExecutionPlan.tsx +158 -0
- package/src/containers/Tenant/Query/QueryResult/components/ExecutionPlan/svgTheme.ts +58 -0
- package/src/containers/Tenant/Query/QueryResult/components/ExecutionPlan/svgViewer.ts +17 -0
- package/src/containers/Tenant/Query/QueryResult/components/PlanSection/PlanSection.scss +31 -0
- package/src/containers/Tenant/Query/QueryResult/components/PlanSection/PlanSection.tsx +76 -44
- package/src/containers/Tenant/Query/QueryResult/components/QueryDataNotEnabled/QueryDataNotEnabled.scss +8 -0
- package/src/containers/Tenant/Query/QueryResult/components/QueryDataNotEnabled/QueryDataNotEnabled.tsx +43 -0
- package/src/containers/Tenant/Query/QueryResult/components/QueryJSONViewer/QueryJSONViewer.scss +7 -2
- package/src/containers/Tenant/Query/QueryResult/components/QueryJSONViewer/QueryJSONViewer.tsx +4 -1
- package/src/containers/Tenant/Query/QueryResult/components/ResultSetsViewer/ResultSetsViewer.scss +6 -1
- package/src/containers/Tenant/Query/QueryResult/components/ResultSetsViewer/ResultSetsViewer.tsx +32 -28
- package/src/containers/Tenant/Query/QueryResult/components/SimplifiedPlan/OperationCell.tsx +3 -3
- package/src/containers/Tenant/Query/QueryResult/components/SimplifiedPlan/SimplifiedPlan.scss +28 -9
- package/src/containers/Tenant/Query/QueryResult/components/SimplifiedPlan/SimplifiedPlan.tsx +49 -16
- package/src/containers/Tenant/Query/QueryResult/constants.ts +18 -12
- package/src/containers/Tenant/Query/QueryResult/i18n/en.json +22 -11
- package/src/containers/Tenant/Query/QueryResult/utils.ts +81 -7
- package/src/containers/Tenant/Query/SaveQuery/SaveQuery.tsx +12 -5
- package/src/containers/Tenant/Query/i18n/en.json +3 -2
- package/src/containers/Tenant/i18n/en.json +2 -0
- package/src/containers/Tenant/utils/paneVisibilityToggleHelpers.tsx +8 -2
- package/src/containers/Tenant/utils/schemaQueryTemplates.ts +16 -11
- package/src/containers/Tenant/utils/useSchemaPathSuggestions.ts +93 -0
- package/src/containers/Tenants/TenantsTable.tsx +11 -1
- package/src/containers/Tenants/bridgeColumns.tsx +50 -0
- package/src/containers/Tenants/constants.ts +10 -0
- package/src/containers/Tenants/i18n/en.json +6 -1
- package/src/containers/VDiskPage/VDiskStorageDetails.scss +4 -0
- package/src/containers/VDiskPage/VDiskStorageDetails.tsx +1 -0
- package/src/containers/Versions/Versions.scss +1 -4
- package/src/containers/Versions/Versions.tsx +20 -3
- package/src/containers/Versions/utils.ts +22 -1
- package/src/lib.ts +1 -0
- package/src/services/api/meta.ts +22 -0
- package/src/services/parsers/parseControlPlaneOperation.ts +41 -0
- package/src/store/configureStore.ts +3 -5
- package/src/store/reducers/capabilities/hooks.ts +18 -0
- package/src/store/reducers/clusters/selectors.ts +23 -4
- package/src/store/reducers/operations.ts +42 -0
- package/src/store/reducers/query/api.ts +10 -6
- package/src/store/reducers/query/query.ts +2 -0
- package/src/store/reducers/query/slice.ts +17 -1
- package/src/store/reducers/query/streaming/reducers.ts +1 -1
- package/src/store/reducers/query/types.ts +4 -0
- package/src/store/reducers/query/utils.ts +0 -15
- package/src/store/reducers/schema/schema.ts +17 -1
- package/src/store/reducers/storage/types.ts +10 -2
- package/src/store/reducers/storage/utils.ts +3 -0
- package/src/store/reducers/streamingQuery/streamingQuery.ts +6 -2
- package/src/store/reducers/tenant/tenant.ts +11 -2
- package/src/store/reducers/tenants/utils.ts +9 -1
- package/src/store/runtimeParams.ts +10 -0
- package/src/types/api/capabilities.ts +1 -0
- package/src/types/api/cluster.ts +23 -0
- package/src/types/api/controlPlaneOperations.ts +24 -0
- package/src/types/api/nodes.ts +15 -0
- package/src/types/api/storage.ts +37 -1
- package/src/types/api/tenant.ts +3 -0
- package/src/uiFactory/types.ts +5 -0
- package/src/utils/dataIssues/classify.ts +233 -0
- package/src/utils/dataIssues/dataQuality.ts +75 -0
- package/src/utils/dataIssues/types.ts +21 -0
- package/src/utils/dataIssues/useTableDataIssues.ts +98 -0
- package/src/utils/dataIssues/useTableDataQuality.ts +115 -0
- package/src/utils/nodes.ts +10 -0
- package/src/utils/query.ts +4 -7
- package/dist/containers/Tenant/Query/QueryResult/components/QueryInfoDropdown/QueryInfoDropdown.d.ts +0 -8
- package/dist/containers/Tenant/Query/QueryResult/components/QueryInfoDropdown/QueryInfoDropdown.js +0 -24
- package/dist/containers/Tenant/Query/QueryResult/components/QueryInfoDropdown/QueryInfoDropdown.js.map +0 -1
- package/dist/containers/Tenant/Query/QueryResult/components/QueryInfoDropdown/useQueryInfoMenuItems.d.ts +0 -23
- package/dist/containers/Tenant/Query/QueryResult/components/QueryInfoDropdown/useQueryInfoMenuItems.js +0 -100
- package/dist/containers/Tenant/Query/QueryResult/components/QueryInfoDropdown/useQueryInfoMenuItems.js.map +0 -1
- package/src/containers/Tenant/Query/QueryResult/components/QueryInfoDropdown/QueryInfoDropdown.tsx +0 -57
- package/src/containers/Tenant/Query/QueryResult/components/QueryInfoDropdown/useQueryInfoMenuItems.tsx +0 -143
package/src/containers/Tenant/Query/QueryResult/components/SimplifiedPlan/SimplifiedPlan.tsx
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
|
|
3
3
|
import {useTable} from '@gravity-ui/table';
|
|
4
|
+
import {useResizeObserver} from '@gravity-ui/uikit';
|
|
4
5
|
import type {CellContext, ColumnDef, ExpandedState} from '@tanstack/react-table';
|
|
5
6
|
|
|
6
7
|
import {ColumnHeader, Table} from '../../../../../../components/Table/Table';
|
|
@@ -36,7 +37,7 @@ const columns: ColumnDef<ExtendedSimplifiesPlanItem>[] = [
|
|
|
36
37
|
accessorKey: 'name',
|
|
37
38
|
accessorFn: nameAccessorFn,
|
|
38
39
|
header: () => <ColumnHeader>Operation</ColumnHeader>,
|
|
39
|
-
|
|
40
|
+
minSize: 240,
|
|
40
41
|
cell: (info) => (
|
|
41
42
|
<OperationCell
|
|
42
43
|
row={info.row}
|
|
@@ -48,40 +49,40 @@ const columns: ColumnDef<ExtendedSimplifiesPlanItem>[] = [
|
|
|
48
49
|
{
|
|
49
50
|
accessorKey: 'aCpu',
|
|
50
51
|
header: () => <ColumnHeader>A-Cpu</ColumnHeader>,
|
|
51
|
-
size:
|
|
52
|
-
minSize:
|
|
52
|
+
size: 89,
|
|
53
|
+
minSize: 89,
|
|
53
54
|
cell: cpuCell,
|
|
54
55
|
meta: {align: 'right', verticalAlign: 'top'},
|
|
55
56
|
},
|
|
56
57
|
{
|
|
57
58
|
accessorKey: 'aRows',
|
|
58
59
|
header: () => <ColumnHeader>A-Rows</ColumnHeader>,
|
|
59
|
-
size:
|
|
60
|
-
minSize:
|
|
60
|
+
size: 89,
|
|
61
|
+
minSize: 89,
|
|
61
62
|
cell: metricsCell,
|
|
62
63
|
meta: {align: 'right', verticalAlign: 'top'},
|
|
63
64
|
},
|
|
64
65
|
{
|
|
65
66
|
accessorKey: 'eCost',
|
|
66
67
|
header: () => <ColumnHeader>E-Cost</ColumnHeader>,
|
|
67
|
-
size:
|
|
68
|
-
minSize:
|
|
68
|
+
size: 89,
|
|
69
|
+
minSize: 89,
|
|
69
70
|
cell: metricsCell,
|
|
70
71
|
meta: {align: 'right', verticalAlign: 'top'},
|
|
71
72
|
},
|
|
72
73
|
{
|
|
73
74
|
accessorKey: 'eRows',
|
|
74
75
|
header: () => <ColumnHeader>E-Rows</ColumnHeader>,
|
|
75
|
-
size:
|
|
76
|
-
minSize:
|
|
76
|
+
size: 89,
|
|
77
|
+
minSize: 89,
|
|
77
78
|
cell: metricsCell,
|
|
78
79
|
meta: {align: 'right', verticalAlign: 'top'},
|
|
79
80
|
},
|
|
80
81
|
{
|
|
81
82
|
accessorKey: 'eSize',
|
|
82
83
|
header: () => <ColumnHeader>E-Size</ColumnHeader>,
|
|
83
|
-
size:
|
|
84
|
-
minSize:
|
|
84
|
+
size: 85,
|
|
85
|
+
minSize: 85,
|
|
85
86
|
cell: metricsCell,
|
|
86
87
|
meta: {align: 'right', verticalAlign: 'top'},
|
|
87
88
|
},
|
|
@@ -94,19 +95,51 @@ interface SimplifiedPlanProps {
|
|
|
94
95
|
export function SimplifiedPlan({plan}: SimplifiedPlanProps) {
|
|
95
96
|
const planWithLinesInfo = React.useMemo(() => getExtendedTreeNodes(plan), [plan]);
|
|
96
97
|
const [expanded, setExpanded] = React.useState<ExpandedState>(true);
|
|
98
|
+
const containerRef = React.useRef<HTMLDivElement>(null);
|
|
99
|
+
const [availableWidth, setAvailableWidth] = React.useState(0);
|
|
100
|
+
const tableColumns = React.useMemo(() => {
|
|
101
|
+
const metricsWidth = columns
|
|
102
|
+
.slice(1)
|
|
103
|
+
.reduce((width, column) => width + (column.size ?? 0), 0);
|
|
104
|
+
return [
|
|
105
|
+
{...columns[0], size: Math.max(240, availableWidth - metricsWidth)},
|
|
106
|
+
...columns.slice(1),
|
|
107
|
+
];
|
|
108
|
+
}, [availableWidth]);
|
|
97
109
|
|
|
98
110
|
const table = useTable({
|
|
99
|
-
columns,
|
|
111
|
+
columns: tableColumns,
|
|
100
112
|
data: planWithLinesInfo,
|
|
101
113
|
getSubRows: (item) => item.children,
|
|
102
114
|
enableExpanding: true,
|
|
103
115
|
onExpandedChange: setExpanded,
|
|
104
|
-
state: {
|
|
105
|
-
expanded,
|
|
106
|
-
},
|
|
116
|
+
state: {expanded},
|
|
107
117
|
enableColumnResizing: true,
|
|
108
118
|
columnResizeMode: 'onChange',
|
|
109
119
|
});
|
|
110
120
|
|
|
111
|
-
|
|
121
|
+
const measure = React.useCallback(() => {
|
|
122
|
+
const element = containerRef.current;
|
|
123
|
+
if (element && Object.keys(table.getState().columnSizing).length === 0) {
|
|
124
|
+
const style = getComputedStyle(element);
|
|
125
|
+
setAvailableWidth(
|
|
126
|
+
element.clientWidth -
|
|
127
|
+
parseFloat(style.paddingLeft) -
|
|
128
|
+
parseFloat(style.paddingRight),
|
|
129
|
+
);
|
|
130
|
+
}
|
|
131
|
+
}, [table]);
|
|
132
|
+
React.useLayoutEffect(measure, [measure]);
|
|
133
|
+
useResizeObserver({ref: containerRef, onResize: measure});
|
|
134
|
+
|
|
135
|
+
return (
|
|
136
|
+
<div className={block()} ref={containerRef}>
|
|
137
|
+
<Table
|
|
138
|
+
table={table}
|
|
139
|
+
className={block('table')}
|
|
140
|
+
stickyHeader
|
|
141
|
+
attributes={{style: {width: table.getTotalSize()}}}
|
|
142
|
+
/>
|
|
143
|
+
</div>
|
|
144
|
+
);
|
|
112
145
|
}
|
|
@@ -4,9 +4,8 @@ import {QUERY_ACTIONS} from '../../../../utils/query';
|
|
|
4
4
|
|
|
5
5
|
export const RESULT_OPTIONS_IDS = {
|
|
6
6
|
result: 'result',
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
json: 'json',
|
|
7
|
+
queryPlan: 'query-plan',
|
|
8
|
+
executionPlan: 'execution-plan',
|
|
10
9
|
stats: 'stats',
|
|
11
10
|
ast: 'ast',
|
|
12
11
|
} as const;
|
|
@@ -22,28 +21,28 @@ const RESULT_VIEW_CONFIG: Record<QueryAction, ResultViewConfig> = {
|
|
|
22
21
|
[QUERY_ACTIONS.execute]: {
|
|
23
22
|
sections: [
|
|
24
23
|
RESULT_OPTIONS_IDS.result,
|
|
25
|
-
RESULT_OPTIONS_IDS.
|
|
26
|
-
RESULT_OPTIONS_IDS.
|
|
24
|
+
RESULT_OPTIONS_IDS.queryPlan,
|
|
25
|
+
RESULT_OPTIONS_IDS.executionPlan,
|
|
27
26
|
RESULT_OPTIONS_IDS.stats,
|
|
28
27
|
],
|
|
29
28
|
defaultSection: RESULT_OPTIONS_IDS.result,
|
|
30
29
|
},
|
|
31
30
|
[QUERY_ACTIONS.explain]: {
|
|
32
31
|
sections: [
|
|
33
|
-
RESULT_OPTIONS_IDS.
|
|
34
|
-
RESULT_OPTIONS_IDS.
|
|
35
|
-
RESULT_OPTIONS_IDS.json,
|
|
32
|
+
RESULT_OPTIONS_IDS.queryPlan,
|
|
33
|
+
RESULT_OPTIONS_IDS.executionPlan,
|
|
36
34
|
RESULT_OPTIONS_IDS.ast,
|
|
37
35
|
],
|
|
38
|
-
defaultSection: RESULT_OPTIONS_IDS.
|
|
36
|
+
defaultSection: RESULT_OPTIONS_IDS.queryPlan,
|
|
39
37
|
},
|
|
40
38
|
[QUERY_ACTIONS.explainAnalyze]: {
|
|
41
39
|
sections: [
|
|
42
|
-
RESULT_OPTIONS_IDS.
|
|
43
|
-
RESULT_OPTIONS_IDS.
|
|
40
|
+
RESULT_OPTIONS_IDS.result,
|
|
41
|
+
RESULT_OPTIONS_IDS.queryPlan,
|
|
42
|
+
RESULT_OPTIONS_IDS.executionPlan,
|
|
44
43
|
RESULT_OPTIONS_IDS.stats,
|
|
45
44
|
],
|
|
46
|
-
defaultSection: RESULT_OPTIONS_IDS.
|
|
45
|
+
defaultSection: RESULT_OPTIONS_IDS.queryPlan,
|
|
47
46
|
},
|
|
48
47
|
};
|
|
49
48
|
|
|
@@ -54,3 +53,10 @@ export function getResultSections(resultType: QueryAction): SectionID[] {
|
|
|
54
53
|
export function getDefaultResultSection(resultType: QueryAction): SectionID {
|
|
55
54
|
return RESULT_VIEW_CONFIG[resultType].defaultSection;
|
|
56
55
|
}
|
|
56
|
+
|
|
57
|
+
export function resolveResultSection(resultType: QueryAction, savedTab?: string): SectionID {
|
|
58
|
+
return (
|
|
59
|
+
getResultSections(resultType).find((section) => section === savedTab) ??
|
|
60
|
+
getDefaultResultSection(resultType)
|
|
61
|
+
);
|
|
62
|
+
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"description.graph-is-not-supported": "Graph can not be rendered",
|
|
3
3
|
"description.empty-result": "There is no {{activeSection}} for the request",
|
|
4
|
+
"action_collapse-results": "Collapse results",
|
|
5
|
+
"action_expand-results": "Expand results",
|
|
4
6
|
"action.result": "Result",
|
|
5
7
|
"action.stats": "Stats",
|
|
6
|
-
"action.schema": "Computation Graph",
|
|
7
|
-
"action.explain-plan": "Explain",
|
|
8
8
|
"action.json": "JSON",
|
|
9
9
|
"action.ast": "AST",
|
|
10
10
|
"action.copy": "Copy {{activeSection}}",
|
|
@@ -13,16 +13,27 @@
|
|
|
13
13
|
"trace": "Trace",
|
|
14
14
|
"title.truncated": "Truncated",
|
|
15
15
|
"title.result": "Result",
|
|
16
|
-
"tooltip_actions": "Actions",
|
|
17
|
-
"text_open-execution-plan": "Open Execution Plan",
|
|
18
|
-
"text_open-execution-plan_description": "New tab",
|
|
19
|
-
"text_download": "Download Execution Plan",
|
|
20
|
-
"text_download_description": "SVG",
|
|
21
|
-
"text_diagnostics": "Download Diagnostics",
|
|
22
|
-
"text_diagnostics_description": "JSON",
|
|
23
|
-
"text_error-plan-svg": "Error: {{error}}",
|
|
24
16
|
"error.title": "Query Failed",
|
|
25
17
|
"error.description": "An error occurred, please see the Result tab for details",
|
|
26
18
|
"stopped.title": "Query stopped",
|
|
27
|
-
"stopped.description": "Query was stopped"
|
|
19
|
+
"stopped.description": "Query was stopped",
|
|
20
|
+
"title_query-plan": "Query Plan",
|
|
21
|
+
"title_execution-plan": "Execution Plan",
|
|
22
|
+
"title_query-plan-view": "Query plan representation",
|
|
23
|
+
"action_table": "Table",
|
|
24
|
+
"action_graph": "Graph",
|
|
25
|
+
"action_diagnostics-json": "Diagnostics .JSON",
|
|
26
|
+
"action_download-svg": "Download .SVG",
|
|
27
|
+
"action_open-svg": "Open in new tab",
|
|
28
|
+
"action_retry": "Retry",
|
|
29
|
+
"context_execution-plan-unavailable": "There is no execution plan for this query",
|
|
30
|
+
"alert_execution-plan-image": "The execution plan could not be displayed",
|
|
31
|
+
"context_ast": "AST (Abstract Syntax Tree) — tree-structured representation of the query, generated immediately after SQL parsing (before optimization).",
|
|
32
|
+
"value_rows-per-second": "{{value}} result rows/s",
|
|
33
|
+
"title_result-views": "Result views",
|
|
34
|
+
"title_query-plan-not-enabled": "Query plan not enabled",
|
|
35
|
+
"context_query-plan-not-enabled": "Select **Full** mode for statistics collection to\u00a0collect statistics and query plan in query settings",
|
|
36
|
+
"action_open-query-settings": "Open query settings",
|
|
37
|
+
"title_statistics-not-enabled": "Statistics not enabled",
|
|
38
|
+
"context_statistics-not-enabled": "Select **Basic** or\u00a0**Full** mode for statistics collection in query settings"
|
|
28
39
|
}
|
|
@@ -1,11 +1,85 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
1
|
+
import type {
|
|
2
|
+
PreparedQueryData,
|
|
3
|
+
QueryPlanView,
|
|
4
|
+
QueryResult,
|
|
5
|
+
} from '../../../../store/reducers/query/types';
|
|
6
|
+
import {MAX_QUERY_LIMIT_ROWS} from '../../../../utils/query';
|
|
7
|
+
import {safeParseNumber} from '../../../../utils/utils';
|
|
3
8
|
|
|
4
|
-
export function
|
|
9
|
+
export function getInitialQueryPlanView(data: PreparedQueryData): QueryPlanView {
|
|
10
|
+
if (data.simplifiedPlan?.plan?.length) {
|
|
11
|
+
return 'table';
|
|
12
|
+
}
|
|
13
|
+
if (data.preparedPlan?.nodes?.length) {
|
|
14
|
+
return 'graph';
|
|
15
|
+
}
|
|
16
|
+
if (data.plan || data.preparedPlan?.pristine) {
|
|
17
|
+
return 'json';
|
|
18
|
+
}
|
|
19
|
+
return 'table';
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export function getResultRowsPerSecond(result: QueryResult): number | undefined {
|
|
23
|
+
const {data, error, isLoading, limitRows, streamingStatus} = result;
|
|
24
|
+
if (
|
|
25
|
+
error ||
|
|
26
|
+
isLoading ||
|
|
27
|
+
streamingStatus ||
|
|
28
|
+
!result.endTime ||
|
|
29
|
+
data?.resultSets?.length !== 1 ||
|
|
30
|
+
data.stats?.Executions?.length !== 1
|
|
31
|
+
) {
|
|
32
|
+
return undefined;
|
|
33
|
+
}
|
|
34
|
+
const resultSet = data.resultSets[0];
|
|
35
|
+
const {ResultRows, DurationUs} = data.stats.Executions[0];
|
|
36
|
+
if (!resultSet?.result || resultSet.truncated) {
|
|
37
|
+
return undefined;
|
|
38
|
+
}
|
|
39
|
+
const rows = resultSet.result.length;
|
|
40
|
+
// Viewer can stop exactly at limit_rows without marking the final chunk truncated.
|
|
41
|
+
if (
|
|
42
|
+
!limitRows ||
|
|
43
|
+
!Number.isSafeInteger(limitRows) ||
|
|
44
|
+
limitRows > MAX_QUERY_LIMIT_ROWS ||
|
|
45
|
+
rows >= limitRows
|
|
46
|
+
) {
|
|
47
|
+
return undefined;
|
|
48
|
+
}
|
|
49
|
+
const duration = safeParseNumber(DurationUs, NaN);
|
|
50
|
+
if (
|
|
51
|
+
(ResultRows !== undefined && safeParseNumber(ResultRows, NaN) !== rows) ||
|
|
52
|
+
!Number.isFinite(duration) ||
|
|
53
|
+
duration <= 0
|
|
54
|
+
) {
|
|
55
|
+
return undefined;
|
|
56
|
+
}
|
|
57
|
+
const rate = (rows * 1_000_000) / duration;
|
|
58
|
+
return Number.isFinite(rate) ? rate : undefined;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
function isCompletedRun(result: QueryResult): boolean {
|
|
5
62
|
return Boolean(
|
|
6
|
-
result.
|
|
7
|
-
result.
|
|
8
|
-
|
|
9
|
-
|
|
63
|
+
!result.error &&
|
|
64
|
+
!result.isLoading &&
|
|
65
|
+
!result.streamingStatus &&
|
|
66
|
+
result.endTime &&
|
|
67
|
+
result.type === 'execute',
|
|
10
68
|
);
|
|
11
69
|
}
|
|
70
|
+
|
|
71
|
+
export function isQueryPlanNotEnabled(result: QueryResult): boolean {
|
|
72
|
+
const {data, statisticsMode} = result;
|
|
73
|
+
return (
|
|
74
|
+
isCompletedRun(result) &&
|
|
75
|
+
(statisticsMode === 'none' || statisticsMode === 'basic') &&
|
|
76
|
+
!data?.plan &&
|
|
77
|
+
!data?.preparedPlan?.pristine &&
|
|
78
|
+
!data?.preparedPlan?.nodes?.length &&
|
|
79
|
+
!data?.simplifiedPlan?.plan?.length
|
|
80
|
+
);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export function isStatisticsNotEnabled(result: QueryResult): boolean {
|
|
84
|
+
return isCompletedRun(result) && result.statisticsMode === 'none' && !result.data?.stats;
|
|
85
|
+
}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
|
|
3
3
|
import NiceModal from '@ebay/nice-modal-react';
|
|
4
|
+
import {FloppyDisk} from '@gravity-ui/icons';
|
|
4
5
|
import type {ButtonButtonProps} from '@gravity-ui/uikit';
|
|
5
|
-
import {Button, Dialog, DropdownMenu, TextInput} from '@gravity-ui/uikit';
|
|
6
|
+
import {ActionTooltip, Button, Dialog, DropdownMenu, Icon, TextInput} from '@gravity-ui/uikit';
|
|
6
7
|
|
|
7
8
|
import {
|
|
8
9
|
selectActiveTab,
|
|
@@ -125,9 +126,11 @@ export function SaveQuery({buttonProps = {}}: SaveQueryProps) {
|
|
|
125
126
|
<DropdownMenu
|
|
126
127
|
items={items}
|
|
127
128
|
renderSwitcher={(props) => (
|
|
128
|
-
<
|
|
129
|
-
{i18n('action.edit')}
|
|
130
|
-
|
|
129
|
+
<ActionTooltip title={i18n('action.edit')}>
|
|
130
|
+
<Button {...props} {...buttonProps} aria-label={i18n('action.edit')}>
|
|
131
|
+
<Icon data={FloppyDisk} size={16} />
|
|
132
|
+
</Button>
|
|
133
|
+
</ActionTooltip>
|
|
131
134
|
)}
|
|
132
135
|
popupProps={{placement: 'top'}}
|
|
133
136
|
/>
|
|
@@ -137,7 +140,11 @@ export function SaveQuery({buttonProps = {}}: SaveQueryProps) {
|
|
|
137
140
|
return currentSavedQueryName ? (
|
|
138
141
|
renderSaveDropdownMenu()
|
|
139
142
|
) : (
|
|
140
|
-
<
|
|
143
|
+
<ActionTooltip title={i18n('action.save')}>
|
|
144
|
+
<Button onClick={onSaveQueryClick} {...buttonProps} aria-label={i18n('action.save')}>
|
|
145
|
+
<Icon data={FloppyDisk} size={16} />
|
|
146
|
+
</Button>
|
|
147
|
+
</ActionTooltip>
|
|
141
148
|
);
|
|
142
149
|
}
|
|
143
150
|
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"action_explain-query": "Explain",
|
|
56
56
|
"action_explain-analyze-query": "Explain Analyze",
|
|
57
57
|
"alert_explain-analyze-executes-query": "The query will be executed",
|
|
58
|
-
"alert_explain-analyze-applies-changes": "Any changes will be applied to the database.
|
|
58
|
+
"alert_explain-analyze-applies-changes": "Any changes will be applied to the database.",
|
|
59
59
|
"action_edit-query": "Edit",
|
|
60
60
|
"action_rename-query": "Rename",
|
|
61
61
|
"action_expand-query-view": "Expand",
|
|
@@ -104,5 +104,6 @@
|
|
|
104
104
|
"field_query-status": "Status",
|
|
105
105
|
|
|
106
106
|
"action_open-query-in-editor": "Open in editor",
|
|
107
|
-
"title_query-history-details": "Query"
|
|
107
|
+
"title_query-history-details": "Query",
|
|
108
|
+
"action_query-settings": "Query settings"
|
|
108
109
|
}
|
|
@@ -78,6 +78,8 @@
|
|
|
78
78
|
"alert_invalid-path": "Invalid path",
|
|
79
79
|
"alert_whitespace-not-allowed": "Whitespace is not allowed",
|
|
80
80
|
"alert_empty-path": "Path is empty",
|
|
81
|
+
"alert_directory-name-required": "Add the name of the new directory",
|
|
82
|
+
"alert_directory-exists": "Directory already exists",
|
|
81
83
|
"title_create-directory": "Create directory",
|
|
82
84
|
"field_parent-directory": "Inside",
|
|
83
85
|
"action_cancel": "Cancel",
|
|
@@ -59,6 +59,8 @@ interface ToggleButtonProps {
|
|
|
59
59
|
isCollapsed?: boolean;
|
|
60
60
|
initialDirection?: 'right' | 'left' | 'top' | 'bottom';
|
|
61
61
|
className?: string;
|
|
62
|
+
collapseLabel: string;
|
|
63
|
+
expandLabel: string;
|
|
62
64
|
}
|
|
63
65
|
|
|
64
66
|
const b = cn('kv-pane-visibility-button');
|
|
@@ -69,13 +71,16 @@ export function PaneVisibilityToggleButtons({
|
|
|
69
71
|
isCollapsed,
|
|
70
72
|
initialDirection = 'top',
|
|
71
73
|
className,
|
|
74
|
+
collapseLabel,
|
|
75
|
+
expandLabel,
|
|
72
76
|
}: ToggleButtonProps) {
|
|
73
77
|
useResizeObserverTrigger([isCollapsed]);
|
|
74
78
|
return (
|
|
75
79
|
<React.Fragment>
|
|
76
|
-
<ActionTooltip title=
|
|
80
|
+
<ActionTooltip title={collapseLabel}>
|
|
77
81
|
<Button
|
|
78
82
|
view="flat-secondary"
|
|
83
|
+
aria-label={collapseLabel}
|
|
79
84
|
onClick={onCollapse}
|
|
80
85
|
className={b(
|
|
81
86
|
{
|
|
@@ -89,9 +94,10 @@ export function PaneVisibilityToggleButtons({
|
|
|
89
94
|
</Button>
|
|
90
95
|
</ActionTooltip>
|
|
91
96
|
|
|
92
|
-
<ActionTooltip title=
|
|
97
|
+
<ActionTooltip title={expandLabel}>
|
|
93
98
|
<Button
|
|
94
99
|
view="flat-secondary"
|
|
100
|
+
aria-label={expandLabel}
|
|
95
101
|
onClick={onExpand}
|
|
96
102
|
className={b(
|
|
97
103
|
{
|
|
@@ -20,6 +20,18 @@ function normalizeParameter(param: string) {
|
|
|
20
20
|
return param.replace(/\$/g, '\\$');
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
+
function escapeSnippetText(text: string) {
|
|
24
|
+
return text.replace(/[$}\\]/g, '\\$&');
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
function getStreamingQueryNameSnippet(relativePath?: string) {
|
|
28
|
+
if (!relativePath) {
|
|
29
|
+
return '${1:<my_streaming_query>}';
|
|
30
|
+
}
|
|
31
|
+
const escapedName = relativePath.replace(/[\\`]/g, '\\$&');
|
|
32
|
+
return escapeSnippetText(`\`${escapedName}\``);
|
|
33
|
+
}
|
|
34
|
+
|
|
23
35
|
function toLF(str: string) {
|
|
24
36
|
return str.replace(/\r\n?/g, '\n');
|
|
25
37
|
}
|
|
@@ -430,9 +442,7 @@ END DO;`;
|
|
|
430
442
|
};
|
|
431
443
|
|
|
432
444
|
export const alterStreamingQuerySettingsTemplate = (params?: SchemaQueryParams) => {
|
|
433
|
-
const streamingQueryName = params?.relativePath
|
|
434
|
-
? `\`${normalizeParameter(params.relativePath)}\``
|
|
435
|
-
: '${1:<my_streaming_query>}';
|
|
445
|
+
const streamingQueryName = getStreamingQueryNameSnippet(params?.relativePath);
|
|
436
446
|
return `ALTER STREAMING QUERY ${streamingQueryName} SET (
|
|
437
447
|
RUN = FALSE, -- Stop query execution
|
|
438
448
|
RESOURCE_POOL = "default" -- Workload manager pool for query
|
|
@@ -440,18 +450,15 @@ export const alterStreamingQuerySettingsTemplate = (params?: SchemaQueryParams)
|
|
|
440
450
|
};
|
|
441
451
|
|
|
442
452
|
export const alterStreamingQueryText = (params?: SchemaQueryParams) => {
|
|
443
|
-
const streamingQueryName = params?.relativePath
|
|
444
|
-
? `\`${normalizeParameter(params.relativePath)}\``
|
|
445
|
-
: '${1:<my_streaming_query>}';
|
|
453
|
+
const streamingQueryName = getStreamingQueryNameSnippet(params?.relativePath);
|
|
446
454
|
|
|
447
455
|
const sysData = params?.streamingQueryData;
|
|
448
456
|
const rawQueryText = getStringifiedData(sysData?.resultSets?.[0]?.result?.[0]?.Text);
|
|
449
457
|
let queryText = toLF(rawQueryText);
|
|
450
458
|
queryText = trimOuterEmptyLines(queryText);
|
|
451
459
|
queryText = stripIndentByFirstLine(queryText);
|
|
452
|
-
queryText = normalizeParameter(queryText);
|
|
453
460
|
|
|
454
|
-
const bodyQueryText = queryText ? queryText : '${2:<streaming_query_text>}';
|
|
461
|
+
const bodyQueryText = queryText ? escapeSnippetText(queryText) : '${2:<streaming_query_text>}';
|
|
455
462
|
return `ALTER STREAMING QUERY ${streamingQueryName} SET (
|
|
456
463
|
FORCE = TRUE, -- Allow to drop last query checkpoint if query state can't be loaded
|
|
457
464
|
) AS
|
|
@@ -463,9 +470,7 @@ END DO;`;
|
|
|
463
470
|
};
|
|
464
471
|
|
|
465
472
|
export const dropStreamingQueryTemplate = (params?: SchemaQueryParams) => {
|
|
466
|
-
const streamingQueryName = params?.relativePath
|
|
467
|
-
? `\`${normalizeParameter(params.relativePath)}\``
|
|
468
|
-
: '${1:<my_streaming_query>}';
|
|
473
|
+
const streamingQueryName = getStreamingQueryNameSnippet(params?.relativePath);
|
|
469
474
|
return `DROP STREAMING QUERY ${streamingQueryName};`;
|
|
470
475
|
};
|
|
471
476
|
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
import type {SuggestInputItem} from '../../../components/SuggestInput/SuggestInput';
|
|
4
|
+
import {useClusterWithProxy} from '../../../store/reducers/cluster/cluster';
|
|
5
|
+
import {schemaApi} from '../../../store/reducers/schema/schema';
|
|
6
|
+
import type {TDirEntry} from '../../../types/api/schema';
|
|
7
|
+
import {EPathType} from '../../../types/api/schema';
|
|
8
|
+
|
|
9
|
+
const DEFAULT_PATH_TYPES = [EPathType.EPathTypeDir];
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Splits the typed relative path into the part that is already complete
|
|
13
|
+
* (everything up to the last slash) and the name that is being typed.
|
|
14
|
+
*/
|
|
15
|
+
export function splitPathInput(value: string) {
|
|
16
|
+
const lastSlashIndex = value.lastIndexOf('/');
|
|
17
|
+
const completed = value.slice(0, lastSlashIndex + 1);
|
|
18
|
+
|
|
19
|
+
return {
|
|
20
|
+
/** Typed text up to the last slash inclusive, kept as is */
|
|
21
|
+
completed,
|
|
22
|
+
/** Non-empty segments of the completed part */
|
|
23
|
+
segments: completed.split('/').filter(Boolean),
|
|
24
|
+
/** Beginning of the name that is being typed */
|
|
25
|
+
namePrefix: value.slice(lastSlashIndex + 1),
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export function getPathSuggestions({
|
|
30
|
+
value,
|
|
31
|
+
entries = [],
|
|
32
|
+
pathTypes = DEFAULT_PATH_TYPES,
|
|
33
|
+
}: {
|
|
34
|
+
value: string;
|
|
35
|
+
entries?: TDirEntry[];
|
|
36
|
+
pathTypes?: EPathType[];
|
|
37
|
+
}): SuggestInputItem[] {
|
|
38
|
+
const {completed, namePrefix} = splitPathInput(value);
|
|
39
|
+
const lowerPrefix = namePrefix.toLowerCase();
|
|
40
|
+
|
|
41
|
+
return entries
|
|
42
|
+
.filter(
|
|
43
|
+
({Name, PathType}) =>
|
|
44
|
+
Name &&
|
|
45
|
+
PathType &&
|
|
46
|
+
pathTypes.includes(PathType) &&
|
|
47
|
+
Name.toLowerCase().startsWith(lowerPrefix),
|
|
48
|
+
)
|
|
49
|
+
.map(({Name = ''}) => Name)
|
|
50
|
+
.sort((a, b) => a.localeCompare(b))
|
|
51
|
+
.map((name) => ({value: `${completed}${name}/`, content: name}));
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
interface UseSchemaPathSuggestionsParams {
|
|
55
|
+
/** Relative path typed by the user, e.g. `dir/subdir/na` */
|
|
56
|
+
value: string;
|
|
57
|
+
/** Absolute schema path the typed value is relative to */
|
|
58
|
+
basePath: string;
|
|
59
|
+
database: string;
|
|
60
|
+
databaseFullPath: string;
|
|
61
|
+
/** Types of schema objects to suggest, only directories by default */
|
|
62
|
+
pathTypes?: EPathType[];
|
|
63
|
+
skip?: boolean;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* Suggests existing schema objects (directories by default) for a path that is being typed.
|
|
68
|
+
* Children are requested once per directory level, not on every keystroke.
|
|
69
|
+
*/
|
|
70
|
+
export function useSchemaPathSuggestions({
|
|
71
|
+
value,
|
|
72
|
+
basePath,
|
|
73
|
+
database,
|
|
74
|
+
databaseFullPath,
|
|
75
|
+
pathTypes,
|
|
76
|
+
skip,
|
|
77
|
+
}: UseSchemaPathSuggestionsParams): SuggestInputItem[] {
|
|
78
|
+
const useMetaProxy = useClusterWithProxy();
|
|
79
|
+
|
|
80
|
+
const directoryPath = [basePath.replace(/\/+$/, ''), ...splitPathInput(value).segments].join(
|
|
81
|
+
'/',
|
|
82
|
+
);
|
|
83
|
+
|
|
84
|
+
const {currentData: entries} = schemaApi.useGetSchemaPathChildrenQuery(
|
|
85
|
+
{path: directoryPath, database, databaseFullPath, useMetaProxy},
|
|
86
|
+
{skip: skip || !basePath, refetchOnMountOrArgChange: true},
|
|
87
|
+
);
|
|
88
|
+
|
|
89
|
+
return React.useMemo(
|
|
90
|
+
() => getPathSuggestions({value, entries, pathTypes}),
|
|
91
|
+
[value, entries, pathTypes],
|
|
92
|
+
);
|
|
93
|
+
}
|
|
@@ -17,7 +17,11 @@ import {TableColumnSetup} from '../../components/TableColumnSetup/TableColumnSet
|
|
|
17
17
|
import {TableWithControlsLayout} from '../../components/TableWithControlsLayout/TableWithControlsLayout';
|
|
18
18
|
import {TenantNameWrapper} from '../../components/TenantNameWrapper/TenantNameWrapper';
|
|
19
19
|
import {getTenantLink} from '../../components/TenantNameWrapper/utils';
|
|
20
|
-
import {
|
|
20
|
+
import {
|
|
21
|
+
useBridgeModeEnabled,
|
|
22
|
+
useEmMetaAvailable,
|
|
23
|
+
useViewerTenantInfoHasBridgeFields,
|
|
24
|
+
} from '../../store/reducers/capabilities/hooks';
|
|
21
25
|
import {useClusterBaseInfo} from '../../store/reducers/cluster/cluster';
|
|
22
26
|
import {
|
|
23
27
|
filterTenantsByDomain,
|
|
@@ -48,6 +52,7 @@ import {isNumeric} from '../../utils/utils';
|
|
|
48
52
|
|
|
49
53
|
import type {DatabaseStatusClickHandler} from './DatabaseDrawerHealthcheck';
|
|
50
54
|
import {DatabaseDrawerHealthcheck} from './DatabaseDrawerHealthcheck';
|
|
55
|
+
import {getDatabaseBridgeColumns} from './bridgeColumns';
|
|
51
56
|
import {
|
|
52
57
|
DATABASES_COLUMNS_IDS,
|
|
53
58
|
DATABASES_COLUMNS_TITLES,
|
|
@@ -145,6 +150,9 @@ const TenantsTableContent = ({
|
|
|
145
150
|
const [sortParams, setSortParams] = React.useState<SortOrder | SortOrder[] | undefined>();
|
|
146
151
|
|
|
147
152
|
const isCreateDBAvailable = useEmMetaAvailable() && uiFactory.onCreateDB !== undefined;
|
|
153
|
+
const bridgeModeEnabled = useBridgeModeEnabled();
|
|
154
|
+
const tenantInfoHasBridgeFields = useViewerTenantInfoHasBridgeFields();
|
|
155
|
+
const bridgeColumnsAvailable = bridgeModeEnabled && tenantInfoHasBridgeFields;
|
|
148
156
|
|
|
149
157
|
const {domain: domainRoot, settings, isResolved: isClusterInfoResolved} = useClusterBaseInfo();
|
|
150
158
|
const loading = (isFetching && currentData === undefined) || !isClusterInfoResolved;
|
|
@@ -313,6 +321,7 @@ const TenantsTableContent = ({
|
|
|
313
321
|
</Label>
|
|
314
322
|
),
|
|
315
323
|
},
|
|
324
|
+
...(bridgeColumnsAvailable ? getDatabaseBridgeColumns() : []),
|
|
316
325
|
{
|
|
317
326
|
name: DATABASES_COLUMNS_IDS.CPU,
|
|
318
327
|
header: DATABASES_COLUMNS_TITLES[DATABASES_COLUMNS_IDS.CPU],
|
|
@@ -407,6 +416,7 @@ const TenantsTableContent = ({
|
|
|
407
416
|
|
|
408
417
|
return columns;
|
|
409
418
|
}, [
|
|
419
|
+
bridgeColumnsAvailable,
|
|
410
420
|
clusterName,
|
|
411
421
|
additionalTenantsProps,
|
|
412
422
|
environmentName,
|