ydb-embedded-ui 22.9.0 → 22.10.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/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/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/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/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/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 +4 -4
- package/dist/containers/Storage/PaginatedStorageGroups/StorageGroupsControls.js.map +1 -1
- 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/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/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/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/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 +4 -6
- package/dist/containers/Tenant/Query/QueryEditor/QueryEditor.js.map +1 -1
- 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 +9 -3
- 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 +20 -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 +61 -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/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/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 +1 -0
- package/dist/store/reducers/capabilities/hooks.js +5 -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 +3 -4
- 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/types.d.ts +2 -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 +3 -0
- 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/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/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/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 +0 -1
- package/dist/utils/query.js +0 -4
- package/dist/utils/query.js.map +1 -1
- package/package.json +2 -1
- 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/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/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/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/StorageGroupsComponent.tsx +11 -0
- package/src/containers/Storage/PaginatedStorageGroups/StorageGroupsControls.tsx +11 -0
- package/src/containers/Storage/PaginatedStorageGroupsTable/PaginatedStorageGroupsTable.tsx +13 -3
- package/src/containers/Storage/PaginatedStorageGroupsTable/StorageGroupsEmptyDataMessage.tsx +8 -0
- 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/utils/index.ts +20 -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/Query/NewSQL/NewSQL.tsx +1 -1
- package/src/containers/Tenant/Query/QueryEditor/QueryEditor.tsx +6 -8
- 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 +9 -3
- 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 +142 -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 +20 -11
- package/src/containers/Tenant/Query/QueryResult/utils.ts +73 -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/useSchemaPathSuggestions.ts +93 -0
- 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 +6 -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 +2 -4
- package/src/store/reducers/query/query.ts +2 -0
- package/src/store/reducers/query/slice.ts +17 -1
- package/src/store/reducers/query/types.ts +3 -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 +3 -0
- package/src/store/reducers/storage/utils.ts +3 -0
- 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/controlPlaneOperations.ts +24 -0
- package/src/types/api/nodes.ts +15 -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 +0 -5
- 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
|
@@ -2,11 +2,16 @@ import React from 'react';
|
|
|
2
2
|
|
|
3
3
|
import {useHistory} from 'react-router-dom';
|
|
4
4
|
|
|
5
|
+
import {getEmptyDataWithIssuesMessage} from '../../../components/DataIssuesAlert/DataIssuesAlert';
|
|
5
6
|
import {
|
|
6
7
|
getNodeHostLabel,
|
|
7
8
|
getNodeHostPath,
|
|
8
9
|
} from '../../../components/NodeHostWrapper/NodeHostWrapper';
|
|
9
|
-
import type {
|
|
10
|
+
import type {
|
|
11
|
+
OnChunkDataChange,
|
|
12
|
+
PaginatedTableData,
|
|
13
|
+
RenderErrorMessage,
|
|
14
|
+
} from '../../../components/PaginatedTable';
|
|
10
15
|
import {PAGINATED_TABLE_IDS, ResizeablePaginatedTable} from '../../../components/PaginatedTable';
|
|
11
16
|
import {NODES_COLUMNS_IDS} from '../../../components/nodesColumns/constants';
|
|
12
17
|
import type {NodesColumn} from '../../../components/nodesColumns/types';
|
|
@@ -14,6 +19,7 @@ import {VISIBLE_ENTITIES} from '../../../store/reducers/storage/constants';
|
|
|
14
19
|
import type {PreparedStorageNode, VisibleEntities} from '../../../store/reducers/storage/types';
|
|
15
20
|
import type {NodesGroupByField} from '../../../types/api/nodes';
|
|
16
21
|
import {cn} from '../../../utils/cn';
|
|
22
|
+
import type {DataQualityMeta} from '../../../utils/dataIssues/types';
|
|
17
23
|
import {useDatacenterNodesFetcher} from '../../../utils/hooks/useDatacenterNodesFetcher';
|
|
18
24
|
import {useHideUnavailableNodes} from '../../../utils/hooks/useHideUnavailableNodes';
|
|
19
25
|
import {NodesUptimeFilterValues, isUnavailableNode} from '../../../utils/nodes';
|
|
@@ -51,6 +57,9 @@ interface PaginatedStorageNodesTableProps {
|
|
|
51
57
|
initialEntitiesCount?: number;
|
|
52
58
|
rowHeight?: number;
|
|
53
59
|
onDataFetched?: (data: PaginatedTableData<PreparedStorageNode>) => void;
|
|
60
|
+
onChunkDataChange?: OnChunkDataChange<PreparedStorageNode, DataQualityMeta>;
|
|
61
|
+
/** Rows may be missing: an empty table does not prove there are no such nodes */
|
|
62
|
+
rowsMayBeMissing?: boolean;
|
|
54
63
|
}
|
|
55
64
|
|
|
56
65
|
export const PaginatedStorageNodesTable = ({
|
|
@@ -69,6 +78,8 @@ export const PaginatedStorageNodesTable = ({
|
|
|
69
78
|
initialEntitiesCount,
|
|
70
79
|
rowHeight = STORAGE_NODES_DEFAULT_ROW_HEIGHT,
|
|
71
80
|
onDataFetched,
|
|
81
|
+
onChunkDataChange,
|
|
82
|
+
rowsMayBeMissing,
|
|
72
83
|
}: PaginatedStorageNodesTableProps) => {
|
|
73
84
|
const history = useHistory();
|
|
74
85
|
const fetchNodes = useDatacenterNodesFetcher(getStorageNodes);
|
|
@@ -107,11 +118,12 @@ export const PaginatedStorageNodesTable = ({
|
|
|
107
118
|
onShowAll={onShowAll}
|
|
108
119
|
nodesUptimeFilter={nodesUptimeFilter}
|
|
109
120
|
visibleEntities={visibleEntities}
|
|
121
|
+
rowsMayBeMissing={rowsMayBeMissing}
|
|
110
122
|
/>
|
|
111
123
|
);
|
|
112
124
|
}
|
|
113
125
|
|
|
114
|
-
return i18n('empty.default');
|
|
126
|
+
return rowsMayBeMissing ? getEmptyDataWithIssuesMessage() : i18n('empty.default');
|
|
115
127
|
};
|
|
116
128
|
|
|
117
129
|
return (
|
|
@@ -119,7 +131,7 @@ export const PaginatedStorageNodesTable = ({
|
|
|
119
131
|
getKeyboardRowKey={(node) => node.NodeId}
|
|
120
132
|
getKeyboardRowLabel={getNodeHostLabel}
|
|
121
133
|
onKeyboardActivate={(node) => {
|
|
122
|
-
const nodePath = getNodeHostPath(node, database);
|
|
134
|
+
const nodePath = getNodeHostPath(node, database, {storageNodes: true});
|
|
123
135
|
if (nodePath) {
|
|
124
136
|
history.push(nodePath);
|
|
125
137
|
}
|
|
@@ -140,6 +152,7 @@ export const PaginatedStorageNodesTable = ({
|
|
|
140
152
|
filters={tableFilters}
|
|
141
153
|
tableName={PAGINATED_TABLE_IDS.STORAGE_NODES}
|
|
142
154
|
onDataFetched={onDataFetched}
|
|
155
|
+
onChunkDataChange={onChunkDataChange}
|
|
143
156
|
/>
|
|
144
157
|
);
|
|
145
158
|
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import {getEmptyDataWithIssuesMessage} from '../../../components/DataIssuesAlert/DataIssuesAlert';
|
|
1
2
|
import {EmptyFilter} from '../../../components/EmptyFilter/EmptyFilter';
|
|
2
3
|
import {VISIBLE_ENTITIES} from '../../../store/reducers/storage/constants';
|
|
3
4
|
import type {VisibleEntities} from '../../../store/reducers/storage/types';
|
|
@@ -9,12 +10,14 @@ interface StorageNodesEmptyDataMessageProps {
|
|
|
9
10
|
visibleEntities: VisibleEntities;
|
|
10
11
|
nodesUptimeFilter: NodesUptimeFilterValues;
|
|
11
12
|
onShowAll?: VoidFunction;
|
|
13
|
+
rowsMayBeMissing?: boolean;
|
|
12
14
|
}
|
|
13
15
|
|
|
14
16
|
export const StorageNodesEmptyDataMessage = ({
|
|
15
17
|
visibleEntities,
|
|
16
18
|
nodesUptimeFilter,
|
|
17
19
|
onShowAll,
|
|
20
|
+
rowsMayBeMissing,
|
|
18
21
|
}: StorageNodesEmptyDataMessageProps) => {
|
|
19
22
|
let message;
|
|
20
23
|
|
|
@@ -37,6 +40,11 @@ export const StorageNodesEmptyDataMessage = ({
|
|
|
37
40
|
message = i18n('empty.several_filters');
|
|
38
41
|
}
|
|
39
42
|
|
|
43
|
+
if (message && rowsMayBeMissing) {
|
|
44
|
+
// Do not claim there are no such nodes when the data is known to be incomplete
|
|
45
|
+
message = getEmptyDataWithIssuesMessage();
|
|
46
|
+
}
|
|
47
|
+
|
|
40
48
|
if (message) {
|
|
41
49
|
return <EmptyFilter title={message} showAll={i18n('show_all')} onShowAll={onShowAll} />;
|
|
42
50
|
}
|
|
@@ -73,7 +73,7 @@ export const getStorageNodesColumns = ({
|
|
|
73
73
|
}: GetStorageNodesColumnsParams): NodesColumn[] => {
|
|
74
74
|
const columns: NodesColumn[] = [
|
|
75
75
|
getNodeIdColumn(),
|
|
76
|
-
getHostColumn({database}),
|
|
76
|
+
getHostColumn({database, storageNodes: true}),
|
|
77
77
|
getNodeNameColumn(),
|
|
78
78
|
getDataCenterColumn(),
|
|
79
79
|
getPileNameColumn(),
|
|
@@ -9,6 +9,7 @@ import type {
|
|
|
9
9
|
} from '../../../store/reducers/storage/types';
|
|
10
10
|
import {prepareStorageNodesResponse} from '../../../store/reducers/storage/utils';
|
|
11
11
|
import type {NodesRequestParams} from '../../../types/api/nodes';
|
|
12
|
+
import type {DataQualityMeta} from '../../../utils/dataIssues/types';
|
|
12
13
|
import {prepareSortValue} from '../../../utils/filters';
|
|
13
14
|
import {getUptimeParamValue} from '../../../utils/nodes';
|
|
14
15
|
import {getRequiredDataFields} from '../../../utils/tableUtils/getRequiredDataFields';
|
|
@@ -16,7 +17,8 @@ import {getRequiredDataFields} from '../../../utils/tableUtils/getRequiredDataFi
|
|
|
16
17
|
export const getStorageNodes: FetchData<
|
|
17
18
|
PreparedStorageNode,
|
|
18
19
|
PreparedStorageNodeFilters,
|
|
19
|
-
Pick<NodesRequestParams, 'type' | 'storage'
|
|
20
|
+
Pick<NodesRequestParams, 'type' | 'storage'>,
|
|
21
|
+
DataQualityMeta
|
|
20
22
|
> = async (params) => {
|
|
21
23
|
const {
|
|
22
24
|
type = 'static',
|
|
@@ -68,5 +70,6 @@ export const getStorageNodes: FetchData<
|
|
|
68
70
|
found: preparedResponse.found || 0,
|
|
69
71
|
total: preparedResponse.total || 0,
|
|
70
72
|
columnsSettings: preparedResponse.columnsSettings,
|
|
73
|
+
meta: {dataQuality: preparedResponse.dataQuality},
|
|
71
74
|
};
|
|
72
75
|
};
|
|
@@ -9,6 +9,22 @@
|
|
|
9
9
|
@include mixins.search();
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
+
// The data issues label is the last item of the controls row, but takes no width in it:
|
|
13
|
+
// the expert mode panel below is as wide as the row, and its width must not change
|
|
14
|
+
// when the label comes and goes. The label itself overflows the item to the right.
|
|
15
|
+
&__data-issues {
|
|
16
|
+
display: flex;
|
|
17
|
+
flex-shrink: 0;
|
|
18
|
+
|
|
19
|
+
width: 0;
|
|
20
|
+
// the gap of the row before a zero-width item would still widen the row
|
|
21
|
+
margin-inline-start: calc(-1 * var(--g-spacing-2));
|
|
22
|
+
|
|
23
|
+
> * {
|
|
24
|
+
margin-inline-start: var(--g-spacing-2);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
12
28
|
&__table {
|
|
13
29
|
.g-tooltip {
|
|
14
30
|
// stylelint-disable-next-line declaration-no-important
|
|
@@ -4,6 +4,7 @@ import {isNil} from 'lodash';
|
|
|
4
4
|
|
|
5
5
|
import type {PreparedStorageGroup} from '../../../store/reducers/storage/types';
|
|
6
6
|
import type {Erasure} from '../../../types/api/storage';
|
|
7
|
+
import type {DataIssuesSubject} from '../../../utils/dataIssues/classify';
|
|
7
8
|
import type {PreparedPDisk, PreparedVDisk} from '../../../utils/disks/types';
|
|
8
9
|
import {generateEvaluator} from '../../../utils/generateEvaluator';
|
|
9
10
|
import {useNodesMap} from '../../../utils/hooks/useNodesMap';
|
|
@@ -101,6 +102,25 @@ export function getStorageGroupsInitialEntitiesCount(
|
|
|
101
102
|
return DEFAULT_ENTITIES_COUNT;
|
|
102
103
|
}
|
|
103
104
|
|
|
105
|
+
/** Describes the storage nodes table to the classification of the problems of its responses */
|
|
106
|
+
export function getStorageNodesDataIssuesSubject({
|
|
107
|
+
database,
|
|
108
|
+
groupId,
|
|
109
|
+
reportsDroppedFilters,
|
|
110
|
+
}: {
|
|
111
|
+
database?: string;
|
|
112
|
+
groupId?: string | number;
|
|
113
|
+
reportsDroppedFilters?: boolean;
|
|
114
|
+
}): DataIssuesSubject {
|
|
115
|
+
return {
|
|
116
|
+
type: 'nodes',
|
|
117
|
+
storageNodes: true,
|
|
118
|
+
hasDatabase: Boolean(database),
|
|
119
|
+
hasGroupFilter: !isNil(groupId) && groupId !== '',
|
|
120
|
+
reportsDroppedFilters: Boolean(reportsDroppedFilters),
|
|
121
|
+
};
|
|
122
|
+
}
|
|
123
|
+
|
|
104
124
|
function isErasureWithDifferentDC(erasure?: Erasure) {
|
|
105
125
|
// These erasure types suppose the data distributed across 3 different DC
|
|
106
126
|
return erasure === 'mirror-3-dc' || erasure === 'mirror-3of4';
|
|
@@ -21,6 +21,7 @@ import {
|
|
|
21
21
|
import {useAutoRefreshInterval} from '../../../../../utils/hooks';
|
|
22
22
|
import {getRequiredDataFields} from '../../../../../utils/tableUtils/getRequiredDataFields';
|
|
23
23
|
import {TenantOverviewTableLayout} from '../TenantOverviewTableLayout';
|
|
24
|
+
import {TopNodesDataIssues} from '../TopTablesDataIssues';
|
|
24
25
|
import i18n from '../i18n';
|
|
25
26
|
|
|
26
27
|
function getTopNodesByCpuColumns(
|
|
@@ -64,7 +65,17 @@ export function TopNodesByCpu({database}: TopNodesByCpuProps) {
|
|
|
64
65
|
const topNodes = currentData?.nodes || [];
|
|
65
66
|
|
|
66
67
|
return (
|
|
67
|
-
<TenantOverviewTableLayout
|
|
68
|
+
<TenantOverviewTableLayout
|
|
69
|
+
loading={loading}
|
|
70
|
+
error={error}
|
|
71
|
+
withData={Boolean(currentData)}
|
|
72
|
+
notice={
|
|
73
|
+
<TopNodesDataIssues
|
|
74
|
+
dataQuality={currentData?.dataQuality}
|
|
75
|
+
tableTitle={i18n('title_top-nodes-pool')}
|
|
76
|
+
/>
|
|
77
|
+
}
|
|
78
|
+
>
|
|
68
79
|
<ResizeableDataTable
|
|
69
80
|
columnsWidthLSKey={NODES_COLUMNS_WIDTH_LS_KEY}
|
|
70
81
|
data={topNodes}
|
|
@@ -22,6 +22,7 @@ import {
|
|
|
22
22
|
import {useAutoRefreshInterval} from '../../../../../utils/hooks';
|
|
23
23
|
import {getRequiredDataFields} from '../../../../../utils/tableUtils/getRequiredDataFields';
|
|
24
24
|
import {TenantOverviewTableLayout} from '../TenantOverviewTableLayout';
|
|
25
|
+
import {TopNodesDataIssues} from '../TopTablesDataIssues';
|
|
25
26
|
import i18n from '../i18n';
|
|
26
27
|
|
|
27
28
|
function getTopNodesByLoadColumns(
|
|
@@ -70,7 +71,17 @@ export function TopNodesByLoad({database}: TopNodesByLoadProps) {
|
|
|
70
71
|
const topNodes = currentData?.nodes || [];
|
|
71
72
|
|
|
72
73
|
return (
|
|
73
|
-
<TenantOverviewTableLayout
|
|
74
|
+
<TenantOverviewTableLayout
|
|
75
|
+
loading={loading}
|
|
76
|
+
error={error}
|
|
77
|
+
withData={Boolean(currentData)}
|
|
78
|
+
notice={
|
|
79
|
+
<TopNodesDataIssues
|
|
80
|
+
dataQuality={currentData?.dataQuality}
|
|
81
|
+
tableTitle={i18n('title_top-nodes-load')}
|
|
82
|
+
/>
|
|
83
|
+
}
|
|
84
|
+
>
|
|
74
85
|
<ResizeableDataTable
|
|
75
86
|
columnsWidthLSKey={NODES_COLUMNS_WIDTH_LS_KEY}
|
|
76
87
|
data={topNodes}
|
|
@@ -25,6 +25,7 @@ import {
|
|
|
25
25
|
import {useAutoRefreshInterval} from '../../../../../utils/hooks';
|
|
26
26
|
import {getRequiredDataFields} from '../../../../../utils/tableUtils/getRequiredDataFields';
|
|
27
27
|
import {TenantOverviewTableLayout} from '../TenantOverviewTableLayout';
|
|
28
|
+
import {TopNodesDataIssues} from '../TopTablesDataIssues';
|
|
28
29
|
import i18n from '../i18n';
|
|
29
30
|
|
|
30
31
|
function getTopNodesByMemoryColumns(
|
|
@@ -71,7 +72,17 @@ export function TopNodesByMemory({database}: TopNodesByMemoryProps) {
|
|
|
71
72
|
const topNodes = currentData?.nodes || [];
|
|
72
73
|
|
|
73
74
|
return (
|
|
74
|
-
<TenantOverviewTableLayout
|
|
75
|
+
<TenantOverviewTableLayout
|
|
76
|
+
loading={loading}
|
|
77
|
+
error={error}
|
|
78
|
+
withData={Boolean(currentData)}
|
|
79
|
+
notice={
|
|
80
|
+
<TopNodesDataIssues
|
|
81
|
+
dataQuality={currentData?.dataQuality}
|
|
82
|
+
tableTitle={i18n('title_top-nodes-by-memory')}
|
|
83
|
+
/>
|
|
84
|
+
}
|
|
85
|
+
>
|
|
75
86
|
<ResizeableDataTable
|
|
76
87
|
columnsWidthLSKey={NODES_COLUMNS_WIDTH_LS_KEY}
|
|
77
88
|
data={topNodes}
|
|
@@ -7,6 +7,7 @@ import {
|
|
|
7
7
|
} from '../../../../../utils/constants';
|
|
8
8
|
import {useAutoRefreshInterval} from '../../../../../utils/hooks';
|
|
9
9
|
import {TenantOverviewTableLayout} from '../TenantOverviewTableLayout';
|
|
10
|
+
import {TopNodesDataIssues} from '../TopTablesDataIssues';
|
|
10
11
|
import i18n from '../i18n';
|
|
11
12
|
|
|
12
13
|
import {getTopNodesByPingColumns} from './columns';
|
|
@@ -35,7 +36,17 @@ export function TopNodesByPing({database}: TopNodesByPingProps) {
|
|
|
35
36
|
const topNodes = currentData?.nodes || [];
|
|
36
37
|
|
|
37
38
|
return (
|
|
38
|
-
<TenantOverviewTableLayout
|
|
39
|
+
<TenantOverviewTableLayout
|
|
40
|
+
loading={loading}
|
|
41
|
+
error={error}
|
|
42
|
+
withData={Boolean(currentData)}
|
|
43
|
+
notice={
|
|
44
|
+
<TopNodesDataIssues
|
|
45
|
+
dataQuality={currentData?.dataQuality}
|
|
46
|
+
tableTitle={i18n('title_nodes-by-ping')}
|
|
47
|
+
/>
|
|
48
|
+
}
|
|
49
|
+
>
|
|
39
50
|
<ResizeableDataTable
|
|
40
51
|
columnsWidthLSKey={NODES_COLUMNS_WIDTH_LS_KEY}
|
|
41
52
|
data={topNodes}
|
|
@@ -7,6 +7,7 @@ import {
|
|
|
7
7
|
} from '../../../../../utils/constants';
|
|
8
8
|
import {useAutoRefreshInterval} from '../../../../../utils/hooks';
|
|
9
9
|
import {TenantOverviewTableLayout} from '../TenantOverviewTableLayout';
|
|
10
|
+
import {TopNodesDataIssues} from '../TopTablesDataIssues';
|
|
10
11
|
import i18n from '../i18n';
|
|
11
12
|
|
|
12
13
|
import {getTopNodesBySkewColumns} from './columns';
|
|
@@ -35,7 +36,17 @@ export function TopNodesBySkew({database}: TopNodesBySkewProps) {
|
|
|
35
36
|
const topNodes = currentData?.nodes || [];
|
|
36
37
|
|
|
37
38
|
return (
|
|
38
|
-
<TenantOverviewTableLayout
|
|
39
|
+
<TenantOverviewTableLayout
|
|
40
|
+
loading={loading}
|
|
41
|
+
error={error}
|
|
42
|
+
withData={Boolean(currentData)}
|
|
43
|
+
notice={
|
|
44
|
+
<TopNodesDataIssues
|
|
45
|
+
dataQuality={currentData?.dataQuality}
|
|
46
|
+
tableTitle={i18n('title_nodes-by-skew')}
|
|
47
|
+
/>
|
|
48
|
+
}
|
|
49
|
+
>
|
|
39
50
|
<ResizeableDataTable
|
|
40
51
|
columnsWidthLSKey={NODES_COLUMNS_WIDTH_LS_KEY}
|
|
41
52
|
data={topNodes}
|
|
@@ -22,6 +22,7 @@ import {setDiagnosticsTab, tenantApi} from '../../../../store/reducers/tenant/te
|
|
|
22
22
|
import type {TenantMetricsTab} from '../../../../store/reducers/tenant/types';
|
|
23
23
|
import {calculateTenantMetrics} from '../../../../store/reducers/tenants/utils';
|
|
24
24
|
import type {TenantStorageStats} from '../../../../store/reducers/tenants/utils';
|
|
25
|
+
import {backend, environment} from '../../../../store/runtimeParams';
|
|
25
26
|
import type {AdditionalTenantsProps} from '../../../../types/additionalProps';
|
|
26
27
|
import type {EFlag} from '../../../../types/api/enums';
|
|
27
28
|
import type {SelfCheckResult} from '../../../../types/api/healthcheck';
|
|
@@ -276,7 +277,7 @@ export function TenantOverview({
|
|
|
276
277
|
isFetching,
|
|
277
278
|
error,
|
|
278
279
|
} = tenantApi.useGetTenantInfoQuery(
|
|
279
|
-
{database, clusterName, isMetaDatabasesAvailable},
|
|
280
|
+
{database, clusterName, isMetaDatabasesAvailable, environment, backend},
|
|
280
281
|
{pollingInterval: autoRefreshInterval},
|
|
281
282
|
);
|
|
282
283
|
|
|
@@ -14,6 +14,8 @@ interface TenantOverviewTableLayoutProps {
|
|
|
14
14
|
error?: unknown;
|
|
15
15
|
tableClassNameModifiers?: NoStrictEntityMods;
|
|
16
16
|
withData?: boolean;
|
|
17
|
+
/** Shown above the table, e.g. a warning about the data in the table */
|
|
18
|
+
notice?: React.ReactNode;
|
|
17
19
|
children?: React.ReactNode;
|
|
18
20
|
}
|
|
19
21
|
|
|
@@ -23,6 +25,7 @@ export function TenantOverviewTableLayout({
|
|
|
23
25
|
loading,
|
|
24
26
|
tableClassNameModifiers = {},
|
|
25
27
|
withData,
|
|
28
|
+
notice,
|
|
26
29
|
children,
|
|
27
30
|
}: TenantOverviewTableLayoutProps) {
|
|
28
31
|
const renderContent = () => {
|
|
@@ -40,6 +43,7 @@ export function TenantOverviewTableLayout({
|
|
|
40
43
|
<React.Fragment>
|
|
41
44
|
{title && <div className={b('title')}>{title}</div>}
|
|
42
45
|
{error ? <ResponseError error={error} /> : null}
|
|
46
|
+
{notice}
|
|
43
47
|
<div className={b('table', tableClassNameModifiers)}>{renderContent()}</div>
|
|
44
48
|
</React.Fragment>
|
|
45
49
|
);
|
|
@@ -108,7 +108,11 @@ export function TenantStorage({
|
|
|
108
108
|
title={topGroupsTitle}
|
|
109
109
|
allEntitiesLink={getDiagnosticsPageLink(TENANT_DIAGNOSTICS_TABS_IDS.storage)}
|
|
110
110
|
>
|
|
111
|
-
<TopGroups
|
|
111
|
+
<TopGroups
|
|
112
|
+
tenant={database}
|
|
113
|
+
capacityMetricsEnabled={capacityMetricsEnabled}
|
|
114
|
+
title={topGroupsTitle}
|
|
115
|
+
/>
|
|
112
116
|
</StatsWrapper>
|
|
113
117
|
</Flex>
|
|
114
118
|
);
|
|
@@ -17,6 +17,7 @@ import {
|
|
|
17
17
|
} from '../../../../Storage/PaginatedStorageGroupsTable/columns/constants';
|
|
18
18
|
import type {StorageGroupsColumn} from '../../../../Storage/PaginatedStorageGroupsTable/columns/types';
|
|
19
19
|
import {TenantOverviewTableLayout} from '../TenantOverviewTableLayout';
|
|
20
|
+
import {TopGroupsDataIssues} from '../TopTablesDataIssues';
|
|
20
21
|
|
|
21
22
|
export interface TopGroupsTableConfig {
|
|
22
23
|
columns: StorageGroupsColumn[];
|
|
@@ -38,9 +39,11 @@ export function getTopGroupsTableConfig(capacityMetricsEnabled: boolean): TopGro
|
|
|
38
39
|
interface TopGroupsProps {
|
|
39
40
|
tenant?: string;
|
|
40
41
|
capacityMetricsEnabled: boolean;
|
|
42
|
+
/** Title the table is shown under, names the table in its warning */
|
|
43
|
+
title: string;
|
|
41
44
|
}
|
|
42
45
|
|
|
43
|
-
export function TopGroups({tenant, capacityMetricsEnabled}: TopGroupsProps) {
|
|
46
|
+
export function TopGroups({tenant, capacityMetricsEnabled, title}: TopGroupsProps) {
|
|
44
47
|
const capabilitiesLoaded = useCapabilitiesLoaded();
|
|
45
48
|
const [autoRefreshInterval] = useAutoRefreshInterval();
|
|
46
49
|
|
|
@@ -72,6 +75,9 @@ export function TopGroups({tenant, capacityMetricsEnabled}: TopGroupsProps) {
|
|
|
72
75
|
loading={loading || !capabilitiesLoaded}
|
|
73
76
|
error={error}
|
|
74
77
|
withData={Boolean(currentData)}
|
|
78
|
+
notice={
|
|
79
|
+
<TopGroupsDataIssues dataQuality={currentData?.dataQuality} tableTitle={title} />
|
|
80
|
+
}
|
|
75
81
|
>
|
|
76
82
|
<ResizeableDataTable
|
|
77
83
|
columnsWidthLSKey={STORAGE_GROUPS_COLUMNS_WIDTH_LS_KEY}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import {DataIssuesIndicator} from '../../../../components/DataIssuesAlert/DataIssuesIndicator';
|
|
2
|
+
import {getDataIssues} from '../../../../utils/dataIssues/classify';
|
|
3
|
+
import type {DataIssuesSubject} from '../../../../utils/dataIssues/classify';
|
|
4
|
+
import type {ResponseDataQuality} from '../../../../utils/dataIssues/types';
|
|
5
|
+
|
|
6
|
+
import {b} from './utils';
|
|
7
|
+
|
|
8
|
+
interface TopTableDataIssuesProps {
|
|
9
|
+
/** What the handler reported about the response the top is built from */
|
|
10
|
+
dataQuality?: ResponseDataQuality;
|
|
11
|
+
/** Title of the top: there are several of them on a page, so the warning names its table */
|
|
12
|
+
tableTitle: string;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
const TOP_NODES: DataIssuesSubject = {type: 'nodes', hasDatabase: true};
|
|
16
|
+
const TOP_GROUPS: DataIssuesSubject = {type: 'storageGroups'};
|
|
17
|
+
|
|
18
|
+
function TopTableDataIssues({
|
|
19
|
+
dataQuality,
|
|
20
|
+
tableTitle,
|
|
21
|
+
subject,
|
|
22
|
+
}: TopTableDataIssuesProps & {subject: DataIssuesSubject}) {
|
|
23
|
+
return (
|
|
24
|
+
<DataIssuesIndicator
|
|
25
|
+
className={b('data-issues')}
|
|
26
|
+
issues={getDataIssues(dataQuality, subject)}
|
|
27
|
+
problems={dataQuality?.problems}
|
|
28
|
+
subject={tableTitle}
|
|
29
|
+
/>
|
|
30
|
+
);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/** Tells that the top of database nodes was built from incomplete data */
|
|
34
|
+
export function TopNodesDataIssues(props: TopTableDataIssuesProps) {
|
|
35
|
+
return <TopTableDataIssues {...props} subject={TOP_NODES} />;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/** Tells that the top of storage groups was built from incomplete data */
|
|
39
|
+
export function TopGroupsDataIssues(props: TopTableDataIssuesProps) {
|
|
40
|
+
return <TopTableDataIssues {...props} subject={TOP_GROUPS} />;
|
|
41
|
+
}
|
|
@@ -1,16 +1,20 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
|
|
3
3
|
import {DatabaseFill, FolderFill} from '@gravity-ui/icons';
|
|
4
|
-
import {Breadcrumbs, Dialog
|
|
4
|
+
import {Breadcrumbs, Dialog} from '@gravity-ui/uikit';
|
|
5
5
|
|
|
6
6
|
import {ResponseError} from '../../../../components/Errors/ResponseError';
|
|
7
|
+
import {SuggestInput} from '../../../../components/SuggestInput/SuggestInput';
|
|
7
8
|
import {useClusterWithProxy} from '../../../../store/reducers/cluster/cluster';
|
|
8
9
|
import {schemaApi} from '../../../../store/reducers/schema/schema';
|
|
9
10
|
import {cn} from '../../../../utils/cn';
|
|
10
11
|
import {BRAND_BUTTON_CLASS} from '../../../../utils/constants';
|
|
11
12
|
import i18n from '../../i18n';
|
|
13
|
+
import {useSchemaPathSuggestions} from '../../utils/useSchemaPathSuggestions';
|
|
12
14
|
import {transformPath} from '../transformPath';
|
|
13
15
|
|
|
16
|
+
import {validateRelativePath} from './validateRelativePath';
|
|
17
|
+
|
|
14
18
|
import './CreateDirectoryDialog.scss';
|
|
15
19
|
|
|
16
20
|
const b = cn('ydb-schema-create-directory-dialog');
|
|
@@ -26,16 +30,6 @@ interface CreateDirectoryDialogProps {
|
|
|
26
30
|
onSuccess: (value: string) => void;
|
|
27
31
|
}
|
|
28
32
|
|
|
29
|
-
function validateRelativePath(value: string) {
|
|
30
|
-
if (!value) {
|
|
31
|
-
return i18n('alert_empty-path');
|
|
32
|
-
}
|
|
33
|
-
if (/\s/.test(value)) {
|
|
34
|
-
return i18n('alert_whitespace-not-allowed');
|
|
35
|
-
}
|
|
36
|
-
return '';
|
|
37
|
-
}
|
|
38
|
-
|
|
39
33
|
export function CreateDirectoryDialog({
|
|
40
34
|
open,
|
|
41
35
|
onClose,
|
|
@@ -49,6 +43,13 @@ export function CreateDirectoryDialog({
|
|
|
49
43
|
const [relativePath, setRelativePath] = React.useState('');
|
|
50
44
|
const [create, response] = schemaApi.useCreateDirectoryMutation();
|
|
51
45
|
const inputRef = React.useRef<HTMLInputElement>(null);
|
|
46
|
+
const suggestions = useSchemaPathSuggestions({
|
|
47
|
+
value: relativePath,
|
|
48
|
+
basePath: parentPath,
|
|
49
|
+
database,
|
|
50
|
+
databaseFullPath,
|
|
51
|
+
skip: !open,
|
|
52
|
+
});
|
|
52
53
|
|
|
53
54
|
const normalizedDatabasePath = databaseFullPath.replace(/^\/+|\/+$/g, '');
|
|
54
55
|
const normalizedParentPath = parentPath.replace(/^\/+|\/+$/g, '');
|
|
@@ -96,7 +97,10 @@ export function CreateDirectoryDialog({
|
|
|
96
97
|
<form
|
|
97
98
|
onSubmit={(e) => {
|
|
98
99
|
e.preventDefault();
|
|
99
|
-
const nextValidationError = validateRelativePath(
|
|
100
|
+
const nextValidationError = validateRelativePath(
|
|
101
|
+
relativePath,
|
|
102
|
+
suggestions.map((item) => item.value),
|
|
103
|
+
);
|
|
100
104
|
setValidationError(nextValidationError);
|
|
101
105
|
if (!nextValidationError) {
|
|
102
106
|
handleSubmit();
|
|
@@ -124,7 +128,8 @@ export function CreateDirectoryDialog({
|
|
|
124
128
|
)}
|
|
125
129
|
</Breadcrumbs>
|
|
126
130
|
</div>
|
|
127
|
-
<
|
|
131
|
+
<SuggestInput
|
|
132
|
+
suggestions={suggestions}
|
|
128
133
|
controlRef={inputRef}
|
|
129
134
|
placeholder={i18n('field_directory-name')}
|
|
130
135
|
aria-label={i18n('field_directory-name')}
|
|
@@ -132,7 +137,6 @@ export function CreateDirectoryDialog({
|
|
|
132
137
|
onUpdate={handleUpdate}
|
|
133
138
|
autoFocus
|
|
134
139
|
hasClear
|
|
135
|
-
autoComplete={false}
|
|
136
140
|
disabled={response.isLoading}
|
|
137
141
|
validationState={validationError ? 'invalid' : undefined}
|
|
138
142
|
id={relativePathInputId}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import i18n from '../../i18n';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @param value relative path typed by the user
|
|
5
|
+
* @param existingPaths relative paths of directories that already exist, with a trailing slash
|
|
6
|
+
*/
|
|
7
|
+
export function validateRelativePath(value: string, existingPaths: string[] = []) {
|
|
8
|
+
if (!value) {
|
|
9
|
+
return i18n('alert_empty-path');
|
|
10
|
+
}
|
|
11
|
+
if (/\s/.test(value)) {
|
|
12
|
+
return i18n('alert_whitespace-not-allowed');
|
|
13
|
+
}
|
|
14
|
+
if (value.endsWith('/')) {
|
|
15
|
+
return i18n('alert_directory-name-required');
|
|
16
|
+
}
|
|
17
|
+
if (existingPaths.includes(`${value}/`)) {
|
|
18
|
+
return i18n('alert_directory-exists');
|
|
19
|
+
}
|
|
20
|
+
return '';
|
|
21
|
+
}
|
|
@@ -278,7 +278,7 @@ export function NewSQL({database}: NewSQLProps) {
|
|
|
278
278
|
<DropdownMenu
|
|
279
279
|
items={items}
|
|
280
280
|
renderSwitcher={(props) => (
|
|
281
|
-
<Button {...props} qa="new-sql-dropdown-switcher">
|
|
281
|
+
<Button {...props} view="flat" qa="new-sql-dropdown-switcher">
|
|
282
282
|
{i18n('button.new-sql')}
|
|
283
283
|
<Button.Icon>
|
|
284
284
|
<ChevronDown />
|
|
@@ -609,14 +609,12 @@ export default function QueryEditor({
|
|
|
609
609
|
|
|
610
610
|
const {tabId, queryId, startTime} = execution;
|
|
611
611
|
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
);
|
|
619
|
-
}
|
|
612
|
+
dispatch(
|
|
613
|
+
setResultTab({
|
|
614
|
+
queryType: actionType,
|
|
615
|
+
tabId: RESULT_OPTIONS_IDS.queryPlan,
|
|
616
|
+
}),
|
|
617
|
+
);
|
|
620
618
|
|
|
621
619
|
reachExplainQueryMetricaGoals(actionType, querySettings);
|
|
622
620
|
|
|
@@ -2,26 +2,26 @@
|
|
|
2
2
|
|
|
3
3
|
.ydb-query-editor-button {
|
|
4
4
|
&__run-button {
|
|
5
|
-
width:
|
|
6
|
-
min-width:
|
|
7
|
-
max-width:
|
|
5
|
+
width: 72px;
|
|
6
|
+
min-width: 72px;
|
|
7
|
+
max-width: 72px;
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
&__explain-analyze-button {
|
|
11
|
-
width:
|
|
12
|
-
min-width:
|
|
13
|
-
max-width:
|
|
11
|
+
width: 115px;
|
|
12
|
+
min-width: 115px;
|
|
13
|
+
max-width: 115px;
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
&__stop-button {
|
|
17
|
-
width:
|
|
18
|
-
min-width:
|
|
19
|
-
max-width:
|
|
17
|
+
width: 72px;
|
|
18
|
+
min-width: 72px;
|
|
19
|
+
max-width: 72px;
|
|
20
20
|
|
|
21
21
|
&_explain-analyze {
|
|
22
|
-
width:
|
|
23
|
-
min-width:
|
|
24
|
-
max-width:
|
|
22
|
+
width: 115px;
|
|
23
|
+
min-width: 115px;
|
|
24
|
+
max-width: 115px;
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
.g-root_theme_dark &,
|