ydb-embedded-ui 5.2.1 → 5.3.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/components/BasicNodeViewer/BasicNodeViewer.js +1 -1
- package/dist/components/ButtonWithConfirmDialog/ButtonWithConfirmDialog.d.ts +13 -0
- package/dist/components/ButtonWithConfirmDialog/ButtonWithConfirmDialog.js +32 -0
- package/dist/components/CellWithPopover/CellWithPopover.js +1 -11
- package/dist/components/ClipboardButton/ClipboardButton.js +1 -11
- package/dist/components/ComponentsProvider/ComponentsProvider.d.ts +2 -2
- package/dist/components/ComponentsProvider/componentsRegistry.d.ts +1 -1
- package/dist/components/ComponentsProvider/registry.d.ts +3 -3
- package/dist/components/ContentWithPopup/ContentWithPopup.js +1 -11
- package/dist/components/CriticalActionDialog/CriticalActionDialog.d.ts +6 -4
- package/dist/components/CriticalActionDialog/CriticalActionDialog.js +32 -7
- package/dist/components/CriticalActionDialog/CriticalActionDialog.scss +8 -19
- package/dist/components/CriticalActionDialog/i18n/en.json +7 -0
- package/dist/components/CriticalActionDialog/i18n/index.d.ts +1 -0
- package/dist/components/CriticalActionDialog/i18n/index.js +4 -0
- package/dist/components/EnableFullscreenButton/EnableFullscreenButton.js +2 -2
- package/dist/components/EntityStatus/EntityStatus.d.ts +20 -37
- package/dist/components/EntityStatus/EntityStatus.js +17 -66
- package/dist/components/EntityStatus/EntityStatus.scss +1 -57
- package/dist/components/Errors/403/AccessDenied.js +1 -11
- package/dist/components/FormattedBytes/FormattedBytes.d.ts +1 -1
- package/dist/components/FormattedBytes/FormattedBytes.js +1 -11
- package/dist/components/FormattedBytes/utils.d.ts +1 -1
- package/dist/components/Fullscreen/Fullscreen.js +11 -11
- package/dist/components/Illustration/Illustration.js +1 -11
- package/dist/components/InfoViewer/InfoViewer.d.ts +2 -2
- package/dist/components/InfoViewer/InfoViewer.js +1 -1
- package/dist/components/InfoViewer/formatters/cdcStream.d.ts +1 -1
- package/dist/components/InfoViewer/formatters/common.d.ts +1 -1
- package/dist/components/InfoViewer/formatters/pqGroup.d.ts +3 -3
- package/dist/components/InfoViewer/formatters/schema.d.ts +1 -1
- package/dist/components/InfoViewer/formatters/table.d.ts +4 -4
- package/dist/components/InfoViewer/utils.d.ts +3 -3
- package/dist/components/InfoViewerSkeleton/InfoViewerSkeleton.d.ts +7 -0
- package/dist/components/InfoViewerSkeleton/InfoViewerSkeleton.js +7 -0
- package/dist/{containers/Cluster/ClusterInfoSkeleton/ClusterInfoSkeleton.scss → components/InfoViewerSkeleton/InfoViewerSkeleton.scss} +1 -9
- package/dist/components/InternalLink/InternalLink.js +1 -11
- package/dist/components/LinkToSchemaObject/LinkToSchemaObject.js +1 -11
- package/dist/components/LinkWithIcon/LinkWithIcon.d.ts +8 -0
- package/dist/components/LinkWithIcon/LinkWithIcon.js +14 -0
- package/dist/components/{ExternalLinkWithIcon/ExternalLinkWithIcon.scss → LinkWithIcon/LinkWithIcon.scss} +1 -1
- package/dist/components/MetricChart/MetricChart.d.ts +2 -1
- package/dist/components/MetricChart/MetricChart.js +8 -3
- package/dist/components/MetricChart/getChartData.d.ts +2 -1
- package/dist/components/MetricChart/getChartData.js +2 -2
- package/dist/components/MetricChart/getDefaultDataFormatter.d.ts +1 -1
- package/dist/components/MetricChart/i18n/en.json +3 -0
- package/dist/components/MetricChart/i18n/index.d.ts +2 -0
- package/dist/components/MetricChart/i18n/index.js +4 -0
- package/dist/components/MetricChart/reducer.d.ts +1 -1
- package/dist/components/MetricChart/types.d.ts +5 -5
- package/dist/components/NodeHostWrapper/NodeHostWrapper.js +1 -1
- package/dist/components/PDiskInfo/PDiskInfo.d.ts +11 -0
- package/dist/components/PDiskInfo/PDiskInfo.js +71 -0
- package/dist/components/PDiskInfo/PDiskInfo.scss +8 -0
- package/dist/components/PDiskInfo/i18n/en.json +14 -0
- package/dist/components/PDiskInfo/i18n/index.d.ts +1 -0
- package/dist/components/PDiskInfo/i18n/index.js +4 -0
- package/dist/components/PageMeta/PageMeta.d.ts +8 -0
- package/dist/components/PageMeta/PageMeta.js +7 -0
- package/dist/components/PageMeta/PageMeta.scss +10 -0
- package/dist/components/ProgressViewer/ProgressViewer.d.ts +1 -1
- package/dist/components/QueryResultTable/Cell/Cell.js +2 -2
- package/dist/components/QueryResultTable/QueryResultTable.js +1 -11
- package/dist/components/ShortyString/ShortyString.d.ts +1 -1
- package/dist/components/StatusIcon/StatusIcon.d.ts +12 -0
- package/dist/components/StatusIcon/StatusIcon.js +23 -0
- package/dist/components/StatusIcon/StatusIcon.scss +69 -0
- package/dist/components/Tablet/Tablet.scss +1 -1
- package/dist/components/TabletsOverall/TabletsOverall.js +6 -6
- package/dist/components/TabletsStatistic/TabletsStatistic.d.ts +1 -1
- package/dist/components/TabletsStatistic/TabletsStatistic.scss +1 -1
- package/dist/components/Tag/Tag.d.ts +1 -1
- package/dist/components/UsageLabel/UsageLabel.js +1 -11
- package/dist/components/VirtualTable/TableHead.js +2 -2
- package/dist/components/VirtualTable/reducer.d.ts +2 -2
- package/dist/components/VirtualTable/types.d.ts +13 -13
- package/dist/components/slots/types.d.ts +1 -1
- package/dist/containers/App/App.d.ts +1 -1
- package/dist/containers/App/Content.js +10 -4
- package/dist/containers/App/Providers.d.ts +1 -1
- package/dist/containers/App/appSlots.d.ts +6 -0
- package/dist/containers/App/appSlots.js +1 -0
- package/dist/containers/AppWithClusters/AppWithClusters.d.ts +1 -1
- package/dist/containers/AppWithClusters/AppWithClusters.js +1 -1
- package/dist/containers/AsideNavigation/YdbInternalUser/YdbInternalUser.js +2 -3
- package/dist/containers/Authentication/Authentication.js +2 -5
- package/dist/containers/Cluster/Cluster.js +4 -5
- package/dist/containers/Cluster/ClusterInfo/ClusterInfo.js +4 -4
- package/dist/containers/Cluster/ClusterInfo/ClusterInfo.scss +4 -0
- package/dist/containers/Cluster/ClusterInfo/utils.d.ts +1 -1
- package/dist/containers/Cluster/utils.d.ts +2 -2
- package/dist/containers/Clusters/Clusters.js +2 -4
- package/dist/containers/Clusters/Clusters.scss +1 -1
- package/dist/containers/Clusters/constants.d.ts +1 -1
- package/dist/containers/Clusters/useClustersList.js +2 -2
- package/dist/containers/Clusters/useSelectedColumns.d.ts +1 -1
- package/dist/containers/Header/Header.js +4 -5
- package/dist/containers/Header/breadcrumbs.js +28 -5
- package/dist/containers/Header/i18n/en.json +7 -0
- package/dist/containers/Header/i18n/index.d.ts +1 -0
- package/dist/containers/Header/i18n/index.js +4 -0
- package/dist/containers/Heatmap/Heatmap.js +3 -4
- package/dist/containers/Heatmap/HeatmapCanvas/HeatmapCanvas.js +1 -1
- package/dist/containers/Node/Node.js +2 -3
- package/dist/containers/Node/NodeStructure/NodeStructure.d.ts +0 -1
- package/dist/containers/Node/NodeStructure/NodeStructure.js +2 -6
- package/dist/containers/Node/NodeStructure/Pdisk.js +9 -65
- package/dist/containers/Node/NodeStructure/Vdisk.d.ts +1 -1
- package/dist/containers/Node/NodeStructure/Vdisk.js +5 -3
- package/dist/containers/Nodes/Nodes.js +2 -3
- package/dist/containers/Nodes/NodesWrapper.js +1 -11
- package/dist/containers/Nodes/getNodes.js +1 -11
- package/dist/containers/Nodes/getNodesColumns.d.ts +1 -1
- package/dist/containers/PDisk/PDisk.d.ts +3 -0
- package/dist/containers/PDisk/PDisk.js +68 -0
- package/dist/containers/PDisk/PDisk.scss +41 -0
- package/dist/containers/PDisk/PDiskGroups.d.ts +10 -0
- package/dist/containers/PDisk/PDiskGroups.js +20 -0
- package/dist/containers/PDisk/i18n/en.json +6 -0
- package/dist/containers/PDisk/i18n/index.d.ts +1 -0
- package/dist/containers/PDisk/i18n/index.js +4 -0
- package/dist/containers/PDisk/shared.d.ts +10 -0
- package/dist/containers/PDisk/shared.js +2 -0
- package/dist/containers/ReduxTooltip/ReduxTooltip.d.ts +1 -1
- package/dist/containers/ReduxTooltip/ReduxTooltip.js +3 -2
- package/dist/containers/Storage/DiskStateProgressBar/DiskStateProgressBar.d.ts +1 -9
- package/dist/containers/Storage/DiskStateProgressBar/DiskStateProgressBar.js +2 -12
- package/dist/containers/Storage/PDisk/PDisk.d.ts +3 -3
- package/dist/containers/Storage/PDisk/PDisk.js +6 -53
- package/dist/containers/Storage/PDiskPopup/PDiskPopup.d.ts +3 -3
- package/dist/containers/Storage/PDiskPopup/PDiskPopup.js +3 -14
- package/dist/containers/Storage/Storage.js +2 -3
- package/dist/containers/Storage/StorageGroups/getGroups.js +1 -11
- package/dist/containers/Storage/StorageGroups/getStorageGroupsColumns.d.ts +2 -1
- package/dist/containers/Storage/StorageGroups/getStorageGroupsColumns.js +22 -8
- package/dist/containers/Storage/StorageNodes/getNodes.js +1 -11
- package/dist/containers/Storage/StorageNodes/getStorageNodesColumns.js +1 -1
- package/dist/containers/Storage/StorageWrapper.js +1 -11
- package/dist/containers/Storage/UsageFilter/UsageFilter.js +1 -1
- package/dist/containers/Storage/VDisk/VDisk.d.ts +2 -3
- package/dist/containers/Storage/VDisk/VDisk.js +4 -64
- package/dist/containers/Storage/VDiskPopup/VDiskPopup.js +2 -12
- package/dist/containers/Storage/VirtualStorage.js +2 -3
- package/dist/containers/Storage/utils/index.d.ts +1 -3
- package/dist/containers/Storage/utils/index.js +0 -6
- package/dist/containers/Tablet/Tablet.js +4 -5
- package/dist/containers/Tablet/TabletControls/TabletControls.d.ts +3 -2
- package/dist/containers/Tablet/TabletControls/TabletControls.js +2 -49
- package/dist/containers/Tablet/TabletTable/TabletTable.js +1 -1
- package/dist/containers/Tablets/Tablets.js +2 -3
- package/dist/containers/TabletsFilters/TabletsFilters.d.ts +2 -2
- package/dist/containers/Tenant/Acl/Acl.js +2 -3
- package/dist/containers/Tenant/Diagnostics/Consumers/Consumers.js +2 -3
- package/dist/containers/Tenant/Diagnostics/Describe/Describe.js +3 -3
- package/dist/containers/Tenant/Diagnostics/Diagnostics.js +6 -4
- package/dist/containers/Tenant/Diagnostics/DiagnosticsPages.d.ts +2 -2
- package/dist/containers/Tenant/Diagnostics/HotKeys/HotKeys.js +2 -3
- package/dist/containers/Tenant/Diagnostics/Network/Network.d.ts +2 -2
- package/dist/containers/Tenant/Diagnostics/Network/NodeNetwork/NodeNetwork.d.ts +1 -1
- package/dist/containers/Tenant/Diagnostics/Network/NodeNetwork/NodeNetwork.js +7 -5
- package/dist/containers/Tenant/Diagnostics/Network/NodeNetwork/NodeNetwork.scss +1 -1
- package/dist/containers/Tenant/Diagnostics/Overview/Overview.js +9 -5
- package/dist/containers/Tenant/Diagnostics/Overview/TableInfo/prepareTableInfo.d.ts +1 -1
- package/dist/containers/Tenant/Diagnostics/Overview/utils/prepareTopicSchemaInfo.d.ts +1 -1
- package/dist/containers/Tenant/Diagnostics/Partitions/Partitions.js +2 -3
- package/dist/containers/Tenant/Diagnostics/Partitions/columns/columns.js +1 -1
- package/dist/containers/Tenant/Diagnostics/Partitions/utils/index.d.ts +1 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/DefaultOverviewContent/DefaultOverviewContent.d.ts +5 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/DefaultOverviewContent/DefaultOverviewContent.js +2 -2
- package/dist/containers/Tenant/Diagnostics/TenantOverview/Healthcheck/Healthcheck.scss +0 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/Healthcheck/HealthcheckDetails.d.ts +2 -2
- package/dist/containers/Tenant/Diagnostics/TenantOverview/Healthcheck/HealthcheckPreview.js +3 -2
- package/dist/containers/Tenant/Diagnostics/TenantOverview/Healthcheck/IssuesViewer/IssueTree.d.ts +2 -2
- package/dist/containers/Tenant/Diagnostics/TenantOverview/Healthcheck/IssuesViewer/IssueTree.js +3 -12
- package/dist/containers/Tenant/Diagnostics/TenantOverview/Healthcheck/IssuesViewer/IssueTreeItem/IssueTreeItem.d.ts +2 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/Healthcheck/IssuesViewer/IssueTreeItem/IssueTreeItem.js +1 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TenantCpu.js +1 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopNodesByCpu.js +2 -3
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopNodesByLoad.js +2 -3
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopQueries.js +2 -3
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopShards.js +2 -3
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantDashboard/TenantDashboard.d.ts +2 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantDashboard/TenantDashboard.js +2 -2
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantMemory/TenantMemory.js +1 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantMemory/TopNodesByMemory.js +2 -3
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantOverview.js +6 -7
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantOverviewTableLayout.js +1 -11
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/TenantStorage.js +1 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/TopGroups.js +2 -3
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/TopTables.js +2 -3
- package/dist/containers/Tenant/Diagnostics/TenantOverview/useHealthcheck.d.ts +2 -2
- package/dist/containers/Tenant/Diagnostics/TenantOverview/useHealthcheck.js +3 -4
- package/dist/containers/Tenant/Diagnostics/TopQueries/TopQueries.js +2 -5
- package/dist/containers/Tenant/Diagnostics/TopShards/TopShards.js +2 -3
- package/dist/containers/Tenant/Info/ExternalDataSource/ExternalDataSource.js +1 -1
- package/dist/containers/Tenant/Info/ExternalTable/ExternalTable.js +3 -3
- package/dist/containers/Tenant/ObjectGeneral/ObjectGeneral.d.ts +1 -0
- package/dist/containers/Tenant/ObjectGeneral/ObjectGeneral.js +3 -2
- package/dist/containers/Tenant/ObjectSummary/ObjectSummary.js +2 -3
- package/dist/containers/Tenant/Query/ExecuteResult/ExecuteResult.js +2 -3
- package/dist/containers/Tenant/Query/ExplainResult/ExplainResult.js +3 -3
- package/dist/containers/Tenant/Query/Issues/models.d.ts +1 -1
- package/dist/containers/Tenant/Query/Preview/Preview.js +2 -3
- package/dist/containers/Tenant/Query/QueriesHistory/QueriesHistory.js +2 -3
- package/dist/containers/Tenant/Query/Query.js +2 -3
- package/dist/containers/Tenant/Query/QueryEditor/QueryEditor.js +3 -8
- package/dist/containers/Tenant/Query/QueryEditor/helpers.d.ts +4 -0
- package/dist/containers/Tenant/Query/QueryEditor/helpers.js +17 -0
- package/dist/containers/Tenant/Query/SaveQuery/SaveQuery.js +4 -4
- package/dist/containers/Tenant/Query/SavedQueries/SavedQueries.js +2 -2
- package/dist/containers/Tenant/Schema/SchemaTree/SchemaTree.js +5 -3
- package/dist/containers/Tenant/Tenant.js +24 -8
- package/dist/containers/Tenant/utils/index.d.ts +1 -1
- package/dist/containers/Tenant/utils/schema.d.ts +12 -12
- package/dist/containers/Tenant/utils/schemaActions.d.ts +1 -1
- package/dist/containers/Tenants/Tenants.js +3 -4
- package/dist/containers/UserSettings/Setting.d.ts +1 -1
- package/dist/containers/UserSettings/i18n/en.json +4 -0
- package/dist/containers/UserSettings/i18n/index.d.ts +1 -1
- package/dist/containers/UserSettings/settings.d.ts +4 -1
- package/dist/containers/UserSettings/settings.js +21 -6
- package/dist/containers/Versions/NodesTable/NodesTable.js +1 -1
- package/dist/containers/Versions/Versions.js +2 -3
- package/dist/reportWebVitals.d.ts +1 -1
- package/dist/routes.d.ts +5 -2
- package/dist/routes.js +6 -1
- package/dist/services/api.d.ts +8 -7
- package/dist/services/api.js +3 -13
- package/dist/services/settings.d.ts +1 -1
- package/dist/services/settings.js +2 -1
- package/dist/store/configureStore.d.ts +310 -0
- package/dist/store/configureStore.js +56 -0
- package/dist/store/defaultStore.d.ts +168 -0
- package/dist/store/defaultStore.js +2 -0
- package/dist/store/getUrlData.d.ts +3 -3
- package/dist/store/getUrlData.js +4 -4
- package/dist/store/index.d.ts +3 -97
- package/dist/store/index.js +2 -49
- package/dist/store/reducers/authentication/authentication.d.ts +247 -4
- package/dist/store/reducers/authentication/types.d.ts +1 -1
- package/dist/store/reducers/cluster/cluster.d.ts +83 -2
- package/dist/store/reducers/cluster/types.d.ts +3 -3
- package/dist/store/reducers/clusterNodes/clusterNodes.d.ts +83 -2
- package/dist/store/reducers/clusterNodes/types.d.ts +1 -1
- package/dist/store/reducers/clusters/clusters.d.ts +83 -2
- package/dist/store/reducers/clusters/selectors.d.ts +20 -6
- package/dist/store/reducers/clusters/selectors.js +1 -1
- package/dist/store/reducers/clusters/types.d.ts +1 -1
- package/dist/store/reducers/describe.d.ts +165 -3
- package/dist/store/reducers/describe.js +4 -3
- package/dist/store/reducers/executeQuery.d.ts +83 -2
- package/dist/store/reducers/executeTopQueries/executeTopQueries.d.ts +3 -3
- package/dist/store/reducers/executeTopQueries/types.d.ts +1 -1
- package/dist/store/reducers/explainQuery.d.ts +165 -3
- package/dist/store/reducers/header/header.d.ts +1 -1
- package/dist/store/reducers/header/types.d.ts +7 -4
- package/dist/store/reducers/healthcheckInfo/healthcheckInfo.d.ts +101 -0
- package/dist/store/reducers/{healthcheckInfo.js → healthcheckInfo/healthcheckInfo.js} +2 -2
- package/dist/store/reducers/healthcheckInfo/types.d.ts +19 -0
- package/dist/store/reducers/healthcheckInfo/utils.d.ts +3 -0
- package/dist/store/reducers/healthcheckInfo/utils.js +11 -0
- package/dist/store/reducers/heatmap.d.ts +83 -2
- package/dist/store/reducers/heatmap.js +2 -2
- package/dist/store/reducers/host.d.ts +83 -2
- package/dist/store/reducers/hotKeys/hotKeys.d.ts +1 -1
- package/dist/store/reducers/hotKeys/types.d.ts +1 -1
- package/dist/store/reducers/index.d.ts +95 -45
- package/dist/store/reducers/index.js +4 -2
- package/dist/store/reducers/network/network.d.ts +83 -2
- package/dist/store/reducers/network/types.d.ts +1 -1
- package/dist/store/reducers/node/node.d.ts +165 -3
- package/dist/store/reducers/node/selectors.d.ts +1 -1
- package/dist/store/reducers/node/selectors.js +5 -4
- package/dist/store/reducers/node/types.d.ts +6 -6
- package/dist/store/reducers/nodes/nodes.d.ts +165 -3
- package/dist/store/reducers/nodes/nodes.js +1 -11
- package/dist/store/reducers/nodes/selectors.d.ts +1 -1
- package/dist/store/reducers/nodes/selectors.js +1 -1
- package/dist/store/reducers/nodes/types.d.ts +4 -3
- package/dist/store/reducers/nodes/utils.d.ts +1 -1
- package/dist/store/reducers/nodesList.d.ts +83 -2
- package/dist/store/reducers/olapStats.d.ts +83 -2
- package/dist/store/reducers/overview/overview.d.ts +166 -4
- package/dist/store/reducers/overview/overview.js +3 -3
- package/dist/store/reducers/overview/types.d.ts +6 -5
- package/dist/store/reducers/partitions/partitions.d.ts +83 -2
- package/dist/store/reducers/partitions/types.d.ts +1 -1
- package/dist/store/reducers/partitions/utils.d.ts +2 -2
- package/dist/store/reducers/pdisk/pdisk.d.ts +210 -0
- package/dist/store/reducers/pdisk/pdisk.js +64 -0
- package/dist/store/reducers/pdisk/types.d.ts +23 -0
- package/dist/store/reducers/pdisk/types.js +1 -0
- package/dist/store/reducers/pdisk/utils.d.ts +32 -0
- package/dist/store/reducers/pdisk/utils.js +32 -0
- package/dist/store/reducers/preview.d.ts +82 -1
- package/dist/store/reducers/saveQuery.d.ts +3 -3
- package/dist/store/reducers/schema/schema.d.ts +84 -4
- package/dist/store/reducers/schema/schema.js +4 -4
- package/dist/store/reducers/schema/types.d.ts +3 -3
- package/dist/store/reducers/schemaAcl/schemaAcl.d.ts +83 -2
- package/dist/store/reducers/schemaAcl/types.d.ts +1 -1
- package/dist/store/reducers/settings/settings.d.ts +2 -2
- package/dist/store/reducers/settings/types.d.ts +3 -3
- package/dist/store/reducers/shardsWorkload/shardsWorkload.d.ts +83 -2
- package/dist/store/reducers/shardsWorkload/types.d.ts +1 -1
- package/dist/store/reducers/storage/selectors.d.ts +1 -1
- package/dist/store/reducers/storage/selectors.js +1 -1
- package/dist/store/reducers/storage/storage.d.ts +165 -3
- package/dist/store/reducers/storage/storage.js +1 -11
- package/dist/store/reducers/storage/types.d.ts +10 -10
- package/dist/store/reducers/storage/utils.d.ts +4 -2
- package/dist/store/reducers/storage/utils.js +21 -15
- package/dist/store/reducers/tablet.d.ts +165 -3
- package/dist/store/reducers/tablet.js +1 -1
- package/dist/store/reducers/tablets.d.ts +83 -2
- package/dist/store/reducers/tabletsFilters.d.ts +101 -2
- package/dist/store/reducers/tabletsFilters.js +1 -1
- package/dist/store/reducers/tenant/tenant.d.ts +83 -2
- package/dist/store/reducers/tenant/types.d.ts +6 -6
- package/dist/store/reducers/tenantOverview/executeTopTables/executeTopTables.d.ts +83 -2
- package/dist/store/reducers/tenantOverview/executeTopTables/types.d.ts +1 -1
- package/dist/store/reducers/tenantOverview/topNodesByCpu/topNodesByCpu.d.ts +83 -2
- package/dist/store/reducers/tenantOverview/topNodesByCpu/topNodesByCpu.js +1 -11
- package/dist/store/reducers/tenantOverview/topNodesByCpu/types.d.ts +2 -2
- package/dist/store/reducers/tenantOverview/topNodesByLoad/topNodesByLoad.d.ts +83 -2
- package/dist/store/reducers/tenantOverview/topNodesByLoad/topNodesByLoad.js +1 -11
- package/dist/store/reducers/tenantOverview/topNodesByLoad/types.d.ts +2 -2
- package/dist/store/reducers/tenantOverview/topNodesByMemory/topNodesByMemory.d.ts +83 -2
- package/dist/store/reducers/tenantOverview/topNodesByMemory/topNodesByMemory.js +1 -11
- package/dist/store/reducers/tenantOverview/topNodesByMemory/types.d.ts +2 -2
- package/dist/store/reducers/tenantOverview/topQueries/tenantOverviewTopQueries.d.ts +83 -2
- package/dist/store/reducers/tenantOverview/topQueries/types.d.ts +1 -1
- package/dist/store/reducers/tenantOverview/topShards/tenantOverviewTopShards.d.ts +83 -2
- package/dist/store/reducers/tenantOverview/topShards/types.d.ts +1 -1
- package/dist/store/reducers/tenantOverview/topStorageGroups/topStorageGroups.d.ts +83 -2
- package/dist/store/reducers/tenantOverview/topStorageGroups/topStorageGroups.js +1 -11
- package/dist/store/reducers/tenantOverview/topStorageGroups/types.d.ts +2 -2
- package/dist/store/reducers/tenants/selectors.d.ts +2 -2
- package/dist/store/reducers/tenants/selectors.js +1 -1
- package/dist/store/reducers/tenants/tenants.d.ts +83 -2
- package/dist/store/reducers/tenants/types.d.ts +2 -2
- package/dist/store/reducers/tenants/utils.d.ts +6 -6
- package/dist/store/reducers/tooltip.d.ts +4 -3
- package/dist/store/reducers/tooltip.js +2 -4
- package/dist/store/reducers/topic.d.ts +83 -3
- package/dist/store/reducers/topic.js +1 -1
- package/dist/store/state-url-mapping.d.ts +5 -3
- package/dist/store/state-url-mapping.js +9 -18
- package/dist/store/utils.d.ts +4 -4
- package/dist/types/additionalProps.d.ts +2 -2
- package/dist/types/api/enums.d.ts +1 -0
- package/dist/types/api/enums.js +1 -0
- package/dist/types/api/error.d.ts +1 -1
- package/dist/types/api/nodes.d.ts +1 -1
- package/dist/types/api/nodesList.d.ts +1 -1
- package/dist/types/api/query.d.ts +19 -19
- package/dist/types/api/render.d.ts +6 -3
- package/dist/types/api/storage.d.ts +1 -1
- package/dist/types/api/tablet.d.ts +1 -1
- package/dist/types/common.d.ts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/store/describe.d.ts +3 -3
- package/dist/types/store/executeQuery.d.ts +2 -2
- package/dist/types/store/explainQuery.d.ts +3 -3
- package/dist/types/store/heatmap.d.ts +3 -3
- package/dist/types/store/host.d.ts +1 -1
- package/dist/types/store/nodesList.d.ts +2 -2
- package/dist/types/store/olapStats.d.ts +1 -1
- package/dist/types/store/query.d.ts +5 -5
- package/dist/types/store/tablet.d.ts +3 -3
- package/dist/types/store/tablets.d.ts +2 -2
- package/dist/types/store/tooltip.d.ts +3 -5
- package/dist/types/store/topic.d.ts +1 -1
- package/dist/types/versions.d.ts +2 -2
- package/dist/utils/additionalProps.d.ts +1 -1
- package/dist/utils/additionalProps.js +1 -1
- package/dist/utils/bytesParsers/formatBytes.d.ts +2 -2
- package/dist/utils/bytesParsers/formatBytes.js +1 -11
- package/dist/utils/clusterVersionColors.d.ts +1 -1
- package/dist/utils/clusterVersionColors.js +2 -2
- package/dist/utils/constants.d.ts +2 -1
- package/dist/utils/constants.js +5 -4
- package/dist/utils/dataFormatters/dataFormatters.d.ts +12 -11
- package/dist/utils/developerUI/developerUI.d.ts +1 -1
- package/dist/utils/diagnostics.d.ts +2 -2
- package/dist/utils/disks/__test__/calculatePDiskSeverity.test.d.ts +1 -0
- package/dist/utils/disks/__test__/calculatePDiskSeverity.test.js +36 -0
- package/dist/utils/disks/__test__/calculateVDiskSeverity.test.d.ts +1 -0
- package/dist/utils/disks/__test__/calculateVDiskSeverity.test.js +142 -0
- package/dist/utils/disks/calculatePDiskSeverity.d.ts +2 -0
- package/dist/utils/disks/calculatePDiskSeverity.js +18 -0
- package/dist/utils/disks/calculateVDiskSeverity.d.ts +2 -0
- package/dist/utils/disks/calculateVDiskSeverity.js +36 -0
- package/dist/utils/disks/constants.d.ts +25 -0
- package/dist/utils/disks/constants.js +38 -0
- package/dist/utils/disks/getPDiskType.d.ts +7 -0
- package/dist/utils/{pdisk.js → disks/getPDiskType.js} +13 -15
- package/dist/utils/disks/helpers.d.ts +3 -0
- package/dist/utils/disks/helpers.js +10 -0
- package/dist/utils/disks/prepareDisks.d.ts +5 -0
- package/dist/utils/disks/prepareDisks.js +40 -0
- package/dist/utils/disks/types.d.ts +15 -0
- package/dist/utils/disks/types.js +1 -0
- package/dist/utils/hooks/index.d.ts +1 -0
- package/dist/utils/hooks/index.js +1 -0
- package/dist/utils/hooks/useSetting.js +2 -2
- package/dist/utils/hooks/useTableResize.d.ts +3 -3
- package/dist/utils/hooks/useTableSort.d.ts +1 -1
- package/dist/utils/hooks/useTypedDispatch.d.ts +2 -0
- package/dist/utils/hooks/useTypedDispatch.js +2 -0
- package/dist/utils/hooks/useTypedSelector.d.ts +1 -1
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.js +3 -0
- package/dist/utils/monaco.d.ts +1 -0
- package/dist/utils/monaco.js +14 -0
- package/dist/utils/monitoring.d.ts +3 -3
- package/dist/utils/nodes.d.ts +2 -2
- package/dist/utils/prepareBackend.d.ts +2 -2
- package/dist/utils/query.d.ts +2 -2
- package/dist/utils/query.js +1 -11
- package/dist/utils/storage.d.ts +1 -3
- package/dist/utils/storage.js +0 -1
- package/dist/utils/tablet.d.ts +1 -1
- package/dist/utils/timeframes.d.ts +1 -1
- package/dist/utils/typecheckers.d.ts +1 -0
- package/dist/utils/versions/getVersionsColors.d.ts +1 -1
- package/dist/utils/versions/getVersionsColors.js +2 -2
- package/dist/utils/versions/parseNodesToVersionsValues.d.ts +1 -1
- package/dist/utils/yqlSuggestions/constants.d.ts +7 -0
- package/dist/utils/yqlSuggestions/constants.js +696 -0
- package/dist/utils/yqlSuggestions/generateSuggestions.d.ts +27 -0
- package/dist/utils/yqlSuggestions/generateSuggestions.js +252 -0
- package/dist/utils/yqlSuggestions/yqlSuggestions.d.ts +4 -0
- package/dist/utils/yqlSuggestions/yqlSuggestions.js +76 -0
- package/package.json +14 -10
- package/dist/assets/icons/flask.svg +0 -3
- package/dist/assets/icons/star.svg +0 -1
- package/dist/components/ExternalLinkWithIcon/ExternalLinkWithIcon.d.ts +0 -7
- package/dist/components/ExternalLinkWithIcon/ExternalLinkWithIcon.js +0 -9
- package/dist/containers/Cluster/ClusterInfoSkeleton/ClusterInfoSkeleton.d.ts +0 -7
- package/dist/containers/Cluster/ClusterInfoSkeleton/ClusterInfoSkeleton.js +0 -7
- package/dist/containers/Storage/utils/constants.d.ts +0 -2
- package/dist/containers/Storage/utils/constants.js +0 -2
- package/dist/store/reducers/healthcheckInfo.d.ts +0 -21
- package/dist/types/store/healthcheck.d.ts +0 -20
- package/dist/utils/pdisk.d.ts +0 -17
- /package/dist/{types/store/healthcheck.js → store/reducers/healthcheckInfo/types.js} +0 -0
@@ -1,29 +1,30 @@
|
|
1
1
|
import singleClusterMode from './singleClusterMode';
|
2
2
|
export declare const rootReducer: {
|
3
3
|
singleClusterMode: typeof singleClusterMode;
|
4
|
-
nodes: import("redux").Reducer<import("./nodes/types").NodesState, import("./nodes/types").NodesAction>;
|
5
|
-
topNodesByLoad: import("redux").Reducer<import("./tenantOverview/topNodesByLoad/types").TopNodesByLoadState, import("./tenantOverview/topNodesByLoad/types").TopNodesByLoadAction>;
|
6
|
-
topNodesByCpu: import("redux").Reducer<import("./tenantOverview/topNodesByCpu/types").TopNodesByCpuState, import("./tenantOverview/topNodesByCpu/types").TopNodesByCpuAction>;
|
7
|
-
topNodesByMemory: import("redux").Reducer<import("./tenantOverview/topNodesByMemory/types").TopNodesByMemoryState, import("./tenantOverview/topNodesByMemory/types").TopNodesByMemoryAction>;
|
8
|
-
cluster: import("redux").Reducer<import("./cluster/types").ClusterState, import("./cluster/types").ClusterAction>;
|
9
|
-
clusterNodes: import("redux").Reducer<import("./clusterNodes/types").ClusterNodesState, import("./clusterNodes/types").ClusterNodesAction>;
|
10
|
-
tenant: import("redux").Reducer<import("./tenant/types").TenantState, import("./tenant/types").TenantAction>;
|
11
|
-
storage: import("redux").Reducer<import("./storage/types").StorageState, import("./storage/types").StorageAction>;
|
12
|
-
topStorageGroups: import("redux").Reducer<import("./tenantOverview/topStorageGroups/types").TopStorageGroupsState, import("./tenantOverview/topStorageGroups/types").TopStorageGroupsAction>;
|
13
|
-
node: import("redux").Reducer<import("./node/types").NodeState, import("./node/types").NodeAction>;
|
14
|
-
tooltip: import("redux").Reducer<import("../../types/store/tooltip").ITooltipState, import("../../types/store/tooltip").ITooltipAction>;
|
15
|
-
tablets: import("redux").Reducer<import("../../types/store/tablets").ITabletsState, import("../../types/store/tablets").ITabletsAction>;
|
16
|
-
schema: import("redux").Reducer<import("./schema/types").SchemaState, import("./schema/types").SchemaAction>;
|
17
|
-
overview: import("redux").Reducer<import("./overview/types").OverviewState, import("./overview/types").OverviewAction>;
|
18
|
-
olapStats: import("redux").Reducer<import("../../types/store/olapStats").OlapStatsState, import("../../types/store/olapStats").OlapStatsAction>;
|
19
|
-
host: import("redux").Reducer<import("../../types/store/host").IHostState, import("../../types/store/host").IHostAction>;
|
20
|
-
network: import("redux").Reducer<import("./network/types").NetworkState, import("./network/types").NetworkAction>;
|
21
|
-
tenants: import("redux").Reducer<import("./tenants/types").TenantsState, import("./tenants/types").TenantsAction>;
|
22
|
-
tablet: import("redux").Reducer<import("../../types/store/tablet").ITabletState, import("../../types/store/tablet").ITabletAction>;
|
23
|
-
topic: import("redux").Reducer<import("../../types/store/topic").ITopicState, import("../../types/store/topic").ITopicAction>;
|
24
|
-
partitions: import("redux").Reducer<import("./partitions/types").PartitionsState, import("./partitions/types").PartitionsAction>;
|
25
|
-
|
26
|
-
|
4
|
+
nodes: import("redux").Reducer<import("./nodes/types").NodesState, import("./nodes/types").NodesAction, import("./nodes/types").NodesState>;
|
5
|
+
topNodesByLoad: import("redux").Reducer<import("./tenantOverview/topNodesByLoad/types").TopNodesByLoadState, import("./tenantOverview/topNodesByLoad/types").TopNodesByLoadAction, import("./tenantOverview/topNodesByLoad/types").TopNodesByLoadState>;
|
6
|
+
topNodesByCpu: import("redux").Reducer<import("./tenantOverview/topNodesByCpu/types").TopNodesByCpuState, import("./tenantOverview/topNodesByCpu/types").TopNodesByCpuAction, import("./tenantOverview/topNodesByCpu/types").TopNodesByCpuState>;
|
7
|
+
topNodesByMemory: import("redux").Reducer<import("./tenantOverview/topNodesByMemory/types").TopNodesByMemoryState, import("./tenantOverview/topNodesByMemory/types").TopNodesByMemoryAction, import("./tenantOverview/topNodesByMemory/types").TopNodesByMemoryState>;
|
8
|
+
cluster: import("redux").Reducer<import("./cluster/types").ClusterState, import("./cluster/types").ClusterAction, import("./cluster/types").ClusterState>;
|
9
|
+
clusterNodes: import("redux").Reducer<import("./clusterNodes/types").ClusterNodesState, import("./clusterNodes/types").ClusterNodesAction, import("./clusterNodes/types").ClusterNodesState>;
|
10
|
+
tenant: import("redux").Reducer<import("./tenant/types").TenantState, import("./tenant/types").TenantAction, import("./tenant/types").TenantState>;
|
11
|
+
storage: import("redux").Reducer<import("./storage/types").StorageState, import("./storage/types").StorageAction, import("./storage/types").StorageState>;
|
12
|
+
topStorageGroups: import("redux").Reducer<import("./tenantOverview/topStorageGroups/types").TopStorageGroupsState, import("./tenantOverview/topStorageGroups/types").TopStorageGroupsAction, import("./tenantOverview/topStorageGroups/types").TopStorageGroupsState>;
|
13
|
+
node: import("redux").Reducer<import("./node/types").NodeState, import("./node/types").NodeAction, import("./node/types").NodeState>;
|
14
|
+
tooltip: import("redux").Reducer<import("../../types/store/tooltip").ITooltipState, import("../../types/store/tooltip").ITooltipAction, import("../../types/store/tooltip").ITooltipState>;
|
15
|
+
tablets: import("redux").Reducer<import("../../types/store/tablets").ITabletsState, import("../../types/store/tablets").ITabletsAction, import("../../types/store/tablets").ITabletsState>;
|
16
|
+
schema: import("redux").Reducer<import("./schema/types").SchemaState, import("./schema/types").SchemaAction, import("./schema/types").SchemaState>;
|
17
|
+
overview: import("redux").Reducer<import("./overview/types").OverviewState, import("./overview/types").OverviewAction, import("./overview/types").OverviewState>;
|
18
|
+
olapStats: import("redux").Reducer<import("../../types/store/olapStats").OlapStatsState, import("../../types/store/olapStats").OlapStatsAction, import("../../types/store/olapStats").OlapStatsState>;
|
19
|
+
host: import("redux").Reducer<import("../../types/store/host").IHostState, import("../../types/store/host").IHostAction, import("../../types/store/host").IHostState>;
|
20
|
+
network: import("redux").Reducer<import("./network/types").NetworkState, import("./network/types").NetworkAction, import("./network/types").NetworkState>;
|
21
|
+
tenants: import("redux").Reducer<import("./tenants/types").TenantsState, import("./tenants/types").TenantsAction, import("./tenants/types").TenantsState>;
|
22
|
+
tablet: import("redux").Reducer<import("../../types/store/tablet").ITabletState, import("../../types/store/tablet").ITabletAction, import("../../types/store/tablet").ITabletState>;
|
23
|
+
topic: import("redux").Reducer<import("../../types/store/topic").ITopicState, import("../../types/store/topic").ITopicAction, import("../../types/store/topic").ITopicState>;
|
24
|
+
partitions: import("redux").Reducer<import("./partitions/types").PartitionsState, import("./partitions/types").PartitionsAction, import("./partitions/types").PartitionsState>;
|
25
|
+
pDisk: import("redux").Reducer<import("./pdisk/types").PDiskState, import("./pdisk/types").PDiskAction, import("./pdisk/types").PDiskState>;
|
26
|
+
executeQuery: import("redux").Reducer<import("../../types/store/executeQuery").ExecuteQueryState, import("../../types/store/executeQuery").ExecuteQueryAction, import("../../types/store/executeQuery").ExecuteQueryState>;
|
27
|
+
explainQuery: import("redux").Reducer<import("../../types/store/explainQuery").ExplainQueryState, import("../../types/store/explainQuery").ExplainQueryAction, import("../../types/store/explainQuery").ExplainQueryState>;
|
27
28
|
tabletsFilters: (state: {
|
28
29
|
data: undefined;
|
29
30
|
loading: boolean;
|
@@ -67,8 +68,8 @@ export declare const rootReducer: {
|
|
67
68
|
wasLoaded: boolean;
|
68
69
|
stateFilter: never[];
|
69
70
|
};
|
70
|
-
heatmap: import("redux").Reducer<import("../../types/store/heatmap").IHeatmapState, import("../../types/store/heatmap").IHeatmapAction>;
|
71
|
-
settings: import("redux").Reducer<import("./settings/types").SettingsState, import("./settings/types").SettingsAction>;
|
71
|
+
heatmap: import("redux").Reducer<import("../../types/store/heatmap").IHeatmapState, import("../../types/store/heatmap").IHeatmapAction, import("../../types/store/heatmap").IHeatmapState>;
|
72
|
+
settings: import("redux").Reducer<import("./settings/types").SettingsState, import("./settings/types").SettingsAction, import("./settings/types").SettingsState>;
|
72
73
|
preview: (state: {
|
73
74
|
loading: boolean;
|
74
75
|
wasLoaded: boolean;
|
@@ -80,36 +81,36 @@ export declare const rootReducer: {
|
|
80
81
|
readonly type: "preview/SET_QUERY_OPTIONS";
|
81
82
|
readonly data: any;
|
82
83
|
}) => any;
|
83
|
-
nodesList: import("redux").Reducer<import("../../types/store/nodesList").NodesListState, import("../../types/store/nodesList").NodesListAction>;
|
84
|
-
describe: import("redux").Reducer<import("../../types/store/describe").IDescribeState, import("../../types/store/describe").IDescribeAction>;
|
85
|
-
schemaAcl: import("redux").Reducer<import("./schemaAcl/types").SchemaAclState, import("./schemaAcl/types").SchemaAclAction>;
|
86
|
-
executeTopQueries: import("redux").Reducer<import("./executeTopQueries/types").ITopQueriesState, import("./executeTopQueries/types").ITopQueriesAction>;
|
87
|
-
executeTopTables: import("redux").Reducer<import("./tenantOverview/executeTopTables/types").TopTablesState, import("./tenantOverview/executeTopTables/types").TopTablesAction>;
|
88
|
-
tenantOverviewTopQueries: import("redux").Reducer<import("./tenantOverview/topQueries/types").TenantOverviewTopQueriesState, import("./tenantOverview/topQueries/types").TenantOverviewTopQueriesAction>;
|
89
|
-
healthcheckInfo: import("redux").Reducer<import("
|
90
|
-
shardsWorkload: import("redux").Reducer<import("./shardsWorkload/types").IShardsWorkloadState, import("./shardsWorkload/types").IShardsWorkloadAction>;
|
91
|
-
tenantOverviewTopShards: import("redux").Reducer<import("./tenantOverview/topShards/types").TenantOverviewTopShardsState, import("./tenantOverview/topShards/types").TenantOverviewTopShardsAction>;
|
92
|
-
hotKeys: import("redux").Reducer<import("./hotKeys/types").HotKeysState, import("./hotKeys/types").HotKeysAction>;
|
93
|
-
authentication: import("redux").Reducer<import("./authentication/types").AuthenticationState, import("./authentication/types").AuthenticationAction>;
|
84
|
+
nodesList: import("redux").Reducer<import("../../types/store/nodesList").NodesListState, import("../../types/store/nodesList").NodesListAction, import("../../types/store/nodesList").NodesListState>;
|
85
|
+
describe: import("redux").Reducer<import("../../types/store/describe").IDescribeState, import("../../types/store/describe").IDescribeAction, import("../../types/store/describe").IDescribeState>;
|
86
|
+
schemaAcl: import("redux").Reducer<import("./schemaAcl/types").SchemaAclState, import("./schemaAcl/types").SchemaAclAction, import("./schemaAcl/types").SchemaAclState>;
|
87
|
+
executeTopQueries: import("redux").Reducer<import("./executeTopQueries/types").ITopQueriesState, import("./executeTopQueries/types").ITopQueriesAction, import("./executeTopQueries/types").ITopQueriesState>;
|
88
|
+
executeTopTables: import("redux").Reducer<import("./tenantOverview/executeTopTables/types").TopTablesState, import("./tenantOverview/executeTopTables/types").TopTablesAction, import("./tenantOverview/executeTopTables/types").TopTablesState>;
|
89
|
+
tenantOverviewTopQueries: import("redux").Reducer<import("./tenantOverview/topQueries/types").TenantOverviewTopQueriesState, import("./tenantOverview/topQueries/types").TenantOverviewTopQueriesAction, import("./tenantOverview/topQueries/types").TenantOverviewTopQueriesState>;
|
90
|
+
healthcheckInfo: import("redux").Reducer<import("./healthcheckInfo/types").HealthcheckInfoState, import("./healthcheckInfo/types").HealthCheckInfoAction, import("./healthcheckInfo/types").HealthcheckInfoState>;
|
91
|
+
shardsWorkload: import("redux").Reducer<import("./shardsWorkload/types").IShardsWorkloadState, import("./shardsWorkload/types").IShardsWorkloadAction, import("./shardsWorkload/types").IShardsWorkloadState>;
|
92
|
+
tenantOverviewTopShards: import("redux").Reducer<import("./tenantOverview/topShards/types").TenantOverviewTopShardsState, import("./tenantOverview/topShards/types").TenantOverviewTopShardsAction, import("./tenantOverview/topShards/types").TenantOverviewTopShardsState>;
|
93
|
+
hotKeys: import("redux").Reducer<import("./hotKeys/types").HotKeysState, import("./hotKeys/types").HotKeysAction, import("./hotKeys/types").HotKeysState>;
|
94
|
+
authentication: import("redux").Reducer<import("./authentication/types").AuthenticationState, import("./authentication/types").AuthenticationAction, import("./authentication/types").AuthenticationState>;
|
94
95
|
header: import("redux").Reducer<import("./header/types").HeaderState, {
|
95
96
|
readonly type: "header/SET_HEADER_BREADCRUMBS";
|
96
97
|
readonly page: import("./header/types").Page;
|
97
98
|
readonly options: {} | import("./header/types").TabletsBreadcrumbsOptions | import("./header/types").TenantBreadcrumbsOptions | import("./header/types").ClusterBreadcrumbsOptions | import("./header/types").NodeBreadcrumbsOptions | import("./header/types").TabletBreadcrumbsOptions;
|
98
|
-
}>;
|
99
|
+
}, import("./header/types").HeaderState>;
|
99
100
|
saveQuery: import("redux").Reducer<string | null, {
|
100
101
|
readonly type: "SET_QUERY_NAME_TO_EDIT";
|
101
102
|
readonly data: string;
|
102
103
|
} | {
|
103
104
|
readonly type: "CLEAR_QUERY_NAME_TO_EDIT";
|
104
|
-
}>;
|
105
|
+
}, string | null>;
|
105
106
|
fullscreen: (state: boolean | undefined, action: {
|
106
107
|
readonly type: "ENABLE_FULLSCREEN_MODE";
|
107
108
|
} | {
|
108
109
|
readonly type: "DISABLE_FULLSCREEN_MODE";
|
109
110
|
}) => boolean;
|
110
|
-
clusters: import("redux").Reducer<import("./clusters/types").ClustersState, import("./clusters/types").ClustersAction>;
|
111
|
+
clusters: import("redux").Reducer<import("./clusters/types").ClustersState, import("./clusters/types").ClustersAction, import("./clusters/types").ClustersState>;
|
111
112
|
};
|
112
|
-
declare const combinedReducer: import("redux").Reducer<
|
113
|
+
declare const combinedReducer: import("redux").Reducer<{
|
113
114
|
singleClusterMode: boolean;
|
114
115
|
nodes: import("./nodes/types").NodesState;
|
115
116
|
topNodesByLoad: import("./tenantOverview/topNodesByLoad/types").TopNodesByLoadState;
|
@@ -132,6 +133,7 @@ declare const combinedReducer: import("redux").Reducer<import("redux").CombinedS
|
|
132
133
|
tablet: import("../../types/store/tablet").ITabletState;
|
133
134
|
topic: import("../../types/store/topic").ITopicState;
|
134
135
|
partitions: import("./partitions/types").PartitionsState;
|
136
|
+
pDisk: import("./pdisk/types").PDiskState;
|
135
137
|
executeQuery: import("../../types/store/executeQuery").ExecuteQueryState;
|
136
138
|
explainQuery: import("../../types/store/explainQuery").ExplainQueryState;
|
137
139
|
tabletsFilters: {
|
@@ -180,7 +182,7 @@ declare const combinedReducer: import("redux").Reducer<import("redux").CombinedS
|
|
180
182
|
executeTopQueries: import("./executeTopQueries/types").ITopQueriesState;
|
181
183
|
executeTopTables: import("./tenantOverview/executeTopTables/types").TopTablesState;
|
182
184
|
tenantOverviewTopQueries: import("./tenantOverview/topQueries/types").TenantOverviewTopQueriesState;
|
183
|
-
healthcheckInfo: import("
|
185
|
+
healthcheckInfo: import("./healthcheckInfo/types").HealthcheckInfoState;
|
184
186
|
shardsWorkload: import("./shardsWorkload/types").IShardsWorkloadState;
|
185
187
|
tenantOverviewTopShards: import("./tenantOverview/topShards/types").TenantOverviewTopShardsState;
|
186
188
|
hotKeys: import("./hotKeys/types").HotKeysState;
|
@@ -189,8 +191,56 @@ declare const combinedReducer: import("redux").Reducer<import("redux").CombinedS
|
|
189
191
|
saveQuery: string | null;
|
190
192
|
fullscreen: boolean;
|
191
193
|
clusters: import("./clusters/types").ClustersState;
|
192
|
-
}
|
193
|
-
|
194
|
-
|
195
|
-
|
194
|
+
}, any, Partial<{
|
195
|
+
singleClusterMode: boolean | undefined;
|
196
|
+
nodes: never;
|
197
|
+
topNodesByLoad: never;
|
198
|
+
topNodesByCpu: never;
|
199
|
+
topNodesByMemory: never;
|
200
|
+
cluster: never;
|
201
|
+
clusterNodes: never;
|
202
|
+
tenant: never;
|
203
|
+
storage: never;
|
204
|
+
topStorageGroups: never;
|
205
|
+
node: never;
|
206
|
+
tooltip: never;
|
207
|
+
tablets: never;
|
208
|
+
schema: never;
|
209
|
+
overview: never;
|
210
|
+
olapStats: never;
|
211
|
+
host: never;
|
212
|
+
network: never;
|
213
|
+
tenants: never;
|
214
|
+
tablet: never;
|
215
|
+
topic: never;
|
216
|
+
partitions: never;
|
217
|
+
pDisk: never;
|
218
|
+
executeQuery: never;
|
219
|
+
explainQuery: never;
|
220
|
+
tabletsFilters: {
|
221
|
+
data: undefined;
|
222
|
+
loading: boolean;
|
223
|
+
wasLoaded: boolean;
|
224
|
+
stateFilter: never[];
|
225
|
+
typeFilter: never[];
|
226
|
+
} | undefined;
|
227
|
+
heatmap: never;
|
228
|
+
settings: never;
|
229
|
+
preview: never;
|
230
|
+
nodesList: never;
|
231
|
+
describe: never;
|
232
|
+
schemaAcl: never;
|
233
|
+
executeTopQueries: never;
|
234
|
+
executeTopTables: never;
|
235
|
+
tenantOverviewTopQueries: never;
|
236
|
+
healthcheckInfo: never;
|
237
|
+
shardsWorkload: never;
|
238
|
+
tenantOverviewTopShards: never;
|
239
|
+
hotKeys: never;
|
240
|
+
authentication: never;
|
241
|
+
header: never;
|
242
|
+
saveQuery: never;
|
243
|
+
fullscreen: never;
|
244
|
+
clusters: never;
|
245
|
+
}>>;
|
196
246
|
export default combinedReducer;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { combineReducers } from '
|
1
|
+
import { combineReducers } from '@reduxjs/toolkit';
|
2
2
|
import nodes from './nodes/nodes';
|
3
3
|
import { topNodesByLoad } from './tenantOverview/topNodesByLoad/topNodesByLoad';
|
4
4
|
import { topNodesByCpu } from './tenantOverview/topNodesByCpu/topNodesByCpu';
|
@@ -20,6 +20,7 @@ import tenants from './tenants/tenants';
|
|
20
20
|
import tablet from './tablet';
|
21
21
|
import topic from './topic';
|
22
22
|
import partitions from './partitions/partitions';
|
23
|
+
import pDisk from './pdisk/pdisk';
|
23
24
|
import executeQuery from './executeQuery';
|
24
25
|
import explainQuery from './explainQuery';
|
25
26
|
import tabletsFilters from './tabletsFilters';
|
@@ -31,7 +32,7 @@ import schemaAcl from './schemaAcl/schemaAcl';
|
|
31
32
|
import executeTopQueries from './executeTopQueries/executeTopQueries';
|
32
33
|
import { tenantOverviewTopQueries } from './tenantOverview/topQueries/tenantOverviewTopQueries';
|
33
34
|
import executeTopTables from './tenantOverview/executeTopTables/executeTopTables';
|
34
|
-
import healthcheckInfo from './healthcheckInfo';
|
35
|
+
import healthcheckInfo from './healthcheckInfo/healthcheckInfo';
|
35
36
|
import shardsWorkload from './shardsWorkload/shardsWorkload';
|
36
37
|
import { tenantOverviewTopShards } from './tenantOverview/topShards/tenantOverviewTopShards';
|
37
38
|
import hotKeys from './hotKeys/hotKeys';
|
@@ -65,6 +66,7 @@ export const rootReducer = {
|
|
65
66
|
tablet,
|
66
67
|
topic,
|
67
68
|
partitions,
|
69
|
+
pDisk,
|
68
70
|
executeQuery,
|
69
71
|
explainQuery,
|
70
72
|
tabletsFilters,
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { Reducer } from '
|
1
|
+
import type { Reducer } from '@reduxjs/toolkit';
|
2
2
|
import type { NetworkAction, NetworkState } from './types';
|
3
3
|
export declare const FETCH_ALL_NODES_NETWORK: {
|
4
4
|
readonly REQUEST: "network/FETCH_ALL_NODES_NETWORK_REQUEST";
|
@@ -9,5 +9,86 @@ declare const network: Reducer<NetworkState, NetworkAction>;
|
|
9
9
|
export declare const setDataWasNotLoaded: () => {
|
10
10
|
readonly type: "network/SET_DATA_WAS_NOT_LOADED";
|
11
11
|
};
|
12
|
-
export declare const getNetworkInfo: (tenant: string) => (dispatch: import("redux").Dispatch<import("redux").
|
12
|
+
export declare const getNetworkInfo: (tenant: string) => (dispatch: import("redux").Dispatch<import("redux").UnknownAction>, getState: () => {
|
13
|
+
singleClusterMode: boolean;
|
14
|
+
nodes: import("../nodes/types").NodesState;
|
15
|
+
topNodesByLoad: import("../tenantOverview/topNodesByLoad/types").TopNodesByLoadState;
|
16
|
+
topNodesByCpu: import("../tenantOverview/topNodesByCpu/types").TopNodesByCpuState;
|
17
|
+
topNodesByMemory: import("../tenantOverview/topNodesByMemory/types").TopNodesByMemoryState;
|
18
|
+
cluster: import("../cluster/types").ClusterState;
|
19
|
+
clusterNodes: import("../clusterNodes/types").ClusterNodesState;
|
20
|
+
tenant: import("../tenant/types").TenantState;
|
21
|
+
storage: import("../storage/types").StorageState;
|
22
|
+
topStorageGroups: import("../tenantOverview/topStorageGroups/types").TopStorageGroupsState;
|
23
|
+
node: import("../node/types").NodeState;
|
24
|
+
tooltip: import("../../../types/store/tooltip").ITooltipState;
|
25
|
+
tablets: import("../../../types/store/tablets").ITabletsState;
|
26
|
+
schema: import("../schema/types").SchemaState;
|
27
|
+
overview: import("../overview/types").OverviewState;
|
28
|
+
olapStats: import("../../../types/store/olapStats").OlapStatsState;
|
29
|
+
host: import("../../../types/store/host").IHostState;
|
30
|
+
network: NetworkState;
|
31
|
+
tenants: import("../tenants/types").TenantsState;
|
32
|
+
tablet: import("../../../types/store/tablet").ITabletState;
|
33
|
+
topic: import("../../../types/store/topic").ITopicState;
|
34
|
+
partitions: import("../partitions/types").PartitionsState;
|
35
|
+
pDisk: import("../pdisk/types").PDiskState;
|
36
|
+
executeQuery: import("../../../types/store/executeQuery").ExecuteQueryState;
|
37
|
+
explainQuery: import("../../../types/store/explainQuery").ExplainQueryState;
|
38
|
+
tabletsFilters: {
|
39
|
+
loading: boolean;
|
40
|
+
requestTime: number;
|
41
|
+
data: undefined;
|
42
|
+
wasLoaded: boolean;
|
43
|
+
stateFilter: never[];
|
44
|
+
typeFilter: never[];
|
45
|
+
} | {
|
46
|
+
tabletsData: any;
|
47
|
+
nodes: any;
|
48
|
+
loading: boolean;
|
49
|
+
wasLoaded: boolean;
|
50
|
+
timeoutForRequest: number;
|
51
|
+
error: undefined;
|
52
|
+
data: undefined;
|
53
|
+
stateFilter: never[];
|
54
|
+
typeFilter: never[];
|
55
|
+
} | {
|
56
|
+
error: any;
|
57
|
+
loading: boolean;
|
58
|
+
data: undefined;
|
59
|
+
wasLoaded: boolean;
|
60
|
+
stateFilter: never[];
|
61
|
+
typeFilter: never[];
|
62
|
+
} | {
|
63
|
+
stateFilter: any;
|
64
|
+
data: undefined;
|
65
|
+
loading: boolean;
|
66
|
+
wasLoaded: boolean;
|
67
|
+
typeFilter: never[];
|
68
|
+
} | {
|
69
|
+
typeFilter: any;
|
70
|
+
data: undefined;
|
71
|
+
loading: boolean;
|
72
|
+
wasLoaded: boolean;
|
73
|
+
stateFilter: never[];
|
74
|
+
};
|
75
|
+
heatmap: import("../../../types/store/heatmap").IHeatmapState;
|
76
|
+
settings: import("../settings/types").SettingsState;
|
77
|
+
preview: any;
|
78
|
+
nodesList: import("../../../types/store/nodesList").NodesListState;
|
79
|
+
describe: import("../../../types/store/describe").IDescribeState;
|
80
|
+
schemaAcl: import("../schemaAcl/types").SchemaAclState;
|
81
|
+
executeTopQueries: import("../executeTopQueries/types").ITopQueriesState;
|
82
|
+
executeTopTables: import("../tenantOverview/executeTopTables/types").TopTablesState;
|
83
|
+
tenantOverviewTopQueries: import("../tenantOverview/topQueries/types").TenantOverviewTopQueriesState;
|
84
|
+
healthcheckInfo: import("../healthcheckInfo/types").HealthcheckInfoState;
|
85
|
+
shardsWorkload: import("../shardsWorkload/types").IShardsWorkloadState;
|
86
|
+
tenantOverviewTopShards: import("../tenantOverview/topShards/types").TenantOverviewTopShardsState;
|
87
|
+
hotKeys: import("../hotKeys/types").HotKeysState;
|
88
|
+
authentication: import("../authentication/types").AuthenticationState;
|
89
|
+
header: import("../header/types").HeaderState;
|
90
|
+
saveQuery: string | null;
|
91
|
+
fullscreen: boolean;
|
92
|
+
clusters: import("../clusters/types").ClustersState;
|
93
|
+
}) => Promise<unknown>;
|
13
94
|
export default network;
|
@@ -8,4 +8,4 @@ export interface NetworkState {
|
|
8
8
|
data?: TNetInfo;
|
9
9
|
error?: IResponseError;
|
10
10
|
}
|
11
|
-
export
|
11
|
+
export type NetworkAction = ApiRequestAction<typeof FETCH_ALL_NODES_NETWORK, TNetInfo, IResponseError> | ReturnType<typeof setDataWasNotLoaded>;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { Reducer } from '
|
1
|
+
import type { Reducer } from '@reduxjs/toolkit';
|
2
2
|
import type { NodeAction, NodeState } from './types';
|
3
3
|
export declare const FETCH_NODE: {
|
4
4
|
readonly REQUEST: "node/FETCH_NODE_REQUEST";
|
@@ -11,8 +11,170 @@ export declare const FETCH_NODE_STRUCTURE: {
|
|
11
11
|
readonly FAILURE: "node/FETCH_NODE_STRUCTURE_FAILURE";
|
12
12
|
};
|
13
13
|
declare const node: Reducer<NodeState, NodeAction>;
|
14
|
-
export declare const getNodeInfo: (id: string) => (dispatch: import("redux").Dispatch<import("redux").
|
15
|
-
|
14
|
+
export declare const getNodeInfo: (id: string) => (dispatch: import("redux").Dispatch<import("redux").UnknownAction>, getState: () => {
|
15
|
+
singleClusterMode: boolean;
|
16
|
+
nodes: import("../nodes/types").NodesState;
|
17
|
+
topNodesByLoad: import("../tenantOverview/topNodesByLoad/types").TopNodesByLoadState;
|
18
|
+
topNodesByCpu: import("../tenantOverview/topNodesByCpu/types").TopNodesByCpuState;
|
19
|
+
topNodesByMemory: import("../tenantOverview/topNodesByMemory/types").TopNodesByMemoryState;
|
20
|
+
cluster: import("../cluster/types").ClusterState;
|
21
|
+
clusterNodes: import("../clusterNodes/types").ClusterNodesState;
|
22
|
+
tenant: import("../tenant/types").TenantState;
|
23
|
+
storage: import("../storage/types").StorageState;
|
24
|
+
topStorageGroups: import("../tenantOverview/topStorageGroups/types").TopStorageGroupsState;
|
25
|
+
node: NodeState;
|
26
|
+
tooltip: import("../../../types/store/tooltip").ITooltipState;
|
27
|
+
tablets: import("../../../types/store/tablets").ITabletsState;
|
28
|
+
schema: import("../schema/types").SchemaState;
|
29
|
+
overview: import("../overview/types").OverviewState;
|
30
|
+
olapStats: import("../../../types/store/olapStats").OlapStatsState;
|
31
|
+
host: import("../../../types/store/host").IHostState;
|
32
|
+
network: import("../network/types").NetworkState;
|
33
|
+
tenants: import("../tenants/types").TenantsState;
|
34
|
+
tablet: import("../../../types/store/tablet").ITabletState;
|
35
|
+
topic: import("../../../types/store/topic").ITopicState;
|
36
|
+
partitions: import("../partitions/types").PartitionsState;
|
37
|
+
pDisk: import("../pdisk/types").PDiskState;
|
38
|
+
executeQuery: import("../../../types/store/executeQuery").ExecuteQueryState;
|
39
|
+
explainQuery: import("../../../types/store/explainQuery").ExplainQueryState;
|
40
|
+
tabletsFilters: {
|
41
|
+
loading: boolean;
|
42
|
+
requestTime: number;
|
43
|
+
data: undefined;
|
44
|
+
wasLoaded: boolean;
|
45
|
+
stateFilter: never[];
|
46
|
+
typeFilter: never[];
|
47
|
+
} | {
|
48
|
+
tabletsData: any;
|
49
|
+
nodes: any;
|
50
|
+
loading: boolean;
|
51
|
+
wasLoaded: boolean;
|
52
|
+
timeoutForRequest: number;
|
53
|
+
error: undefined;
|
54
|
+
data: undefined;
|
55
|
+
stateFilter: never[];
|
56
|
+
typeFilter: never[];
|
57
|
+
} | {
|
58
|
+
error: any;
|
59
|
+
loading: boolean;
|
60
|
+
data: undefined;
|
61
|
+
wasLoaded: boolean;
|
62
|
+
stateFilter: never[];
|
63
|
+
typeFilter: never[];
|
64
|
+
} | {
|
65
|
+
stateFilter: any;
|
66
|
+
data: undefined;
|
67
|
+
loading: boolean;
|
68
|
+
wasLoaded: boolean;
|
69
|
+
typeFilter: never[];
|
70
|
+
} | {
|
71
|
+
typeFilter: any;
|
72
|
+
data: undefined;
|
73
|
+
loading: boolean;
|
74
|
+
wasLoaded: boolean;
|
75
|
+
stateFilter: never[];
|
76
|
+
};
|
77
|
+
heatmap: import("../../../types/store/heatmap").IHeatmapState;
|
78
|
+
settings: import("../settings/types").SettingsState;
|
79
|
+
preview: any;
|
80
|
+
nodesList: import("../../../types/store/nodesList").NodesListState;
|
81
|
+
describe: import("../../../types/store/describe").IDescribeState;
|
82
|
+
schemaAcl: import("../schemaAcl/types").SchemaAclState;
|
83
|
+
executeTopQueries: import("../executeTopQueries/types").ITopQueriesState;
|
84
|
+
executeTopTables: import("../tenantOverview/executeTopTables/types").TopTablesState;
|
85
|
+
tenantOverviewTopQueries: import("../tenantOverview/topQueries/types").TenantOverviewTopQueriesState;
|
86
|
+
healthcheckInfo: import("../healthcheckInfo/types").HealthcheckInfoState;
|
87
|
+
shardsWorkload: import("../shardsWorkload/types").IShardsWorkloadState;
|
88
|
+
tenantOverviewTopShards: import("../tenantOverview/topShards/types").TenantOverviewTopShardsState;
|
89
|
+
hotKeys: import("../hotKeys/types").HotKeysState;
|
90
|
+
authentication: import("../authentication/types").AuthenticationState;
|
91
|
+
header: import("../header/types").HeaderState;
|
92
|
+
saveQuery: string | null;
|
93
|
+
fullscreen: boolean;
|
94
|
+
clusters: import("../clusters/types").ClustersState;
|
95
|
+
}) => Promise<import("./types").PreparedNode | undefined>;
|
96
|
+
export declare const getNodeStructure: (nodeId: string) => (dispatch: import("redux").Dispatch<import("redux").UnknownAction>, getState: () => {
|
97
|
+
singleClusterMode: boolean;
|
98
|
+
nodes: import("../nodes/types").NodesState;
|
99
|
+
topNodesByLoad: import("../tenantOverview/topNodesByLoad/types").TopNodesByLoadState;
|
100
|
+
topNodesByCpu: import("../tenantOverview/topNodesByCpu/types").TopNodesByCpuState;
|
101
|
+
topNodesByMemory: import("../tenantOverview/topNodesByMemory/types").TopNodesByMemoryState;
|
102
|
+
cluster: import("../cluster/types").ClusterState;
|
103
|
+
clusterNodes: import("../clusterNodes/types").ClusterNodesState;
|
104
|
+
tenant: import("../tenant/types").TenantState;
|
105
|
+
storage: import("../storage/types").StorageState;
|
106
|
+
topStorageGroups: import("../tenantOverview/topStorageGroups/types").TopStorageGroupsState;
|
107
|
+
node: NodeState;
|
108
|
+
tooltip: import("../../../types/store/tooltip").ITooltipState;
|
109
|
+
tablets: import("../../../types/store/tablets").ITabletsState;
|
110
|
+
schema: import("../schema/types").SchemaState;
|
111
|
+
overview: import("../overview/types").OverviewState;
|
112
|
+
olapStats: import("../../../types/store/olapStats").OlapStatsState;
|
113
|
+
host: import("../../../types/store/host").IHostState;
|
114
|
+
network: import("../network/types").NetworkState;
|
115
|
+
tenants: import("../tenants/types").TenantsState;
|
116
|
+
tablet: import("../../../types/store/tablet").ITabletState;
|
117
|
+
topic: import("../../../types/store/topic").ITopicState;
|
118
|
+
partitions: import("../partitions/types").PartitionsState;
|
119
|
+
pDisk: import("../pdisk/types").PDiskState;
|
120
|
+
executeQuery: import("../../../types/store/executeQuery").ExecuteQueryState;
|
121
|
+
explainQuery: import("../../../types/store/explainQuery").ExplainQueryState;
|
122
|
+
tabletsFilters: {
|
123
|
+
loading: boolean;
|
124
|
+
requestTime: number;
|
125
|
+
data: undefined;
|
126
|
+
wasLoaded: boolean;
|
127
|
+
stateFilter: never[];
|
128
|
+
typeFilter: never[];
|
129
|
+
} | {
|
130
|
+
tabletsData: any;
|
131
|
+
nodes: any;
|
132
|
+
loading: boolean;
|
133
|
+
wasLoaded: boolean;
|
134
|
+
timeoutForRequest: number;
|
135
|
+
error: undefined;
|
136
|
+
data: undefined;
|
137
|
+
stateFilter: never[];
|
138
|
+
typeFilter: never[];
|
139
|
+
} | {
|
140
|
+
error: any;
|
141
|
+
loading: boolean;
|
142
|
+
data: undefined;
|
143
|
+
wasLoaded: boolean;
|
144
|
+
stateFilter: never[];
|
145
|
+
typeFilter: never[];
|
146
|
+
} | {
|
147
|
+
stateFilter: any;
|
148
|
+
data: undefined;
|
149
|
+
loading: boolean;
|
150
|
+
wasLoaded: boolean;
|
151
|
+
typeFilter: never[];
|
152
|
+
} | {
|
153
|
+
typeFilter: any;
|
154
|
+
data: undefined;
|
155
|
+
loading: boolean;
|
156
|
+
wasLoaded: boolean;
|
157
|
+
stateFilter: never[];
|
158
|
+
};
|
159
|
+
heatmap: import("../../../types/store/heatmap").IHeatmapState;
|
160
|
+
settings: import("../settings/types").SettingsState;
|
161
|
+
preview: any;
|
162
|
+
nodesList: import("../../../types/store/nodesList").NodesListState;
|
163
|
+
describe: import("../../../types/store/describe").IDescribeState;
|
164
|
+
schemaAcl: import("../schemaAcl/types").SchemaAclState;
|
165
|
+
executeTopQueries: import("../executeTopQueries/types").ITopQueriesState;
|
166
|
+
executeTopTables: import("../tenantOverview/executeTopTables/types").TopTablesState;
|
167
|
+
tenantOverviewTopQueries: import("../tenantOverview/topQueries/types").TenantOverviewTopQueriesState;
|
168
|
+
healthcheckInfo: import("../healthcheckInfo/types").HealthcheckInfoState;
|
169
|
+
shardsWorkload: import("../shardsWorkload/types").IShardsWorkloadState;
|
170
|
+
tenantOverviewTopShards: import("../tenantOverview/topShards/types").TenantOverviewTopShardsState;
|
171
|
+
hotKeys: import("../hotKeys/types").HotKeysState;
|
172
|
+
authentication: import("../authentication/types").AuthenticationState;
|
173
|
+
header: import("../header/types").HeaderState;
|
174
|
+
saveQuery: string | null;
|
175
|
+
fullscreen: boolean;
|
176
|
+
clusters: import("../clusters/types").ClustersState;
|
177
|
+
}) => Promise<unknown>;
|
16
178
|
export declare function resetNode(): {
|
17
179
|
readonly type: "node/RESET_NODE";
|
18
180
|
};
|
@@ -1,5 +1,6 @@
|
|
1
|
-
import { createSelector } from '
|
1
|
+
import { createSelector } from '@reduxjs/toolkit';
|
2
2
|
import { stringifyVdiskId } from '../../../utils/dataFormatters/dataFormatters';
|
3
|
+
import { preparePDiskData } from '../../../utils/disks/prepareDisks';
|
3
4
|
const selectNodeId = (state) => { var _a, _b; return (_b = (_a = state.node) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.NodeId; };
|
4
5
|
const selectRawNodeStructure = (state) => { var _a; return (_a = state.node) === null || _a === void 0 ? void 0 : _a.nodeStructure; };
|
5
6
|
export const selectNodeStructure = createSelector([selectNodeId, selectRawNodeStructure], (nodeId, storageInfo) => {
|
@@ -11,11 +12,11 @@ export const selectNodeStructure = createSelector([selectNodeId, selectRawNodeSt
|
|
11
12
|
var _a;
|
12
13
|
const vDisks = (_a = group.VDisks) === null || _a === void 0 ? void 0 : _a.filter((el) => el.NodeId === nodeId);
|
13
14
|
vDisks === null || vDisks === void 0 ? void 0 : vDisks.forEach((vd) => {
|
14
|
-
var _a;
|
15
15
|
const vDiskId = stringifyVdiskId(vd.VDiskId);
|
16
|
-
const
|
16
|
+
const preparedPDisk = preparePDiskData(vd.PDisk);
|
17
|
+
const pDiskId = preparedPDisk.PDiskId;
|
17
18
|
if (!structure[String(pDiskId)]) {
|
18
|
-
structure[String(pDiskId)] = Object.assign({ vDisks: {} },
|
19
|
+
structure[String(pDiskId)] = Object.assign({ vDisks: {} }, preparedPDisk);
|
19
20
|
}
|
20
21
|
structure[String(pDiskId)].vDisks[vDiskId] = Object.assign(Object.assign({}, vd), {
|
21
22
|
// VDisk doesn't have its own StoragePoolName when located inside StoragePool data
|
@@ -1,22 +1,22 @@
|
|
1
1
|
import type { IResponseError } from '../../../types/api/error';
|
2
|
-
import type { TPDiskStateInfo } from '../../../types/api/pdisk';
|
3
2
|
import type { TStorageInfo } from '../../../types/api/storage';
|
4
3
|
import type { TVDiskStateInfo } from '../../../types/api/vdisk';
|
4
|
+
import type { PreparedPDisk } from '../../../utils/disks/types';
|
5
5
|
import type { PreparedNodeSystemState } from '../../../utils/nodes';
|
6
6
|
import type { ApiRequestAction } from '../../utils';
|
7
7
|
import { FETCH_NODE, FETCH_NODE_STRUCTURE, resetNode } from './node';
|
8
|
-
interface RawStructurePDisk extends
|
8
|
+
interface RawStructurePDisk extends PreparedPDisk {
|
9
9
|
vDisks: Record<string, TVDiskStateInfo>;
|
10
10
|
}
|
11
|
-
export
|
11
|
+
export type RawNodeStructure = Record<string, RawStructurePDisk>;
|
12
12
|
export interface PreparedStructureVDisk extends TVDiskStateInfo {
|
13
13
|
id: string;
|
14
14
|
order: number;
|
15
15
|
}
|
16
|
-
export interface PreparedStructurePDisk extends
|
16
|
+
export interface PreparedStructurePDisk extends PreparedPDisk {
|
17
17
|
vDisks: PreparedStructureVDisk[];
|
18
18
|
}
|
19
|
-
export
|
19
|
+
export type PreparedNodeStructure = Record<string, PreparedStructurePDisk>;
|
20
20
|
export interface PreparedNode extends Partial<PreparedNodeSystemState> {
|
21
21
|
}
|
22
22
|
export interface NodeState {
|
@@ -29,7 +29,7 @@ export interface NodeState {
|
|
29
29
|
wasLoadedStructure: boolean;
|
30
30
|
errorStructure?: IResponseError;
|
31
31
|
}
|
32
|
-
export
|
32
|
+
export type NodeAction = ApiRequestAction<typeof FETCH_NODE, PreparedNode, IResponseError> | ApiRequestAction<typeof FETCH_NODE_STRUCTURE, TStorageInfo, IResponseError> | ReturnType<typeof resetNode>;
|
33
33
|
export interface NodeStateSlice {
|
34
34
|
node: NodeState;
|
35
35
|
}
|