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
|
@@ -110,6 +110,7 @@ export interface QueryResult {
|
|
|
110
110
|
executionId: string;
|
|
111
111
|
type: QueryAction;
|
|
112
112
|
statisticsMode?: StatisticsMode;
|
|
113
|
+
limitRows?: number;
|
|
113
114
|
data?: PreparedQueryData;
|
|
114
115
|
error?: unknown;
|
|
115
116
|
queryId: string;
|
|
@@ -121,7 +122,10 @@ export interface QueryResult {
|
|
|
121
122
|
sourcePosition?: QuerySourcePosition;
|
|
122
123
|
}
|
|
123
124
|
|
|
125
|
+
export type QueryPlanView = 'table' | 'graph' | 'json';
|
|
126
|
+
|
|
124
127
|
export interface QueryTabState {
|
|
128
|
+
queryPlanView?: QueryPlanView;
|
|
125
129
|
id: string;
|
|
126
130
|
title: string;
|
|
127
131
|
/**
|
|
@@ -12,7 +12,6 @@ import {valueIsDefined} from '../../../utils';
|
|
|
12
12
|
import {QUERY_ACTIONS, STATISTICS_MODES} from '../../../utils/query';
|
|
13
13
|
|
|
14
14
|
import type {
|
|
15
|
-
PreparedQueryData,
|
|
16
15
|
QueryExecutionStatusType,
|
|
17
16
|
QueryInHistory,
|
|
18
17
|
QueryTabState,
|
|
@@ -39,20 +38,6 @@ export function getEffectiveQuerySettingsForAction(
|
|
|
39
38
|
};
|
|
40
39
|
}
|
|
41
40
|
|
|
42
|
-
export function getEffectiveQueryDataForAction(
|
|
43
|
-
actionType: QueryAction,
|
|
44
|
-
data: PreparedQueryData,
|
|
45
|
-
): PreparedQueryData {
|
|
46
|
-
if (actionType !== QUERY_ACTIONS.explainAnalyze) {
|
|
47
|
-
return data;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
return {
|
|
51
|
-
...data,
|
|
52
|
-
resultSets: undefined,
|
|
53
|
-
};
|
|
54
|
-
}
|
|
55
|
-
|
|
56
41
|
export function getActionAndSyntaxFromQueryMode(
|
|
57
42
|
baseAction: QueryAction = QUERY_ACTIONS.execute,
|
|
58
43
|
queryMode: QueryMode = 'query',
|
|
@@ -3,7 +3,7 @@ import React from 'react';
|
|
|
3
3
|
import {createSelector, createSlice} from '@reduxjs/toolkit';
|
|
4
4
|
import type {PayloadAction} from '@reduxjs/toolkit';
|
|
5
5
|
|
|
6
|
-
import type {TEvDescribeSchemeResult} from '../../../types/api/schema';
|
|
6
|
+
import type {TDirEntry, TEvDescribeSchemeResult} from '../../../types/api/schema';
|
|
7
7
|
import type {RootState} from '../../defaultStore';
|
|
8
8
|
import {api} from '../api';
|
|
9
9
|
|
|
@@ -83,6 +83,22 @@ export const schemaApi = api.injectEndpoints({
|
|
|
83
83
|
return existing;
|
|
84
84
|
},
|
|
85
85
|
}),
|
|
86
|
+
getSchemaPathChildren: builder.query<
|
|
87
|
+
TDirEntry[],
|
|
88
|
+
{path: string; database: string; databaseFullPath: string; useMetaProxy?: boolean}
|
|
89
|
+
>({
|
|
90
|
+
queryFn: async ({path, database, databaseFullPath, useMetaProxy}, {signal}) => {
|
|
91
|
+
try {
|
|
92
|
+
const data = await window.api.viewer.getSchema(
|
|
93
|
+
{path: {path, databaseFullPath, useMetaProxy}, database},
|
|
94
|
+
{signal},
|
|
95
|
+
);
|
|
96
|
+
return {data: data?.PathDescription?.Children ?? []};
|
|
97
|
+
} catch (error) {
|
|
98
|
+
return {error};
|
|
99
|
+
}
|
|
100
|
+
},
|
|
101
|
+
}),
|
|
86
102
|
}),
|
|
87
103
|
overrideExisting: 'throw',
|
|
88
104
|
});
|
|
@@ -2,8 +2,14 @@ import {z} from 'zod';
|
|
|
2
2
|
|
|
3
3
|
import type {ECapacityAlert, EFlag} from '../../../types/api/enums';
|
|
4
4
|
import type {NodesGroupByField, TNodeInfo} from '../../../types/api/nodes';
|
|
5
|
-
import type {
|
|
5
|
+
import type {
|
|
6
|
+
Erasure,
|
|
7
|
+
GroupsGroupByField,
|
|
8
|
+
TBridgeGroupSyncInfo,
|
|
9
|
+
TStorageGroupStateInfo,
|
|
10
|
+
} from '../../../types/api/storage';
|
|
6
11
|
import type {TTabletStateInfo} from '../../../types/api/tablet';
|
|
12
|
+
import type {ResponseDataQuality} from '../../../utils/dataIssues/types';
|
|
7
13
|
import type {PreparedPDisk, PreparedVDisk} from '../../../utils/disks/types';
|
|
8
14
|
import type {NodesUptimeFilterValues, PreparedNodeSystemState} from '../../../utils/nodes';
|
|
9
15
|
|
|
@@ -60,7 +66,7 @@ export interface PreparedStorageGroupFilters {
|
|
|
60
66
|
filterGroupBy?: GroupsGroupByField;
|
|
61
67
|
}
|
|
62
68
|
|
|
63
|
-
export interface PreparedStorageGroup {
|
|
69
|
+
export interface PreparedStorageGroup extends TBridgeGroupSyncInfo {
|
|
64
70
|
PoolName?: string;
|
|
65
71
|
PileName?: string;
|
|
66
72
|
MediaType?: string;
|
|
@@ -119,4 +125,6 @@ export interface PreparedStorageResponse {
|
|
|
119
125
|
maxSlotsPerDisk: number;
|
|
120
126
|
maxDisksPerNode: number;
|
|
121
127
|
};
|
|
128
|
+
/** What the handler reported about this response, see `ResponseDataQuality` */
|
|
129
|
+
dataQuality: ResponseDataQuality;
|
|
122
130
|
}
|
|
@@ -2,6 +2,7 @@ import type {EFlag} from '../../../types/api/enums';
|
|
|
2
2
|
import type {TNodeInfo, TNodesInfo} from '../../../types/api/nodes';
|
|
3
3
|
import {TPDiskState} from '../../../types/api/pdisk';
|
|
4
4
|
import type {StorageGroupsResponse, TGroupsStorageGroupInfo} from '../../../types/api/storage';
|
|
5
|
+
import {prepareResponseDataQuality} from '../../../utils/dataIssues/dataQuality';
|
|
5
6
|
import {getNodeDatacenterKey} from '../../../utils/datacenters';
|
|
6
7
|
import {
|
|
7
8
|
getColorSeverity,
|
|
@@ -220,6 +221,7 @@ export const prepareStorageNodesResponse = (data: TNodesInfo): PreparedStorageRe
|
|
|
220
221
|
found: Number(FoundNodes),
|
|
221
222
|
tableGroups,
|
|
222
223
|
columnsSettings: {maxSlotsPerDisk, maxDisksPerNode},
|
|
224
|
+
dataQuality: prepareResponseDataQuality(data),
|
|
223
225
|
};
|
|
224
226
|
};
|
|
225
227
|
|
|
@@ -293,5 +295,6 @@ export function prepareGroupsResponse(data: StorageGroupsResponse): PreparedStor
|
|
|
293
295
|
total: Number(TotalGroups) || preparedGroups.length,
|
|
294
296
|
found: Number(FoundGroups),
|
|
295
297
|
tableGroups,
|
|
298
|
+
dataQuality: prepareResponseDataQuality(data),
|
|
296
299
|
};
|
|
297
300
|
}
|
|
@@ -2,9 +2,13 @@ import {QUERY_TECHNICAL_MARK} from '../../../utils/constants';
|
|
|
2
2
|
import {isQueryErrorResponse, parseQueryAPIResponse} from '../../../utils/query';
|
|
3
3
|
import {api} from '../api';
|
|
4
4
|
|
|
5
|
+
function escapePathForYqlString(path: string) {
|
|
6
|
+
return path.replace(/['\\]/g, '\\$&');
|
|
7
|
+
}
|
|
8
|
+
|
|
5
9
|
function getStreamingQueryInfoSQL(path: string) {
|
|
6
10
|
// Select available columns so older backends without lifecycle fields remain supported.
|
|
7
|
-
const safePath = path
|
|
11
|
+
const safePath = escapePathForYqlString(path);
|
|
8
12
|
return `${QUERY_TECHNICAL_MARK}
|
|
9
13
|
SELECT * WITHOUT Plan, Ast
|
|
10
14
|
FROM \`.sys/streaming_queries\`
|
|
@@ -13,7 +17,7 @@ LIMIT 1`;
|
|
|
13
17
|
}
|
|
14
18
|
|
|
15
19
|
function getStreamingQueryPlanSQL(path: string) {
|
|
16
|
-
const safePath = path
|
|
20
|
+
const safePath = escapePathForYqlString(path);
|
|
17
21
|
return `${QUERY_TECHNICAL_MARK}
|
|
18
22
|
SELECT
|
|
19
23
|
Status,
|
|
@@ -4,6 +4,7 @@ import type {PayloadAction} from '@reduxjs/toolkit';
|
|
|
4
4
|
import type {TTenantInfo} from '../../../types/api/tenant';
|
|
5
5
|
import {useClusterNameFromQuery} from '../../../utils/hooks/useDatabaseFromQuery';
|
|
6
6
|
import {useDatabasesV2} from '../../../utils/hooks/useDatabasesV2';
|
|
7
|
+
import {backend, environment} from '../../runtimeParams';
|
|
7
8
|
import {api} from '../api';
|
|
8
9
|
import {getDatabaseDataTag} from '../entityDataTags';
|
|
9
10
|
import {prepareTenants} from '../tenants/utils';
|
|
@@ -59,6 +60,8 @@ export const tenantApi = api.injectEndpoints({
|
|
|
59
60
|
database: string;
|
|
60
61
|
clusterName?: string;
|
|
61
62
|
isMetaDatabasesAvailable: boolean;
|
|
63
|
+
environment?: string;
|
|
64
|
+
backend?: string;
|
|
62
65
|
},
|
|
63
66
|
{signal},
|
|
64
67
|
) => {
|
|
@@ -121,8 +124,12 @@ export const tenantApi = api.injectEndpoints({
|
|
|
121
124
|
];
|
|
122
125
|
},
|
|
123
126
|
serializeQueryArgs: ({queryArgs}) => {
|
|
124
|
-
|
|
125
|
-
|
|
127
|
+
return {
|
|
128
|
+
clusterName: queryArgs.clusterName,
|
|
129
|
+
database: queryArgs.database,
|
|
130
|
+
environment: queryArgs.environment,
|
|
131
|
+
backend: queryArgs.backend,
|
|
132
|
+
};
|
|
126
133
|
},
|
|
127
134
|
}),
|
|
128
135
|
}),
|
|
@@ -143,6 +150,8 @@ export function useTenantBaseInfo(
|
|
|
143
150
|
database,
|
|
144
151
|
clusterName,
|
|
145
152
|
isMetaDatabasesAvailable,
|
|
153
|
+
environment,
|
|
154
|
+
backend,
|
|
146
155
|
},
|
|
147
156
|
{skip: skip || !database},
|
|
148
157
|
);
|
|
@@ -367,8 +367,16 @@ export const prepareTenants = (
|
|
|
367
367
|
tenants: TTenant[],
|
|
368
368
|
metaErrors?: PreparedTenant['metaErrors'],
|
|
369
369
|
): PreparedTenant[] => {
|
|
370
|
+
const tenantsById = new Map<TTenant['Id'], TTenant>();
|
|
371
|
+
for (const tenant of tenants) {
|
|
372
|
+
// Keep the first match, including missing and empty IDs, just like Array.find.
|
|
373
|
+
if (!tenantsById.has(tenant.Id)) {
|
|
374
|
+
tenantsById.set(tenant.Id, tenant);
|
|
375
|
+
}
|
|
376
|
+
}
|
|
377
|
+
|
|
370
378
|
return tenants.map((tenant) => {
|
|
371
|
-
const sharedDatabase =
|
|
379
|
+
const sharedDatabase = tenantsById.get(tenant.ResourceId);
|
|
372
380
|
const sharedTenantName = sharedDatabase?.Name;
|
|
373
381
|
const sharedNodeIds = sharedDatabase?.NodeIds;
|
|
374
382
|
const controlPlaneName = getControlPlaneValue(tenant);
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type {getUrlData} from './getUrlData';
|
|
2
|
+
|
|
3
|
+
export let backend: string | undefined,
|
|
4
|
+
basename: string,
|
|
5
|
+
clusterName: string | undefined,
|
|
6
|
+
environment: string | undefined;
|
|
7
|
+
|
|
8
|
+
export function setRuntimeParams(params: ReturnType<typeof getUrlData>) {
|
|
9
|
+
({basename, clusterName, environment, backend} = params);
|
|
10
|
+
}
|
package/src/types/api/cluster.ts
CHANGED
|
@@ -115,6 +115,17 @@ export enum BridgePileGroupStatus {
|
|
|
115
115
|
DISINTEGRATED = 'DISINTEGRATED',
|
|
116
116
|
}
|
|
117
117
|
|
|
118
|
+
export enum BridgeSyncStatus {
|
|
119
|
+
SYNCED = 'SYNCED',
|
|
120
|
+
SYNCING = 'SYNCING',
|
|
121
|
+
PENDING = 'PENDING',
|
|
122
|
+
UNKNOWN = 'UNKNOWN',
|
|
123
|
+
NOT_REQUIRED = 'NOT_REQUIRED',
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
/** Counts are uint64 values, serialized as strings by Viewer. */
|
|
127
|
+
export type BridgeDatabaseCounts = Record<string, string | number>;
|
|
128
|
+
|
|
118
129
|
export interface TBridgePile {
|
|
119
130
|
/** unique pile identifier */
|
|
120
131
|
PileId?: number;
|
|
@@ -124,10 +135,22 @@ export interface TBridgePile {
|
|
|
124
135
|
State?: BridgePileState;
|
|
125
136
|
/** number of nodes in the pile */
|
|
126
137
|
Nodes?: number;
|
|
138
|
+
/** Known static nodes and those that responded during collection. */
|
|
139
|
+
StorageNodes?: number;
|
|
140
|
+
AliveStorageNodes?: number;
|
|
141
|
+
/** Known dynamic nodes and those that responded during collection. */
|
|
142
|
+
ComputeNodes?: number;
|
|
143
|
+
AliveComputeNodes?: number;
|
|
127
144
|
/** storage group statuses in the pile */
|
|
128
145
|
GroupStatuses?: Partial<Record<BridgePileGroupStatus, number>>;
|
|
129
146
|
}
|
|
130
147
|
|
|
131
148
|
export interface TBridgeInfo {
|
|
132
149
|
Piles?: TBridgePile[];
|
|
150
|
+
/** uint64 */
|
|
151
|
+
BridgeDatabases?: string | number;
|
|
152
|
+
/** False when ownership is incomplete or global synchronization counts are unavailable. */
|
|
153
|
+
BridgeDatabasesComplete?: boolean;
|
|
154
|
+
/** Each fully bridged storage owner is counted once across all required copies. Viewer v11+. */
|
|
155
|
+
DatabaseCountsBySyncStatus?: BridgeDatabaseCounts;
|
|
133
156
|
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type {IProtobufTimeObject} from './common';
|
|
2
|
+
|
|
3
|
+
export interface ControlPlaneOperation {
|
|
4
|
+
id?: string;
|
|
5
|
+
description?: string;
|
|
6
|
+
done?: boolean;
|
|
7
|
+
created_by?: string;
|
|
8
|
+
created_at?: string | IProtobufTimeObject;
|
|
9
|
+
modified_at?: string | IProtobufTimeObject;
|
|
10
|
+
error?: {code?: number; message?: string};
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export interface ControlPlaneOperationList {
|
|
14
|
+
operations?: ControlPlaneOperation[];
|
|
15
|
+
next_page_token?: string;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export interface ControlPlaneOperationListParams {
|
|
19
|
+
clusterName: string;
|
|
20
|
+
folderId: string;
|
|
21
|
+
databaseId: string;
|
|
22
|
+
pageSize?: number;
|
|
23
|
+
pageToken?: string;
|
|
24
|
+
}
|
package/src/types/api/nodes.ts
CHANGED
|
@@ -23,6 +23,15 @@ export interface TNodesInfo {
|
|
|
23
23
|
MaximumSlotsPerDisk?: string;
|
|
24
24
|
/** uint64 */
|
|
25
25
|
MaximumDisksPerNode?: string;
|
|
26
|
+
|
|
27
|
+
/** Data sources that failed while the response was collected, e.g. `bsc-timeout` */
|
|
28
|
+
Problems?: string[];
|
|
29
|
+
/** Raised when the requested filter was not applied */
|
|
30
|
+
NeedFilter?: boolean;
|
|
31
|
+
/** Raised when the requested grouping was not applied */
|
|
32
|
+
NeedGroup?: boolean;
|
|
33
|
+
/** Raised when the requested sorting was not applied */
|
|
34
|
+
NeedSort?: boolean;
|
|
26
35
|
}
|
|
27
36
|
|
|
28
37
|
export interface TNodeInfo {
|
|
@@ -34,6 +43,12 @@ export interface TNodeInfo {
|
|
|
34
43
|
DiskSpaceUsage?: number;
|
|
35
44
|
UptimeSeconds?: number;
|
|
36
45
|
Disconnected?: boolean;
|
|
46
|
+
/**
|
|
47
|
+
* The node did not answer in time: neither an answer nor a disconnect was received,
|
|
48
|
+
* so its real state is unknown. The node has no state then, and `Disconnected`
|
|
49
|
+
* may or may not be set for it as well. Sent by newer backends only.
|
|
50
|
+
*/
|
|
51
|
+
ResponseTimeout?: boolean;
|
|
37
52
|
|
|
38
53
|
SystemState: TSystemStateInfo;
|
|
39
54
|
PDisks?: TPDiskStateInfo[];
|
package/src/types/api/storage.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type {BridgeSyncStatus} from './cluster';
|
|
1
2
|
import type {BackendSortParam, SchemaPathParam} from './common';
|
|
2
3
|
import type {ECapacityAlert, EFlag} from './enums';
|
|
3
4
|
import type {EDecommitStatus, EDriveStatus, EMaintenanceStatus, TPDiskStateInfo} from './pdisk';
|
|
@@ -41,7 +42,29 @@ export interface TStorageGroupStateInfo {
|
|
|
41
42
|
FailedDomainsPerRealm?: number[];
|
|
42
43
|
}
|
|
43
44
|
|
|
44
|
-
export interface
|
|
45
|
+
export interface TBridgeGroupLink {
|
|
46
|
+
GroupId?: string;
|
|
47
|
+
PileName?: string;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export interface TBridgeGroupSyncInfo {
|
|
51
|
+
BridgeMode?: boolean;
|
|
52
|
+
BridgeSyncStatus?: BridgeSyncStatus;
|
|
53
|
+
BridgeSyncStage?: string;
|
|
54
|
+
BridgeGroups?: TBridgeGroupLink[];
|
|
55
|
+
BridgeSyncLastError?: string;
|
|
56
|
+
/** Unix microseconds. */
|
|
57
|
+
BridgeSyncLastErrorTimestamp?: string;
|
|
58
|
+
/** Unix microseconds. */
|
|
59
|
+
BridgeSyncLastProgressTimestamp?: string;
|
|
60
|
+
/** uint64, blob bytes per second. */
|
|
61
|
+
BridgeSyncCopyBytesPerSecond?: string;
|
|
62
|
+
/** uint64, a lower bound until the estimate is complete. */
|
|
63
|
+
BridgeSyncRemainingBytes?: string;
|
|
64
|
+
BridgeSyncRemainingBytesComplete?: boolean;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export interface TGroupsStorageGroupInfo extends TBridgeGroupSyncInfo {
|
|
45
68
|
GroupId?: string;
|
|
46
69
|
/** uint64 */
|
|
47
70
|
GroupGeneration?: string;
|
|
@@ -174,6 +197,9 @@ export type Erasure = 'none' | 'block-4-2' | 'mirror-3-dc' | 'mirror-3of4';
|
|
|
174
197
|
*/
|
|
175
198
|
export type GroupsSortField =
|
|
176
199
|
| 'PoolName'
|
|
200
|
+
| 'PileName'
|
|
201
|
+
| 'BridgeMode'
|
|
202
|
+
| 'BridgeSyncStatus'
|
|
177
203
|
| 'Kind'
|
|
178
204
|
| 'MediaType'
|
|
179
205
|
| 'Erasure'
|
|
@@ -209,6 +235,7 @@ export type GroupsGroupByField =
|
|
|
209
235
|
| 'DiskSpaceUsage'
|
|
210
236
|
| 'PoolName'
|
|
211
237
|
| 'PileName'
|
|
238
|
+
| 'BridgeSyncStatus'
|
|
212
239
|
| 'Kind'
|
|
213
240
|
| 'Encryption'
|
|
214
241
|
| 'MediaType'
|
|
@@ -221,6 +248,15 @@ export type GroupsRequiredField =
|
|
|
221
248
|
| 'GroupId' // always required
|
|
222
249
|
| 'PoolName'
|
|
223
250
|
| 'PileName'
|
|
251
|
+
| 'BridgeMode'
|
|
252
|
+
| 'BridgeSyncStatus'
|
|
253
|
+
| 'BridgeGroups'
|
|
254
|
+
| 'BridgeSyncLastError'
|
|
255
|
+
| 'BridgeSyncLastErrorTimestamp'
|
|
256
|
+
| 'BridgeSyncLastProgressTimestamp'
|
|
257
|
+
| 'BridgeSyncCopyBytesPerSecond'
|
|
258
|
+
| 'BridgeSyncRemainingBytes'
|
|
259
|
+
| 'BridgeSyncRemainingBytesComplete'
|
|
224
260
|
| 'Kind'
|
|
225
261
|
| 'MediaType'
|
|
226
262
|
| 'Erasure'
|
package/src/types/api/tenant.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type {BridgeSyncStatus} from './cluster';
|
|
1
2
|
import type {EFlag} from './enums';
|
|
2
3
|
import type {MetaTenants} from './meta';
|
|
3
4
|
import type {TMemoryStats, TPoolStats} from './nodes';
|
|
@@ -29,6 +30,8 @@ export interface TTenant {
|
|
|
29
30
|
Id?: string;
|
|
30
31
|
Cluster?: string;
|
|
31
32
|
Type?: ETenantType;
|
|
33
|
+
BridgeMode?: boolean;
|
|
34
|
+
BridgeSyncStatus?: BridgeSyncStatus;
|
|
32
35
|
State?: State;
|
|
33
36
|
StateStats?: THiveDomainStatsStateCount[];
|
|
34
37
|
Metrics?: TMetrics;
|
package/src/uiFactory/types.ts
CHANGED
|
@@ -93,6 +93,9 @@ export interface UIFactory<H extends string = CommonIssueCategory, T extends str
|
|
|
93
93
|
|
|
94
94
|
emMetaAvailable?: boolean;
|
|
95
95
|
|
|
96
|
+
/** Renders a CP operation author. The renderer owns loading and falls back to ID. */
|
|
97
|
+
resolveUser?: ResolveUser;
|
|
98
|
+
|
|
96
99
|
useMetaProxy?: boolean;
|
|
97
100
|
useClusterDomain?: boolean;
|
|
98
101
|
clustersDomain?: string;
|
|
@@ -288,3 +291,5 @@ export type GetReportProblemUrl = (params: {
|
|
|
288
291
|
requestUrl?: string;
|
|
289
292
|
traceId?: string;
|
|
290
293
|
}) => string | undefined;
|
|
294
|
+
|
|
295
|
+
export type ResolveUser = (params: {userId: string; clusterName?: string}) => React.ReactNode;
|
|
@@ -0,0 +1,233 @@
|
|
|
1
|
+
import type {ResponseDataQuality} from './types';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* What the user should be told about the data on screen.
|
|
5
|
+
* The order is the display order: the most misleading issues go first.
|
|
6
|
+
*/
|
|
7
|
+
export const DATA_ISSUE_KINDS = [
|
|
8
|
+
'database-unavailable',
|
|
9
|
+
'list-incomplete',
|
|
10
|
+
'filter-not-applied',
|
|
11
|
+
'sort-not-applied',
|
|
12
|
+
'group-not-applied',
|
|
13
|
+
'nodes-status-unreliable',
|
|
14
|
+
'disks-unavailable',
|
|
15
|
+
'partial-data',
|
|
16
|
+
] as const;
|
|
17
|
+
|
|
18
|
+
export type DataIssueKind = (typeof DATA_ISSUE_KINDS)[number];
|
|
19
|
+
|
|
20
|
+
function orderIssues(issues: Set<DataIssueKind>): DataIssueKind[] {
|
|
21
|
+
return DATA_ISSUE_KINDS.filter((kind) => issues.has(kind));
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
function addUnappliedOperations(issues: Set<DataIssueKind>, quality: ResponseDataQuality) {
|
|
25
|
+
if (quality.needFilter) {
|
|
26
|
+
issues.add('filter-not-applied');
|
|
27
|
+
}
|
|
28
|
+
if (quality.needSort) {
|
|
29
|
+
issues.add('sort-not-applied');
|
|
30
|
+
}
|
|
31
|
+
if (quality.needGroup) {
|
|
32
|
+
issues.add('group-not-applied');
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Newer backends also name an unapplied operation in `Problems`, next to the `Need*` flag.
|
|
38
|
+
* For /viewer/nodes the code is the only signal of a dropped storage group or pool filter.
|
|
39
|
+
*/
|
|
40
|
+
const NOT_APPLIED_PROBLEMS = new Map<string, DataIssueKind>([
|
|
41
|
+
['filter-not-applied', 'filter-not-applied'],
|
|
42
|
+
['sort-not-applied', 'sort-not-applied'],
|
|
43
|
+
['group-not-applied', 'group-not-applied'],
|
|
44
|
+
]);
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* /storage/groups builds the list of groups from BS controller data and falls back
|
|
48
|
+
* to whiteboard when the controller does not answer. With these problems
|
|
49
|
+
* some groups may be missing from the list.
|
|
50
|
+
*/
|
|
51
|
+
const STORAGE_GROUPS_LIST_INCOMPLETE_PROBLEMS = new Set([
|
|
52
|
+
'bsc-error',
|
|
53
|
+
'bsc-timeout',
|
|
54
|
+
'bsc-incomplete',
|
|
55
|
+
'bsc-storage-groups-no-data',
|
|
56
|
+
'wb-incomplete-groups',
|
|
57
|
+
]);
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* The groups of a database are the groups of its storage pools, which the handler takes from
|
|
61
|
+
* the description of the database. Without it the groups of the whole cluster are returned.
|
|
62
|
+
* Newer backends send this code together with `filter-not-applied`.
|
|
63
|
+
*/
|
|
64
|
+
const STORAGE_GROUPS_DATABASE_FILTER_DROPPED_PROBLEM = 'no-database-info';
|
|
65
|
+
|
|
66
|
+
export function getStorageGroupsDataIssues(quality?: ResponseDataQuality): DataIssueKind[] {
|
|
67
|
+
if (!quality) {
|
|
68
|
+
return [];
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
const issues = new Set<DataIssueKind>();
|
|
72
|
+
|
|
73
|
+
for (const problem of quality.problems) {
|
|
74
|
+
const notApplied = NOT_APPLIED_PROBLEMS.get(problem);
|
|
75
|
+
if (notApplied) {
|
|
76
|
+
issues.add(notApplied);
|
|
77
|
+
} else if (problem === STORAGE_GROUPS_DATABASE_FILTER_DROPPED_PROBLEM) {
|
|
78
|
+
issues.add('filter-not-applied');
|
|
79
|
+
} else if (STORAGE_GROUPS_LIST_INCOMPLETE_PROBLEMS.has(problem)) {
|
|
80
|
+
issues.add('list-incomplete');
|
|
81
|
+
} else {
|
|
82
|
+
// Unknown codes of newer backends also get here
|
|
83
|
+
issues.add('partial-data');
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
addUnappliedOperations(issues, quality);
|
|
88
|
+
|
|
89
|
+
return orderIssues(issues);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export interface NodesDataIssuesContext {
|
|
93
|
+
/** Nodes are requested for a storage group: the handler resolves it through BS controller */
|
|
94
|
+
hasGroupFilter?: boolean;
|
|
95
|
+
/** Nodes are requested for a database: the handler resolves its nodes through Hive */
|
|
96
|
+
hasDatabase?: boolean;
|
|
97
|
+
/** Storage nodes with their disks are shown */
|
|
98
|
+
storageNodes?: boolean;
|
|
99
|
+
/**
|
|
100
|
+
* The handler adds `filter-not-applied` itself when it drops a filter.
|
|
101
|
+
* Older handlers drop the storage filters silently, so it has to be told from other problems.
|
|
102
|
+
*/
|
|
103
|
+
reportsDroppedFilters?: boolean;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
const NODES_DATABASE_UNAVAILABLE_PROBLEMS = new Set([
|
|
107
|
+
'no-database-info',
|
|
108
|
+
'no-shared-database-info',
|
|
109
|
+
]);
|
|
110
|
+
const NODES_DATABASE_BOARD_PROBLEMS = new Set([
|
|
111
|
+
'no-database-board-info',
|
|
112
|
+
'no-shared-database-board-info',
|
|
113
|
+
]);
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
* The nodes of a storage group are resolved through the VSlots of BS controller.
|
|
117
|
+
* Only this code tells that they were not received and the group filter was dropped:
|
|
118
|
+
* with other `bsc-*` problems (e.g. no PDisks) the filter is still applied.
|
|
119
|
+
*/
|
|
120
|
+
const NODES_GROUP_FILTER_DROPPED_PROBLEM = 'bsc-storage-slots-no-data';
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* The storage nodes of a database are the nodes of its storage pools. The handler resolves
|
|
124
|
+
* them through BS controller: the pools, their groups, the VSlots of the groups. When any
|
|
125
|
+
* of the steps fails, the nodes of the whole cluster are returned.
|
|
126
|
+
*/
|
|
127
|
+
const NODES_DATABASE_FILTER_DROPPED_PROBLEMS = new Set([
|
|
128
|
+
'bsc-storage-pools-no-data',
|
|
129
|
+
'bsc-storage-groups-no-data',
|
|
130
|
+
'bsc-storage-slots-no-data',
|
|
131
|
+
]);
|
|
132
|
+
|
|
133
|
+
function isDatabaseFilterDroppedSilently(
|
|
134
|
+
problem: string,
|
|
135
|
+
{hasDatabase, storageNodes, reportsDroppedFilters}: NodesDataIssuesContext,
|
|
136
|
+
) {
|
|
137
|
+
return Boolean(
|
|
138
|
+
storageNodes &&
|
|
139
|
+
hasDatabase &&
|
|
140
|
+
!reportsDroppedFilters &&
|
|
141
|
+
NODES_DATABASE_FILTER_DROPPED_PROBLEMS.has(problem),
|
|
142
|
+
);
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
function getNodesProblemIssue(
|
|
146
|
+
problem: string,
|
|
147
|
+
{hasGroupFilter, hasDatabase, storageNodes}: NodesDataIssuesContext,
|
|
148
|
+
): DataIssueKind {
|
|
149
|
+
const notApplied = NOT_APPLIED_PROBLEMS.get(problem);
|
|
150
|
+
if (notApplied) {
|
|
151
|
+
return notApplied;
|
|
152
|
+
}
|
|
153
|
+
if (NODES_DATABASE_UNAVAILABLE_PROBLEMS.has(problem)) {
|
|
154
|
+
// The handler clears the list in this case
|
|
155
|
+
return 'database-unavailable';
|
|
156
|
+
}
|
|
157
|
+
if (problem === 'no-nodes-info') {
|
|
158
|
+
return 'list-incomplete';
|
|
159
|
+
}
|
|
160
|
+
if (problem.startsWith('hive-') || NODES_DATABASE_BOARD_PROBLEMS.has(problem)) {
|
|
161
|
+
// Without Hive only the nodes that answered are attributed to the database
|
|
162
|
+
return hasDatabase ? 'list-incomplete' : 'partial-data';
|
|
163
|
+
}
|
|
164
|
+
if (problem === 'wb-incomplete') {
|
|
165
|
+
// The handler marks the nodes that did not answer in time as disconnected
|
|
166
|
+
return 'nodes-status-unreliable';
|
|
167
|
+
}
|
|
168
|
+
if (problem === NODES_GROUP_FILTER_DROPPED_PROBLEM && hasGroupFilter) {
|
|
169
|
+
// The group filter is dropped silently, Need* flags stay clean
|
|
170
|
+
return 'filter-not-applied';
|
|
171
|
+
}
|
|
172
|
+
if (problem.startsWith('bsc-')) {
|
|
173
|
+
return storageNodes ? 'disks-unavailable' : 'partial-data';
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
// Unknown codes of newer backends also get here
|
|
177
|
+
return 'partial-data';
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
export function getNodesDataIssues(
|
|
181
|
+
quality?: ResponseDataQuality,
|
|
182
|
+
context: NodesDataIssuesContext = {},
|
|
183
|
+
): DataIssueKind[] {
|
|
184
|
+
if (!quality) {
|
|
185
|
+
return [];
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
const issues = new Set<DataIssueKind>();
|
|
189
|
+
|
|
190
|
+
for (const problem of quality.problems) {
|
|
191
|
+
if (isDatabaseFilterDroppedSilently(problem, context)) {
|
|
192
|
+
// Next to what the problem means by itself, as with `filter-not-applied` of newer handlers
|
|
193
|
+
issues.add('filter-not-applied');
|
|
194
|
+
}
|
|
195
|
+
issues.add(getNodesProblemIssue(problem, context));
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
addUnappliedOperations(issues, quality);
|
|
199
|
+
|
|
200
|
+
return orderIssues(issues);
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
/**
|
|
204
|
+
* What the table shows: storage groups (/storage/groups) or nodes (/viewer/nodes)
|
|
205
|
+
* together with what is known about the request for them.
|
|
206
|
+
*/
|
|
207
|
+
export type DataIssuesSubject =
|
|
208
|
+
| {type: 'storageGroups'}
|
|
209
|
+
| ({type: 'nodes'} & NodesDataIssuesContext);
|
|
210
|
+
|
|
211
|
+
export function getDataIssues(
|
|
212
|
+
quality: ResponseDataQuality | undefined,
|
|
213
|
+
subject: DataIssuesSubject,
|
|
214
|
+
): DataIssueKind[] {
|
|
215
|
+
return subject.type === 'storageGroups'
|
|
216
|
+
? getStorageGroupsDataIssues(quality)
|
|
217
|
+
: getNodesDataIssues(quality, subject);
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
/** These issues add rows or change their order, the rows that should be shown are all there */
|
|
221
|
+
const DATA_ISSUES_THAT_HIDE_NO_ROWS = new Set<DataIssueKind>([
|
|
222
|
+
'filter-not-applied',
|
|
223
|
+
'sort-not-applied',
|
|
224
|
+
'group-not-applied',
|
|
225
|
+
]);
|
|
226
|
+
|
|
227
|
+
/**
|
|
228
|
+
* Tells whether rows may be missing from the list because of the issues.
|
|
229
|
+
* If so, an empty table does not prove that there is nothing to show.
|
|
230
|
+
*/
|
|
231
|
+
export function canDataIssuesHideRows(issues: DataIssueKind[]) {
|
|
232
|
+
return issues.some((kind) => !DATA_ISSUES_THAT_HIDE_NO_ROWS.has(kind));
|
|
233
|
+
}
|