ydb-embedded-ui 22.0.0 → 22.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/DiskStateProgressBar/AllModeCapacityAlertIndicator.d.ts +2 -1
- package/dist/components/DiskStateProgressBar/AllModeCapacityAlertIndicator.js +5 -2
- package/dist/components/DiskStateProgressBar/AllModeCapacityAlertIndicator.js.map +1 -1
- package/dist/components/DiskStateProgressBar/AllModeIndicators.d.ts +2 -1
- package/dist/components/DiskStateProgressBar/AllModeIndicators.js +7 -2
- package/dist/components/DiskStateProgressBar/AllModeIndicators.js.map +1 -1
- package/dist/components/DiskStateProgressBar/DiskIndicator.d.ts +7 -2
- package/dist/components/DiskStateProgressBar/DiskIndicator.js +10 -6
- package/dist/components/DiskStateProgressBar/DiskIndicator.js.map +1 -1
- package/dist/components/DiskStateProgressBar/DiskStateProgressBar.js +1 -1
- package/dist/components/DiskStateProgressBar/DiskStateProgressBar.js.map +1 -1
- package/dist/components/DiskStateProgressBar/DiskStateProgressBar.scss +96 -46
- package/dist/components/DiskStateProgressBar/PDiskAllModeIndicators.js +9 -1
- package/dist/components/DiskStateProgressBar/PDiskAllModeIndicators.js.map +1 -1
- package/dist/components/EvictVDiskButton/EvictVDiskButton.js +7 -3
- package/dist/components/EvictVDiskButton/EvictVDiskButton.js.map +1 -1
- package/dist/components/FullNodeViewer/FullNodeViewer.js +40 -17
- package/dist/components/FullNodeViewer/FullNodeViewer.js.map +1 -1
- package/dist/components/FullNodeViewer/FullNodeViewer.scss +3 -3
- package/dist/components/FullNodeViewer/i18n/en.json +2 -1
- package/dist/components/FullNodeViewer/i18n/index.d.ts +1 -1
- package/dist/components/HoverPopup/HoverPopup.js +9 -2
- package/dist/components/HoverPopup/HoverPopup.js.map +1 -1
- package/dist/components/InfoViewer/InfoViewer.js +1 -1
- package/dist/components/InfoViewer/InfoViewer.js.map +1 -1
- package/dist/components/InfoViewer/formatters/pqGroup.js +6 -1
- package/dist/components/InfoViewer/formatters/pqGroup.js.map +1 -1
- package/dist/components/InfoViewer/schemaInfo/i18n/en.json +1 -0
- package/dist/components/InfoViewer/schemaInfo/i18n/index.d.ts +1 -1
- package/dist/components/InfoViewer/schemaInfo/utils.js +6 -1
- package/dist/components/InfoViewer/schemaInfo/utils.js.map +1 -1
- package/dist/components/NodeHostWrapper/NodeHostWrapper.d.ts +4 -1
- package/dist/components/NodeHostWrapper/NodeHostWrapper.js +13 -9
- package/dist/components/NodeHostWrapper/NodeHostWrapper.js.map +1 -1
- package/dist/components/PDiskInfo/PDiskInfo.js +2 -1
- package/dist/components/PDiskInfo/PDiskInfo.js.map +1 -1
- package/dist/components/PDiskInfo/i18n/index.d.ts +1 -1
- package/dist/components/PDiskPopup/PDiskPopup.js +5 -1
- package/dist/components/PDiskPopup/PDiskPopup.js.map +1 -1
- package/dist/components/PaginatedTable/KeyboardNavigation.d.ts +9 -0
- package/dist/components/PaginatedTable/KeyboardNavigation.js +14 -0
- package/dist/components/PaginatedTable/KeyboardNavigation.js.map +1 -0
- package/dist/components/PaginatedTable/PaginatedTable.d.ts +4 -1
- package/dist/components/PaginatedTable/PaginatedTable.js +103 -18
- package/dist/components/PaginatedTable/PaginatedTable.js.map +1 -1
- package/dist/components/PaginatedTable/PaginatedTable.scss +10 -0
- package/dist/components/PaginatedTable/PaginatedTableContext.d.ts +2 -3
- package/dist/components/PaginatedTable/PaginatedTableContext.js +10 -11
- package/dist/components/PaginatedTable/PaginatedTableContext.js.map +1 -1
- package/dist/components/PaginatedTable/PaginatedTableWithLayout.d.ts +2 -1
- package/dist/components/PaginatedTable/PaginatedTableWithLayout.js +2 -2
- package/dist/components/PaginatedTable/PaginatedTableWithLayout.js.map +1 -1
- package/dist/components/PaginatedTable/ResizeablePaginatedTable.js +2 -1
- package/dist/components/PaginatedTable/ResizeablePaginatedTable.js.map +1 -1
- package/dist/components/PaginatedTable/TableChunk.d.ts +1 -1
- package/dist/components/PaginatedTable/TableChunk.js +8 -11
- package/dist/components/PaginatedTable/TableChunk.js.map +1 -1
- package/dist/components/PaginatedTable/TableChunksRenderer.d.ts +3 -2
- package/dist/components/PaginatedTable/TableChunksRenderer.js +6 -1
- package/dist/components/PaginatedTable/TableChunksRenderer.js.map +1 -1
- package/dist/components/PaginatedTable/TableRow.d.ts +3 -1
- package/dist/components/PaginatedTable/TableRow.js +24 -8
- package/dist/components/PaginatedTable/TableRow.js.map +1 -1
- package/dist/components/PaginatedTable/getTableChunkQueryParams.d.ts +23 -0
- package/dist/components/PaginatedTable/getTableChunkQueryParams.js +12 -0
- package/dist/components/PaginatedTable/getTableChunkQueryParams.js.map +1 -0
- package/dist/components/PaginatedTable/rowLookup.d.ts +8 -0
- package/dist/components/PaginatedTable/rowLookup.js +35 -0
- package/dist/components/PaginatedTable/rowLookup.js.map +1 -0
- package/dist/components/PaginatedTable/tableCounts.d.ts +19 -0
- package/dist/components/PaginatedTable/tableCounts.js +30 -0
- package/dist/components/PaginatedTable/tableCounts.js.map +1 -0
- package/dist/components/PaginatedTable/useKeyboardNavigation.d.ts +27 -0
- package/dist/components/PaginatedTable/useKeyboardNavigation.js +70 -0
- package/dist/components/PaginatedTable/useKeyboardNavigation.js.map +1 -0
- package/dist/components/ResizeableDataTable/DataTableKeyboardNavigation.d.ts +24 -0
- package/dist/components/ResizeableDataTable/DataTableKeyboardNavigation.js +144 -0
- package/dist/components/ResizeableDataTable/DataTableKeyboardNavigation.js.map +1 -0
- package/dist/components/ResizeableDataTable/ResizeableDataTable.d.ts +4 -1
- package/dist/components/ResizeableDataTable/ResizeableDataTable.js +28 -4
- package/dist/components/ResizeableDataTable/ResizeableDataTable.js.map +1 -1
- package/dist/components/ResizeableDataTable/ResizeableDataTable.scss +10 -0
- package/dist/components/ResizeableDataTable/getDataTableOrder.d.ts +2 -0
- package/dist/components/ResizeableDataTable/getDataTableOrder.js +12 -0
- package/dist/components/ResizeableDataTable/getDataTableOrder.js.map +1 -0
- package/dist/components/Search/Search.d.ts +2 -1
- package/dist/components/Search/Search.js +6 -2
- package/dist/components/Search/Search.js.map +1 -1
- package/dist/components/ShardsTable/columns.js +6 -3
- package/dist/components/ShardsTable/columns.js.map +1 -1
- package/dist/components/ShardsTable/i18n/en.json +1 -0
- package/dist/components/ShardsTable/i18n/index.d.ts +1 -1
- package/dist/components/TableKeyboardNavigation/TableKeyboardNavigation.d.ts +54 -0
- package/dist/components/TableKeyboardNavigation/TableKeyboardNavigation.js +389 -0
- package/dist/components/TableKeyboardNavigation/TableKeyboardNavigation.js.map +1 -0
- package/dist/components/TableKeyboardNavigation/TableKeyboardNavigation.scss +16 -0
- package/dist/components/TableKeyboardNavigation/i18n/en.json +4 -0
- package/dist/components/TableKeyboardNavigation/i18n/index.d.ts +2 -0
- package/dist/components/TableKeyboardNavigation/i18n/index.js +4 -0
- package/dist/components/TableKeyboardNavigation/i18n/index.js.map +1 -0
- package/dist/components/TableKeyboardNavigation/utils.d.ts +3 -0
- package/dist/components/TableKeyboardNavigation/utils.js +24 -0
- package/dist/components/TableKeyboardNavigation/utils.js.map +1 -0
- package/dist/components/TableWithControlsLayout/TableWithControlsLayout.d.ts +4 -1
- package/dist/components/TableWithControlsLayout/TableWithControlsLayout.js +4 -2
- package/dist/components/TableWithControlsLayout/TableWithControlsLayout.js.map +1 -1
- package/dist/components/TenantNameWrapper/TenantNameWrapper.d.ts +3 -1
- package/dist/components/TenantNameWrapper/TenantNameWrapper.js +8 -12
- package/dist/components/TenantNameWrapper/TenantNameWrapper.js.map +1 -1
- package/dist/components/TenantNameWrapper/utils.d.ts +10 -0
- package/dist/components/TenantNameWrapper/utils.js +11 -0
- package/dist/components/TenantNameWrapper/utils.js.map +1 -1
- package/dist/components/UptimeViewer/UptimeViewer.d.ts +2 -2
- package/dist/components/VDisk/VDisk.d.ts +6 -1
- package/dist/components/VDisk/VDisk.js +97 -32
- package/dist/components/VDisk/VDisk.js.map +1 -1
- package/dist/components/VDisk/VDiskWithDonorsStack.d.ts +6 -2
- package/dist/components/VDisk/VDiskWithDonorsStack.js +9 -4
- package/dist/components/VDisk/VDiskWithDonorsStack.js.map +1 -1
- package/dist/components/VDisk/i18n/en.json +14 -1
- package/dist/components/VDisk/i18n/index.d.ts +1 -1
- package/dist/components/VDiskInfo/i18n/index.d.ts +1 -1
- package/dist/components/nodesColumns/columns.d.ts +4 -1
- package/dist/components/nodesColumns/columns.js +13 -0
- package/dist/components/nodesColumns/columns.js.map +1 -1
- package/dist/components/nodesColumns/constants.d.ts +2 -0
- package/dist/components/nodesColumns/constants.js +6 -0
- package/dist/components/nodesColumns/constants.js.map +1 -1
- package/dist/components/nodesColumns/i18n/en.json +2 -1
- package/dist/components/nodesColumns/i18n/index.d.ts +1 -1
- package/dist/containers/Clusters/Clusters.js +11 -7
- package/dist/containers/Clusters/Clusters.js.map +1 -1
- package/dist/containers/Node/NodeNetwork/NodeNetworkControls/NodeNetworkControls.js +1 -1
- package/dist/containers/Node/NodeNetwork/NodeNetworkControls/NodeNetworkControls.js.map +1 -1
- package/dist/containers/Node/NodeNetwork/NodeNetworkTable.js +11 -1
- package/dist/containers/Node/NodeNetwork/NodeNetworkTable.js.map +1 -1
- package/dist/containers/Node/Threads/ThreadStatesBar/ThreadStatesBar.d.ts +1 -1
- package/dist/containers/Nodes/NodesControls/NodesControls.js +1 -1
- package/dist/containers/Nodes/NodesControls/NodesControls.js.map +1 -1
- package/dist/containers/Nodes/NodesTable.js +12 -1
- package/dist/containers/Nodes/NodesTable.js.map +1 -1
- package/dist/containers/Nodes/PaginatedNodes/GroupedNodesComponent.js +1 -1
- package/dist/containers/Nodes/PaginatedNodes/GroupedNodesComponent.js.map +1 -1
- package/dist/containers/Nodes/columns/columns.js +2 -1
- package/dist/containers/Nodes/columns/columns.js.map +1 -1
- package/dist/containers/Storage/Disks/Disks.d.ts +2 -1
- package/dist/containers/Storage/Disks/Disks.js +32 -23
- package/dist/containers/Storage/Disks/Disks.js.map +1 -1
- package/dist/containers/Storage/Disks/Disks.scss +5 -0
- package/dist/containers/Storage/PDisk/PDisk.d.ts +6 -9
- package/dist/containers/Storage/PDisk/PDisk.js +99 -37
- package/dist/containers/Storage/PDisk/PDisk.js.map +1 -1
- package/dist/containers/Storage/PDisk/PDisk.scss +79 -1
- package/dist/containers/Storage/PDisk/PDiskWithVDisks.d.ts +17 -0
- package/dist/containers/Storage/PDisk/PDiskWithVDisks.js +48 -0
- package/dist/containers/Storage/PDisk/PDiskWithVDisks.js.map +1 -0
- package/dist/containers/Storage/PDisk/i18n/en.json +9 -0
- package/dist/containers/Storage/PDisk/i18n/index.d.ts +1 -1
- package/dist/containers/Storage/PDisk/index.d.ts +1 -0
- package/dist/containers/Storage/PDisk/index.js +1 -0
- package/dist/containers/Storage/PDisk/index.js.map +1 -1
- package/dist/containers/Storage/PDisks/PDisks.d.ts +4 -1
- package/dist/containers/Storage/PDisks/PDisks.js +52 -6
- package/dist/containers/Storage/PDisks/PDisks.js.map +1 -1
- package/dist/containers/Storage/PaginatedStorage.js +3 -1
- package/dist/containers/Storage/PaginatedStorage.js.map +1 -1
- package/dist/containers/Storage/PaginatedStorageGroups/GroupedStorageGroupsComponent.js +1 -1
- package/dist/containers/Storage/PaginatedStorageGroups/GroupedStorageGroupsComponent.js.map +1 -1
- package/dist/containers/Storage/PaginatedStorageGroups/StorageGroupsControls.js +2 -2
- package/dist/containers/Storage/PaginatedStorageGroups/StorageGroupsControls.js.map +1 -1
- package/dist/containers/Storage/PaginatedStorageGroupsTable/PaginatedStorageGroupsTable.js +10 -1
- package/dist/containers/Storage/PaginatedStorageGroupsTable/PaginatedStorageGroupsTable.js.map +1 -1
- package/dist/containers/Storage/PaginatedStorageGroupsTable/columns/i18n/index.d.ts +1 -1
- package/dist/containers/Storage/PaginatedStorageNodes/GroupedStorageNodesComponent.d.ts +1 -0
- package/dist/containers/Storage/PaginatedStorageNodes/GroupedStorageNodesComponent.js +8 -5
- package/dist/containers/Storage/PaginatedStorageNodes/GroupedStorageNodesComponent.js.map +1 -1
- package/dist/containers/Storage/PaginatedStorageNodes/StorageNodesComponent.js +6 -3
- package/dist/containers/Storage/PaginatedStorageNodes/StorageNodesComponent.js.map +1 -1
- package/dist/containers/Storage/PaginatedStorageNodes/StorageNodesControls.js +17 -5
- package/dist/containers/Storage/PaginatedStorageNodes/StorageNodesControls.js.map +1 -1
- package/dist/containers/Storage/PaginatedStorageNodes/nodeExpertModeLayout.d.ts +16 -0
- package/dist/containers/Storage/PaginatedStorageNodes/nodeExpertModeLayout.js +68 -0
- package/dist/containers/Storage/PaginatedStorageNodes/nodeExpertModeLayout.js.map +1 -0
- package/dist/containers/Storage/PaginatedStorageNodesTable/PaginatedStorageNodesTable.d.ts +2 -1
- package/dist/containers/Storage/PaginatedStorageNodesTable/PaginatedStorageNodesTable.js +14 -2
- package/dist/containers/Storage/PaginatedStorageNodesTable/PaginatedStorageNodesTable.js.map +1 -1
- package/dist/containers/Storage/PaginatedStorageNodesTable/columns/columns.js +2 -2
- package/dist/containers/Storage/PaginatedStorageNodesTable/columns/columns.js.map +1 -1
- package/dist/containers/Storage/PaginatedStorageNodesTable/columns/hooks.js +7 -2
- package/dist/containers/Storage/PaginatedStorageNodesTable/columns/hooks.js.map +1 -1
- package/dist/containers/Storage/PaginatedStorageNodesTable/columns/types.d.ts +2 -0
- package/dist/containers/Storage/StorageExpertModePanel/StorageGroupsExpertModePanel.d.ts +5 -0
- package/dist/containers/Storage/StorageExpertModePanel/StorageGroupsExpertModePanel.js +33 -0
- package/dist/containers/Storage/StorageExpertModePanel/StorageGroupsExpertModePanel.js.map +1 -0
- package/dist/containers/Storage/StorageExpertModePanel/StorageNodesExpertModePanel.d.ts +5 -0
- package/dist/containers/Storage/StorageExpertModePanel/StorageNodesExpertModePanel.js +31 -0
- package/dist/containers/Storage/StorageExpertModePanel/StorageNodesExpertModePanel.js.map +1 -0
- package/dist/containers/Storage/StorageExpertModePanel/components/DriveTypeLegend.d.ts +1 -0
- package/dist/containers/Storage/StorageExpertModePanel/components/DriveTypeLegend.js +7 -0
- package/dist/containers/Storage/StorageExpertModePanel/components/DriveTypeLegend.js.map +1 -0
- package/dist/containers/Storage/StorageExpertModePanel/components/ExpertModePanelLayout.d.ts +21 -0
- package/dist/containers/Storage/StorageExpertModePanel/components/ExpertModePanelLayout.js +13 -0
- package/dist/containers/Storage/StorageExpertModePanel/components/ExpertModePanelLayout.js.map +1 -0
- package/dist/containers/Storage/StorageExpertModePanel/components/FrontQueuesLegend.js +1 -0
- package/dist/containers/Storage/StorageExpertModePanel/components/FrontQueuesLegend.js.map +1 -1
- package/dist/containers/Storage/StorageExpertModePanel/components/PDiskDecommitLegend.js +1 -0
- package/dist/containers/Storage/StorageExpertModePanel/components/PDiskDecommitLegend.js.map +1 -1
- package/dist/containers/Storage/StorageExpertModePanel/components/PDiskDriveLegend.js +3 -2
- package/dist/containers/Storage/StorageExpertModePanel/components/PDiskDriveLegend.js.map +1 -1
- package/dist/containers/Storage/StorageExpertModePanel/components/PDiskMaintenanceLegend.js +1 -0
- package/dist/containers/Storage/StorageExpertModePanel/components/PDiskMaintenanceLegend.js.map +1 -1
- package/dist/containers/Storage/StorageExpertModePanel/components/SpaceLegend.js +4 -4
- package/dist/containers/Storage/StorageExpertModePanel/components/SpaceLegend.js.map +1 -1
- package/dist/containers/Storage/StorageExpertModePanel/components/StatusPairLegend.js +3 -3
- package/dist/containers/Storage/StorageExpertModePanel/components/StatusPairLegend.js.map +1 -1
- package/dist/containers/Storage/StorageExpertModePanel/components/getSpaceLegendSelection.d.ts +1 -1
- package/dist/containers/Storage/StorageExpertModePanel/components/renderExpertModeLegend.d.ts +4 -0
- package/dist/containers/Storage/StorageExpertModePanel/components/renderExpertModeLegend.js +54 -0
- package/dist/containers/Storage/StorageExpertModePanel/components/renderExpertModeLegend.js.map +1 -0
- package/dist/containers/Storage/StorageExpertModePanel/constants.d.ts +23 -0
- package/dist/containers/Storage/StorageExpertModePanel/constants.js +23 -0
- package/dist/containers/Storage/StorageExpertModePanel/constants.js.map +1 -1
- package/dist/containers/Storage/StorageExpertModePanel/i18n/en.json +6 -2
- package/dist/containers/Storage/StorageExpertModePanel/i18n/index.d.ts +1 -1
- package/dist/containers/Storage/TableGroup/TableGroup.js +2 -1
- package/dist/containers/Storage/TableGroup/TableGroup.js.map +1 -1
- package/dist/containers/Storage/VDisks/VDisks.d.ts +2 -1
- package/dist/containers/Storage/VDisks/VDisks.js +11 -4
- package/dist/containers/Storage/VDisks/VDisks.js.map +1 -1
- package/dist/containers/Storage/VDisks/VDisks.scss +3 -0
- package/dist/containers/Storage/useStoragePDiskDisplayStateGetter.d.ts +1 -0
- package/dist/containers/Storage/useStoragePDiskDisplayStateGetter.js +80 -102
- package/dist/containers/Storage/useStoragePDiskDisplayStateGetter.js.map +1 -1
- package/dist/containers/Storage/useStorageQueryParams.d.ts +13 -5
- package/dist/containers/Storage/useStorageQueryParams.js +50 -2
- package/dist/containers/Storage/useStorageQueryParams.js.map +1 -1
- package/dist/containers/Storage/useStorageVDiskDisplayStateGetter.d.ts +1 -0
- package/dist/containers/Storage/useStorageVDiskDisplayStateGetter.js +59 -13
- package/dist/containers/Storage/useStorageVDiskDisplayStateGetter.js.map +1 -1
- package/dist/containers/Storage/utils/useStorageColumnsSettings.d.ts +4 -1
- package/dist/containers/Storage/utils/useStorageColumnsSettings.js +49 -39
- package/dist/containers/Storage/utils/useStorageColumnsSettings.js.map +1 -1
- package/dist/containers/Storage/utils/useVirtualizedDiskList.d.ts +10 -0
- package/dist/containers/Storage/utils/useVirtualizedDiskList.js +131 -0
- package/dist/containers/Storage/utils/useVirtualizedDiskList.js.map +1 -0
- package/dist/containers/Tablet/Tablet.js +4 -2
- package/dist/containers/Tablet/Tablet.js.map +1 -1
- package/dist/containers/Tablet/components/TabletControls/TabletControls.js +3 -1
- package/dist/containers/Tablet/components/TabletControls/TabletControls.js.map +1 -1
- package/dist/containers/Tablet/components/TabletInfo/TabletInfo.js +9 -3
- package/dist/containers/Tablet/components/TabletInfo/TabletInfo.js.map +1 -1
- package/dist/containers/Tablets/TabletsTable.js +25 -1
- package/dist/containers/Tablets/TabletsTable.js.map +1 -1
- package/dist/containers/Tablets/i18n/en.json +2 -1
- package/dist/containers/Tablets/i18n/index.d.ts +1 -1
- package/dist/containers/Tenant/Diagnostics/Overview/AsyncReplicationPaths/i18n/index.d.ts +1 -1
- package/dist/containers/Tenant/Diagnostics/Overview/Overview.js +2 -1
- package/dist/containers/Tenant/Diagnostics/Overview/Overview.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/Overview/ResourcePoolInfo/ResourcePoolInfo.d.ts +7 -0
- package/dist/containers/Tenant/Diagnostics/Overview/ResourcePoolInfo/ResourcePoolInfo.js +69 -0
- package/dist/containers/Tenant/Diagnostics/Overview/ResourcePoolInfo/ResourcePoolInfo.js.map +1 -0
- package/dist/containers/Tenant/Diagnostics/Overview/ResourcePoolInfo/i18n/en.json +9 -0
- package/dist/containers/Tenant/Diagnostics/Overview/ResourcePoolInfo/i18n/index.d.ts +2 -0
- package/dist/containers/Tenant/Diagnostics/Overview/ResourcePoolInfo/i18n/index.js +5 -0
- package/dist/containers/Tenant/Diagnostics/Overview/ResourcePoolInfo/i18n/index.js.map +1 -0
- package/dist/containers/Tenant/Diagnostics/Overview/ResourcePoolInfo/index.d.ts +1 -0
- package/dist/containers/Tenant/Diagnostics/Overview/ResourcePoolInfo/index.js +2 -0
- package/dist/containers/Tenant/Diagnostics/Overview/ResourcePoolInfo/index.js.map +1 -0
- package/dist/containers/Tenant/Diagnostics/Overview/utils/prepareTopicSchemaInfo.js +3 -3
- package/dist/containers/Tenant/Diagnostics/Overview/utils/prepareTopicSchemaInfo.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/TopQueries/QueriesTableWithDrawer.d.ts +2 -1
- package/dist/containers/Tenant/Diagnostics/TopQueries/QueriesTableWithDrawer.js +3 -2
- package/dist/containers/Tenant/Diagnostics/TopQueries/QueriesTableWithDrawer.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/TopQueries/RunningQueriesData.js +1 -1
- package/dist/containers/Tenant/Diagnostics/TopQueries/RunningQueriesData.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/TopQueries/TopQueriesData.js +1 -1
- package/dist/containers/Tenant/Diagnostics/TopQueries/TopQueriesData.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/TopShards/TopShards.js +1 -1
- package/dist/containers/Tenant/Diagnostics/TopShards/TopShards.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/TopicData/columns/columns.d.ts +3 -3
- package/dist/containers/Tenant/Query/QueriesHistory/QueriesHistory.js +2 -1
- package/dist/containers/Tenant/Query/QueriesHistory/QueriesHistory.js.map +1 -1
- package/dist/containers/Tenant/Query/SavedQueries/SavedQueries.js +1 -1
- package/dist/containers/Tenant/Query/SavedQueries/SavedQueries.js.map +1 -1
- package/dist/containers/Tenants/TenantsTable.js +37 -6
- package/dist/containers/Tenants/TenantsTable.js.map +1 -1
- package/dist/containers/VDiskPage/VDiskPage.js +10 -2
- package/dist/containers/VDiskPage/VDiskPage.js.map +1 -1
- package/dist/services/api/tablets.d.ts +6 -4
- package/dist/services/api/tablets.js +9 -8
- package/dist/services/api/tablets.js.map +1 -1
- package/dist/store/reducers/capabilities/capabilities.d.ts +4 -4
- package/dist/store/reducers/capabilities/hooks.d.ts +1 -0
- package/dist/store/reducers/capabilities/hooks.js +8 -0
- package/dist/store/reducers/capabilities/hooks.js.map +1 -1
- package/dist/store/reducers/nodesList.d.ts +3 -261
- package/dist/store/reducers/nodesList.js +1 -1
- package/dist/store/reducers/nodesList.js.map +1 -1
- package/dist/store/reducers/settings/constants.d.ts +4 -0
- package/dist/store/reducers/settings/constants.js +4 -0
- package/dist/store/reducers/settings/constants.js.map +1 -1
- package/dist/store/reducers/storage/prepareGroupsDisks.d.ts +1 -0
- package/dist/store/reducers/storage/prepareGroupsDisks.js +17 -13
- package/dist/store/reducers/storage/prepareGroupsDisks.js.map +1 -1
- package/dist/store/reducers/storage/utils.js +11 -5
- package/dist/store/reducers/storage/utils.js.map +1 -1
- package/dist/store/reducers/table/table.js +6 -0
- package/dist/store/reducers/table/table.js.map +1 -1
- package/dist/store/reducers/tableData.d.ts +1 -1
- package/dist/store/reducers/tableData.js.map +1 -1
- package/dist/store/reducers/tablet.d.ts +3 -0
- package/dist/store/reducers/tablet.js +6 -6
- package/dist/store/reducers/tablet.js.map +1 -1
- package/dist/store/reducers/tenantOverview/topShards/tenantOverviewTopShards.js +1 -1
- package/dist/store/reducers/tenantOverview/topShards/tenantOverviewTopShards.js.map +1 -1
- package/dist/store/reducers/topic/topic.js +7 -1
- package/dist/store/reducers/topic/topic.js.map +1 -1
- package/dist/types/api/capabilities.d.ts +2 -2
- package/dist/types/api/pdisk.d.ts +2 -0
- package/dist/types/api/pdisk.js.map +1 -1
- package/dist/types/api/schema/persQueueGroup.d.ts +2 -2
- package/dist/types/api/schema/schema.d.ts +15 -0
- package/dist/types/api/schema/schema.js.map +1 -1
- package/dist/types/api/schema/tableIndex.d.ts +1 -0
- package/dist/types/api/storage.d.ts +4 -0
- package/dist/types/api/storage.js.map +1 -1
- package/dist/types/api/vdisk.d.ts +2 -0
- package/dist/types/api/vdisk.js.map +1 -1
- package/dist/uiFactory/types.d.ts +6 -0
- package/dist/utils/developerUI/tabletDevUi.d.ts +1 -0
- package/dist/utils/developerUI/tabletDevUi.js +4 -0
- package/dist/utils/developerUI/tabletDevUi.js.map +1 -0
- package/dist/utils/disks/displayState.d.ts +5 -2
- package/dist/utils/disks/displayState.js.map +1 -1
- package/dist/utils/disks/driveType.d.ts +3 -0
- package/dist/utils/disks/driveType.js +27 -0
- package/dist/utils/disks/driveType.js.map +1 -0
- package/dist/utils/disks/getDiskBarTone.d.ts +4 -2
- package/dist/utils/disks/getDiskBarTone.js +8 -1
- package/dist/utils/disks/getDiskBarTone.js.map +1 -1
- package/dist/utils/disks/getPDiskType.d.ts +1 -0
- package/dist/utils/disks/getPDiskType.js +3 -0
- package/dist/utils/disks/getPDiskType.js.map +1 -1
- package/dist/utils/disks/groupBy.d.ts +1 -0
- package/dist/utils/disks/groupBy.js +1 -0
- package/dist/utils/disks/groupBy.js.map +1 -1
- package/dist/utils/disks/iconCalculators.d.ts +1 -1
- package/dist/utils/disks/iconCalculators.js +2 -2
- package/dist/utils/disks/iconCalculators.js.map +1 -1
- package/dist/utils/disks/pdiskState.js +2 -2
- package/dist/utils/disks/pdiskState.js.map +1 -1
- package/dist/utils/disks/prepareDisks.js +19 -9
- package/dist/utils/disks/prepareDisks.js.map +1 -1
- package/dist/utils/disks/types.d.ts +3 -2
- package/dist/utils/objectCreationMetrics.d.ts +5 -0
- package/dist/utils/objectCreationMetrics.js +38 -0
- package/dist/utils/objectCreationMetrics.js.map +1 -0
- package/dist/utils/query.d.ts +1 -0
- package/dist/utils/query.js +6 -0
- package/dist/utils/query.js.map +1 -1
- package/package.json +1 -1
- package/src/components/DiskStateProgressBar/AllModeCapacityAlertIndicator.tsx +15 -2
- package/src/components/DiskStateProgressBar/AllModeIndicators.tsx +30 -6
- package/src/components/DiskStateProgressBar/DiskIndicator.tsx +27 -8
- package/src/components/DiskStateProgressBar/DiskStateProgressBar.scss +96 -46
- package/src/components/DiskStateProgressBar/DiskStateProgressBar.tsx +1 -1
- package/src/components/DiskStateProgressBar/PDiskAllModeIndicators.tsx +16 -3
- package/src/components/EvictVDiskButton/EvictVDiskButton.tsx +10 -3
- package/src/components/FullNodeViewer/FullNodeViewer.scss +3 -3
- package/src/components/FullNodeViewer/FullNodeViewer.tsx +81 -34
- package/src/components/FullNodeViewer/i18n/en.json +2 -1
- package/src/components/HoverPopup/HoverPopup.tsx +21 -16
- package/src/components/InfoViewer/InfoViewer.tsx +4 -2
- package/src/components/InfoViewer/formatters/pqGroup.ts +6 -2
- package/src/components/InfoViewer/schemaInfo/i18n/en.json +1 -0
- package/src/components/InfoViewer/schemaInfo/utils.tsx +9 -0
- package/src/components/NodeHostWrapper/NodeHostWrapper.tsx +23 -13
- package/src/components/PDiskInfo/PDiskInfo.tsx +2 -1
- package/src/components/PDiskPopup/PDiskPopup.tsx +5 -1
- package/src/components/PaginatedTable/KeyboardNavigation.tsx +30 -0
- package/src/components/PaginatedTable/PaginatedTable.scss +10 -0
- package/src/components/PaginatedTable/PaginatedTable.tsx +154 -20
- package/src/components/PaginatedTable/PaginatedTableContext.tsx +14 -19
- package/src/components/PaginatedTable/PaginatedTableWithLayout.tsx +6 -1
- package/src/components/PaginatedTable/ResizeablePaginatedTable.tsx +6 -1
- package/src/components/PaginatedTable/TableChunk.tsx +9 -16
- package/src/components/PaginatedTable/TableChunksRenderer.tsx +13 -1
- package/src/components/PaginatedTable/TableRow.tsx +54 -20
- package/src/components/PaginatedTable/getTableChunkQueryParams.ts +25 -0
- package/src/components/PaginatedTable/rowLookup.ts +63 -0
- package/src/components/PaginatedTable/tableCounts.ts +50 -0
- package/src/components/PaginatedTable/useKeyboardNavigation.ts +115 -0
- package/src/components/ResizeableDataTable/DataTableKeyboardNavigation.tsx +194 -0
- package/src/components/ResizeableDataTable/ResizeableDataTable.scss +10 -0
- package/src/components/ResizeableDataTable/ResizeableDataTable.tsx +100 -5
- package/src/components/ResizeableDataTable/getDataTableOrder.ts +18 -0
- package/src/components/Search/Search.tsx +8 -1
- package/src/components/ShardsTable/columns.tsx +14 -5
- package/src/components/ShardsTable/i18n/en.json +1 -0
- package/src/components/TableKeyboardNavigation/TableKeyboardNavigation.scss +16 -0
- package/src/components/TableKeyboardNavigation/TableKeyboardNavigation.tsx +519 -0
- package/src/components/TableKeyboardNavigation/i18n/en.json +4 -0
- package/src/components/TableKeyboardNavigation/i18n/index.ts +5 -0
- package/src/components/TableKeyboardNavigation/utils.ts +36 -0
- package/src/components/TableWithControlsLayout/TableWithControlsLayout.tsx +26 -1
- package/src/components/TenantNameWrapper/TenantNameWrapper.tsx +14 -15
- package/src/components/TenantNameWrapper/utils.ts +26 -0
- package/src/components/VDisk/VDisk.tsx +141 -44
- package/src/components/VDisk/VDiskWithDonorsStack.tsx +23 -4
- package/src/components/VDisk/i18n/en.json +14 -1
- package/src/components/nodesColumns/columns.tsx +13 -1
- package/src/components/nodesColumns/constants.ts +6 -0
- package/src/components/nodesColumns/i18n/en.json +2 -1
- package/src/containers/Clusters/Clusters.tsx +47 -29
- package/src/containers/Node/NodeNetwork/NodeNetworkControls/NodeNetworkControls.tsx +1 -0
- package/src/containers/Node/NodeNetwork/NodeNetworkTable.tsx +17 -0
- package/src/containers/Nodes/NodesControls/NodesControls.tsx +1 -0
- package/src/containers/Nodes/NodesTable.tsx +17 -1
- package/src/containers/Nodes/PaginatedNodes/GroupedNodesComponent.tsx +1 -0
- package/src/containers/Nodes/columns/columns.tsx +2 -0
- package/src/containers/Storage/Disks/Disks.scss +5 -0
- package/src/containers/Storage/Disks/Disks.tsx +157 -95
- package/src/containers/Storage/PDisk/PDisk.scss +79 -1
- package/src/containers/Storage/PDisk/PDisk.tsx +166 -81
- package/src/containers/Storage/PDisk/PDiskWithVDisks.tsx +181 -0
- package/src/containers/Storage/PDisk/i18n/en.json +9 -0
- package/src/containers/Storage/PDisk/index.ts +1 -0
- package/src/containers/Storage/PDisks/PDisks.tsx +157 -22
- package/src/containers/Storage/PaginatedStorage.tsx +4 -0
- package/src/containers/Storage/PaginatedStorageGroups/GroupedStorageGroupsComponent.tsx +1 -0
- package/src/containers/Storage/PaginatedStorageGroups/StorageGroupsControls.tsx +3 -2
- package/src/containers/Storage/PaginatedStorageGroupsTable/PaginatedStorageGroupsTable.tsx +13 -0
- package/src/containers/Storage/PaginatedStorageNodes/GroupedStorageNodesComponent.tsx +10 -2
- package/src/containers/Storage/PaginatedStorageNodes/StorageNodesComponent.tsx +6 -2
- package/src/containers/Storage/PaginatedStorageNodes/StorageNodesControls.tsx +76 -41
- package/src/containers/Storage/PaginatedStorageNodes/nodeExpertModeLayout.ts +103 -0
- package/src/containers/Storage/PaginatedStorageNodesTable/PaginatedStorageNodesTable.tsx +24 -1
- package/src/containers/Storage/PaginatedStorageNodesTable/columns/columns.tsx +3 -1
- package/src/containers/Storage/PaginatedStorageNodesTable/columns/hooks.ts +8 -1
- package/src/containers/Storage/PaginatedStorageNodesTable/columns/types.ts +2 -0
- package/src/containers/Storage/StorageExpertModePanel/StorageGroupsExpertModePanel.tsx +65 -0
- package/src/containers/Storage/StorageExpertModePanel/StorageNodesExpertModePanel.tsx +67 -0
- package/src/containers/Storage/StorageExpertModePanel/components/DriveTypeLegend.tsx +22 -0
- package/src/containers/Storage/StorageExpertModePanel/components/ExpertModePanelLayout.tsx +63 -0
- package/src/containers/Storage/StorageExpertModePanel/components/FrontQueuesLegend.tsx +1 -0
- package/src/containers/Storage/StorageExpertModePanel/components/PDiskDecommitLegend.tsx +1 -0
- package/src/containers/Storage/StorageExpertModePanel/components/PDiskDriveLegend.tsx +3 -2
- package/src/containers/Storage/StorageExpertModePanel/components/PDiskMaintenanceLegend.tsx +1 -0
- package/src/containers/Storage/StorageExpertModePanel/components/SpaceLegend.tsx +3 -0
- package/src/containers/Storage/StorageExpertModePanel/components/StatusPairLegend.tsx +7 -9
- package/src/containers/Storage/StorageExpertModePanel/components/getSpaceLegendSelection.ts +1 -1
- package/src/containers/Storage/StorageExpertModePanel/components/renderExpertModeLegend.tsx +63 -0
- package/src/containers/Storage/StorageExpertModePanel/constants.ts +27 -0
- package/src/containers/Storage/StorageExpertModePanel/i18n/en.json +6 -2
- package/src/containers/Storage/TableGroup/TableGroup.tsx +6 -1
- package/src/containers/Storage/VDisks/VDisks.scss +3 -0
- package/src/containers/Storage/VDisks/VDisks.tsx +29 -7
- package/src/containers/Storage/useStoragePDiskDisplayStateGetter.ts +102 -135
- package/src/containers/Storage/useStorageQueryParams.ts +120 -1
- package/src/containers/Storage/useStorageVDiskDisplayStateGetter.ts +75 -10
- package/src/containers/Storage/utils/useStorageColumnsSettings.ts +77 -49
- package/src/containers/Storage/utils/useVirtualizedDiskList.ts +156 -0
- package/src/containers/Tablet/Tablet.tsx +4 -2
- package/src/containers/Tablet/components/TabletControls/TabletControls.tsx +7 -3
- package/src/containers/Tablet/components/TabletInfo/TabletInfo.tsx +13 -3
- package/src/containers/Tablets/TabletsTable.tsx +50 -10
- package/src/containers/Tablets/i18n/en.json +2 -1
- package/src/containers/Tenant/Diagnostics/Overview/Overview.tsx +2 -1
- package/src/containers/Tenant/Diagnostics/Overview/ResourcePoolInfo/ResourcePoolInfo.tsx +106 -0
- package/src/containers/Tenant/Diagnostics/Overview/ResourcePoolInfo/i18n/en.json +9 -0
- package/src/containers/Tenant/Diagnostics/Overview/ResourcePoolInfo/i18n/index.ts +7 -0
- package/src/containers/Tenant/Diagnostics/Overview/ResourcePoolInfo/index.ts +1 -0
- package/src/containers/Tenant/Diagnostics/Overview/utils/prepareTopicSchemaInfo.ts +3 -3
- package/src/containers/Tenant/Diagnostics/TopQueries/QueriesTableWithDrawer.tsx +6 -0
- package/src/containers/Tenant/Diagnostics/TopQueries/RunningQueriesData.tsx +4 -0
- package/src/containers/Tenant/Diagnostics/TopQueries/TopQueriesData.tsx +7 -1
- package/src/containers/Tenant/Diagnostics/TopShards/TopShards.tsx +1 -1
- package/src/containers/Tenant/Query/QueriesHistory/QueriesHistory.tsx +5 -0
- package/src/containers/Tenant/Query/SavedQueries/SavedQueries.tsx +6 -0
- package/src/containers/Tenants/TenantsTable.tsx +70 -12
- package/src/containers/VDiskPage/VDiskPage.tsx +10 -2
- package/src/services/api/tablets.ts +16 -7
- package/src/store/reducers/capabilities/hooks.ts +9 -0
- package/src/store/reducers/nodesList.ts +2 -3
- package/src/store/reducers/settings/constants.ts +4 -0
- package/src/store/reducers/storage/prepareGroupsDisks.ts +16 -11
- package/src/store/reducers/storage/utils.ts +12 -5
- package/src/store/reducers/table/table.ts +6 -0
- package/src/store/reducers/tableData.ts +1 -1
- package/src/store/reducers/tablet.ts +25 -6
- package/src/store/reducers/tenantOverview/topShards/tenantOverviewTopShards.ts +1 -1
- package/src/store/reducers/topic/topic.ts +7 -1
- package/src/types/api/capabilities.ts +2 -2
- package/src/types/api/pdisk.ts +2 -0
- package/src/types/api/schema/persQueueGroup.ts +2 -2
- package/src/types/api/schema/schema.ts +18 -0
- package/src/types/api/schema/tableIndex.ts +1 -0
- package/src/types/api/storage.ts +4 -0
- package/src/types/api/vdisk.ts +2 -0
- package/src/uiFactory/types.ts +6 -0
- package/src/utils/developerUI/tabletDevUi.ts +3 -0
- package/src/utils/disks/displayState.ts +5 -1
- package/src/utils/disks/driveType.ts +30 -0
- package/src/utils/disks/getDiskBarTone.ts +15 -1
- package/src/utils/disks/getPDiskType.ts +4 -0
- package/src/utils/disks/groupBy.ts +1 -0
- package/src/utils/disks/iconCalculators.ts +2 -2
- package/src/utils/disks/pdiskState.ts +2 -2
- package/src/utils/disks/prepareDisks.ts +25 -9
- package/src/utils/disks/types.ts +3 -2
- package/src/utils/objectCreationMetrics.ts +47 -0
- package/src/utils/query.ts +7 -0
- package/dist/containers/Storage/PDisk/PDiskVDisks.d.ts +0 -13
- package/dist/containers/Storage/PDisk/PDiskVDisks.js +0 -20
- package/dist/containers/Storage/PDisk/PDiskVDisks.js.map +0 -1
- package/dist/containers/Storage/StorageExpertModePanel/StorageExpertModePanel.d.ts +0 -6
- package/dist/containers/Storage/StorageExpertModePanel/StorageExpertModePanel.js +0 -66
- package/dist/containers/Storage/StorageExpertModePanel/StorageExpertModePanel.js.map +0 -1
- package/src/containers/Storage/PDisk/PDiskVDisks.tsx +0 -65
- package/src/containers/Storage/StorageExpertModePanel/StorageExpertModePanel.tsx +0 -151
|
@@ -4,6 +4,7 @@ import {ArrowRotateLeft} from '@gravity-ui/icons';
|
|
|
4
4
|
import type {Column as DataTableColumn, SortOrder} from '@gravity-ui/react-data-table';
|
|
5
5
|
import {Icon, Select, Text} from '@gravity-ui/uikit';
|
|
6
6
|
import {isNil} from 'lodash';
|
|
7
|
+
import {useHistory} from 'react-router-dom';
|
|
7
8
|
|
|
8
9
|
import {ButtonWithConfirmDialog} from '../../components/ButtonWithConfirmDialog/ButtonWithConfirmDialog';
|
|
9
10
|
import {EntitiesCount} from '../../components/EntitiesCount';
|
|
@@ -16,6 +17,7 @@ import {TableWithControlsLayout} from '../../components/TableWithControlsLayout/
|
|
|
16
17
|
import {TabletNameWrapper} from '../../components/TabletNameWrapper/TabletNameWrapper';
|
|
17
18
|
import {TabletState} from '../../components/TabletState/TabletState';
|
|
18
19
|
import {TabletUptime} from '../../components/UptimeViewer/UptimeViewer';
|
|
20
|
+
import {useTabletPagePath} from '../../routes';
|
|
19
21
|
import {tabletApi} from '../../store/reducers/tablet';
|
|
20
22
|
import {ETabletState} from '../../types/api/tablet';
|
|
21
23
|
import type {TTabletStateInfo} from '../../types/api/tablet';
|
|
@@ -259,12 +261,31 @@ export function TabletsTable({
|
|
|
259
261
|
[nodeId, showEndOfRange],
|
|
260
262
|
);
|
|
261
263
|
|
|
264
|
+
const history = useHistory();
|
|
265
|
+
const getTabletPagePath = useTabletPagePath();
|
|
266
|
+
const openTablet = React.useCallback(
|
|
267
|
+
(tablet: TTabletStateInfo) => {
|
|
268
|
+
if (tablet.TabletId) {
|
|
269
|
+
history.push(
|
|
270
|
+
getTabletPagePath(tablet.TabletId, {
|
|
271
|
+
followerId: tablet.FollowerId ? String(tablet.FollowerId) : undefined,
|
|
272
|
+
}),
|
|
273
|
+
);
|
|
274
|
+
}
|
|
275
|
+
},
|
|
276
|
+
[getTabletPagePath, history],
|
|
277
|
+
);
|
|
278
|
+
|
|
262
279
|
const filtersActive = Boolean(tabletsSearch.trim()) || tabletTypes.length > 0;
|
|
263
280
|
|
|
264
281
|
return (
|
|
265
|
-
<TableWithControlsLayout
|
|
282
|
+
<TableWithControlsLayout
|
|
283
|
+
fullHeight
|
|
284
|
+
keyboardNavigationResetKey={JSON.stringify(tabletTypes)}
|
|
285
|
+
>
|
|
266
286
|
<TableWithControlsLayout.Controls>
|
|
267
287
|
<Search
|
|
288
|
+
tableFilter
|
|
268
289
|
placeholder={i18n('controls.search-placeholder')}
|
|
269
290
|
onChange={handleTabletsSearchChange}
|
|
270
291
|
value={tabletsSearch}
|
|
@@ -296,15 +317,34 @@ export function TabletsTable({
|
|
|
296
317
|
scrollDependencies={[tabletsSearch, tabletTypes, sortParams]}
|
|
297
318
|
loading={loading}
|
|
298
319
|
>
|
|
299
|
-
<
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
320
|
+
<div>
|
|
321
|
+
<ResizeableDataTable
|
|
322
|
+
onKeyboardActivate={openTablet}
|
|
323
|
+
getKeyboardRowKey={(tablet) =>
|
|
324
|
+
JSON.stringify([tablet.TabletId, tablet.FollowerId ?? 0])
|
|
325
|
+
}
|
|
326
|
+
getKeyboardRowLabel={(tablet) =>
|
|
327
|
+
[
|
|
328
|
+
tablet.Type,
|
|
329
|
+
tablet.TabletId,
|
|
330
|
+
tablet.FollowerId || isFollowerTablet(tablet)
|
|
331
|
+
? i18n('value_follower', {
|
|
332
|
+
id: tablet.FollowerId ?? EMPTY_DATA_PLACEHOLDER,
|
|
333
|
+
})
|
|
334
|
+
: undefined,
|
|
335
|
+
]
|
|
336
|
+
.filter(Boolean)
|
|
337
|
+
.join(', ') || EMPTY_DATA_PLACEHOLDER
|
|
338
|
+
}
|
|
339
|
+
columns={columns}
|
|
340
|
+
data={filteredTablets}
|
|
341
|
+
settings={DEFAULT_TABLE_SETTINGS}
|
|
342
|
+
emptyDataMessage={
|
|
343
|
+
filtersActive ? i18n('noTabletsMatchFilters') : i18n('noTabletsData')
|
|
344
|
+
}
|
|
345
|
+
onSortChange={setSortParams}
|
|
346
|
+
/>
|
|
347
|
+
</div>
|
|
308
348
|
</TableWithControlsLayout.Table>
|
|
309
349
|
</TableWithControlsLayout>
|
|
310
350
|
);
|
|
@@ -16,5 +16,6 @@
|
|
|
16
16
|
"controls.search-placeholder": "Tablet ID",
|
|
17
17
|
"controls.type-filter-label": "Type",
|
|
18
18
|
"controls.type-filter-placeholder": "All types",
|
|
19
|
-
"controls.entities-count-label": "Tablets"
|
|
19
|
+
"controls.entities-count-label": "Tablets",
|
|
20
|
+
"value_follower": "follower {{id}}"
|
|
20
21
|
}
|
|
@@ -15,6 +15,7 @@ import {AsyncReplicationInfo} from './AsyncReplicationInfo';
|
|
|
15
15
|
import {ChangefeedInfo} from './ChangefeedInfo';
|
|
16
16
|
import {DatabaseInfo} from './DatabaseInfo/DatabaseInfo';
|
|
17
17
|
import {DefaultEntityInfo} from './DefaultEntityInfo';
|
|
18
|
+
import {ResourcePoolInfo} from './ResourcePoolInfo';
|
|
18
19
|
import {SchemaObjectInfoContainer} from './SchemaObjectInfo/SchemaObjectInfoContainer';
|
|
19
20
|
import {StreamingQueryInfo} from './StreamingQueryInfo';
|
|
20
21
|
import {TableInfo} from './TableInfo';
|
|
@@ -55,7 +56,7 @@ function Overview({type, path, database, databaseFullPath}: OverviewProps) {
|
|
|
55
56
|
const pathTypeToComponent: Record<EPathType, (() => React.ReactNode) | undefined> = {
|
|
56
57
|
[EPathType.EPathTypeInvalid]: undefined,
|
|
57
58
|
[EPathType.EPathTypeDir]: undefined,
|
|
58
|
-
[EPathType.EPathTypeResourcePool]:
|
|
59
|
+
[EPathType.EPathTypeResourcePool]: () => <ResourcePoolInfo data={data} />,
|
|
59
60
|
[EPathType.EPathTypeSecret]: undefined,
|
|
60
61
|
[EPathType.EPathTypeTable]: renderTableInfo,
|
|
61
62
|
[EPathType.EPathTypeSysView]: undefined,
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
import {Flex, Text} from '@gravity-ui/uikit';
|
|
4
|
+
|
|
5
|
+
import type {YDBDefinitionListItem} from '../../../../../components/YDBDefinitionList/YDBDefinitionList';
|
|
6
|
+
import {YDBDefinitionList} from '../../../../../components/YDBDefinitionList/YDBDefinitionList';
|
|
7
|
+
import type {TEvDescribeSchemeResult} from '../../../../../types/api/schema';
|
|
8
|
+
import {EMPTY_DATA_PLACEHOLDER} from '../../../../../utils/constants';
|
|
9
|
+
|
|
10
|
+
import i18n from './i18n';
|
|
11
|
+
|
|
12
|
+
/** Sentinel value meaning "no limit" for a resource-pool property. */
|
|
13
|
+
const NO_LIMIT_VALUE = '-1';
|
|
14
|
+
|
|
15
|
+
interface PropertyGroup {
|
|
16
|
+
title: string;
|
|
17
|
+
properties: {key: string; label: string}[];
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
const PROPERTY_GROUPS: PropertyGroup[] = [
|
|
21
|
+
{
|
|
22
|
+
title: i18n('group_queue'),
|
|
23
|
+
properties: [
|
|
24
|
+
{key: 'concurrent_query_limit', label: i18n('field_concurrent-query-limit')},
|
|
25
|
+
{key: 'queue_size', label: i18n('field_queue-size')},
|
|
26
|
+
{key: 'database_load_cpu_threshold', label: i18n('field_database-load-cpu-threshold')},
|
|
27
|
+
],
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
title: i18n('group_cpu'),
|
|
31
|
+
properties: [
|
|
32
|
+
{
|
|
33
|
+
key: 'total_cpu_limit_percent_per_node',
|
|
34
|
+
label: i18n('field_total-cpu-limit-percent-per-node'),
|
|
35
|
+
},
|
|
36
|
+
],
|
|
37
|
+
},
|
|
38
|
+
];
|
|
39
|
+
|
|
40
|
+
function isAbsent(value: string | undefined): value is undefined | '' {
|
|
41
|
+
return value === undefined || value === '';
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
function formatValue(value: string | undefined): React.ReactNode {
|
|
45
|
+
if (isAbsent(value) || value === NO_LIMIT_VALUE) {
|
|
46
|
+
return EMPTY_DATA_PLACEHOLDER;
|
|
47
|
+
}
|
|
48
|
+
return <Text variant="code-inline-2">{value}</Text>;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/** Only present copyText for values that are shown as concrete numbers. */
|
|
52
|
+
function getCopyText(value: string | undefined): string | undefined {
|
|
53
|
+
if (isAbsent(value) || value === NO_LIMIT_VALUE) {
|
|
54
|
+
return undefined;
|
|
55
|
+
}
|
|
56
|
+
return value;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
function prepareGroupItems(
|
|
60
|
+
properties: Record<string, string>,
|
|
61
|
+
group: PropertyGroup,
|
|
62
|
+
): YDBDefinitionListItem[] {
|
|
63
|
+
return group.properties.map(({key, label}) => {
|
|
64
|
+
const value = properties[key];
|
|
65
|
+
return {
|
|
66
|
+
name: label,
|
|
67
|
+
content: formatValue(value),
|
|
68
|
+
copyText: getCopyText(value),
|
|
69
|
+
};
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
interface ResourcePoolInfoProps {
|
|
74
|
+
data?: TEvDescribeSchemeResult;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
/** Displays overview for ResourcePool EPathType */
|
|
78
|
+
export function ResourcePoolInfo({data}: ResourcePoolInfoProps) {
|
|
79
|
+
if (!data) {
|
|
80
|
+
return null;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
const properties = data.PathDescription?.ResourcePoolDescription?.Properties?.Properties || {};
|
|
84
|
+
|
|
85
|
+
const sections = PROPERTY_GROUPS.map((group) => ({
|
|
86
|
+
title: group.title,
|
|
87
|
+
items: prepareGroupItems(properties, group),
|
|
88
|
+
})).filter((section) => section.items.length > 0);
|
|
89
|
+
|
|
90
|
+
if (sections.length === 0) {
|
|
91
|
+
return null;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
return (
|
|
95
|
+
<Flex direction="column" gap={3}>
|
|
96
|
+
{sections.map((section) => (
|
|
97
|
+
<YDBDefinitionList
|
|
98
|
+
key={section.title}
|
|
99
|
+
title={section.title}
|
|
100
|
+
items={section.items}
|
|
101
|
+
responsive
|
|
102
|
+
/>
|
|
103
|
+
))}
|
|
104
|
+
</Flex>
|
|
105
|
+
);
|
|
106
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
{
|
|
2
|
+
"title_pool-settings": "Pool Settings",
|
|
3
|
+
"group_queue": "Queue & Concurrency",
|
|
4
|
+
"group_cpu": "CPU",
|
|
5
|
+
"field_concurrent-query-limit": "Concurrent query limit",
|
|
6
|
+
"field_queue-size": "Queue size",
|
|
7
|
+
"field_database-load-cpu-threshold": "Database load CPU threshold",
|
|
8
|
+
"field_total-cpu-limit-percent-per-node": "Total CPU limit % per node"
|
|
9
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './ResourcePoolInfo';
|
|
@@ -22,10 +22,10 @@ export const prepareTopicSchemaInfo = (data?: TEvDescribeSchemeResult): Array<In
|
|
|
22
22
|
return [];
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
-
const {Partitions = [], PQTabletConfig
|
|
25
|
+
const {Partitions = [], PQTabletConfig} = pqGroupData;
|
|
26
26
|
|
|
27
|
-
const {Codecs, MeteringMode, PartitionStrategy} = PQTabletConfig;
|
|
28
|
-
const {WriteSpeedInBytesPerSecond, StorageLimitBytes} =
|
|
27
|
+
const {Codecs, MeteringMode, PartitionStrategy, PartitionConfig} = PQTabletConfig ?? {};
|
|
28
|
+
const {WriteSpeedInBytesPerSecond, StorageLimitBytes} = PartitionConfig ?? {};
|
|
29
29
|
|
|
30
30
|
//@ts-expect-error
|
|
31
31
|
const pqGeneralInfo = formatObject<TPersQueueGroupDescription>(formatPQGroupItem, {
|
|
@@ -8,6 +8,7 @@ import type {DrawerControl} from '../../../../components/Drawer/Drawer';
|
|
|
8
8
|
import {ResizeableDataTable} from '../../../../components/ResizeableDataTable/ResizeableDataTable';
|
|
9
9
|
import type {KeyValueRow} from '../../../../types/api/query';
|
|
10
10
|
import {cn} from '../../../../utils/cn';
|
|
11
|
+
import {getQueryShortText} from '../../../../utils/query';
|
|
11
12
|
|
|
12
13
|
import {QueryDetailsDrawerContent} from './QueryDetails/QueryDetailsDrawerContent';
|
|
13
14
|
import i18n from './i18n';
|
|
@@ -18,6 +19,7 @@ const b = cn('kv-top-queries');
|
|
|
18
19
|
interface SimpleTableWithDrawerProps {
|
|
19
20
|
columns: Column<KeyValueRow>[];
|
|
20
21
|
data: KeyValueRow[];
|
|
22
|
+
getKeyboardRowKey?: (row: KeyValueRow) => string | number | undefined;
|
|
21
23
|
isFetching?: boolean;
|
|
22
24
|
isLoading?: boolean;
|
|
23
25
|
onRowClick?: (
|
|
@@ -40,6 +42,7 @@ interface SimpleTableWithDrawerProps {
|
|
|
40
42
|
export function QueriesTableWithDrawer({
|
|
41
43
|
columns,
|
|
42
44
|
data,
|
|
45
|
+
getKeyboardRowKey,
|
|
43
46
|
isFetching,
|
|
44
47
|
isLoading,
|
|
45
48
|
onRowClick,
|
|
@@ -102,6 +105,9 @@ export function QueriesTableWithDrawer({
|
|
|
102
105
|
drawerControls={finalDrawerControls}
|
|
103
106
|
>
|
|
104
107
|
<ResizeableDataTable
|
|
108
|
+
onKeyboardActivate={handleRowClick}
|
|
109
|
+
getKeyboardRowKey={getKeyboardRowKey}
|
|
110
|
+
getKeyboardRowLabel={(row) => getQueryShortText(row.QueryText?.toString())}
|
|
105
111
|
emptyDataMessage={emptyDataMessage || i18n('no-data')}
|
|
106
112
|
columnsWidthLSKey={columnsWidthLSKey}
|
|
107
113
|
columns={columns}
|
|
@@ -86,6 +86,7 @@ export const RunningQueriesData = ({
|
|
|
86
86
|
<TableWithControlsLayout.Controls renderExtraControls={renderExtraControls}>
|
|
87
87
|
{renderQueryModeControl()}
|
|
88
88
|
<Search
|
|
89
|
+
tableFilter
|
|
89
90
|
value={filters.text}
|
|
90
91
|
onChange={handleTextSearchUpdate}
|
|
91
92
|
placeholder={i18n('filter.text.placeholder')}
|
|
@@ -97,6 +98,9 @@ export const RunningQueriesData = ({
|
|
|
97
98
|
{error ? <ResponseError error={error} /> : null}
|
|
98
99
|
<TableWithControlsLayout.Table>
|
|
99
100
|
<QueriesTableWithDrawer
|
|
101
|
+
getKeyboardRowKey={(row) =>
|
|
102
|
+
JSON.stringify([database, row.SessionId, row.QueryStartAt])
|
|
103
|
+
}
|
|
100
104
|
columns={columnsToShow}
|
|
101
105
|
data={rows || []}
|
|
102
106
|
isFetching={isFetching && currentData === undefined}
|
|
@@ -137,7 +137,9 @@ export const TopQueriesData = ({
|
|
|
137
137
|
};
|
|
138
138
|
|
|
139
139
|
return (
|
|
140
|
-
<TableWithControlsLayout
|
|
140
|
+
<TableWithControlsLayout
|
|
141
|
+
keyboardNavigationResetKey={JSON.stringify([timeFrame, filters.from, filters.to])}
|
|
142
|
+
>
|
|
141
143
|
<TableWithControlsLayout.Controls renderExtraControls={renderExtraControls}>
|
|
142
144
|
{renderQueryModeControl()}
|
|
143
145
|
<Select
|
|
@@ -152,6 +154,7 @@ export const TopQueriesData = ({
|
|
|
152
154
|
defaultValue={DEFAULT_TIME_FILTER_VALUE}
|
|
153
155
|
/>
|
|
154
156
|
<Search
|
|
157
|
+
tableFilter
|
|
155
158
|
value={filters.text}
|
|
156
159
|
inputRef={inputRef}
|
|
157
160
|
onChange={handleTextSearchUpdate}
|
|
@@ -163,6 +166,9 @@ export const TopQueriesData = ({
|
|
|
163
166
|
{error ? <ResponseError error={error} /> : null}
|
|
164
167
|
<TableWithControlsLayout.Table>
|
|
165
168
|
<QueriesTableWithDrawer
|
|
169
|
+
getKeyboardRowKey={(row) =>
|
|
170
|
+
JSON.stringify([database, row.IntervalEnd, row.EndTime, row.QueryText])
|
|
171
|
+
}
|
|
166
172
|
columns={columnsToShow}
|
|
167
173
|
data={rows || []}
|
|
168
174
|
isFetching={isFetching && currentData === undefined}
|
|
@@ -153,7 +153,7 @@ export const TopShards = ({database, path, databaseFullPath}: TopShardsProps) =>
|
|
|
153
153
|
};
|
|
154
154
|
|
|
155
155
|
return (
|
|
156
|
-
<TableWithControlsLayout>
|
|
156
|
+
<TableWithControlsLayout keyboardNavigation={false}>
|
|
157
157
|
<TableWithControlsLayout.Controls>{renderControls()}</TableWithControlsLayout.Controls>
|
|
158
158
|
|
|
159
159
|
{filters.mode === EShardsWorkloadMode.History && (
|
|
@@ -16,6 +16,7 @@ import {
|
|
|
16
16
|
} from '../../../../store/reducers/query/query';
|
|
17
17
|
import type {QueryInHistory} from '../../../../store/reducers/query/types';
|
|
18
18
|
import {useTypedDispatch, useTypedSelector} from '../../../../utils/hooks';
|
|
19
|
+
import {getQueryShortText} from '../../../../utils/query';
|
|
19
20
|
import {QUERY_TABLE_SETTINGS} from '../../utils/constants';
|
|
20
21
|
import {SAVE_QUERY_DIALOG} from '../SaveQuery/SaveQuery';
|
|
21
22
|
import {useOpenExternalQueryInEditor} from '../hooks/useOpenExternalQueryInEditor';
|
|
@@ -116,6 +117,7 @@ function QueriesHistory({queriesHistory}: QueriesHistoryProps) {
|
|
|
116
117
|
<TableWithControlsLayout className={b('table-with-controls')}>
|
|
117
118
|
<TableWithControlsLayout.Controls>
|
|
118
119
|
<Search
|
|
120
|
+
tableFilter
|
|
119
121
|
value={filter}
|
|
120
122
|
onChange={onChangeFilter}
|
|
121
123
|
placeholder={i18n('field_query-text-search')}
|
|
@@ -135,6 +137,9 @@ function QueriesHistory({queriesHistory}: QueriesHistoryProps) {
|
|
|
135
137
|
defaultWidth={50}
|
|
136
138
|
>
|
|
137
139
|
<ResizeableDataTable
|
|
140
|
+
onKeyboardActivate={handleShowPreview}
|
|
141
|
+
getKeyboardRowKey={(query) => query.queryId}
|
|
142
|
+
getKeyboardRowLabel={(query) => getQueryShortText(query.queryText)}
|
|
138
143
|
columnsWidthLSKey={QUERIES_HISTORY_COLUMNS_WIDTH_LS_KEY}
|
|
139
144
|
columns={columns}
|
|
140
145
|
data={queriesHistory.filteredHistoryQueries}
|
|
@@ -243,6 +243,7 @@ export const SavedQueries = () => {
|
|
|
243
243
|
<TableWithControlsLayout className={b('table-with-controls')}>
|
|
244
244
|
<TableWithControlsLayout.Controls>
|
|
245
245
|
<Search
|
|
246
|
+
tableFilter
|
|
246
247
|
value={filter}
|
|
247
248
|
onChange={handleChangeFilter}
|
|
248
249
|
placeholder={i18n('field_saved-query-search')}
|
|
@@ -262,6 +263,11 @@ export const SavedQueries = () => {
|
|
|
262
263
|
defaultWidth={50}
|
|
263
264
|
>
|
|
264
265
|
<ResizeableDataTable
|
|
266
|
+
onKeyboardActivate={handleShowPreview}
|
|
267
|
+
getKeyboardRowKey={(query) => query.name}
|
|
268
|
+
getKeyboardRowLabel={(query) =>
|
|
269
|
+
query.name || EMPTY_DATA_PLACEHOLDER
|
|
270
|
+
}
|
|
265
271
|
columnsWidthLSKey={SAVED_QUERIES_COLUMNS_WIDTH_LS_KEY}
|
|
266
272
|
columns={columns}
|
|
267
273
|
data={filteredSavedQueries}
|
|
@@ -5,6 +5,7 @@ import type {Column, SortOrder} from '@gravity-ui/react-data-table';
|
|
|
5
5
|
import DataTable from '@gravity-ui/react-data-table';
|
|
6
6
|
import type {LabelProps} from '@gravity-ui/uikit';
|
|
7
7
|
import {Button, Flex, Icon, Label} from '@gravity-ui/uikit';
|
|
8
|
+
import {useHistory} from 'react-router-dom';
|
|
8
9
|
|
|
9
10
|
import {EntitiesCount} from '../../components/EntitiesCount';
|
|
10
11
|
import {ResponseError} from '../../components/Errors/ResponseError';
|
|
@@ -15,6 +16,7 @@ import {Search} from '../../components/Search';
|
|
|
15
16
|
import {TableColumnSetup} from '../../components/TableColumnSetup/TableColumnSetup';
|
|
16
17
|
import {TableWithControlsLayout} from '../../components/TableWithControlsLayout/TableWithControlsLayout';
|
|
17
18
|
import {TenantNameWrapper} from '../../components/TenantNameWrapper/TenantNameWrapper';
|
|
19
|
+
import {getTenantLink} from '../../components/TenantNameWrapper/utils';
|
|
18
20
|
import {useEmMetaAvailable} from '../../store/reducers/capabilities/hooks';
|
|
19
21
|
import {useClusterBaseInfo} from '../../store/reducers/cluster/cluster';
|
|
20
22
|
import {
|
|
@@ -131,6 +133,7 @@ const TenantsTableContent = ({
|
|
|
131
133
|
onStatusClick,
|
|
132
134
|
}: TenantsTableContentProps) => {
|
|
133
135
|
const SuccessImage = getIllustration('SuccessOperation');
|
|
136
|
+
const history = useHistory();
|
|
134
137
|
|
|
135
138
|
const [autoRefreshInterval] = useAutoRefreshInterval();
|
|
136
139
|
const {currentData, isFetching, error} = tenantsApi.useGetTenantsInfoQuery(
|
|
@@ -144,7 +147,7 @@ const TenantsTableContent = ({
|
|
|
144
147
|
|
|
145
148
|
const isCreateDBAvailable = useEmMetaAvailable() && uiFactory.onCreateDB !== undefined;
|
|
146
149
|
|
|
147
|
-
const {domain: domainRoot} = useClusterBaseInfo();
|
|
150
|
+
const {domain: domainRoot, settings} = useClusterBaseInfo();
|
|
148
151
|
|
|
149
152
|
const {search, withProblems, handleSearchChange, handleWithProblemsChange} =
|
|
150
153
|
useTenantsQueryParams();
|
|
@@ -167,7 +170,40 @@ const TenantsTableContent = ({
|
|
|
167
170
|
const filteredBySearch = filterTenantsBySearch(filteredByProblems, search);
|
|
168
171
|
|
|
169
172
|
return filteredBySearch;
|
|
170
|
-
}, [tenants, withProblems, search]);
|
|
173
|
+
}, [tenants, withProblems, search, showWithProblemsFilter]);
|
|
174
|
+
|
|
175
|
+
const tenantLinks = React.useMemo(
|
|
176
|
+
() =>
|
|
177
|
+
new Map(
|
|
178
|
+
tenants.map((tenant) => [
|
|
179
|
+
tenant,
|
|
180
|
+
getTenantLink({
|
|
181
|
+
tenant,
|
|
182
|
+
additionalTenantsProps,
|
|
183
|
+
externalLink: Boolean(environmentName),
|
|
184
|
+
useDatabaseId:
|
|
185
|
+
uiFactory.useDatabaseId && settings?.use_meta_proxy !== false,
|
|
186
|
+
}),
|
|
187
|
+
]),
|
|
188
|
+
),
|
|
189
|
+
[tenants, additionalTenantsProps, environmentName, settings?.use_meta_proxy],
|
|
190
|
+
);
|
|
191
|
+
|
|
192
|
+
const openTenant = React.useCallback(
|
|
193
|
+
(tenant: PreparedTenant) => {
|
|
194
|
+
const link = tenantLinks.get(tenant);
|
|
195
|
+
if (!link) {
|
|
196
|
+
return;
|
|
197
|
+
}
|
|
198
|
+
if (link.isExternalLink) {
|
|
199
|
+
window.open(link.href, '_blank', 'noopener,noreferrer');
|
|
200
|
+
return;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
history.push(link.href);
|
|
204
|
+
},
|
|
205
|
+
[tenantLinks, history],
|
|
206
|
+
);
|
|
171
207
|
|
|
172
208
|
const renderCreateDBButton = () => {
|
|
173
209
|
const buttonAvailable = isCreateDBAvailable && clusterName;
|
|
@@ -192,6 +228,7 @@ const TenantsTableContent = ({
|
|
|
192
228
|
return (
|
|
193
229
|
<React.Fragment>
|
|
194
230
|
<Search
|
|
231
|
+
tableFilter
|
|
195
232
|
value={search}
|
|
196
233
|
onChange={handleSearchChange}
|
|
197
234
|
placeholder="Database name"
|
|
@@ -221,6 +258,7 @@ const TenantsTableContent = ({
|
|
|
221
258
|
clusterName={clusterName}
|
|
222
259
|
additionalTenantsProps={additionalTenantsProps}
|
|
223
260
|
externalLink={Boolean(environmentName)}
|
|
261
|
+
link={tenantLinks.get(row)}
|
|
224
262
|
onStatusClick={onStatusClick}
|
|
225
263
|
/>
|
|
226
264
|
),
|
|
@@ -362,6 +400,7 @@ const TenantsTableContent = ({
|
|
|
362
400
|
handleSearchChange,
|
|
363
401
|
onStatusClick,
|
|
364
402
|
showPoolsColumn,
|
|
403
|
+
tenantLinks,
|
|
365
404
|
]);
|
|
366
405
|
|
|
367
406
|
const {columnsToShow, columnsToSelect, setColumns} = useSelectedColumns(
|
|
@@ -378,14 +417,26 @@ const TenantsTableContent = ({
|
|
|
378
417
|
}
|
|
379
418
|
|
|
380
419
|
return (
|
|
381
|
-
<
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
420
|
+
<div>
|
|
421
|
+
<ResizeableDataTable
|
|
422
|
+
onKeyboardActivate={openTenant}
|
|
423
|
+
getKeyboardRowKey={(tenant) =>
|
|
424
|
+
JSON.stringify([tenant.Cluster, tenant.Id ?? tenant.Name])
|
|
425
|
+
}
|
|
426
|
+
getKeyboardRowLabel={(tenant) =>
|
|
427
|
+
tenant.controlPlaneName ||
|
|
428
|
+
tenant.Name ||
|
|
429
|
+
tenant.Id ||
|
|
430
|
+
EMPTY_DATA_PLACEHOLDER
|
|
431
|
+
}
|
|
432
|
+
columnsWidthLSKey={DATABASES_COLUMNS_WIDTH_LS_KEY}
|
|
433
|
+
data={filteredTenants}
|
|
434
|
+
columns={columnsToShow}
|
|
435
|
+
settings={DEFAULT_TABLE_SETTINGS}
|
|
436
|
+
emptyDataMessage={i18n('no-databases')}
|
|
437
|
+
onSortChange={setSortParams}
|
|
438
|
+
/>
|
|
439
|
+
</div>
|
|
389
440
|
);
|
|
390
441
|
};
|
|
391
442
|
|
|
@@ -411,7 +462,14 @@ const TenantsTableContent = ({
|
|
|
411
462
|
|
|
412
463
|
return (
|
|
413
464
|
<div className={b('table-wrapper')}>
|
|
414
|
-
<TableWithControlsLayout
|
|
465
|
+
<TableWithControlsLayout
|
|
466
|
+
fullHeight
|
|
467
|
+
keyboardNavigationResetKey={JSON.stringify([
|
|
468
|
+
withProblems,
|
|
469
|
+
showDomainDatabase,
|
|
470
|
+
showWithProblemsFilter,
|
|
471
|
+
])}
|
|
472
|
+
>
|
|
415
473
|
<TableWithControlsLayout.Controls renderExtraControls={renderExtraControls}>
|
|
416
474
|
{renderControls()}
|
|
417
475
|
</TableWithControlsLayout.Controls>
|
|
@@ -421,7 +479,7 @@ const TenantsTableContent = ({
|
|
|
421
479
|
loading={loading}
|
|
422
480
|
scrollDependencies={[search, withProblems, sortParams]}
|
|
423
481
|
>
|
|
424
|
-
{currentData ? renderTable() : null}
|
|
482
|
+
<div>{currentData ? renderTable() : null}</div>
|
|
425
483
|
</TableWithControlsLayout.Table>
|
|
426
484
|
</TableWithControlsLayout>
|
|
427
485
|
</div>
|
|
@@ -23,6 +23,7 @@ import {vDiskApi} from '../../store/reducers/vdisk/vdisk';
|
|
|
23
23
|
import {cn} from '../../utils/cn';
|
|
24
24
|
import {parseVdiskId} from '../../utils/dataFormatters/dataFormatters';
|
|
25
25
|
import {VDISK_LABEL_CONFIG} from '../../utils/disks/constants';
|
|
26
|
+
import {formatPDiskType} from '../../utils/disks/getPDiskType';
|
|
26
27
|
import {getDataSeverityColor} from '../../utils/disks/helpers';
|
|
27
28
|
import {useAutoRefreshInterval, useTypedDispatch} from '../../utils/hooks';
|
|
28
29
|
import {useAppTitle} from '../App/AppTitleContext';
|
|
@@ -122,7 +123,14 @@ export function VDiskPage() {
|
|
|
122
123
|
<PageMetaWithAutorefresh
|
|
123
124
|
className={vDiskPageCn('meta')}
|
|
124
125
|
loading={loading}
|
|
125
|
-
items={[
|
|
126
|
+
items={[
|
|
127
|
+
hostItem,
|
|
128
|
+
nodeIdItem,
|
|
129
|
+
NodeType,
|
|
130
|
+
NodeDC,
|
|
131
|
+
pDiskIdItem,
|
|
132
|
+
formatPDiskType(PDiskType),
|
|
133
|
+
]}
|
|
126
134
|
/>
|
|
127
135
|
);
|
|
128
136
|
};
|
|
@@ -174,7 +182,7 @@ export function VDiskPage() {
|
|
|
174
182
|
return null;
|
|
175
183
|
}
|
|
176
184
|
return (
|
|
177
|
-
<div className={vDiskPageCn('controls')}>
|
|
185
|
+
<div className={vDiskPageCn('controls')} data-qa="vdisk-controls">
|
|
178
186
|
<EvictVDiskButton
|
|
179
187
|
vDiskId={resolvedVDiskId}
|
|
180
188
|
donorMode={vDiskData?.DonorMode}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type {TTabletHiveResponse} from '../../types/api/tablet';
|
|
2
|
+
import {getTabletDevUiAppPage} from '../../utils/developerUI/tabletDevUi';
|
|
2
3
|
import type {Nullable} from '../../utils/typecheckers';
|
|
3
4
|
|
|
4
5
|
import type {AxiosOptions} from './base';
|
|
@@ -11,6 +12,7 @@ export class TabletsAPI extends BaseYdbAPI {
|
|
|
11
12
|
failRealmIdx,
|
|
12
13
|
failDomainIdx,
|
|
13
14
|
vDiskIdx,
|
|
15
|
+
useSecurePath = false,
|
|
14
16
|
}: {
|
|
15
17
|
groupId: string | number;
|
|
16
18
|
groupGeneration: string | number;
|
|
@@ -18,12 +20,15 @@ export class TabletsAPI extends BaseYdbAPI {
|
|
|
18
20
|
failDomainIdx: string | number;
|
|
19
21
|
vDiskIdx: string | number;
|
|
20
22
|
force?: boolean;
|
|
23
|
+
useSecurePath?: boolean;
|
|
21
24
|
}) {
|
|
22
25
|
// BSC Id is constant for all ydb clusters
|
|
23
26
|
const BSC_TABLET_ID = '72057594037932033';
|
|
24
27
|
|
|
25
28
|
return this.post(
|
|
26
|
-
this.getPath(
|
|
29
|
+
this.getPath(
|
|
30
|
+
`/tablets/${getTabletDevUiAppPage(useSecurePath)}?TabletID=${BSC_TABLET_ID}&exec=1`,
|
|
31
|
+
),
|
|
27
32
|
{
|
|
28
33
|
Command: {
|
|
29
34
|
ReassignGroupDisk: {
|
|
@@ -54,28 +59,32 @@ export class TabletsAPI extends BaseYdbAPI {
|
|
|
54
59
|
);
|
|
55
60
|
}
|
|
56
61
|
|
|
57
|
-
stopTablet(id: string, hiveId: string) {
|
|
62
|
+
stopTablet(id: string, hiveId: string, useSecurePath = false) {
|
|
58
63
|
return this.post<unknown>(
|
|
59
|
-
this.getPath(
|
|
64
|
+
this.getPath(
|
|
65
|
+
`/tablets/${getTabletDevUiAppPage(useSecurePath)}?TabletID=${hiveId}&page=StopTablet&tablet=${id}`,
|
|
66
|
+
),
|
|
60
67
|
{},
|
|
61
68
|
{requestConfig: {'axios-retry': {retries: 0}}},
|
|
62
69
|
);
|
|
63
70
|
}
|
|
64
71
|
|
|
65
|
-
resumeTablet(id: string, hiveId: string) {
|
|
72
|
+
resumeTablet(id: string, hiveId: string, useSecurePath = false) {
|
|
66
73
|
return this.post<unknown>(
|
|
67
|
-
this.getPath(
|
|
74
|
+
this.getPath(
|
|
75
|
+
`/tablets/${getTabletDevUiAppPage(useSecurePath)}?TabletID=${hiveId}&page=ResumeTablet&tablet=${id}`,
|
|
76
|
+
),
|
|
68
77
|
{},
|
|
69
78
|
{requestConfig: {'axios-retry': {retries: 0}}},
|
|
70
79
|
);
|
|
71
80
|
}
|
|
72
81
|
|
|
73
82
|
getTabletFromHive(
|
|
74
|
-
{id, hiveId}: {id: string; hiveId: string},
|
|
83
|
+
{id, hiveId, useSecurePath = false}: {id: string; hiveId: string; useSecurePath?: boolean},
|
|
75
84
|
{concurrentId, signal}: AxiosOptions = {},
|
|
76
85
|
) {
|
|
77
86
|
return this.get<Nullable<TTabletHiveResponse>>(
|
|
78
|
-
this.getPath(
|
|
87
|
+
this.getPath(`/tablets/${getTabletDevUiAppPage(useSecurePath)}`),
|
|
79
88
|
{
|
|
80
89
|
TabletID: hiveId,
|
|
81
90
|
page: 'TabletInfo',
|