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
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import type {ResponseDataQuality} from './types';
|
|
2
|
+
|
|
3
|
+
interface RawResponseDataQuality {
|
|
4
|
+
Problems?: unknown;
|
|
5
|
+
NeedFilter?: unknown;
|
|
6
|
+
NeedSort?: unknown;
|
|
7
|
+
NeedGroup?: unknown;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
function prepareResponseProblems(problems: unknown): string[] {
|
|
11
|
+
if (!Array.isArray(problems)) {
|
|
12
|
+
return [];
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
const uniqueProblems = new Set<string>();
|
|
16
|
+
for (const problem of problems) {
|
|
17
|
+
if (typeof problem === 'string' && problem) {
|
|
18
|
+
uniqueProblems.add(problem);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
return Array.from(uniqueProblems);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
/** Older backends do not send these fields: absent values mean "nothing to report" */
|
|
26
|
+
export function prepareResponseDataQuality(response: RawResponseDataQuality): ResponseDataQuality {
|
|
27
|
+
return {
|
|
28
|
+
problems: prepareResponseProblems(response.Problems),
|
|
29
|
+
needFilter: response.NeedFilter === true,
|
|
30
|
+
needSort: response.NeedSort === true,
|
|
31
|
+
needGroup: response.NeedGroup === true,
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export function mergeDataQuality(
|
|
36
|
+
items: (ResponseDataQuality | undefined)[],
|
|
37
|
+
): ResponseDataQuality | undefined {
|
|
38
|
+
const definedItems = items.filter((item): item is ResponseDataQuality => Boolean(item));
|
|
39
|
+
|
|
40
|
+
if (!definedItems.length) {
|
|
41
|
+
return undefined;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
return {
|
|
45
|
+
problems: Array.from(new Set(definedItems.flatMap((item) => item.problems))),
|
|
46
|
+
needFilter: definedItems.some((item) => item.needFilter),
|
|
47
|
+
needSort: definedItems.some((item) => item.needSort),
|
|
48
|
+
needGroup: definedItems.some((item) => item.needGroup),
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
/** The same flags and the same set of problem codes; the order of the codes does not matter */
|
|
53
|
+
export function isSameDataQuality(a?: ResponseDataQuality, b?: ResponseDataQuality) {
|
|
54
|
+
if (!a || !b) {
|
|
55
|
+
return a === b;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
return (
|
|
59
|
+
a.needFilter === b.needFilter &&
|
|
60
|
+
a.needSort === b.needSort &&
|
|
61
|
+
a.needGroup === b.needGroup &&
|
|
62
|
+
a.problems.length === b.problems.length &&
|
|
63
|
+
a.problems.every((problem) => b.problems.includes(problem))
|
|
64
|
+
);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
/** Nothing to tell the user about: no failed sources and every requested operation was applied */
|
|
68
|
+
export function isCleanDataQuality(quality: ResponseDataQuality) {
|
|
69
|
+
return (
|
|
70
|
+
quality.problems.length === 0 &&
|
|
71
|
+
!quality.needFilter &&
|
|
72
|
+
!quality.needSort &&
|
|
73
|
+
!quality.needGroup
|
|
74
|
+
);
|
|
75
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type {PaginatedTableData} from '../../components/PaginatedTable/types';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* What the viewer handler reported about the response it returned:
|
|
5
|
+
* `Problems` lists data sources that failed, `Need*` flags stay raised
|
|
6
|
+
* when the handler could not apply the requested filter, sorting or grouping.
|
|
7
|
+
*/
|
|
8
|
+
export interface ResponseDataQuality {
|
|
9
|
+
problems: string[];
|
|
10
|
+
needFilter: boolean;
|
|
11
|
+
needSort: boolean;
|
|
12
|
+
needGroup: boolean;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
/** Metadata of a table chunk: what the handler reported about the response the chunk is made of */
|
|
16
|
+
export interface DataQualityMeta {
|
|
17
|
+
dataQuality: ResponseDataQuality;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
/** A chunk of a paginated table whose fetcher tells about the quality of the response */
|
|
21
|
+
export type TableDataWithQuality<T> = PaginatedTableData<T, DataQualityMeta>;
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
import {canDataIssuesHideRows, getDataIssues} from './classify';
|
|
4
|
+
import type {DataIssueKind, DataIssuesSubject} from './classify';
|
|
5
|
+
import {mergeDataQuality} from './dataQuality';
|
|
6
|
+
import type {ResponseDataQuality} from './types';
|
|
7
|
+
import {useTableDataQuality} from './useTableDataQuality';
|
|
8
|
+
|
|
9
|
+
export interface TableDataIssues {
|
|
10
|
+
/** What to tell the user about the rows rendered in the table, in the display order */
|
|
11
|
+
issues: DataIssueKind[];
|
|
12
|
+
/** Raw problem codes of the responses */
|
|
13
|
+
problems: string[];
|
|
14
|
+
/** Rows may be missing because of the issues: an empty table does not prove there are none */
|
|
15
|
+
rowsMayBeMissing: boolean;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
const NO_PROBLEMS: string[] = [];
|
|
19
|
+
|
|
20
|
+
function useDataIssues(
|
|
21
|
+
dataQuality: ResponseDataQuality | undefined,
|
|
22
|
+
subject: DataIssuesSubject,
|
|
23
|
+
): TableDataIssues {
|
|
24
|
+
// The subject is described by primitives, so callers can pass a new object on every render
|
|
25
|
+
const type = subject.type;
|
|
26
|
+
const hasGroupFilter = subject.type === 'nodes' && Boolean(subject.hasGroupFilter);
|
|
27
|
+
const hasDatabase = subject.type === 'nodes' && Boolean(subject.hasDatabase);
|
|
28
|
+
const storageNodes = subject.type === 'nodes' && Boolean(subject.storageNodes);
|
|
29
|
+
const reportsDroppedFilters =
|
|
30
|
+
subject.type === 'nodes' && Boolean(subject.reportsDroppedFilters);
|
|
31
|
+
|
|
32
|
+
return React.useMemo(() => {
|
|
33
|
+
const issues = getDataIssues(
|
|
34
|
+
dataQuality,
|
|
35
|
+
type === 'nodes'
|
|
36
|
+
? {type, hasGroupFilter, hasDatabase, storageNodes, reportsDroppedFilters}
|
|
37
|
+
: {type},
|
|
38
|
+
);
|
|
39
|
+
|
|
40
|
+
return {
|
|
41
|
+
issues,
|
|
42
|
+
problems: dataQuality?.problems ?? NO_PROBLEMS,
|
|
43
|
+
rowsMayBeMissing: canDataIssuesHideRows(issues),
|
|
44
|
+
};
|
|
45
|
+
}, [dataQuality, type, hasGroupFilter, hasDatabase, storageNodes, reportsDroppedFilters]);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Data issues of a paginated table: collects what its rendered chunks report
|
|
50
|
+
* (pass `handleChunkDataChange` to the table) and says what to tell the user.
|
|
51
|
+
*/
|
|
52
|
+
export function useTableDataIssues(subject: DataIssuesSubject) {
|
|
53
|
+
const {dataQuality, handleChunkDataChange} = useTableDataQuality();
|
|
54
|
+
|
|
55
|
+
return {...useDataIssues(dataQuality, subject), handleChunkDataChange};
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
/** The part of a response with the list of table groups that tells about its quality */
|
|
59
|
+
interface TableGroupsResponse {
|
|
60
|
+
dataQuality: ResponseDataQuality;
|
|
61
|
+
tableGroups?: unknown[];
|
|
62
|
+
groups?: unknown[];
|
|
63
|
+
nodes?: unknown[];
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* Data issues of a table split into groups: unites the response with the list of groups
|
|
68
|
+
* and what the chunks of the tables of expanded groups report (a collapsed group renders no table).
|
|
69
|
+
* Pass `getGroupChunkDataChangeHandler(groupName)` to the table of a group.
|
|
70
|
+
*/
|
|
71
|
+
export function useGroupedTableDataIssues(
|
|
72
|
+
subject: DataIssuesSubject,
|
|
73
|
+
response: TableGroupsResponse | undefined,
|
|
74
|
+
) {
|
|
75
|
+
const {dataQuality: chunksQuality, getChunkDataChangeHandler} = useTableDataQuality();
|
|
76
|
+
|
|
77
|
+
const responseQuality = response?.dataQuality;
|
|
78
|
+
// Without grouping the handler returns a plain list of rows instead of the groups
|
|
79
|
+
const plainListReturned =
|
|
80
|
+
!response?.tableGroups?.length &&
|
|
81
|
+
Boolean(response?.groups?.length || response?.nodes?.length);
|
|
82
|
+
|
|
83
|
+
const dataQuality = React.useMemo(
|
|
84
|
+
() =>
|
|
85
|
+
mergeDataQuality([
|
|
86
|
+
responseQuality && plainListReturned
|
|
87
|
+
? {...responseQuality, needGroup: true}
|
|
88
|
+
: responseQuality,
|
|
89
|
+
chunksQuality,
|
|
90
|
+
]),
|
|
91
|
+
[responseQuality, plainListReturned, chunksQuality],
|
|
92
|
+
);
|
|
93
|
+
|
|
94
|
+
return {
|
|
95
|
+
...useDataIssues(dataQuality, subject),
|
|
96
|
+
getGroupChunkDataChangeHandler: getChunkDataChangeHandler,
|
|
97
|
+
};
|
|
98
|
+
}
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
import {isCleanDataQuality, isSameDataQuality, mergeDataQuality} from './dataQuality';
|
|
4
|
+
import type {ResponseDataQuality, TableDataWithQuality} from './types';
|
|
5
|
+
|
|
6
|
+
const DEFAULT_SOURCE = '';
|
|
7
|
+
|
|
8
|
+
/** Reports of the rendered chunks that were loaded with something to tell, by table and chunk offset */
|
|
9
|
+
type ChunkReports = Record<string, Record<number, ResponseDataQuality>>;
|
|
10
|
+
|
|
11
|
+
export type ChunkDataChangeHandler = (
|
|
12
|
+
chunkOffset: number,
|
|
13
|
+
data: TableDataWithQuality<unknown> | undefined,
|
|
14
|
+
) => void;
|
|
15
|
+
|
|
16
|
+
const NO_REPORTS: ChunkReports = {};
|
|
17
|
+
|
|
18
|
+
function updateChunkReports(
|
|
19
|
+
reports: ChunkReports,
|
|
20
|
+
source: string,
|
|
21
|
+
chunkOffset: number,
|
|
22
|
+
quality: ResponseDataQuality | undefined,
|
|
23
|
+
): ChunkReports {
|
|
24
|
+
const chunks = reports[source];
|
|
25
|
+
const current = chunks?.[chunkOffset];
|
|
26
|
+
|
|
27
|
+
if (!quality) {
|
|
28
|
+
if (!current) {
|
|
29
|
+
return reports;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
const {[chunkOffset]: _removedChunk, ...otherChunks} = chunks;
|
|
33
|
+
if (Object.keys(otherChunks).length > 0) {
|
|
34
|
+
return {...reports, [source]: otherChunks};
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
const {[source]: _removedSource, ...otherSources} = reports;
|
|
38
|
+
return otherSources;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
if (current && isSameDataQuality(current, quality)) {
|
|
42
|
+
return reports;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
return {...reports, [source]: {...chunks, [chunkOffset]: quality}};
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Collects what the handler reported about the rows a paginated table currently renders.
|
|
50
|
+
*
|
|
51
|
+
* A table is loaded in chunks, every chunk by a request of its own, and a problem
|
|
52
|
+
* of one request says nothing about the others. So the reports are kept per chunk
|
|
53
|
+
* (see `onChunkDataChange` of `PaginatedTable`) and united:
|
|
54
|
+
* - a chunk loaded with problems keeps the warning while its rows are rendered, until it is
|
|
55
|
+
* reloaded without them, whatever the other chunks report and in whatever order;
|
|
56
|
+
* - a chunk has no data for new filters or sorting until it is loaded for them,
|
|
57
|
+
* so a warning does not outlive the request it was received for.
|
|
58
|
+
*
|
|
59
|
+
* Several tables can share the warning, e.g. the tables of expanded groups:
|
|
60
|
+
* each of them reports through its own handler from `getChunkDataChangeHandler(source)`.
|
|
61
|
+
*/
|
|
62
|
+
export function useTableDataQuality() {
|
|
63
|
+
// The chunks report on every scroll step: they enter and leave the render range and reload.
|
|
64
|
+
// Their reports live in a ref, and the state gets only the united result, only when it
|
|
65
|
+
// really changes. So neither a healthy table nor a table whose chunks all report the same
|
|
66
|
+
// problem makes its owner render while it is scrolled.
|
|
67
|
+
const reportsRef = React.useRef(NO_REPORTS);
|
|
68
|
+
const publishedRef = React.useRef<ResponseDataQuality>();
|
|
69
|
+
const [dataQuality, setDataQuality] = React.useState<ResponseDataQuality>();
|
|
70
|
+
const handlersRef = React.useRef(new Map<string, ChunkDataChangeHandler>());
|
|
71
|
+
|
|
72
|
+
const getChunkDataChangeHandler = React.useCallback((source: string) => {
|
|
73
|
+
let handler = handlersRef.current.get(source);
|
|
74
|
+
|
|
75
|
+
if (!handler) {
|
|
76
|
+
handler = (chunkOffset, data) => {
|
|
77
|
+
const quality = data?.meta?.dataQuality;
|
|
78
|
+
// Only the chunks that have something to tell are kept
|
|
79
|
+
const reported = quality && !isCleanDataQuality(quality) ? quality : undefined;
|
|
80
|
+
const nextReports = updateChunkReports(
|
|
81
|
+
reportsRef.current,
|
|
82
|
+
source,
|
|
83
|
+
chunkOffset,
|
|
84
|
+
reported,
|
|
85
|
+
);
|
|
86
|
+
|
|
87
|
+
if (nextReports === reportsRef.current) {
|
|
88
|
+
return;
|
|
89
|
+
}
|
|
90
|
+
reportsRef.current = nextReports;
|
|
91
|
+
|
|
92
|
+
const united = mergeDataQuality(
|
|
93
|
+
Object.values(nextReports).flatMap((chunks) => Object.values(chunks)),
|
|
94
|
+
);
|
|
95
|
+
// The codes are united in the order the chunks are stored, which follows their arrival
|
|
96
|
+
if (!isSameDataQuality(united, publishedRef.current)) {
|
|
97
|
+
publishedRef.current = united;
|
|
98
|
+
setDataQuality(united);
|
|
99
|
+
}
|
|
100
|
+
};
|
|
101
|
+
handlersRef.current.set(source, handler);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
return handler;
|
|
105
|
+
}, []);
|
|
106
|
+
|
|
107
|
+
return {
|
|
108
|
+
/** United report of all the chunks whose rows are rendered now */
|
|
109
|
+
dataQuality,
|
|
110
|
+
/** For a single table */
|
|
111
|
+
handleChunkDataChange: getChunkDataChangeHandler(DEFAULT_SOURCE),
|
|
112
|
+
/** For one of several tables; the handler of a source is always the same function */
|
|
113
|
+
getChunkDataChangeHandler,
|
|
114
|
+
};
|
|
115
|
+
}
|
package/src/utils/nodes.ts
CHANGED
|
@@ -30,6 +30,16 @@ export const isUnavailableNode = <
|
|
|
30
30
|
node: T,
|
|
31
31
|
) => !node.SystemState || node.SystemState === EFlag.Grey;
|
|
32
32
|
|
|
33
|
+
/**
|
|
34
|
+
* The node has no state only because it did not answer in time (see `TNodeInfo.ResponseTimeout`).
|
|
35
|
+
* It may be alive, so it must not be presented as unavailable for sure.
|
|
36
|
+
*/
|
|
37
|
+
export const isNodeResponseTimedOut = <
|
|
38
|
+
T extends Pick<TSystemStateInfo, 'SystemState'> & {ResponseTimeout?: boolean},
|
|
39
|
+
>(
|
|
40
|
+
node: T,
|
|
41
|
+
) => node.ResponseTimeout === true && isUnavailableNode(node);
|
|
42
|
+
|
|
33
43
|
function getNodePileName(node: TNodeInfo) {
|
|
34
44
|
const legacyLocation = node.PhysicalLocation?.Location || node.PhysicalLocation?.DataCenterId;
|
|
35
45
|
return node.Location?.BridgePileName || legacyLocation?.match(/(?:^|\/)P=([^/]+)/)?.[1];
|
package/src/utils/query.ts
CHANGED
|
@@ -61,11 +61,6 @@ export const STATISTICS_MODES_TITLES: Record<StatisticsMode, string> = {
|
|
|
61
61
|
[STATISTICS_MODES.profile]: 'Profile',
|
|
62
62
|
} as const;
|
|
63
63
|
|
|
64
|
-
export const STATISTICS_MODES_WITH_SVG: readonly StatisticsMode[] = [
|
|
65
|
-
STATISTICS_MODES.full,
|
|
66
|
-
STATISTICS_MODES.profile,
|
|
67
|
-
];
|
|
68
|
-
|
|
69
64
|
export const TRACING_LEVELS = {
|
|
70
65
|
off: 'off',
|
|
71
66
|
toplevel: 'toplevel',
|
|
@@ -413,6 +408,8 @@ export const RESOURCE_POOL_NO_OVERRIDE_VALUE = '__no_pool_override__';
|
|
|
413
408
|
|
|
414
409
|
export type ResourcePoolValue = typeof RESOURCE_POOL_NO_OVERRIDE_VALUE | string;
|
|
415
410
|
|
|
411
|
+
export const MAX_QUERY_LIMIT_ROWS = 100_000;
|
|
412
|
+
|
|
416
413
|
export const DEFAULT_QUERY_SETTINGS = {
|
|
417
414
|
queryMode: QUERY_MODES.query,
|
|
418
415
|
transactionMode: TRANSACTION_MODES.implicit,
|
|
@@ -441,7 +438,7 @@ export const querySettingsValidationSchema = z.object({
|
|
|
441
438
|
),
|
|
442
439
|
limitRows: z.preprocess(
|
|
443
440
|
emptyStringToUndefined,
|
|
444
|
-
z.coerce.number<string | number>().gt(0).lte(
|
|
441
|
+
z.coerce.number<string | number>().gt(0).lte(MAX_QUERY_LIMIT_ROWS).optional(),
|
|
445
442
|
),
|
|
446
443
|
outputChunkMaxSize: z.preprocess(
|
|
447
444
|
emptyStringToUndefined,
|
|
@@ -470,7 +467,7 @@ export const querySettingsRestoreSchema = z
|
|
|
470
467
|
limitRows: z
|
|
471
468
|
.preprocess(
|
|
472
469
|
emptyStringToUndefined,
|
|
473
|
-
z.coerce.number<string | number>().gt(0).lte(
|
|
470
|
+
z.coerce.number<string | number>().gt(0).lte(MAX_QUERY_LIMIT_ROWS).optional(),
|
|
474
471
|
)
|
|
475
472
|
.catch(DEFAULT_QUERY_SETTINGS.limitRows),
|
|
476
473
|
outputChunkMaxSize: z
|
package/dist/containers/Tenant/Query/QueryResult/components/QueryInfoDropdown/QueryInfoDropdown.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { QueryResultsInfo } from './useQueryInfoMenuItems';
|
|
2
|
-
export interface QueryInfoDropdownProps {
|
|
3
|
-
queryResultsInfo: QueryResultsInfo;
|
|
4
|
-
database: string;
|
|
5
|
-
hasPlanToSvg: boolean;
|
|
6
|
-
error?: unknown;
|
|
7
|
-
}
|
|
8
|
-
export declare function QueryInfoDropdown({ queryResultsInfo, database, hasPlanToSvg, error, }: QueryInfoDropdownProps): import("react/jsx-runtime").JSX.Element | null;
|
package/dist/containers/Tenant/Query/QueryResult/components/QueryInfoDropdown/QueryInfoDropdown.js
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { Ellipsis } from '@gravity-ui/icons';
|
|
3
|
-
import { ActionTooltip, Button } from '@gravity-ui/uikit';
|
|
4
|
-
import { DropdownMenu } from '../../../../../../components/DropdownMenu';
|
|
5
|
-
import i18n from '../../i18n';
|
|
6
|
-
import { useQueryInfoMenuItems } from './useQueryInfoMenuItems';
|
|
7
|
-
export function QueryInfoDropdown({ queryResultsInfo, database, hasPlanToSvg, error, }) {
|
|
8
|
-
const { isLoading, items } = useQueryInfoMenuItems({
|
|
9
|
-
queryResultsInfo,
|
|
10
|
-
database,
|
|
11
|
-
hasPlanToSvg,
|
|
12
|
-
error,
|
|
13
|
-
});
|
|
14
|
-
const renderSwitcher = (props) => {
|
|
15
|
-
return (_jsx(ActionTooltip, { title: i18n('tooltip_actions'), children: _jsx(Button, { view: "flat-secondary", loading: isLoading, disabled: isLoading, ...props, children: _jsx(Button.Icon, { children: _jsx(Ellipsis, {}) }) }) }));
|
|
16
|
-
};
|
|
17
|
-
if (!items.length) {
|
|
18
|
-
return null;
|
|
19
|
-
}
|
|
20
|
-
return (_jsx(DropdownMenu, { popupProps: {
|
|
21
|
-
placement: ['bottom-end', 'left'],
|
|
22
|
-
}, renderSwitcher: renderSwitcher, items: items, size: "xl" }));
|
|
23
|
-
}
|
|
24
|
-
//# sourceMappingURL=QueryInfoDropdown.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"QueryInfoDropdown.js","sourceRoot":"","sources":["../../../../../../../src/containers/Tenant/Query/QueryResult/components/QueryInfoDropdown/QueryInfoDropdown.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,mBAAmB,CAAC;AAE3C,OAAO,EAAC,aAAa,EAAE,MAAM,EAAC,MAAM,mBAAmB,CAAC;AAExD,OAAO,EAAC,YAAY,EAAC,MAAM,2CAA2C,CAAC;AACvE,OAAO,IAAI,MAAM,YAAY,CAAC;AAG9B,OAAO,EAAC,qBAAqB,EAAC,MAAM,yBAAyB,CAAC;AAS9D,MAAM,UAAU,iBAAiB,CAAC,EAC9B,gBAAgB,EAChB,QAAQ,EACR,YAAY,EACZ,KAAK,GACgB;IACrB,MAAM,EAAC,SAAS,EAAE,KAAK,EAAC,GAAG,qBAAqB,CAAC;QAC7C,gBAAgB;QAChB,QAAQ;QACR,YAAY;QACZ,KAAK;KACR,CAAC,CAAC;IAEH,MAAM,cAAc,GAAG,CAAC,KAAkB,EAAE,EAAE;QAC1C,OAAO,CACH,KAAC,aAAa,IAAC,KAAK,EAAE,IAAI,CAAC,iBAAiB,CAAC,YACzC,KAAC,MAAM,IAAC,IAAI,EAAC,gBAAgB,EAAC,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,SAAS,KAAM,KAAK,YAC5E,KAAC,MAAM,CAAC,IAAI,cACR,KAAC,QAAQ,KAAG,GACF,GACT,GACG,CACnB,CAAC;IACN,CAAC,CAAC;IAEF,IAAI,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC;QAChB,OAAO,IAAI,CAAC;IAChB,CAAC;IAED,OAAO,CACH,KAAC,YAAY,IACT,UAAU,EAAE;YACR,SAAS,EAAE,CAAC,YAAY,EAAE,MAAM,CAAC;SACpC,EACD,cAAc,EAAE,cAAc,EAC9B,KAAK,EAAE,KAAK,EACZ,IAAI,EAAC,IAAI,GACX,CACL,CAAC;AACN,CAAC"}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import type { DropdownMenuItemWithDescription } from '../../../../../../components/DropdownMenu';
|
|
2
|
-
import type { QueryPlan, ScriptPlan, TKqpStatsQuery } from '../../../../../../types/api/query';
|
|
3
|
-
import { parseQueryError } from '../../../../../../utils/query';
|
|
4
|
-
export interface QueryResultsInfo {
|
|
5
|
-
ast?: string;
|
|
6
|
-
stats?: TKqpStatsQuery;
|
|
7
|
-
queryText?: string;
|
|
8
|
-
plan?: QueryPlan | ScriptPlan;
|
|
9
|
-
}
|
|
10
|
-
export interface DiagnosticsData extends QueryResultsInfo {
|
|
11
|
-
database: string;
|
|
12
|
-
error?: ReturnType<typeof parseQueryError>;
|
|
13
|
-
}
|
|
14
|
-
export interface UseQueryInfoMenuItemsProps {
|
|
15
|
-
queryResultsInfo: QueryResultsInfo;
|
|
16
|
-
database: string;
|
|
17
|
-
hasPlanToSvg: boolean;
|
|
18
|
-
error?: unknown;
|
|
19
|
-
}
|
|
20
|
-
export declare function useQueryInfoMenuItems({ queryResultsInfo, database, hasPlanToSvg, error, }: UseQueryInfoMenuItemsProps): {
|
|
21
|
-
isLoading: boolean;
|
|
22
|
-
items: DropdownMenuItemWithDescription<HTMLElement>[][];
|
|
23
|
-
};
|
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { ArrowDownToLine, ArrowUpRightFromSquare } from '@gravity-ui/icons';
|
|
3
|
-
import { planToSvgApi } from '../../../../../../store/reducers/planToSvg';
|
|
4
|
-
import createToast from '../../../../../../utils/createToast';
|
|
5
|
-
import { createAndDownloadJsonFile, downloadFile } from '../../../../../../utils/downloadFile';
|
|
6
|
-
import { prepareCommonErrorMessage } from '../../../../../../utils/errors';
|
|
7
|
-
import { parseQueryError } from '../../../../../../utils/query';
|
|
8
|
-
import i18n from '../../i18n';
|
|
9
|
-
export function useQueryInfoMenuItems({ queryResultsInfo, database, hasPlanToSvg, error, }) {
|
|
10
|
-
const [blobUrl, setBlobUrl] = React.useState(null);
|
|
11
|
-
const [getPlanToSvg, { isLoading }] = planToSvgApi.useLazyPlanToSvgQueryQuery();
|
|
12
|
-
React.useEffect(() => {
|
|
13
|
-
return () => {
|
|
14
|
-
if (blobUrl) {
|
|
15
|
-
URL.revokeObjectURL(blobUrl);
|
|
16
|
-
}
|
|
17
|
-
};
|
|
18
|
-
}, [blobUrl]);
|
|
19
|
-
const items = React.useMemo(() => {
|
|
20
|
-
const menuItems = [];
|
|
21
|
-
const plan = queryResultsInfo.plan;
|
|
22
|
-
if (plan && hasPlanToSvg) {
|
|
23
|
-
const handleGetSvg = () => {
|
|
24
|
-
if (blobUrl) {
|
|
25
|
-
return Promise.resolve(blobUrl);
|
|
26
|
-
}
|
|
27
|
-
return getPlanToSvg({ plan, database })
|
|
28
|
-
.unwrap()
|
|
29
|
-
.then((result) => {
|
|
30
|
-
const blob = new Blob([result], { type: 'image/svg+xml' });
|
|
31
|
-
const url = URL.createObjectURL(blob);
|
|
32
|
-
setBlobUrl(url);
|
|
33
|
-
return url;
|
|
34
|
-
})
|
|
35
|
-
.catch((err) => {
|
|
36
|
-
const errorMessage = prepareCommonErrorMessage(err);
|
|
37
|
-
createToast({
|
|
38
|
-
title: i18n('text_error-plan-svg', { error: errorMessage }),
|
|
39
|
-
name: 'plan-svg-error',
|
|
40
|
-
theme: 'danger',
|
|
41
|
-
});
|
|
42
|
-
return null;
|
|
43
|
-
});
|
|
44
|
-
};
|
|
45
|
-
const handleOpenInNewTab = () => {
|
|
46
|
-
handleGetSvg().then((url) => {
|
|
47
|
-
if (url) {
|
|
48
|
-
window.open(url, '_blank');
|
|
49
|
-
}
|
|
50
|
-
});
|
|
51
|
-
};
|
|
52
|
-
const handleDownload = () => {
|
|
53
|
-
handleGetSvg().then((url) => {
|
|
54
|
-
if (url) {
|
|
55
|
-
downloadFile(url, 'query-plan.svg');
|
|
56
|
-
}
|
|
57
|
-
});
|
|
58
|
-
};
|
|
59
|
-
menuItems.push([
|
|
60
|
-
{
|
|
61
|
-
title: i18n('text_open-execution-plan'),
|
|
62
|
-
description: i18n('text_open-execution-plan_description'),
|
|
63
|
-
iconStart: ArrowUpRightFromSquare,
|
|
64
|
-
action: handleOpenInNewTab,
|
|
65
|
-
},
|
|
66
|
-
{
|
|
67
|
-
title: i18n('text_download'),
|
|
68
|
-
description: i18n('text_download_description'),
|
|
69
|
-
iconStart: ArrowDownToLine,
|
|
70
|
-
action: handleDownload,
|
|
71
|
-
},
|
|
72
|
-
]);
|
|
73
|
-
}
|
|
74
|
-
if (queryResultsInfo) {
|
|
75
|
-
const handleDiagnosticsDownload = () => {
|
|
76
|
-
const parsedError = error ? parseQueryError(error) : undefined;
|
|
77
|
-
const diagnosticsData = {
|
|
78
|
-
...queryResultsInfo,
|
|
79
|
-
database,
|
|
80
|
-
...(parsedError && { error: parsedError }),
|
|
81
|
-
};
|
|
82
|
-
createAndDownloadJsonFile(diagnosticsData, `query-diagnostics-${new Date().getTime()}`);
|
|
83
|
-
};
|
|
84
|
-
menuItems.push([
|
|
85
|
-
{
|
|
86
|
-
title: i18n('text_diagnostics'),
|
|
87
|
-
description: i18n('text_diagnostics_description'),
|
|
88
|
-
iconStart: ArrowDownToLine,
|
|
89
|
-
action: handleDiagnosticsDownload,
|
|
90
|
-
},
|
|
91
|
-
]);
|
|
92
|
-
}
|
|
93
|
-
return menuItems;
|
|
94
|
-
}, [queryResultsInfo, hasPlanToSvg, blobUrl, getPlanToSvg, database, error]);
|
|
95
|
-
return {
|
|
96
|
-
isLoading,
|
|
97
|
-
items,
|
|
98
|
-
};
|
|
99
|
-
}
|
|
100
|
-
//# sourceMappingURL=useQueryInfoMenuItems.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useQueryInfoMenuItems.js","sourceRoot":"","sources":["../../../../../../../src/containers/Tenant/Query/QueryResult/components/QueryInfoDropdown/useQueryInfoMenuItems.tsx"],"names":[],"mappings":"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"}
|
package/src/containers/Tenant/Query/QueryResult/components/QueryInfoDropdown/QueryInfoDropdown.tsx
DELETED
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import {Ellipsis} from '@gravity-ui/icons';
|
|
2
|
-
import type {ButtonProps} from '@gravity-ui/uikit';
|
|
3
|
-
import {ActionTooltip, Button} from '@gravity-ui/uikit';
|
|
4
|
-
|
|
5
|
-
import {DropdownMenu} from '../../../../../../components/DropdownMenu';
|
|
6
|
-
import i18n from '../../i18n';
|
|
7
|
-
|
|
8
|
-
import type {QueryResultsInfo} from './useQueryInfoMenuItems';
|
|
9
|
-
import {useQueryInfoMenuItems} from './useQueryInfoMenuItems';
|
|
10
|
-
|
|
11
|
-
export interface QueryInfoDropdownProps {
|
|
12
|
-
queryResultsInfo: QueryResultsInfo;
|
|
13
|
-
database: string;
|
|
14
|
-
hasPlanToSvg: boolean;
|
|
15
|
-
error?: unknown;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
export function QueryInfoDropdown({
|
|
19
|
-
queryResultsInfo,
|
|
20
|
-
database,
|
|
21
|
-
hasPlanToSvg,
|
|
22
|
-
error,
|
|
23
|
-
}: QueryInfoDropdownProps) {
|
|
24
|
-
const {isLoading, items} = useQueryInfoMenuItems({
|
|
25
|
-
queryResultsInfo,
|
|
26
|
-
database,
|
|
27
|
-
hasPlanToSvg,
|
|
28
|
-
error,
|
|
29
|
-
});
|
|
30
|
-
|
|
31
|
-
const renderSwitcher = (props: ButtonProps) => {
|
|
32
|
-
return (
|
|
33
|
-
<ActionTooltip title={i18n('tooltip_actions')}>
|
|
34
|
-
<Button view="flat-secondary" loading={isLoading} disabled={isLoading} {...props}>
|
|
35
|
-
<Button.Icon>
|
|
36
|
-
<Ellipsis />
|
|
37
|
-
</Button.Icon>
|
|
38
|
-
</Button>
|
|
39
|
-
</ActionTooltip>
|
|
40
|
-
);
|
|
41
|
-
};
|
|
42
|
-
|
|
43
|
-
if (!items.length) {
|
|
44
|
-
return null;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
return (
|
|
48
|
-
<DropdownMenu
|
|
49
|
-
popupProps={{
|
|
50
|
-
placement: ['bottom-end', 'left'],
|
|
51
|
-
}}
|
|
52
|
-
renderSwitcher={renderSwitcher}
|
|
53
|
-
items={items}
|
|
54
|
-
size="xl"
|
|
55
|
-
/>
|
|
56
|
-
);
|
|
57
|
-
}
|