ydb-embedded-ui 6.15.1 → 6.17.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/components/ContentWithPopup/ContentWithPopup.d.ts +2 -1
- package/dist/components/ContentWithPopup/ContentWithPopup.js +9 -2
- package/dist/components/ContentWithPopup/ContentWithPopup.js.map +1 -1
- package/dist/components/ElapsedTime/ElapsedTime.js +2 -1
- package/dist/components/ElapsedTime/ElapsedTime.js.map +1 -1
- package/dist/components/EmptyState/EmptyState.d.ts +6 -0
- package/dist/components/EmptyState/EmptyState.js +6 -0
- package/dist/components/EmptyState/EmptyState.js.map +1 -1
- package/dist/components/EntitiesCount/EntitiesCount.js +3 -1
- package/dist/components/EntitiesCount/EntitiesCount.js.map +1 -1
- package/dist/components/EntityPageTitle/EntityPageTitle.d.ts +11 -0
- package/dist/components/{DiskPageTitle/DiskPageTitle.js → EntityPageTitle/EntityPageTitle.js} +5 -5
- package/dist/components/EntityPageTitle/EntityPageTitle.js.map +1 -0
- package/dist/components/{DiskPageTitle/DiskPageTitle.scss → EntityPageTitle/EntityPageTitle.scss} +1 -1
- package/dist/components/ErrorBoundary/ErrorBoundary.scss +2 -0
- package/dist/components/FullNodeViewer/FullNodeViewer.js +1 -1
- package/dist/components/FullNodeViewer/FullNodeViewer.js.map +1 -1
- package/dist/components/InfoViewer/InfoViewer.d.ts +0 -1
- package/dist/components/InfoViewer/InfoViewer.js +0 -1
- package/dist/components/InfoViewer/InfoViewer.js.map +1 -1
- package/dist/components/InfoViewer/index.d.ts +1 -1
- package/dist/components/InfoViewer/index.js +1 -1
- package/dist/components/InfoViewer/index.js.map +1 -1
- package/dist/components/InfoViewerSkeleton/InfoViewerSkeleton.d.ts +2 -1
- package/dist/components/InfoViewerSkeleton/InfoViewerSkeleton.js +10 -1
- package/dist/components/InfoViewerSkeleton/InfoViewerSkeleton.js.map +1 -1
- package/dist/components/MetricChart/reducer.d.ts +2 -2
- package/dist/components/NodeHostWrapper/NodeHostWrapper.d.ts +2 -1
- package/dist/components/NodeHostWrapper/NodeHostWrapper.js +2 -2
- package/dist/components/NodeHostWrapper/NodeHostWrapper.js.map +1 -1
- package/dist/components/NotRenderUntilFirstVisible/NotRenderUntilFirstVisible.d.ts +9 -0
- package/dist/components/NotRenderUntilFirstVisible/NotRenderUntilFirstVisible.js +9 -0
- package/dist/components/NotRenderUntilFirstVisible/NotRenderUntilFirstVisible.js.map +1 -0
- package/dist/components/NotRenderUntilFirstVisible/NotRenderUntilFirstVisible.scss +3 -0
- package/dist/components/PageMeta/PageMeta.d.ts +2 -1
- package/dist/components/PageMeta/PageMeta.js +9 -4
- package/dist/components/PageMeta/PageMeta.js.map +1 -1
- package/dist/components/PageMeta/PageMeta.scss +9 -6
- package/dist/components/PaginatedTable/PaginatedTable.d.ts +5 -4
- package/dist/components/PaginatedTable/PaginatedTable.js +24 -116
- package/dist/components/PaginatedTable/PaginatedTable.js.map +1 -1
- package/dist/components/PaginatedTable/PaginatedTable.scss +8 -0
- 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 +13 -5
- package/dist/components/PaginatedTable/TableChunk.js +53 -22
- package/dist/components/PaginatedTable/TableChunk.js.map +1 -1
- package/dist/components/PaginatedTable/TableHead.js +1 -1
- package/dist/components/PaginatedTable/TableHead.js.map +1 -1
- package/dist/components/PaginatedTable/TableRow.js +1 -1
- package/dist/components/PaginatedTable/TableRow.js.map +1 -1
- package/dist/components/PaginatedTable/types.d.ts +8 -1
- package/dist/components/Skeleton/Skeleton.d.ts +6 -0
- package/dist/components/Skeleton/Skeleton.js +11 -0
- package/dist/components/Skeleton/Skeleton.js.map +1 -0
- package/dist/components/Tablet/Tablet.js +2 -2
- package/dist/components/Tablet/Tablet.js.map +1 -1
- package/dist/components/TabletState/TabletState.d.ts +6 -0
- package/dist/components/TabletState/TabletState.js +7 -0
- package/dist/components/TabletState/TabletState.js.map +1 -0
- package/dist/components/TabletsStatistic/TabletsStatistic.d.ts +2 -2
- package/dist/components/TabletsStatistic/TabletsStatistic.js +4 -6
- package/dist/components/TabletsStatistic/TabletsStatistic.js.map +1 -1
- package/dist/components/YDBDefinitionList/YDBDefinitionList.d.ts +9 -0
- package/dist/components/YDBDefinitionList/YDBDefinitionList.js +23 -0
- package/dist/components/YDBDefinitionList/YDBDefinitionList.js.map +1 -0
- package/dist/{containers/Tenant/Info/View/View.scss → components/YDBDefinitionList/YDBDefinitionList.scss} +6 -6
- package/dist/components/YDBDefinitionList/i18n/en.json +3 -0
- package/dist/components/YDBDefinitionList/i18n/index.d.ts +2 -0
- package/dist/components/YDBDefinitionList/i18n/index.js +5 -0
- package/dist/components/YDBDefinitionList/i18n/index.js.map +1 -0
- package/dist/containers/App/Content.js +1 -7
- package/dist/containers/App/Content.js.map +1 -1
- package/dist/containers/App/appSlots.d.ts +0 -6
- package/dist/containers/App/appSlots.js +0 -1
- package/dist/containers/App/appSlots.js.map +1 -1
- package/dist/containers/Cluster/Cluster.js +13 -22
- package/dist/containers/Cluster/Cluster.js.map +1 -1
- package/dist/containers/Cluster/Cluster.scss +14 -0
- package/dist/containers/Cluster/ClusterInfo/ClusterInfo.d.ts +3 -3
- package/dist/containers/Cluster/ClusterInfo/ClusterInfo.js +18 -2
- package/dist/containers/Cluster/ClusterInfo/ClusterInfo.js.map +1 -1
- package/dist/containers/Cluster/i18n/index.d.ts +1 -1
- package/dist/containers/Header/Header.js +6 -7
- package/dist/containers/Header/Header.js.map +1 -1
- package/dist/containers/Header/breadcrumbs.js +26 -30
- package/dist/containers/Header/breadcrumbs.js.map +1 -1
- package/dist/containers/Heatmap/HeatmapCanvas/HeatmapCanvas.js +2 -2
- package/dist/containers/Heatmap/HeatmapCanvas/HeatmapCanvas.js.map +1 -1
- package/dist/containers/Node/Node.js +12 -6
- package/dist/containers/Node/Node.js.map +1 -1
- package/dist/containers/Node/NodePages.d.ts +2 -1
- package/dist/containers/Node/NodePages.js +2 -2
- package/dist/containers/Node/NodePages.js.map +1 -1
- package/dist/containers/Nodes/Nodes.d.ts +2 -1
- package/dist/containers/Nodes/Nodes.js +3 -2
- package/dist/containers/Nodes/Nodes.js.map +1 -1
- package/dist/containers/Nodes/NodesWrapper.d.ts +1 -0
- package/dist/containers/Nodes/NodesWrapper.js.map +1 -1
- package/dist/containers/Nodes/PaginatedNodes.d.ts +2 -1
- package/dist/containers/Nodes/PaginatedNodes.js +7 -18
- package/dist/containers/Nodes/PaginatedNodes.js.map +1 -1
- package/dist/containers/Nodes/getNodes.d.ts +3 -6
- package/dist/containers/Nodes/getNodes.js +19 -2
- package/dist/containers/Nodes/getNodes.js.map +1 -1
- package/dist/containers/Nodes/getNodesColumns.d.ts +3 -3
- package/dist/containers/Nodes/getNodesColumns.js +9 -9
- package/dist/containers/Nodes/getNodesColumns.js.map +1 -1
- package/dist/containers/PDiskPage/PDiskGroups/PDiskGroups.js +2 -2
- package/dist/containers/PDiskPage/PDiskGroups/PDiskGroups.js.map +1 -1
- package/dist/containers/PDiskPage/PDiskPage.js +4 -5
- package/dist/containers/PDiskPage/PDiskPage.js.map +1 -1
- package/dist/containers/PDiskPage/PDiskPage.scss +0 -7
- package/dist/containers/PDiskPage/i18n/index.d.ts +1 -1
- package/dist/containers/Storage/PaginatedStorage.d.ts +2 -2
- package/dist/containers/Storage/PaginatedStorage.js +3 -3
- package/dist/containers/Storage/PaginatedStorage.js.map +1 -1
- package/dist/containers/Storage/Storage.d.ts +2 -2
- package/dist/containers/Storage/Storage.js +4 -4
- package/dist/containers/Storage/Storage.js.map +1 -1
- package/dist/containers/Storage/StorageGroups/PaginatedStorageGroups.d.ts +2 -2
- package/dist/containers/Storage/StorageGroups/PaginatedStorageGroups.js +5 -17
- package/dist/containers/Storage/StorageGroups/PaginatedStorageGroups.js.map +1 -1
- package/dist/containers/Storage/StorageGroups/getGroups.d.ts +3 -6
- package/dist/containers/Storage/StorageGroups/getGroups.js +15 -2
- package/dist/containers/Storage/StorageGroups/getGroups.js.map +1 -1
- package/dist/containers/Storage/StorageGroups/getStorageGroupsColumns.d.ts +1 -1
- package/dist/containers/Storage/StorageGroups/getStorageGroupsColumns.js +1 -1
- package/dist/containers/Storage/StorageGroups/getStorageGroupsColumns.js.map +1 -1
- package/dist/containers/Storage/StorageNodes/PaginatedStorageNodes.d.ts +2 -2
- package/dist/containers/Storage/StorageNodes/PaginatedStorageNodes.js +8 -20
- package/dist/containers/Storage/StorageNodes/PaginatedStorageNodes.js.map +1 -1
- package/dist/containers/Storage/StorageNodes/StorageNodes.d.ts +2 -1
- package/dist/containers/Storage/StorageNodes/StorageNodes.js +2 -2
- package/dist/containers/Storage/StorageNodes/StorageNodes.js.map +1 -1
- package/dist/containers/Storage/StorageNodes/getNodes.d.ts +3 -5
- package/dist/containers/Storage/StorageNodes/getNodes.js +17 -2
- package/dist/containers/Storage/StorageNodes/getNodes.js.map +1 -1
- package/dist/containers/Storage/StorageNodes/getStorageNodesColumns.d.ts +1 -1
- package/dist/containers/Storage/StorageNodes/getStorageNodesColumns.js +4 -4
- package/dist/containers/Storage/StorageNodes/getStorageNodesColumns.js.map +1 -1
- package/dist/containers/Storage/StorageWrapper.d.ts +1 -1
- package/dist/containers/Tablet/Tablet.d.ts +1 -1
- package/dist/containers/Tablet/Tablet.js +118 -54
- package/dist/containers/Tablet/Tablet.js.map +1 -1
- package/dist/containers/Tablet/Tablet.scss +4 -81
- package/dist/containers/Tablet/components/TabletControls/TabletControls.d.ts +6 -0
- package/dist/containers/Tablet/components/TabletControls/TabletControls.js +27 -0
- package/dist/containers/Tablet/components/TabletControls/TabletControls.js.map +1 -0
- package/dist/containers/Tablet/components/TabletControls/index.js.map +1 -0
- package/dist/containers/Tablet/components/TabletInfo/TabletInfo.d.ts +7 -0
- package/dist/containers/Tablet/components/TabletInfo/TabletInfo.js +59 -0
- package/dist/containers/Tablet/components/TabletInfo/TabletInfo.js.map +1 -0
- package/dist/containers/Tablet/components/TabletInfo/TabletInfo.scss +12 -0
- package/dist/containers/Tablet/components/TabletInfo/i18n/en.json +16 -0
- package/dist/containers/Tablet/components/TabletInfo/i18n/index.d.ts +1 -0
- package/dist/containers/Tablet/components/TabletInfo/i18n/index.js +5 -0
- package/dist/containers/Tablet/components/TabletInfo/i18n/index.js.map +1 -0
- package/dist/containers/Tablet/components/TabletInfo/index.js.map +1 -0
- package/dist/containers/Tablet/components/TabletStorageInfo/TabletStorageInfo.d.ts +7 -0
- package/dist/containers/Tablet/components/TabletStorageInfo/TabletStorageInfo.js +36 -0
- package/dist/containers/Tablet/components/TabletStorageInfo/TabletStorageInfo.js.map +1 -0
- package/dist/containers/Tablet/components/TabletStorageInfo/TabletStorageInfo.scss +78 -0
- package/dist/containers/Tablet/components/TabletStorageInfo/columns.d.ts +3 -0
- package/dist/containers/Tablet/components/TabletStorageInfo/columns.js +56 -0
- package/dist/containers/Tablet/components/TabletStorageInfo/columns.js.map +1 -0
- package/dist/containers/Tablet/components/TabletStorageInfo/i18n/en.json +7 -0
- package/dist/containers/Tablet/components/TabletStorageInfo/i18n/index.d.ts +1 -0
- package/dist/containers/Tablet/components/TabletStorageInfo/i18n/index.js +5 -0
- package/dist/containers/Tablet/components/TabletStorageInfo/i18n/index.js.map +1 -0
- package/dist/containers/Tablet/components/TabletStorageInfo/shared.d.ts +1 -0
- package/dist/containers/Tablet/components/TabletStorageInfo/shared.js +3 -0
- package/dist/containers/Tablet/components/TabletStorageInfo/shared.js.map +1 -0
- package/dist/containers/Tablet/components/TabletStorageInfo/types.d.ts +5 -0
- package/dist/containers/Tablet/components/TabletStorageInfo/types.js +2 -0
- package/dist/containers/Tablet/components/TabletStorageInfo/types.js.map +1 -0
- package/dist/containers/Tablet/components/TabletStorageInfo/utils.d.ts +3 -0
- package/dist/containers/Tablet/components/TabletStorageInfo/utils.js +29 -0
- package/dist/containers/Tablet/components/TabletStorageInfo/utils.js.map +1 -0
- package/dist/containers/Tablet/{TabletTable → components/TabletTable}/TabletTable.d.ts +1 -1
- package/dist/containers/Tablet/{TabletTable → components/TabletTable}/TabletTable.js +7 -6
- package/dist/containers/Tablet/components/TabletTable/TabletTable.js.map +1 -0
- package/dist/containers/Tablet/components/TabletTable/index.js.map +1 -0
- package/dist/containers/Tablet/i18n/en.json +5 -1
- package/dist/containers/Tablet/i18n/index.d.ts +1 -1
- package/dist/containers/Tablet/utils.d.ts +1 -0
- package/dist/containers/Tablet/utils.js +4 -0
- package/dist/containers/Tablet/utils.js.map +1 -0
- package/dist/containers/Tablets/Tablets.d.ts +2 -1
- package/dist/containers/Tablets/Tablets.js +100 -90
- package/dist/containers/Tablets/Tablets.js.map +1 -1
- package/dist/containers/Tablets/i18n/index.d.ts +1 -1
- package/dist/containers/Tenant/Acl/Acl.scss +2 -2
- package/dist/containers/Tenant/Diagnostics/Describe/Describe.js +10 -9
- package/dist/containers/Tenant/Diagnostics/Describe/Describe.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/Describe/Describe.scss +13 -2
- package/dist/containers/Tenant/Diagnostics/Diagnostics.js +3 -3
- package/dist/containers/Tenant/Diagnostics/Diagnostics.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/Overview/AsyncReplicationInfo/AsyncReplicationInfo.js +39 -20
- package/dist/containers/Tenant/Diagnostics/Overview/AsyncReplicationInfo/AsyncReplicationInfo.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/Overview/TableInfo/prepareTableInfo.js +21 -11
- package/dist/containers/Tenant/Diagnostics/Overview/TableInfo/prepareTableInfo.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/TopShards/getTopShardsColumns.js +2 -2
- package/dist/containers/Tenant/Diagnostics/TopShards/getTopShardsColumns.js.map +1 -1
- package/dist/containers/Tenant/Info/View/View.d.ts +0 -1
- package/dist/containers/Tenant/Info/View/View.js +3 -5
- package/dist/containers/Tenant/Info/View/View.js.map +1 -1
- package/dist/containers/Tenant/ObjectGeneral/ObjectGeneral.js +3 -8
- package/dist/containers/Tenant/ObjectGeneral/ObjectGeneral.js.map +1 -1
- package/dist/containers/Tenant/ObjectSummary/ObjectSummary.js +1 -1
- package/dist/containers/Tenant/ObjectSummary/ObjectSummary.js.map +1 -1
- package/dist/containers/Tenant/ObjectSummary/ObjectSummary.scss +3 -0
- package/dist/containers/Tenant/Query/ExplainResult/components/SimplifiedPlan/SimplifiedPlan.js +2 -5
- package/dist/containers/Tenant/Query/ExplainResult/components/SimplifiedPlan/SimplifiedPlan.js.map +1 -1
- package/dist/containers/Tenant/Query/ExplainResult/components/SimplifiedPlan/utils.d.ts +0 -1
- package/dist/containers/Tenant/Query/ExplainResult/components/SimplifiedPlan/utils.js +0 -21
- package/dist/containers/Tenant/Query/ExplainResult/components/SimplifiedPlan/utils.js.map +1 -1
- package/dist/containers/Tenant/Query/QueriesHistory/QueriesHistory.js +19 -1
- package/dist/containers/Tenant/Query/QueriesHistory/QueriesHistory.js.map +1 -1
- package/dist/containers/Tenant/Query/Query.js +2 -14
- package/dist/containers/Tenant/Query/Query.js.map +1 -1
- package/dist/containers/Tenant/Query/QueryEditor/QueryEditor.js +4 -4
- package/dist/containers/Tenant/Query/QueryEditor/QueryEditor.js.map +1 -1
- package/dist/containers/Tenant/Query/QueryEditorControls/utils/getChangedQueryExecutionSettings.test.js +1 -1
- package/dist/containers/Tenant/Query/QueryEditorControls/utils/getChangedQueryExecutionSettings.test.js.map +1 -1
- package/dist/containers/Tenant/Query/QueryEditorControls/utils/getChangedQueryExecutionSettingsDescription.test.js +1 -1
- package/dist/containers/Tenant/Query/QueryEditorControls/utils/getChangedQueryExecutionSettingsDescription.test.js.map +1 -1
- package/dist/containers/Tenant/Query/QuerySettingsDialog/QuerySettingsDialog.js +3 -3
- package/dist/containers/Tenant/Query/QuerySettingsDialog/QuerySettingsDialog.js.map +1 -1
- package/dist/containers/Tenant/Query/QuerySettingsDialog/constants.d.ts +8 -8
- package/dist/containers/Tenant/Query/QuerySettingsDialog/constants.js +6 -6
- package/dist/containers/Tenant/Query/QuerySettingsDialog/constants.js.map +1 -1
- package/dist/containers/Tenant/Query/i18n/en.json +4 -1
- package/dist/containers/Tenant/Query/i18n/index.d.ts +1 -1
- package/dist/containers/Tenant/Query/utils/useSavedQueries.js +2 -1
- package/dist/containers/Tenant/Query/utils/useSavedQueries.js.map +1 -1
- package/dist/containers/Tenant/Schema/SchemaViewer/KeysView.d.ts +8 -0
- package/dist/containers/Tenant/Schema/SchemaViewer/KeysView.js +15 -0
- package/dist/containers/Tenant/Schema/SchemaViewer/KeysView.js.map +1 -0
- package/dist/containers/Tenant/Schema/SchemaViewer/SchemaViewer.js +7 -13
- package/dist/containers/Tenant/Schema/SchemaViewer/SchemaViewer.js.map +1 -1
- package/dist/containers/Tenant/Schema/SchemaViewer/SchemaViewer.scss +62 -3
- package/dist/containers/Tenant/Schema/SchemaViewer/columns.js +3 -21
- package/dist/containers/Tenant/Schema/SchemaViewer/columns.js.map +1 -1
- package/dist/containers/Tenant/Schema/SchemaViewer/i18n/en.json +3 -2
- package/dist/containers/Tenant/Schema/SchemaViewer/i18n/index.d.ts +1 -1
- package/dist/containers/Tenant/Schema/SchemaViewer/prepareData.js +13 -23
- package/dist/containers/Tenant/Schema/SchemaViewer/prepareData.js.map +1 -1
- package/dist/containers/Tenant/Schema/SchemaViewer/types.d.ts +2 -3
- package/dist/containers/Tenant/Schema/SchemaViewer/utils.d.ts +3 -0
- package/dist/containers/Tenant/Schema/SchemaViewer/utils.js +9 -0
- package/dist/containers/Tenant/Schema/SchemaViewer/utils.js.map +1 -0
- package/dist/containers/Tenant/utils/queryTemplates.js +6 -5
- package/dist/containers/Tenant/utils/queryTemplates.js.map +1 -1
- package/dist/containers/Tenants/Tenants.js +2 -2
- package/dist/containers/Tenants/Tenants.js.map +1 -1
- package/dist/containers/UserSettings/i18n/en.json +0 -3
- package/dist/containers/UserSettings/i18n/index.d.ts +1 -1
- package/dist/containers/UserSettings/settings.d.ts +0 -1
- package/dist/containers/UserSettings/settings.js +2 -10
- package/dist/containers/UserSettings/settings.js.map +1 -1
- package/dist/containers/VDiskPage/VDiskPage.d.ts +4 -0
- package/dist/containers/VDiskPage/VDiskPage.js +17 -14
- package/dist/containers/VDiskPage/VDiskPage.js.map +1 -1
- package/dist/containers/VDiskPage/VDiskPage.scss +9 -4
- package/dist/containers/VDiskPage/i18n/index.d.ts +1 -1
- package/dist/containers/Versions/GroupedNodesTree/GroupedNodesTree.d.ts +2 -2
- package/dist/containers/Versions/GroupedNodesTree/GroupedNodesTree.js.map +1 -1
- package/dist/containers/Versions/NodesTable/NodesTable.d.ts +2 -2
- package/dist/containers/Versions/NodesTable/NodesTable.js.map +1 -1
- package/dist/containers/Versions/NodesTreeTitle/NodesTreeTitle.d.ts +2 -2
- package/dist/containers/Versions/NodesTreeTitle/NodesTreeTitle.js.map +1 -1
- package/dist/containers/Versions/Versions.js +3 -2
- package/dist/containers/Versions/Versions.js.map +1 -1
- package/dist/containers/Versions/groupNodes.d.ts +4 -4
- package/dist/containers/Versions/groupNodes.js.map +1 -1
- package/dist/containers/Versions/types.d.ts +2 -2
- package/dist/routes.d.ts +1 -0
- package/dist/routes.js +3 -0
- package/dist/routes.js.map +1 -1
- package/dist/services/api.d.ts +19 -12
- package/dist/services/api.js +45 -15
- package/dist/services/api.js.map +1 -1
- package/dist/services/settings.d.ts +1 -2
- package/dist/services/settings.js +1 -2
- package/dist/services/settings.js.map +1 -1
- package/dist/store/configureStore.d.ts +6 -10
- package/dist/store/defaultStore.d.ts +3 -5
- package/dist/store/reducers/api.d.ts +1 -1
- package/dist/store/reducers/api.js +1 -1
- package/dist/store/reducers/api.js.map +1 -1
- package/dist/store/reducers/authentication/authentication.d.ts +4 -4
- package/dist/store/reducers/cancelQuery.d.ts +2 -2
- package/dist/store/reducers/capabilities/capabilities.d.ts +6 -10
- package/dist/store/reducers/capabilities/hooks.d.ts +1 -0
- package/dist/store/reducers/capabilities/hooks.js +3 -0
- package/dist/store/reducers/capabilities/hooks.js.map +1 -1
- package/dist/store/reducers/cluster/cluster.d.ts +2 -2
- package/dist/store/reducers/clusters/clusters.d.ts +2 -2
- package/dist/store/reducers/describe.d.ts +2 -2
- package/dist/store/reducers/executeQuery.d.ts +18 -4
- package/dist/store/reducers/executeQuery.js +50 -5
- package/dist/store/reducers/executeQuery.js.map +1 -1
- package/dist/store/reducers/executeTopQueries/executeTopQueries.d.ts +2 -2
- package/dist/store/reducers/explainQuery/explainQuery.d.ts +2 -2
- package/dist/store/reducers/header/types.d.ts +7 -7
- package/dist/store/reducers/healthcheckInfo/healthcheckInfo.d.ts +58 -78
- package/dist/store/reducers/heatmap.d.ts +2 -2
- package/dist/store/reducers/heatmap.js +2 -2
- package/dist/store/reducers/heatmap.js.map +1 -1
- package/dist/store/reducers/hotKeys/hotKeys.d.ts +2 -2
- package/dist/store/reducers/index.d.ts +5 -8
- package/dist/store/reducers/index.js +0 -2
- package/dist/store/reducers/index.js.map +1 -1
- package/dist/store/reducers/network/network.d.ts +2 -2
- package/dist/store/reducers/node/node.d.ts +3 -3
- package/dist/store/reducers/node/selectors.d.ts +1 -2
- package/dist/store/reducers/nodes/nodes.d.ts +3 -3
- package/dist/store/reducers/nodes/types.d.ts +17 -1
- package/dist/store/reducers/nodes/utils.js +6 -0
- package/dist/store/reducers/nodes/utils.js.map +1 -1
- package/dist/store/reducers/nodesList.d.ts +3 -4
- package/dist/store/reducers/overview/overview.d.ts +2 -2
- package/dist/store/reducers/partitions/partitions.d.ts +2 -2
- package/dist/store/reducers/pdisk/pdisk.d.ts +3 -3
- package/dist/store/reducers/preview.d.ts +2 -2
- package/dist/store/reducers/schema/schema.d.ts +3 -3
- package/dist/store/reducers/schemaAcl/schemaAcl.d.ts +2 -2
- package/dist/store/reducers/shardsWorkload/shardsWorkload.d.ts +2 -2
- package/dist/store/reducers/storage/storage.d.ts +3 -3
- package/dist/store/reducers/storage/types.d.ts +15 -0
- package/dist/store/reducers/storage/types.js.map +1 -1
- package/dist/store/reducers/tableData.d.ts +14 -0
- package/dist/store/reducers/tableData.js +25 -0
- package/dist/store/reducers/tableData.js.map +1 -0
- package/dist/store/reducers/tablet.d.ts +20 -3
- package/dist/store/reducers/tablet.js +82 -13
- package/dist/store/reducers/tablet.js.map +1 -1
- package/dist/store/reducers/tablets.d.ts +15 -23
- package/dist/store/reducers/tablets.js +2 -20
- package/dist/store/reducers/tablets.js.map +1 -1
- package/dist/store/reducers/tenant/tenant.d.ts +2 -2
- package/dist/store/reducers/tenantOverview/executeTopTables/executeTopTables.d.ts +2 -2
- package/dist/store/reducers/tenantOverview/topNodes/topNodes.d.ts +2 -2
- package/dist/store/reducers/tenantOverview/topShards/tenantOverviewTopShards.d.ts +2 -2
- package/dist/store/reducers/tenantOverview/topStorageGroups/topStorageGroups.d.ts +2 -2
- package/dist/store/reducers/tenants/selectors.d.ts +30 -40
- package/dist/store/reducers/tenants/selectors.js +9 -8
- package/dist/store/reducers/tenants/selectors.js.map +1 -1
- package/dist/store/reducers/tenants/tenants.d.ts +2 -2
- package/dist/store/reducers/topic.d.ts +44 -59
- package/dist/store/reducers/vdisk/types.d.ts +1 -1
- package/dist/store/reducers/vdisk/vdisk.d.ts +3 -3
- package/dist/store/reducers/viewSchema/viewSchema.d.ts +2 -2
- package/dist/store/state-url-mapping.d.ts +0 -8
- package/dist/store/state-url-mapping.js +0 -8
- package/dist/store/state-url-mapping.js.map +1 -1
- package/dist/styles/mixins.scss +3 -3
- package/dist/types/api/capabilities.d.ts +1 -1
- package/dist/types/api/nodes.d.ts +5 -0
- package/dist/types/api/nodes.js.map +1 -1
- package/dist/types/api/schema/shared.d.ts +1 -3
- package/dist/types/api/schema/shared.js.map +1 -1
- package/dist/types/api/schema/table.d.ts +2 -0
- package/dist/types/api/schema/table.js.map +1 -1
- package/dist/types/api/tablet.d.ts +22 -0
- package/dist/types/store/executeQuery.d.ts +5 -2
- package/dist/types/store/heatmap.d.ts +0 -1
- package/dist/types/store/tablets.d.ts +2 -1
- package/dist/utils/constants.d.ts +2 -2
- package/dist/utils/constants.js +2 -2
- package/dist/utils/constants.js.map +1 -1
- package/dist/utils/dataFormatters/dataFormatters.d.ts +1 -0
- package/dist/utils/dataFormatters/dataFormatters.js +5 -0
- package/dist/utils/dataFormatters/dataFormatters.js.map +1 -1
- package/dist/utils/developerUI/developerUI.d.ts +1 -1
- package/dist/utils/developerUI/developerUI.js +3 -2
- package/dist/utils/developerUI/developerUI.js.map +1 -1
- package/dist/utils/hooks/useQueryExecutionSettings.js +3 -2
- package/dist/utils/hooks/useQueryExecutionSettings.js.map +1 -1
- package/dist/utils/versions/parseNodesToVersionsValues.d.ts +7 -0
- package/dist/utils/versions/parseNodesToVersionsValues.js +10 -0
- package/dist/utils/versions/parseNodesToVersionsValues.js.map +1 -1
- package/package.json +2 -1
- package/dist/components/DiskPageTitle/DiskPageTitle.d.ts +0 -10
- package/dist/components/DiskPageTitle/DiskPageTitle.js.map +0 -1
- package/dist/components/PaginatedTable/reducer.d.ts +0 -43
- package/dist/components/PaginatedTable/reducer.js +0 -104
- package/dist/components/PaginatedTable/reducer.js.map +0 -1
- package/dist/containers/Tablet/TabletControls/TabletControls.d.ts +0 -7
- package/dist/containers/Tablet/TabletControls/TabletControls.js +0 -29
- package/dist/containers/Tablet/TabletControls/TabletControls.js.map +0 -1
- package/dist/containers/Tablet/TabletControls/index.js.map +0 -1
- package/dist/containers/Tablet/TabletInfo/TabletInfo.d.ts +0 -7
- package/dist/containers/Tablet/TabletInfo/TabletInfo.js +0 -40
- package/dist/containers/Tablet/TabletInfo/TabletInfo.js.map +0 -1
- package/dist/containers/Tablet/TabletInfo/index.js.map +0 -1
- package/dist/containers/Tablet/TabletTable/TabletTable.js.map +0 -1
- package/dist/containers/Tablet/TabletTable/index.js.map +0 -1
- package/dist/containers/TabletsFilters/TabletsFilters.d.ts +0 -2
- package/dist/containers/TabletsFilters/TabletsFilters.js +0 -91
- package/dist/containers/TabletsFilters/TabletsFilters.js.map +0 -1
- package/dist/containers/TabletsFilters/TabletsFilters.scss +0 -80
- package/dist/containers/TabletsFilters/i18n/en.json +0 -3
- package/dist/containers/TabletsFilters/i18n/index.d.ts +0 -2
- package/dist/containers/TabletsFilters/i18n/index.js +0 -6
- package/dist/containers/TabletsFilters/i18n/index.js.map +0 -1
- package/dist/containers/TabletsFilters/i18n/ru.json +0 -3
- package/dist/store/reducers/clusterNodes/clusterNodes.d.ts +0 -5
- package/dist/store/reducers/clusterNodes/clusterNodes.js +0 -22
- package/dist/store/reducers/clusterNodes/clusterNodes.js.map +0 -1
- package/dist/store/reducers/tabletsFilters.d.ts +0 -45
- package/dist/store/reducers/tabletsFilters.js +0 -20
- package/dist/store/reducers/tabletsFilters.js.map +0 -1
- /package/dist/containers/Tablet/{TabletControls → components/TabletControls}/index.d.ts +0 -0
- /package/dist/containers/Tablet/{TabletControls → components/TabletControls}/index.js +0 -0
- /package/dist/containers/Tablet/{TabletInfo → components/TabletInfo}/index.d.ts +0 -0
- /package/dist/containers/Tablet/{TabletInfo → components/TabletInfo}/index.js +0 -0
- /package/dist/containers/Tablet/{TabletTable → components/TabletTable}/index.d.ts +0 -0
- /package/dist/containers/Tablet/{TabletTable → components/TabletTable}/index.js +0 -0
@@ -1,6 +1,65 @@
|
|
1
|
+
@import '../../../../styles/mixins.scss';
|
2
|
+
|
1
3
|
.schema-viewer {
|
2
|
-
&
|
3
|
-
display:
|
4
|
-
|
4
|
+
&__keys {
|
5
|
+
display: inline-block;
|
6
|
+
|
7
|
+
padding-bottom: var(--g-spacing-4);
|
8
|
+
padding-left: 10px;
|
9
|
+
|
10
|
+
&-values {
|
11
|
+
display: inline;
|
12
|
+
|
13
|
+
color: var(--g-color-text-complementary);
|
14
|
+
@include body-1-typography();
|
15
|
+
}
|
16
|
+
|
17
|
+
&-header {
|
18
|
+
display: inline;
|
19
|
+
|
20
|
+
font-weight: bold;
|
21
|
+
white-space: nowrap;
|
22
|
+
|
23
|
+
color: var(--g-color-text-primary);
|
24
|
+
@include subheader-1-typography();
|
25
|
+
}
|
26
|
+
|
27
|
+
&-label {
|
28
|
+
cursor: pointer;
|
29
|
+
}
|
30
|
+
|
31
|
+
&-wrapper {
|
32
|
+
position: sticky;
|
33
|
+
z-index: 1;
|
34
|
+
left: 0;
|
35
|
+
|
36
|
+
width: 100%;
|
37
|
+
}
|
38
|
+
|
39
|
+
& + & {
|
40
|
+
margin-left: var(--g-spacing-8);
|
41
|
+
}
|
42
|
+
|
43
|
+
&_summary {
|
44
|
+
& + & {
|
45
|
+
margin-left: 0;
|
46
|
+
}
|
47
|
+
}
|
48
|
+
}
|
49
|
+
|
50
|
+
&__popup-content {
|
51
|
+
padding: var(--g-spacing-2) var(--g-spacing-4);
|
52
|
+
}
|
53
|
+
|
54
|
+
&__popup-item {
|
55
|
+
padding-bottom: var(--g-spacing-2);
|
56
|
+
|
57
|
+
&:last-child {
|
58
|
+
padding-bottom: 0;
|
59
|
+
}
|
60
|
+
}
|
61
|
+
|
62
|
+
&__more-badge {
|
63
|
+
margin-left: var(--g-spacing-1);
|
5
64
|
}
|
6
65
|
}
|
@@ -1,9 +1,5 @@
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
2
1
|
import DataTable from '@gravity-ui/react-data-table';
|
3
|
-
import { Icon } from '@gravity-ui/uikit';
|
4
2
|
import i18n from './i18n';
|
5
|
-
import { b } from './shared';
|
6
|
-
import keyIcon from '../../../../assets/icons/key.svg';
|
7
3
|
export const SCHEMA_COLUMNS_WIDTH_LS_KEY = 'schemaTableColumnsWidth';
|
8
4
|
export const SCHEMA_TABLE_COLUMS_IDS = {
|
9
5
|
id: 'id',
|
@@ -33,20 +29,6 @@ const nameColumn = {
|
|
33
29
|
width: 100,
|
34
30
|
render: ({ row }) => row.name,
|
35
31
|
};
|
36
|
-
const keyColumn = {
|
37
|
-
name: SCHEMA_TABLE_COLUMS_IDS.isKeyColumn,
|
38
|
-
get header() {
|
39
|
-
return i18n('column-title.key');
|
40
|
-
},
|
41
|
-
width: 70,
|
42
|
-
resizeMinWidth: 70,
|
43
|
-
// Table should start with key columns on sort click
|
44
|
-
defaultOrder: DataTable.ASCENDING,
|
45
|
-
sortAccessor: (row) => row.keyAccessor,
|
46
|
-
render: ({ row }) => {
|
47
|
-
return row.isKeyColumn ? (_jsx("div", { className: b('key-icon'), children: _jsx(Icon, { data: keyIcon, width: 12, height: 7 }) })) : null;
|
48
|
-
},
|
49
|
-
};
|
50
32
|
const typeColumn = {
|
51
33
|
name: SCHEMA_TABLE_COLUMS_IDS.type,
|
52
34
|
get header() {
|
@@ -91,7 +73,7 @@ const defaultValueColumn = {
|
|
91
73
|
return i18n('column-title.defaultValue');
|
92
74
|
},
|
93
75
|
width: 100,
|
94
|
-
render: ({ row }) => row.defaultValue,
|
76
|
+
render: ({ row }) => String(row.defaultValue),
|
95
77
|
};
|
96
78
|
const familyColumn = {
|
97
79
|
name: SCHEMA_TABLE_COLUMS_IDS.familyName,
|
@@ -124,10 +106,10 @@ export function getExternalTableColumns() {
|
|
124
106
|
return [idColumn, nameColumn, typeColumn, notNullColumn];
|
125
107
|
}
|
126
108
|
export function getColumnTableColumns() {
|
127
|
-
return [idColumn,
|
109
|
+
return [idColumn, nameColumn, typeColumn, notNullColumn];
|
128
110
|
}
|
129
111
|
export function getRowTableColumns(extended, hasAutoIncrement, hasDefaultValue) {
|
130
|
-
const rowTableColumns = [idColumn,
|
112
|
+
const rowTableColumns = [idColumn, nameColumn, typeColumn, notNullColumn];
|
131
113
|
if (hasDefaultValue) {
|
132
114
|
rowTableColumns.push(defaultValueColumn);
|
133
115
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"columns.js","sourceRoot":"","sources":["../../../../../src/containers/Tenant/Schema/SchemaViewer/columns.tsx"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"columns.js","sourceRoot":"","sources":["../../../../../src/containers/Tenant/Schema/SchemaViewer/columns.t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gB,EAAE,CAAC;QACnB,eAAe,CAAC,IAAI,CAAC,mBAAmB,CAAC,CAAC;IAC9C,CAAC;IAED,OAAO,eAAe,CAAC;AAC3B,CAAC"}
|
@@ -1,12 +1,13 @@
|
|
1
1
|
{
|
2
2
|
"column-title.id": "Id",
|
3
3
|
"column-title.name": "Name",
|
4
|
-
"column-title.key": "Key",
|
5
4
|
"column-title.type": "Type",
|
6
5
|
"column-title.notNull": "NotNull",
|
7
6
|
"column-title.autoIncrement": "AutoIncrement",
|
8
7
|
"column-title.defaultValue": "Default",
|
9
8
|
"column-title.family": "Family",
|
10
9
|
"column-title.media": "Media",
|
11
|
-
"column-title.compression": "Compression"
|
10
|
+
"column-title.compression": "Compression",
|
11
|
+
"primary-key.title": "Primary key:",
|
12
|
+
"partitioning-key.title": "Partitioning key:"
|
12
13
|
}
|
@@ -1,2 +1,2 @@
|
|
1
|
-
declare const _default: (key: "column-title.id" | "column-title.name" | "column-title.
|
1
|
+
declare const _default: (key: "column-title.id" | "column-title.name" | "column-title.type" | "column-title.notNull" | "column-title.autoIncrement" | "column-title.defaultValue" | "column-title.family" | "column-title.media" | "column-title.compression" | "primary-key.title" | "partitioning-key.title", params?: import("@gravity-ui/i18n").Params) => string;
|
2
2
|
export default _default;
|
@@ -1,15 +1,5 @@
|
|
1
1
|
import { EColumnCodec } from '../../../../types/api/schema';
|
2
2
|
import { isColumnEntityType, isExternalTableType, isRowTableType } from '../../utils/schema';
|
3
|
-
function getKeyColumnsSortAccessorMap(ids = []) {
|
4
|
-
return ids.reduce((result, keyColumnId, index) => {
|
5
|
-
// Put columns with negative values, so they will be the first with ascending sort
|
6
|
-
// Minus keyColumnIds.length for the first key, -1 for the last
|
7
|
-
return {
|
8
|
-
...result,
|
9
|
-
[keyColumnId]: index - ids.length,
|
10
|
-
};
|
11
|
-
}, {});
|
12
|
-
}
|
13
3
|
function formatColumnCodec(codec) {
|
14
4
|
if (!codec) {
|
15
5
|
return undefined;
|
@@ -34,13 +24,10 @@ export function prepareFamilies(data) {
|
|
34
24
|
function prepareRowTableSchema(data = {}) {
|
35
25
|
const families = prepareFamilies(data);
|
36
26
|
const { Columns, KeyColumnIds } = data;
|
37
|
-
const keyAccessorsMap = getKeyColumnsSortAccessorMap(KeyColumnIds);
|
38
27
|
const preparedColumns = Columns === null || Columns === void 0 ? void 0 : Columns.map((column) => {
|
39
|
-
var _a, _b
|
28
|
+
var _a, _b;
|
40
29
|
const { Id, Name, NotNull, Type, Family, DefaultFromSequence, DefaultFromLiteral } = column;
|
41
30
|
const isKeyColumn = Boolean(KeyColumnIds === null || KeyColumnIds === void 0 ? void 0 : KeyColumnIds.find((keyColumnId) => keyColumnId === Id));
|
42
|
-
// Values in keyAccessorsMap are always negative, so it will be 1 for not key columns
|
43
|
-
const keyAccessor = Id && keyAccessorsMap[Id] ? keyAccessorsMap[Id] : 1;
|
44
31
|
const familyName = Family ? families[Family].Name : undefined;
|
45
32
|
const prefferedPoolKind = Family
|
46
33
|
? (_b = (_a = families[Family].StorageConfig) === null || _a === void 0 ? void 0 : _a.Data) === null || _b === void 0 ? void 0 : _b.PreferredPoolKind
|
@@ -50,17 +37,18 @@ function prepareRowTableSchema(data = {}) {
|
|
50
37
|
id: Id,
|
51
38
|
name: Name,
|
52
39
|
isKeyColumn,
|
53
|
-
keyAccessor,
|
54
40
|
type: Type,
|
55
41
|
notNull: NotNull,
|
56
42
|
autoIncrement: Boolean(DefaultFromSequence),
|
57
|
-
defaultValue: (
|
43
|
+
defaultValue: Object.values((DefaultFromLiteral === null || DefaultFromLiteral === void 0 ? void 0 : DefaultFromLiteral.value) || {})[0] || '-',
|
58
44
|
familyName,
|
59
45
|
prefferedPoolKind,
|
60
46
|
columnCodec,
|
61
47
|
};
|
62
48
|
});
|
63
|
-
|
49
|
+
const keyColumns = (preparedColumns === null || preparedColumns === void 0 ? void 0 : preparedColumns.filter((column) => column.isKeyColumn)) || [];
|
50
|
+
const otherColumns = (preparedColumns === null || preparedColumns === void 0 ? void 0 : preparedColumns.filter((column) => !column.isKeyColumn)) || [];
|
51
|
+
return [...keyColumns, ...otherColumns];
|
64
52
|
}
|
65
53
|
function prepareExternalTableSchema(data = {}) {
|
66
54
|
const { Columns } = data;
|
@@ -76,24 +64,26 @@ function prepareExternalTableSchema(data = {}) {
|
|
76
64
|
return preparedColumns || [];
|
77
65
|
}
|
78
66
|
function prepareColumnTableSchema(data = {}) {
|
79
|
-
const { Schema = {} } = data;
|
67
|
+
const { Schema = {}, Sharding = {} } = data;
|
80
68
|
const { Columns, KeyColumnNames } = Schema;
|
81
|
-
const
|
69
|
+
const { HashSharding = {} } = Sharding;
|
70
|
+
const { Columns: HashColumns = [] } = HashSharding;
|
82
71
|
const preparedColumns = Columns === null || Columns === void 0 ? void 0 : Columns.map((column) => {
|
83
72
|
const { Id, Name, Type, NotNull } = column;
|
84
73
|
const isKeyColumn = Boolean(KeyColumnNames === null || KeyColumnNames === void 0 ? void 0 : KeyColumnNames.find((keyColumnName) => keyColumnName === Name));
|
85
|
-
|
86
|
-
const keyAccessor = Name && keyAccessorsMap[Name] ? keyAccessorsMap[Name] : 1;
|
74
|
+
const isPartitioningKeyColumn = Boolean(HashColumns === null || HashColumns === void 0 ? void 0 : HashColumns.find((hashColumnName) => hashColumnName === Name));
|
87
75
|
return {
|
88
76
|
id: Id,
|
89
77
|
name: Name,
|
90
78
|
isKeyColumn,
|
91
|
-
|
79
|
+
isPartitioningKeyColumn,
|
92
80
|
type: Type,
|
93
81
|
notNull: NotNull,
|
94
82
|
};
|
95
83
|
});
|
96
|
-
|
84
|
+
const keyColumns = (preparedColumns === null || preparedColumns === void 0 ? void 0 : preparedColumns.filter((column) => column.isKeyColumn)) || [];
|
85
|
+
const otherColumns = (preparedColumns === null || preparedColumns === void 0 ? void 0 : preparedColumns.filter((column) => !column.isKeyColumn)) || [];
|
86
|
+
return [...keyColumns, ...otherColumns];
|
97
87
|
}
|
98
88
|
export function prepareSchemaData(type, schema) {
|
99
89
|
const { Table, ColumnTableDescription, ExternalTableDescription } = (schema === null || schema === void 0 ? void 0 : schema.PathDescription) || {};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"prepareData.js","sourceRoot":"","sources":["../../../../../src/containers/Tenant/Schema/SchemaViewer/prepareData.ts"],"names":[],"mappings":"AASA,OAAO,EAAC,YAAY,EAAC,MAAM,8BAA8B,CAAC;AAC1D,OAAO,EAAC,kBAAkB,EAAE,mBAAmB,EAAE,cAAc,EAAC,MAAM,oBAAoB,CAAC;AAI3F,SAAS,
|
1
|
+
{"version":3,"file":"prepareData.js","sourceRoot":"","sources":["../../../../../src/containers/Tenant/Schema/SchemaViewer/prepareData.ts"],"names":[],"mappings":"AASA,OAAO,EAAC,YAAY,EAAC,MAAM,8BAA8B,CAAC;AAC1D,OAAO,EAAC,kBAAkB,EAAE,mBAAmB,EAAE,cAAc,EAAC,MAAM,oBAAoB,CAAC;AAI3F,SAAS,iBAAiB,CAAC,KAAoB;IAC3C,IAAI,CAAC,KAAK,EAAE,CAAC;QACT,OAAO,SAAS,CAAC;IACrB,CAAC;IACD,IAAI,KAAK,KAAK,YAAY,CAAC,gBAAgB,EAAE,CAAC;QAC1C,OAAO,MAAM,CAAC;IAClB,CAAC;IACD,OAAO,KAAK,CAAC,OAAO,CAAC,aAAa,EAAE,EAAE,CAAC,CAAC,iBAAiB,EAAE,CAAC;AAChE,CAAC;AAED,MAAM,UAAU,eAAe,CAAC,IAAwB;;IACpD,OAAO,CACH,MAAA,MAAA,MAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,eAAe,0CAAE,cAAc,0CAAE,MAAM,CACzC,CAAC,GAAG,EAAE,MAAM,EAAE,EAAE;QACZ,IAAI,MAAM,CAAC,EAAE,EAAE,CAAC;YACZ,OAAO;gBACH,GAAG,GAAG;gBACN,CAAC,MAAM,CAAC,EAAE,CAAC,EAAE,MAAM;aACtB,CAAC;QACN,CAAC;QACD,OAAO,GAAG,CAAC;IACf,CAAC,EACD,EAAE,CACL,mC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AM,uBAAN,MAAM,CAAE,eAAe,KAAI,EAAE,CAAC;IAEhG,IAAI,cAAc,CAAC,IAAI,CAAC,EAAE,CAAC;QACvB,OAAO,qBAAqB,CAAC,KAAK,CAAC,CAAC;IACxC,CAAC;SAAM,IAAI,kBAAkB,CAAC,IAAI,CAAC,EAAE,CAAC;QAClC,OAAO,wBAAwB,CAAC,sBAAsB,CAAC,CAAC;IAC5D,CAAC;SAAM,IAAI,mBAAmB,CAAC,IAAI,CAAC,EAAE,CAAC;QACnC,OAAO,0BAA0B,CAAC,wBAAwB,CAAC,CAAC;IAChE,CAAC;IAED,OAAO,EAAE,CAAC;AACd,CAAC;AAED,MAAM,UAAU,iBAAiB,CAAC,OAAsB;IACpD,MAAM,eAAe,GAAG,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE;;QAC5C,8CAA8C;QAC9C,MAAM,IAAI,GAAG,CAAA,MAAA,MAAM,CAAC,IAAI,0CAAE,QAAQ,CAAC,GAAG,CAAC,EAAC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC;QAEjF,OAAO;YACH,IAAI;YACJ,IAAI,EAAE,MAAM,CAAC,IAAI;SACpB,CAAC;IACN,CAAC,CAAC,CAAC;IAEH,OAAO,eAAe,IAAI,EAAE,CAAC;AACjC,CAAC"}
|
@@ -3,15 +3,14 @@ export interface SchemaData {
|
|
3
3
|
id?: number;
|
4
4
|
name?: string;
|
5
5
|
isKeyColumn?: boolean;
|
6
|
-
|
7
|
-
keyAccessor?: number;
|
6
|
+
isPartitioningKeyColumn?: boolean;
|
8
7
|
type?: string;
|
9
8
|
notNull?: boolean;
|
10
9
|
autoIncrement?: boolean;
|
11
10
|
familyName?: string;
|
12
11
|
prefferedPoolKind?: string;
|
13
12
|
columnCodec?: string;
|
14
|
-
defaultValue?: string;
|
13
|
+
defaultValue?: string | number | boolean;
|
15
14
|
}
|
16
15
|
export interface SchemaColumn extends Column<SchemaData> {
|
17
16
|
name: keyof SchemaData;
|
@@ -0,0 +1,9 @@
|
|
1
|
+
export function getPartitioningKeys(tableData) {
|
2
|
+
return tableData
|
3
|
+
.filter((row) => row.isPartitioningKeyColumn && row.name)
|
4
|
+
.map((row) => row.name);
|
5
|
+
}
|
6
|
+
export function getPrimaryKeys(tableData) {
|
7
|
+
return tableData.filter((row) => row.isKeyColumn && row.name).map((row) => row.name);
|
8
|
+
}
|
9
|
+
//# sourceMappingURL=utils.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../../src/containers/Tenant/Schema/SchemaViewer/utils.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,mBAAmB,CAAC,SAAuB;IACvD,OAAO,SAAS;SACX,MAAM,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,uBAAuB,IAAI,GAAG,CAAC,IAAI,CAAC;SACxD,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,IAAK,CAAC,CAAC;AACjC,CAAC;AAED,MAAM,UAAU,cAAc,CAAC,SAAuB;IAClD,OAAO,SAAS,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,WAAW,IAAI,GAAG,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,IAAK,CAAC,CAAC;AAC1F,CAAC"}
|
@@ -17,16 +17,17 @@ WITH (
|
|
17
17
|
AUTO_PARTITIONING_PARTITION_SIZE_MB = 2048,
|
18
18
|
AUTO_PARTITIONING_BY_LOAD = ENABLED,
|
19
19
|
AUTO_PARTITIONING_MIN_PARTITIONS_COUNT = 4,
|
20
|
-
AUTO_PARTITIONING_MAX_PARTITIONS_COUNT = 1024
|
20
|
+
AUTO_PARTITIONING_MAX_PARTITIONS_COUNT = 1024
|
21
21
|
-- uncomment to create a table with predefined partitions
|
22
|
-
-- UNIFORM_PARTITIONS = 4
|
22
|
+
-- , UNIFORM_PARTITIONS = 4 -- The number of partitions for uniform initial table partitioning.
|
23
23
|
-- The primary key's first column must have type Uint64 or Uint32.
|
24
24
|
-- A created table is immediately divided into the specified number of partitions
|
25
25
|
-- uncomment to launch read only replicas in every AZ
|
26
|
-
-- READ_REPLICAS_SETTINGS = 'PER_AZ:1'
|
26
|
+
-- , READ_REPLICAS_SETTINGS = 'PER_AZ:1' -- Enable read replicas for stale read, launch one replica in every availability zone
|
27
27
|
-- uncomment to enable ttl
|
28
|
-
-- TTL = Interval("PT1H") ON expire_at
|
29
|
-
|
28
|
+
-- , TTL = Interval("PT1H") ON expire_at -- Enable background deletion of expired rows https://ydb.tech/en/docs/concepts/ttl
|
29
|
+
-- uncomment to create a table with a bloom filter
|
30
|
+
-- , KEY_BLOOM_FILTER = ENABLED -- With a Bloom filter, you can more efficiently determine
|
30
31
|
-- if some keys are missing in a table when making multiple single queries by the primary key.
|
31
32
|
)`;
|
32
33
|
};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"queryTemplates.js","sourceRoot":"","sources":["../../../../src/containers/Tenant/utils/queryTemplates.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,IAAY,EAAE,EAAE;IAChD,OAAO;iBACM,IAAI
|
1
|
+
{"version":3,"file":"queryTemplates.js","sourceRoot":"","sources":["../../../../src/containers/Tenant/utils/queryTemplates.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,IAAY,EAAE,EAAE;IAChD,OAAO;iBACM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA6BnB,CAAC;AACH,CAAC,CAAC;AACF,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,IAAY,EAAE,EAAE;IACtD,OAAO;iBACM,IAAI;;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AiB,GAAG,CAAC,IAAY,EAAE,EAAE;IAC9C,OAAO,gBAAgB,IAAI,KAAK,CAAC;AACrC,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,IAAY,EAAE,EAAE;IAC/C,OAAO,iBAAiB,IAAI,wDAAwD,CAAC;AACzF,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,IAAY,EAAE,EAAE;IAC7C,OAAO,eAAe,IAAI,KAAK,CAAC;AACpC,CAAC,CAAC;AACF,MAAM,CAAC,MAAM,4BAA4B,GAAG,CAAC,IAAY,EAAE,EAAE;IACzD,OAAO,4BAA4B,IAAI,KAAK,CAAC;AACjD,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,6BAA6B,GAAG,CAAC,IAAY,EAAE,EAAE;IAC1D,OAAO,6BAA6B,IAAI,mDAAmD,CAAC;AAChG,CAAC,CAAC"}
|
@@ -13,7 +13,7 @@ import { Search } from '../../components/Search';
|
|
13
13
|
import { TableWithControlsLayout } from '../../components/TableWithControlsLayout/TableWithControlsLayout';
|
14
14
|
import { clusterName } from '../../store';
|
15
15
|
import { ProblemFilterValues, changeFilter, selectProblemFilter, } from '../../store/reducers/settings/settings';
|
16
|
-
import { selectFilteredTenants, selectTenantsSearchValue, } from '../../store/reducers/tenants/selectors';
|
16
|
+
import { selectFilteredTenants, selectTenants, selectTenantsSearchValue, } from '../../store/reducers/tenants/selectors';
|
17
17
|
import { setSearchValue, tenantsApi } from '../../store/reducers/tenants/tenants';
|
18
18
|
import { cn } from '../../utils/cn';
|
19
19
|
import { DEFAULT_TABLE_SETTINGS } from '../../utils/constants';
|
@@ -28,7 +28,7 @@ export const Tenants = ({ additionalTenantsProps }) => {
|
|
28
28
|
const [autoRefreshInterval] = useAutoRefreshInterval();
|
29
29
|
const { currentData, isFetching, error } = tenantsApi.useGetTenantsInfoQuery({ clusterName }, { pollingInterval: autoRefreshInterval });
|
30
30
|
const loading = isFetching && currentData === undefined;
|
31
|
-
const tenants =
|
31
|
+
const tenants = useTypedSelector((state) => selectTenants(state, clusterName));
|
32
32
|
const searchValue = useTypedSelector(selectTenantsSearchValue);
|
33
33
|
const filteredTenants = useTypedSelector((state) => selectFilteredTenants(state, clusterName));
|
34
34
|
const problemFilter = useTypedSelector(selectProblemFilter);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Tenants.js","sourceRoot":"","sources":["../../../src/containers/Tenants/Tenants.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,SAAS,MAAM,8BAA8B,CAAC;AACrD,OAAO,EAAC,MAAM,EAAC,MAAM,mBAAmB,CAAC;AAEzC,OAAO,EAAC,aAAa,EAAC,MAAM,gCAAgC,CAAC;AAC7D,OAAO,EAAC,YAAY,EAAC,MAAM,4CAA4C,CAAC;AACxE,OAAO,EAAC,aAAa,EAAC,MAAM,uCAAuC,CAAC;AACpE,OAAO,EAAC,YAAY,EAAC,MAAM,+BAA+B,CAAC;AAC3D,OAAO,EAAC,UAAU,EAAC,MAAM,wCAAwC,CAAC;AAClE,OAAO,EAAC,aAAa,EAAC,MAAM,gCAAgC,CAAC;AAC7D,OAAO,EAAC,mBAAmB,EAAC,MAAM,0DAA0D,CAAC;AAC7F,OAAO,EAAC,MAAM,EAAC,MAAM,yBAAyB,CAAC;AAC/C,OAAO,EAAC,uBAAuB,EAAC,MAAM,kEAAkE,CAAC;AACzG,OAAO,EAAC,WAAW,EAAC,MAAM,aAAa,CAAC;AACxC,OAAO,EACH,mBAAmB,EACnB,YAAY,EACZ,mBAAmB,GACtB,MAAM,wCAAwC,CAAC;AAEhD,OAAO,EACH,qBAAqB,EACrB,wBAAwB,GAC3B,MAAM,wCAAwC,CAAC;AAChD,OAAO,EAAC,cAAc,EAAE,UAAU,EAAC,MAAM,sCAAsC,CAAC;AAGhF,OAAO,EAAC,EAAE,EAAC,MAAM,gBAAgB,CAAC;AAClC,OAAO,EAAC,s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,cAAc,EAAE,GAAoC,EACtF,KAAK,CAAC,CAAC,CAAC,KAAC,aAAa,IAAC,KAAK,EAAE,KAAK,GAAI,CAAC,CAAC,CAAC,IAAI,EAC/C,KAAC,uBAAuB,CAAC,KAAK,IAAC,OAAO,EAAE,OAAO,YAC1C,WAAW,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC,IAAI,GACP,IACV,CAC7B,CAAC;AACN,CAAC,CAAC"}
|
@@ -19,15 +19,12 @@
|
|
19
19
|
"settings.language.option-russian": "Russian",
|
20
20
|
"settings.language.option-english": "English",
|
21
21
|
"settings.binaryDataInPlainTextDisplay.title": "Display binary data in plain text",
|
22
|
-
"settings.binaryDataInPlainTextDisplay.description": "Available starting from version 24.1",
|
23
22
|
"settings.invertedDisks.title": "Inverted disks space indicators",
|
24
23
|
"settings.useNodesEndpoint.title": "Break the Nodes tab in Diagnostics",
|
25
24
|
"settings.useNodesEndpoint.description": "Use /viewer/json/nodes endpoint for Nodes tab in diagnostics. It could return incorrect data on versions before 24-1",
|
26
25
|
"settings.usePaginatedTables.title": "Use paginated tables",
|
27
26
|
"settings.usePaginatedTables.description": " Use table with data load on scroll for Nodes and Storage tabs. It will increase performance, but could work unstable",
|
28
27
|
"settings.showDomainDatabase.title": "Show domain database",
|
29
|
-
"settings.enableTracingLevel.title": "Enable tracing level select",
|
30
|
-
"settings.enableTracingLevel.description": "Caution: Enabling this setting may break running of queries",
|
31
28
|
"settings.queryUseMultiSchema.title": "Allow queries with multiple result sets",
|
32
29
|
"settings.queryUseMultiSchema.description": "Use 'multi' schema for queries. It enables queries with multiple result sets. It returns nothing on versions 23-3 and older",
|
33
30
|
"settings.useClusterBalancerAsBackend.title": "Use cluster balancer as backend",
|
@@ -1,2 +1,2 @@
|
|
1
|
-
declare const _default: (key: "page.general" | "section.appearance" | "page.experiments" | "section.experiments" | "page.editor" | "section.dev-setting" | "page.about" | "section.about" | "settings.editor.autocomplete.title" | "settings.editor.autocomplete.description" | "settings.editor.autocomplete-on-enter.title" | "settings.editor.autocomplete-on-enter.description" | "settings.theme.title" | "settings.theme.option-dark" | "settings.theme.option-light" | "settings.theme.option-system" | "settings.language.title" | "settings.language.option-russian" | "settings.language.option-english" | "settings.binaryDataInPlainTextDisplay.title" | "settings.
|
1
|
+
declare const _default: (key: "page.general" | "section.appearance" | "page.experiments" | "section.experiments" | "page.editor" | "section.dev-setting" | "page.about" | "section.about" | "settings.editor.autocomplete.title" | "settings.editor.autocomplete.description" | "settings.editor.autocomplete-on-enter.title" | "settings.editor.autocomplete-on-enter.description" | "settings.theme.title" | "settings.theme.option-dark" | "settings.theme.option-light" | "settings.theme.option-system" | "settings.language.title" | "settings.language.option-russian" | "settings.language.option-english" | "settings.binaryDataInPlainTextDisplay.title" | "settings.invertedDisks.title" | "settings.useNodesEndpoint.title" | "settings.useNodesEndpoint.description" | "settings.usePaginatedTables.title" | "settings.usePaginatedTables.description" | "settings.showDomainDatabase.title" | "settings.queryUseMultiSchema.title" | "settings.queryUseMultiSchema.description" | "settings.useClusterBalancerAsBackend.title" | "settings.useClusterBalancerAsBackend.description" | "settings.about.interfaceVersionInfoField.title", params?: import("@gravity-ui/i18n").Params) => string;
|
2
2
|
export default _default;
|
@@ -19,7 +19,6 @@ export declare const invertedDisksSetting: SettingProps;
|
|
19
19
|
export declare const useNodesEndpointSetting: SettingProps;
|
20
20
|
export declare const usePaginatedTables: SettingProps;
|
21
21
|
export declare const showDomainDatabase: SettingProps;
|
22
|
-
export declare const enableTracingLevel: SettingProps;
|
23
22
|
export declare const queryUseMultiSchemaSetting: SettingProps;
|
24
23
|
export declare const useClusterBalancerAsBackendSetting: SettingProps;
|
25
24
|
export declare const enableAutocompleteSetting: SettingProps;
|
@@ -1,9 +1,7 @@
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
2
1
|
import { CircleInfo, Flask, PencilToSquare, StarFill } from '@gravity-ui/icons';
|
3
2
|
import { createNextState } from '@reduxjs/toolkit';
|
4
|
-
import { AUTOCOMPLETE_ON_ENTER, BINARY_DATA_IN_PLAIN_TEXT_DISPLAY, ENABLE_AUTOCOMPLETE,
|
3
|
+
import { AUTOCOMPLETE_ON_ENTER, BINARY_DATA_IN_PLAIN_TEXT_DISPLAY, ENABLE_AUTOCOMPLETE, INVERTED_DISKS_KEY, LANGUAGE_KEY, QUERY_USE_MULTI_SCHEMA_KEY, SHOW_DOMAIN_DATABASE_KEY, THEME_KEY, USE_CLUSTER_BALANCER_AS_BACKEND_KEY, USE_NODES_ENDPOINT_IN_DIAGNOSTICS_KEY, USE_PAGINATED_TABLES_KEY, } from '../../utils/constants';
|
5
4
|
import { Lang, defaultLang } from '../../utils/i18n';
|
6
|
-
import { ClusterModeGuard } from '../ClusterModeGuard';
|
7
5
|
import i18n from './i18n';
|
8
6
|
import packageJson from '../../../package.json';
|
9
7
|
const themeOptions = [
|
@@ -49,7 +47,6 @@ export const languageSetting = {
|
|
49
47
|
export const binaryDataInPlainTextDisplay = {
|
50
48
|
settingKey: BINARY_DATA_IN_PLAIN_TEXT_DISPLAY,
|
51
49
|
title: i18n('settings.binaryDataInPlainTextDisplay.title'),
|
52
|
-
description: (_jsx(ClusterModeGuard, { mode: "multi", children: i18n('settings.binaryDataInPlainTextDisplay.description') })),
|
53
50
|
};
|
54
51
|
export const invertedDisksSetting = {
|
55
52
|
settingKey: INVERTED_DISKS_KEY,
|
@@ -69,11 +66,6 @@ export const showDomainDatabase = {
|
|
69
66
|
settingKey: SHOW_DOMAIN_DATABASE_KEY,
|
70
67
|
title: i18n('settings.showDomainDatabase.title'),
|
71
68
|
};
|
72
|
-
export const enableTracingLevel = {
|
73
|
-
settingKey: ENABLE_TRACING_LEVEL_KEY,
|
74
|
-
title: i18n('settings.enableTracingLevel.title'),
|
75
|
-
description: i18n('settings.enableTracingLevel.description'),
|
76
|
-
};
|
77
69
|
export const queryUseMultiSchemaSetting = {
|
78
70
|
settingKey: QUERY_USE_MULTI_SCHEMA_KEY,
|
79
71
|
title: i18n('settings.queryUseMultiSchema.title'),
|
@@ -117,7 +109,7 @@ export const experimentsSection = {
|
|
117
109
|
export const devSettingsSection = {
|
118
110
|
id: 'devSettingsSection',
|
119
111
|
title: i18n('section.dev-setting'),
|
120
|
-
settings: [enableAutocompleteSetting, autocompleteOnEnterSetting
|
112
|
+
settings: [enableAutocompleteSetting, autocompleteOnEnterSetting],
|
121
113
|
};
|
122
114
|
export const aboutSettingsSection = {
|
123
115
|
id: 'aboutSettingsSection',
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"settings.js","sourceRoot":"","sources":["../../../src/containers/UserSettings/settings.tsx"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"settings.js","sourceRoot":"","sources":["../../../src/containers/UserSettings/settings.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAE,KAAK,EAAE,cAAc,EAAE,QAAQ,EAAC,MAAM,mBAAmB,CAAC;AAE9E,OAAO,EAAC,eAAe,EAAC,MAAM,kBAAkB,CAAC;AAEjD,OAAO,EACH,qBAAqB,EACrB,iCAAiC,EACjC,mBAAmB,EACnB,kBAAkB,EAClB,YAAY,EACZ,0BAA0B,EAC1B,wBAAwB,EACxB,SAAS,EACT,mCAAmC,EACnC,qCAAqC,EACrC,wBAAwB,GAC3B,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAC,IAAI,EAAE,WAAW,EAAC,MAAM,kBAAkB,CAAC;AAGnD,OAAO,IAAI,MAAM,QAAQ,CAAC;AAE1B,OAAO,WAAW,MAAM,uBAAuB,CAAC;AAiBhD,MAAM,YAAY,GAAG;IACjB;QACI,KAAK,EAAE,QAAQ;QACf,OAAO,EAAE,IAAI,CAAC,8BAA8B,CAAC;KAChD;IACD;QACI,KAAK,EAAE,OAAO;QACd,OAAO,EAAE,IAAI,CAAC,6BAA6B,CAAC;KAC/C;IACD;QACI,KAAK,EAAE,MAAM;QACb,OAAO,EAAE,IAAI,CAAC,4BAA4B,CAAC;KAC9C;CACJ,CA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I,CAAC,YAAY,CAAC;IACzB,IAAI,EAAE,EAAC,IAAI,EAAE,UAAU,EAAC;IACxB,QAAQ,EAAE,CAAC,oBAAoB,CAAC;CACnC,CAAC;AAEF,MAAM,UAAU,eAAe,CAAC,EAAC,iBAAiB,EAA+B;IAC7E,MAAM,WAAW,GAAG,iBAAiB;QACjC,CAAC,CAAC,eAAe;QACjB,CAAC,CAAC,eAAe,CAAC,eAAe,EAAE,CAAC,KAAK,EAAE,EAAE;YACvC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,kCAAkC,CAAC,CAAC;QACxE,CAAC,CAAC,CAAC;IAET,MAAM,QAAQ,GAA0B,CAAC,WAAW,EAAE,UAAU,EAAE,WAAW,EAAE,SAAS,CAAC,CAAC;IAE1F,OAAO,QAAQ,CAAC;AACpB,CAAC"}
|
@@ -1,2 +1,6 @@
|
|
1
|
+
import type { PreparedStorageGroup } from '../../store/reducers/storage/types';
|
1
2
|
import './VDiskPage.scss';
|
2
3
|
export declare function VDiskPage(): import("react/jsx-runtime").JSX.Element;
|
4
|
+
export declare function VDiskGroup({ data }: {
|
5
|
+
data: PreparedStorageGroup;
|
6
|
+
}): import("react/jsx-runtime").JSX.Element;
|
@@ -5,14 +5,12 @@ import { Icon } from '@gravity-ui/uikit';
|
|
5
5
|
import { skipToken } from '@reduxjs/toolkit/query';
|
6
6
|
import { Helmet } from 'react-helmet-async';
|
7
7
|
import { StringParam, useQueryParams } from 'use-query-params';
|
8
|
-
import { AutoRefreshControl } from '../../components/AutoRefreshControl/AutoRefreshControl';
|
9
8
|
import { ButtonWithConfirmDialog } from '../../components/ButtonWithConfirmDialog/ButtonWithConfirmDialog';
|
10
|
-
import {
|
9
|
+
import { EntityPageTitle } from '../../components/EntityPageTitle/EntityPageTitle';
|
11
10
|
import { ResponseError } from '../../components/Errors/ResponseError';
|
12
|
-
import { GroupInfo } from '../../components/GroupInfo/GroupInfo';
|
13
11
|
import { InfoViewerSkeleton } from '../../components/InfoViewerSkeleton/InfoViewerSkeleton';
|
14
|
-
import {
|
15
|
-
import {
|
12
|
+
import { PageMetaWithAutorefresh } from '../../components/PageMeta/PageMeta';
|
13
|
+
import { ResizeableDataTable } from '../../components/ResizeableDataTable/ResizeableDataTable';
|
16
14
|
import { VDiskInfo } from '../../components/VDiskInfo/VDiskInfo';
|
17
15
|
import { selectIsUserAllowedToMakeChanges } from '../../store/reducers/authentication/authentication';
|
18
16
|
import { setHeaderBreadcrumbs } from '../../store/reducers/header/header';
|
@@ -20,15 +18,16 @@ import { selectNodesMap } from '../../store/reducers/nodesList';
|
|
20
18
|
import { vDiskApi } from '../../store/reducers/vdisk/vdisk';
|
21
19
|
import { valueIsDefined } from '../../utils';
|
22
20
|
import { cn } from '../../utils/cn';
|
21
|
+
import { DEFAULT_TABLE_SETTINGS } from '../../utils/constants';
|
23
22
|
import { stringifyVdiskId } from '../../utils/dataFormatters/dataFormatters';
|
24
23
|
import { getSeverityColor } from '../../utils/disks/helpers';
|
25
24
|
import { useAutoRefreshInterval, useTypedDispatch, useTypedSelector } from '../../utils/hooks';
|
25
|
+
import { STORAGE_GROUPS_COLUMNS_WIDTH_LS_KEY, getDiskPageStorageColumns, } from '../Storage/StorageGroups/getStorageGroupsColumns';
|
26
26
|
import { vDiskPageKeyset } from './i18n';
|
27
27
|
import './VDiskPage.scss';
|
28
28
|
const vDiskPageCn = cn('ydb-vdisk-page');
|
29
29
|
export function VDiskPage() {
|
30
30
|
const dispatch = useTypedDispatch();
|
31
|
-
const nodesMap = useTypedSelector(selectNodesMap);
|
32
31
|
const isUserAllowedToMakeChanges = useTypedSelector(selectIsUserAllowedToMakeChanges);
|
33
32
|
const [{ nodeId, pDiskId, vDiskSlotId }] = useQueryParams({
|
34
33
|
nodeId: StringParam,
|
@@ -94,23 +93,20 @@ export function VDiskPage() {
|
|
94
93
|
const hostItem = NodeHost ? `${vDiskPageKeyset('fqdn')}: ${NodeHost}` : undefined;
|
95
94
|
const nodeIdItem = NodeId ? `${vDiskPageKeyset('node')}: ${NodeId}` : undefined;
|
96
95
|
const pDiskIdItem = NodeId ? `${vDiskPageKeyset('pdisk')}: ${PDiskId}` : undefined;
|
97
|
-
return (_jsx(
|
96
|
+
return (_jsx(PageMetaWithAutorefresh, { className: vDiskPageCn('meta'), loading: loading, items: [hostItem, nodeIdItem, NodeType, NodeDC, pDiskIdItem, PDiskType] }));
|
98
97
|
};
|
99
98
|
const renderPageTitle = () => {
|
100
|
-
return (_jsx(
|
99
|
+
return (_jsx(EntityPageTitle, { className: vDiskPageCn('title'), entityName: vDiskPageKeyset('vdisk'), status: getSeverityColor(Severity), id: stringifyVdiskId(vDiskData === null || vDiskData === void 0 ? void 0 : vDiskData.VDiskId) }));
|
101
100
|
};
|
102
101
|
const renderControls = () => {
|
103
|
-
return (
|
102
|
+
return (_jsx("div", { className: vDiskPageCn('controls'), children: _jsxs(ButtonWithConfirmDialog, { onConfirmAction: handleEvictVDisk, onConfirmActionSuccess: handleAfterEvictVDisk, buttonDisabled: !vDiskIdParamsDefined || !isUserAllowedToMakeChanges, buttonView: "normal", dialogContent: vDiskPageKeyset('evict-vdisk-dialog'), retryButtonText: vDiskPageKeyset('force-evict-vdisk-button'), withPopover: true, popoverContent: vDiskPageKeyset('evict-vdisk-not-allowed'), popoverDisabled: isUserAllowedToMakeChanges, children: [_jsx(Icon, { data: ArrowsOppositeToDots }), vDiskPageKeyset('evict-vdisk-button')] }) }));
|
104
103
|
};
|
105
104
|
const renderInfo = () => {
|
106
|
-
return _jsx(VDiskInfo, { data: vDiskData });
|
105
|
+
return _jsx(VDiskInfo, { data: vDiskData, className: vDiskPageCn('info') });
|
107
106
|
};
|
108
107
|
const renderGroupInfo = () => {
|
109
|
-
var _a;
|
110
108
|
if (groupData) {
|
111
|
-
return (_jsxs(React.Fragment, { children: [_jsx("div", { className: vDiskPageCn('group-title'), children: vDiskPageKeyset('group') }), _jsx(
|
112
|
-
return (_jsx(VDiskWithDonorsStack, { data: vDisk, nodes: nodesMap, className: vDiskPageCn('group-disk') }, stringifyVdiskId(vDisk.VDiskId)));
|
113
|
-
}) })] }));
|
109
|
+
return (_jsxs(React.Fragment, { children: [_jsx("div", { className: vDiskPageCn('group-title'), children: vDiskPageKeyset('group') }), _jsx(VDiskGroup, { data: groupData })] }));
|
114
110
|
}
|
115
111
|
return null;
|
116
112
|
};
|
@@ -122,4 +118,11 @@ export function VDiskPage() {
|
|
122
118
|
};
|
123
119
|
return (_jsxs("div", { className: vDiskPageCn(null), children: [renderHelmet(), renderPageMeta(), renderPageTitle(), renderControls(), renderContent()] }));
|
124
120
|
}
|
121
|
+
export function VDiskGroup({ data }) {
|
122
|
+
const nodesMap = useTypedSelector(selectNodesMap);
|
123
|
+
const pDiskStorageColumns = React.useMemo(() => {
|
124
|
+
return getDiskPageStorageColumns(nodesMap);
|
125
|
+
}, [nodesMap]);
|
126
|
+
return (_jsx(ResizeableDataTable, { columnsWidthLSKey: STORAGE_GROUPS_COLUMNS_WIDTH_LS_KEY, data: [data], columns: pDiskStorageColumns, settings: DEFAULT_TABLE_SETTINGS }));
|
127
|
+
}
|
125
128
|
//# sourceMappingURL=VDiskPage.js.map
|