ydb-embedded-ui 22.2.0 → 22.4.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/DiskCapacityInfo/DiskCapacityInfo.d.ts +10 -1
- package/dist/components/DiskCapacityInfo/DiskCapacityInfo.js +75 -13
- package/dist/components/DiskCapacityInfo/DiskCapacityInfo.js.map +1 -1
- package/dist/components/DiskCapacityInfo/i18n/index.d.ts +1 -1
- package/dist/components/DiskPopup/DiskPopup.d.ts +25 -0
- package/dist/components/DiskPopup/DiskPopup.js +44 -0
- package/dist/components/DiskPopup/DiskPopup.js.map +1 -0
- package/dist/components/DiskPopup/DiskPopup.scss +203 -0
- package/dist/components/DiskPopup/i18n/en.json +3 -0
- package/dist/components/DiskPopup/i18n/index.d.ts +2 -0
- package/dist/components/DiskPopup/i18n/index.js +4 -0
- package/dist/components/DiskPopup/i18n/index.js.map +1 -0
- package/dist/components/DiskStatus/DiskStatus.d.ts +31 -0
- package/dist/components/DiskStatus/DiskStatus.js +61 -0
- package/dist/components/DiskStatus/DiskStatus.js.map +1 -0
- package/dist/components/DiskStatus/DiskStatus.scss +59 -0
- package/dist/components/DiskStatus/i18n/en.json +6 -0
- package/dist/components/DiskStatus/i18n/index.d.ts +2 -0
- package/dist/components/DiskStatus/i18n/index.js +4 -0
- package/dist/components/DiskStatus/i18n/index.js.map +1 -0
- package/dist/components/EntityStatus/EntityStatus.d.ts +1 -0
- package/dist/components/EntityStatus/EntityStatus.js +1 -1
- package/dist/components/EntityStatus/EntityStatus.js.map +1 -1
- package/dist/components/EvictVDiskButton/i18n/en.json +1 -1
- package/dist/components/FullNodeViewer/i18n/index.d.ts +1 -1
- package/dist/components/Graph/GravityGraph.js +9 -2
- package/dist/components/Graph/GravityGraph.js.map +1 -1
- package/dist/components/Graph/utils.d.ts +2 -1
- package/dist/components/Graph/utils.js +7 -0
- package/dist/components/Graph/utils.js.map +1 -1
- package/dist/components/HoverPopup/HoverPopup.d.ts +2 -1
- package/dist/components/HoverPopup/HoverPopup.js +49 -17
- package/dist/components/HoverPopup/HoverPopup.js.map +1 -1
- package/dist/components/HoverPopup/usePopupPriority.d.ts +4 -0
- package/dist/components/HoverPopup/usePopupPriority.js +30 -0
- package/dist/components/HoverPopup/usePopupPriority.js.map +1 -0
- package/dist/components/PDiskInfo/PDiskLogSize.d.ts +5 -0
- package/dist/components/PDiskInfo/PDiskLogSize.js +20 -0
- package/dist/components/PDiskInfo/PDiskLogSize.js.map +1 -0
- package/dist/components/PDiskInfo/PDiskLogSize.scss +12 -0
- package/dist/components/PDiskInfo/getPDiskDetails.d.ts +4 -0
- package/dist/components/PDiskInfo/getPDiskDetails.js +33 -0
- package/dist/components/PDiskInfo/getPDiskDetails.js.map +1 -0
- package/dist/components/PDiskInfo/i18n/en.json +64 -2
- package/dist/components/PDiskInfo/i18n/index.d.ts +1 -1
- package/dist/components/PDiskInfo/statuses.d.ts +7 -0
- package/dist/components/PDiskInfo/statuses.js +185 -0
- package/dist/components/PDiskInfo/statuses.js.map +1 -0
- package/dist/components/PDiskPopup/PDiskPopup.d.ts +4 -7
- package/dist/components/PDiskPopup/PDiskPopup.js +28 -99
- package/dist/components/PDiskPopup/PDiskPopup.js.map +1 -1
- package/dist/components/PDiskPopup/i18n/en.json +2 -12
- package/dist/components/PDiskPopup/i18n/index.d.ts +1 -1
- package/dist/components/PaginatedTable/rowLookup.js +30 -9
- package/dist/components/PaginatedTable/rowLookup.js.map +1 -1
- package/dist/components/StorageGroupInfo/StorageGroupInfo.d.ts +3 -3
- package/dist/components/StorageGroupInfo/StorageGroupInfo.js +78 -218
- package/dist/components/StorageGroupInfo/StorageGroupInfo.js.map +1 -1
- package/dist/components/StorageGroupInfo/StorageGroupInfo.scss +21 -0
- package/dist/components/StorageGroupInfo/i18n/en.json +1 -9
- package/dist/components/StorageGroupInfo/i18n/index.d.ts +1 -1
- package/dist/components/TableKeyboardNavigation/TableKeyboardNavigation.js +5 -1
- package/dist/components/TableKeyboardNavigation/TableKeyboardNavigation.js.map +1 -1
- package/dist/components/VDisk/VDisk.d.ts +2 -1
- package/dist/components/VDisk/VDisk.js +23 -32
- package/dist/components/VDisk/VDisk.js.map +1 -1
- package/dist/components/VDisk/VDiskWithDonorsStack.d.ts +1 -1
- package/dist/components/VDisk/VDiskWithDonorsStack.js +2 -1
- package/dist/components/VDisk/VDiskWithDonorsStack.js.map +1 -1
- package/dist/components/VDisk/getFlagStatusText.d.ts +2 -0
- package/dist/components/VDisk/getFlagStatusText.js +18 -0
- package/dist/components/VDisk/getFlagStatusText.js.map +1 -0
- package/dist/components/VDisk/i18n/en.json +1 -1
- package/dist/components/VDisk/i18n/index.d.ts +1 -1
- package/dist/components/VDiskInfo/getVDiskDetails.d.ts +5 -0
- package/dist/components/VDiskInfo/getVDiskDetails.js +29 -0
- package/dist/components/VDiskInfo/getVDiskDetails.js.map +1 -0
- package/dist/components/VDiskInfo/i18n/en.json +3 -1
- package/dist/components/VDiskInfo/i18n/index.d.ts +1 -1
- package/dist/components/VDiskPopup/VDiskPopup.d.ts +6 -8
- package/dist/components/VDiskPopup/VDiskPopup.js +106 -240
- package/dist/components/VDiskPopup/VDiskPopup.js.map +1 -1
- package/dist/components/VDiskPopup/VDiskPopup.scss +3 -10
- package/dist/components/VDiskPopup/i18n/en.json +6 -22
- package/dist/components/VDiskPopup/i18n/index.d.ts +1 -1
- package/dist/components/VDiskStatus/VDiskReplicationStatus.d.ts +8 -0
- package/dist/components/VDiskStatus/VDiskReplicationStatus.js +32 -0
- package/dist/components/VDiskStatus/VDiskReplicationStatus.js.map +1 -0
- package/dist/components/VDiskStatus/VDiskStatus.d.ts +16 -0
- package/dist/components/VDiskStatus/VDiskStatus.js +20 -0
- package/dist/components/VDiskStatus/VDiskStatus.js.map +1 -0
- package/dist/components/VDiskStatus/VDiskStatus.scss +32 -0
- package/dist/components/VDiskStatus/i18n/en.json +33 -0
- package/dist/components/VDiskStatus/i18n/index.d.ts +1 -0
- package/dist/components/VDiskStatus/i18n/index.js +5 -0
- package/dist/components/VDiskStatus/i18n/index.js.map +1 -0
- package/dist/components/VDiskStatus/index.d.ts +2 -0
- package/dist/components/VDiskStatus/index.js +3 -0
- package/dist/components/VDiskStatus/index.js.map +1 -0
- package/dist/components/VDiskStatus/statuses.d.ts +4 -0
- package/dist/components/VDiskStatus/statuses.js +120 -0
- package/dist/components/VDiskStatus/statuses.js.map +1 -0
- package/dist/components/capacityMetricsColumns/i18n/en.json +4 -4
- package/dist/containers/Authentication/Authentication.js +29 -30
- package/dist/containers/Authentication/Authentication.js.map +1 -1
- package/dist/containers/Authentication/utils.d.ts +2 -2
- package/dist/containers/Authentication/utils.js +1 -1
- package/dist/containers/Authentication/utils.js.map +1 -1
- package/dist/containers/Cluster/ClusterDrawerHealthcheck.js +6 -1
- package/dist/containers/Cluster/ClusterDrawerHealthcheck.js.map +1 -1
- package/dist/containers/Clusters/ClusterDrawerHealthcheck.js +1 -1
- package/dist/containers/Clusters/ClusterDrawerHealthcheck.js.map +1 -1
- package/dist/containers/Header/Header.js +8 -2
- package/dist/containers/Header/Header.js.map +1 -1
- package/dist/containers/Header/StorageGroupLeftControls.d.ts +1 -0
- package/dist/containers/Header/StorageGroupLeftControls.js +23 -0
- package/dist/containers/Header/StorageGroupLeftControls.js.map +1 -0
- package/dist/containers/Header/i18n/en.json +3 -1
- package/dist/containers/Header/i18n/index.d.ts +1 -1
- package/dist/containers/Operations/constants.d.ts +1 -1
- package/dist/containers/PDiskPage/PDiskSpaceDistribution/PDiskSpaceDistribution.js +4 -4
- package/dist/containers/PDiskPage/PDiskSpaceDistribution/PDiskSpaceDistribution.js.map +1 -1
- package/dist/containers/PDiskPage/i18n/index.d.ts +1 -1
- package/dist/containers/Storage/Disks/Disks.js +36 -9
- package/dist/containers/Storage/Disks/Disks.js.map +1 -1
- package/dist/containers/Storage/PDisk/PDisk.d.ts +2 -1
- package/dist/containers/Storage/PDisk/PDisk.js +2 -2
- package/dist/containers/Storage/PDisk/PDisk.js.map +1 -1
- package/dist/containers/Storage/PDisk/i18n/index.d.ts +1 -1
- package/dist/containers/Storage/PaginatedStorageGroupsTable/columns/columns.js +7 -2
- package/dist/containers/Storage/PaginatedStorageGroupsTable/columns/columns.js.map +1 -1
- package/dist/containers/Storage/PaginatedStorageGroupsTable/columns/i18n/index.d.ts +1 -1
- package/dist/containers/Storage/StorageExpertModePanel/components/SpaceLegend.scss +14 -82
- package/dist/containers/Storage/StorageExpertModePanel/i18n/index.d.ts +1 -1
- package/dist/containers/Storage/StorageGroupStateLabel.d.ts +4 -0
- package/dist/containers/Storage/StorageGroupStateLabel.js +9 -0
- package/dist/containers/Storage/StorageGroupStateLabel.js.map +1 -0
- package/dist/containers/Storage/utils/getStorageGroupStateLabel.d.ts +2 -0
- package/dist/containers/Storage/utils/getStorageGroupStateLabel.js +35 -0
- package/dist/containers/Storage/utils/getStorageGroupStateLabel.js.map +1 -0
- package/dist/containers/StorageGroupPage/StorageGroupPage.js +17 -12
- package/dist/containers/StorageGroupPage/StorageGroupPage.js.map +1 -1
- package/dist/containers/StorageGroupPage/StorageGroupPage.scss +9 -13
- package/dist/containers/StorageGroupPage/i18n/en.json +3 -1
- package/dist/containers/StorageGroupPage/i18n/index.d.ts +1 -1
- package/dist/containers/Tenant/Diagnostics/DiagnosticsPages.js +5 -1
- package/dist/containers/Tenant/Diagnostics/DiagnosticsPages.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/Overview/Overview.d.ts +2 -1
- package/dist/containers/Tenant/Diagnostics/Overview/Overview.js +11 -2
- package/dist/containers/Tenant/Diagnostics/Overview/Overview.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/Overview/ResourcePoolInfo/ResourcePoolInfo.scss +24 -0
- package/dist/containers/Tenant/Diagnostics/Overview/ResourcePoolInfo/ResourcePoolUsage.d.ts +8 -0
- package/dist/containers/Tenant/Diagnostics/Overview/ResourcePoolInfo/ResourcePoolUsage.js +34 -0
- package/dist/containers/Tenant/Diagnostics/Overview/ResourcePoolInfo/ResourcePoolUsage.js.map +1 -0
- package/dist/containers/Tenant/Diagnostics/Overview/ResourcePoolInfo/i18n/en.json +4 -1
- package/dist/containers/Tenant/Diagnostics/Overview/ResourcePoolInfo/i18n/index.d.ts +1 -1
- package/dist/containers/Tenant/Diagnostics/Overview/ResourcePoolInfo/index.d.ts +1 -0
- package/dist/containers/Tenant/Diagnostics/Overview/ResourcePoolInfo/index.js +1 -0
- package/dist/containers/Tenant/Diagnostics/Overview/ResourcePoolInfo/index.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/Overview/SchemaObjectInfo/SchemaObjectInfo.d.ts +2 -1
- package/dist/containers/Tenant/Diagnostics/Overview/SchemaObjectInfo/SchemaObjectInfo.js +12 -3
- package/dist/containers/Tenant/Diagnostics/Overview/SchemaObjectInfo/SchemaObjectInfo.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/Overview/SchemaObjectInfo/prepareSchemaObjectInfo.d.ts +2 -1
- package/dist/containers/Tenant/Diagnostics/Overview/SchemaObjectInfo/prepareSchemaObjectInfo.js +9 -8
- package/dist/containers/Tenant/Diagnostics/Overview/SchemaObjectInfo/prepareSchemaObjectInfo.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/Overview/StreamingQueryInfo/StreamingQueryInfo.d.ts +16 -1
- package/dist/containers/Tenant/Diagnostics/Overview/StreamingQueryInfo/StreamingQueryInfo.js +55 -33
- package/dist/containers/Tenant/Diagnostics/Overview/StreamingQueryInfo/StreamingQueryInfo.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/Overview/StreamingQueryInfo/i18n/en.json +5 -1
- package/dist/containers/Tenant/Diagnostics/Overview/StreamingQueryInfo/i18n/index.d.ts +1 -1
- package/dist/containers/Tenant/Diagnostics/Overview/TableInfo/i18n/en.json +4 -0
- package/dist/containers/Tenant/Diagnostics/Overview/TableInfo/i18n/index.d.ts +1 -1
- package/dist/containers/Tenant/Diagnostics/Overview/TableInfo/prepareTableInfo/prepareColumnTableInfo.js +4 -1
- package/dist/containers/Tenant/Diagnostics/Overview/TableInfo/prepareTableInfo/prepareColumnTableInfo.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/Overview/TableInfo/prepareTableInfo/prepareRowTableInfo.js +4 -1
- package/dist/containers/Tenant/Diagnostics/Overview/TableInfo/prepareTableInfo/prepareRowTableInfo.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/Overview/TableInfo/prepareTableInfo/prepareTTL.js +41 -3
- package/dist/containers/Tenant/Diagnostics/Overview/TableInfo/prepareTableInfo/prepareTTL.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/StreamingQueryGraph/StreamingQueryGraph.d.ts +7 -0
- package/dist/containers/Tenant/Diagnostics/StreamingQueryGraph/StreamingQueryGraph.js +38 -0
- package/dist/containers/Tenant/Diagnostics/StreamingQueryGraph/StreamingQueryGraph.js.map +1 -0
- package/dist/containers/Tenant/Diagnostics/StreamingQueryGraph/StreamingQueryGraph.scss +18 -0
- package/dist/containers/Tenant/Diagnostics/StreamingQueryGraph/i18n/en.json +5 -0
- package/dist/containers/Tenant/Diagnostics/StreamingQueryGraph/i18n/index.d.ts +2 -0
- package/dist/containers/Tenant/Diagnostics/StreamingQueryGraph/i18n/index.js +5 -0
- package/dist/containers/Tenant/Diagnostics/StreamingQueryGraph/i18n/index.js.map +1 -0
- package/dist/containers/Tenant/Diagnostics/StreamingQueryGraph/index.d.ts +1 -0
- package/dist/containers/Tenant/Diagnostics/StreamingQueryGraph/index.js +2 -0
- package/dist/containers/Tenant/Diagnostics/StreamingQueryGraph/index.js.map +1 -0
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/i18n/index.d.ts +1 -1
- package/dist/containers/Tenant/Diagnostics/i18n/en.json +1 -0
- package/dist/containers/Tenant/Diagnostics/i18n/index.d.ts +1 -1
- package/dist/containers/Tenant/Diagnostics/tabsContent.js +2 -0
- package/dist/containers/Tenant/Diagnostics/tabsContent.js.map +1 -1
- package/dist/containers/Tenant/Healthcheck/components/HealthcheckDrawer.d.ts +3 -1
- package/dist/containers/Tenant/Healthcheck/components/HealthcheckDrawer.js +3 -3
- package/dist/containers/Tenant/Healthcheck/components/HealthcheckDrawer.js.map +1 -1
- package/dist/containers/Tenant/Query/QueryEditor/YqlEditor/YqlEditor.js +8 -1
- package/dist/containers/Tenant/Query/QueryEditor/YqlEditor/YqlEditor.js.map +1 -1
- package/dist/containers/Tenant/TenantDrawerHealthcheck.js +8 -1
- package/dist/containers/Tenant/TenantDrawerHealthcheck.js.map +1 -1
- package/dist/containers/Tenants/DatabaseDrawerHealthcheck.js +8 -1
- package/dist/containers/Tenants/DatabaseDrawerHealthcheck.js.map +1 -1
- package/dist/containers/VDiskPage/i18n/index.d.ts +1 -1
- package/dist/lib.d.ts +1 -1
- package/dist/lib.js.map +1 -1
- package/dist/store/configureStore.d.ts +2 -2
- package/dist/store/defaultStore.d.ts +1 -1
- package/dist/store/reducers/executeTopQueries/executeTopQueries.d.ts +7 -0
- package/dist/store/reducers/executeTopQueries/executeTopQueries.js +38 -0
- package/dist/store/reducers/executeTopQueries/executeTopQueries.js.map +1 -1
- package/dist/store/reducers/header/types.d.ts +1 -1
- package/dist/store/reducers/index.d.ts +2 -2
- package/dist/store/reducers/pdisk/types.d.ts +1 -0
- package/dist/store/reducers/pdisk/utils.js +6 -1
- package/dist/store/reducers/pdisk/utils.js.map +1 -1
- package/dist/store/reducers/query/parsers/prepareStreamingQueryPlan.d.ts +8 -0
- package/dist/store/reducers/query/parsers/prepareStreamingQueryPlan.js +53 -0
- package/dist/store/reducers/query/parsers/prepareStreamingQueryPlan.js.map +1 -0
- package/dist/store/reducers/storage/prepareGroupsDisks.d.ts +1 -0
- package/dist/store/reducers/storage/prepareGroupsDisks.js +7 -18
- package/dist/store/reducers/storage/prepareGroupsDisks.js.map +1 -1
- package/dist/store/reducers/storage/utils.js +4 -0
- package/dist/store/reducers/storage/utils.js.map +1 -1
- package/dist/store/reducers/streamingQuery/streamingQuery.d.ts +5 -1
- package/dist/store/reducers/streamingQuery/streamingQuery.js +36 -13
- package/dist/store/reducers/streamingQuery/streamingQuery.js.map +1 -1
- package/dist/store/reducers/tenant/constants.d.ts +1 -0
- package/dist/store/reducers/tenant/constants.js +1 -0
- package/dist/store/reducers/tenant/constants.js.map +1 -1
- package/dist/styles/mixins.scss +22 -0
- package/dist/types/api/pdisk.d.ts +4 -0
- package/dist/types/api/pdisk.js.map +1 -1
- package/dist/types/api/schema/columnEntity.d.ts +2 -1
- package/dist/types/api/schema/sysView.d.ts +59 -2
- package/dist/types/api/schema/sysView.js +53 -1
- package/dist/types/api/schema/sysView.js.map +1 -1
- package/dist/types/api/schema/table.d.ts +8 -0
- package/dist/types/api/schema/table.js.map +1 -1
- package/dist/types/api/vdisk.d.ts +8 -0
- package/dist/types/api/vdisk.js +7 -0
- package/dist/types/api/vdisk.js.map +1 -1
- package/dist/types/store/nodesList.d.ts +4 -2
- package/dist/uiFactory/types.d.ts +5 -2
- package/dist/utils/bytesParsers/formatBytes.d.ts +3 -1
- package/dist/utils/bytesParsers/formatBytes.js +12 -3
- package/dist/utils/bytesParsers/formatBytes.js.map +1 -1
- package/dist/utils/disks/constants.d.ts +1 -0
- package/dist/utils/disks/constants.js +4 -0
- package/dist/utils/disks/constants.js.map +1 -1
- package/dist/utils/disks/diskInfo/getDiskLocationItems.d.ts +16 -0
- package/dist/utils/disks/diskInfo/getDiskLocationItems.js +30 -0
- package/dist/utils/disks/diskInfo/getDiskLocationItems.js.map +1 -0
- package/dist/utils/disks/diskInfo/i18n/en.json +9 -0
- package/dist/utils/disks/diskInfo/i18n/index.d.ts +2 -0
- package/dist/utils/disks/diskInfo/i18n/index.js +4 -0
- package/dist/utils/disks/diskInfo/i18n/index.js.map +1 -0
- package/dist/utils/disks/iconCalculators.d.ts +5 -0
- package/dist/utils/disks/iconCalculators.js +1 -1
- package/dist/utils/disks/iconCalculators.js.map +1 -1
- package/dist/utils/disks/prepareDisks.d.ts +6 -2
- package/dist/utils/disks/prepareDisks.js +22 -35
- package/dist/utils/disks/prepareDisks.js.map +1 -1
- package/dist/utils/disks/types.d.ts +9 -2
- package/dist/utils/hooks/useNodeMetadata.d.ts +2 -0
- package/dist/utils/hooks/useNodeMetadata.js +15 -0
- package/dist/utils/hooks/useNodeMetadata.js.map +1 -0
- package/dist/utils/nodes.js +6 -2
- package/dist/utils/nodes.js.map +1 -1
- package/dist/utils/query.d.ts +1 -0
- package/dist/utils/query.js +40 -0
- package/dist/utils/query.js.map +1 -1
- package/dist/utils/schema.d.ts +6 -2
- package/dist/utils/schema.js +14 -4
- package/dist/utils/schema.js.map +1 -1
- package/dist/utils/storageMetrics.d.ts +2 -2
- package/dist/utils/storageMetrics.js +22 -10
- package/dist/utils/storageMetrics.js.map +1 -1
- package/dist/utils/timeParsers/formatDuration.d.ts +4 -1
- package/dist/utils/timeParsers/formatDuration.js +16 -1
- package/dist/utils/timeParsers/formatDuration.js.map +1 -1
- package/dist/utils/timeParsers/i18n/en.json +5 -1
- package/dist/utils/timeParsers/i18n/index.d.ts +1 -1
- package/dist/utils/timeParsers/i18n/ru.json +5 -1
- package/package.json +2 -2
- package/src/components/DiskCapacityInfo/DiskCapacityInfo.tsx +106 -15
- package/src/components/DiskPopup/DiskPopup.scss +203 -0
- package/src/components/DiskPopup/DiskPopup.tsx +123 -0
- package/src/components/DiskPopup/i18n/en.json +3 -0
- package/src/components/DiskPopup/i18n/index.ts +5 -0
- package/src/components/DiskStatus/DiskStatus.scss +59 -0
- package/src/components/DiskStatus/DiskStatus.tsx +149 -0
- package/src/components/DiskStatus/i18n/en.json +6 -0
- package/src/components/DiskStatus/i18n/index.ts +5 -0
- package/src/components/EntityStatus/EntityStatus.tsx +1 -1
- package/src/components/EvictVDiskButton/i18n/en.json +1 -1
- package/src/components/Graph/GravityGraph.tsx +9 -2
- package/src/components/Graph/utils.ts +9 -1
- package/src/components/HoverPopup/HoverPopup.tsx +67 -20
- package/src/components/HoverPopup/usePopupPriority.ts +39 -0
- package/src/components/PDiskInfo/PDiskLogSize.scss +12 -0
- package/src/components/PDiskInfo/PDiskLogSize.tsx +37 -0
- package/src/components/PDiskInfo/getPDiskDetails.tsx +37 -0
- package/src/components/PDiskInfo/i18n/en.json +64 -8
- package/src/components/PDiskInfo/statuses.ts +209 -0
- package/src/components/PDiskPopup/PDiskPopup.tsx +62 -147
- package/src/components/PDiskPopup/i18n/en.json +2 -12
- package/src/components/PaginatedTable/rowLookup.ts +35 -10
- package/src/components/StorageGroupInfo/StorageGroupInfo.scss +21 -0
- package/src/components/StorageGroupInfo/StorageGroupInfo.tsx +121 -260
- package/src/components/StorageGroupInfo/i18n/en.json +1 -9
- package/src/components/TableKeyboardNavigation/TableKeyboardNavigation.tsx +5 -1
- package/src/components/VDisk/VDisk.tsx +31 -34
- package/src/components/VDisk/VDiskWithDonorsStack.tsx +2 -0
- package/src/components/VDisk/getFlagStatusText.ts +19 -0
- package/src/components/VDisk/i18n/en.json +1 -1
- package/src/components/VDiskInfo/getVDiskDetails.tsx +41 -0
- package/src/components/VDiskInfo/i18n/en.json +3 -10
- package/src/components/VDiskPopup/VDiskPopup.scss +3 -10
- package/src/components/VDiskPopup/VDiskPopup.tsx +197 -421
- package/src/components/VDiskPopup/i18n/en.json +6 -22
- package/src/components/VDiskStatus/VDiskReplicationStatus.tsx +77 -0
- package/src/components/VDiskStatus/VDiskStatus.scss +32 -0
- package/src/components/VDiskStatus/VDiskStatus.tsx +38 -0
- package/src/components/VDiskStatus/i18n/en.json +33 -0
- package/src/components/VDiskStatus/i18n/index.ts +7 -0
- package/src/components/VDiskStatus/index.ts +7 -0
- package/src/components/VDiskStatus/statuses.ts +139 -0
- package/src/components/capacityMetricsColumns/i18n/en.json +4 -4
- package/src/containers/Authentication/Authentication.tsx +29 -34
- package/src/containers/Authentication/utils.ts +3 -3
- package/src/containers/Cluster/ClusterDrawerHealthcheck.tsx +6 -0
- package/src/containers/Clusters/ClusterDrawerHealthcheck.tsx +1 -0
- package/src/containers/Header/Header.tsx +11 -3
- package/src/containers/Header/StorageGroupLeftControls.tsx +38 -0
- package/src/containers/Header/i18n/en.json +3 -1
- package/src/containers/PDiskPage/PDiskSpaceDistribution/PDiskSpaceDistribution.tsx +13 -2
- package/src/containers/Storage/Disks/Disks.tsx +66 -12
- package/src/containers/Storage/PDisk/PDisk.tsx +3 -0
- package/src/containers/Storage/PaginatedStorageGroupsTable/columns/columns.tsx +24 -3
- package/src/containers/Storage/StorageExpertModePanel/components/SpaceLegend.scss +14 -82
- package/src/containers/Storage/StorageGroupStateLabel.tsx +22 -0
- package/src/containers/Storage/utils/getStorageGroupStateLabel.ts +49 -0
- package/src/containers/StorageGroupPage/StorageGroupPage.scss +9 -13
- package/src/containers/StorageGroupPage/StorageGroupPage.tsx +53 -25
- package/src/containers/StorageGroupPage/i18n/en.json +3 -1
- package/src/containers/Tenant/Diagnostics/DiagnosticsPages.ts +6 -1
- package/src/containers/Tenant/Diagnostics/Overview/Overview.tsx +22 -2
- package/src/containers/Tenant/Diagnostics/Overview/ResourcePoolInfo/ResourcePoolInfo.scss +24 -0
- package/src/containers/Tenant/Diagnostics/Overview/ResourcePoolInfo/ResourcePoolUsage.tsx +53 -0
- package/src/containers/Tenant/Diagnostics/Overview/ResourcePoolInfo/i18n/en.json +4 -1
- package/src/containers/Tenant/Diagnostics/Overview/ResourcePoolInfo/index.ts +1 -0
- package/src/containers/Tenant/Diagnostics/Overview/SchemaObjectInfo/SchemaObjectInfo.tsx +19 -2
- package/src/containers/Tenant/Diagnostics/Overview/SchemaObjectInfo/prepareSchemaObjectInfo.tsx +11 -10
- package/src/containers/Tenant/Diagnostics/Overview/StreamingQueryInfo/StreamingQueryInfo.tsx +79 -34
- package/src/containers/Tenant/Diagnostics/Overview/StreamingQueryInfo/i18n/en.json +5 -1
- package/src/containers/Tenant/Diagnostics/Overview/TableInfo/i18n/en.json +4 -0
- package/src/containers/Tenant/Diagnostics/Overview/TableInfo/prepareTableInfo/prepareColumnTableInfo.tsx +11 -1
- package/src/containers/Tenant/Diagnostics/Overview/TableInfo/prepareTableInfo/prepareRowTableInfo.tsx +11 -1
- package/src/containers/Tenant/Diagnostics/Overview/TableInfo/prepareTableInfo/prepareTTL.ts +45 -3
- package/src/containers/Tenant/Diagnostics/StreamingQueryGraph/StreamingQueryGraph.scss +18 -0
- package/src/containers/Tenant/Diagnostics/StreamingQueryGraph/StreamingQueryGraph.tsx +79 -0
- package/src/containers/Tenant/Diagnostics/StreamingQueryGraph/i18n/en.json +5 -0
- package/src/containers/Tenant/Diagnostics/StreamingQueryGraph/i18n/index.ts +7 -0
- package/src/containers/Tenant/Diagnostics/StreamingQueryGraph/index.ts +1 -0
- package/src/containers/Tenant/Diagnostics/i18n/en.json +1 -0
- package/src/containers/Tenant/Diagnostics/tabsContent.tsx +4 -0
- package/src/containers/Tenant/Healthcheck/components/HealthcheckDrawer.tsx +5 -2
- package/src/containers/Tenant/Query/QueryEditor/YqlEditor/YqlEditor.tsx +8 -1
- package/src/containers/Tenant/TenantDrawerHealthcheck.tsx +10 -0
- package/src/containers/Tenants/DatabaseDrawerHealthcheck.tsx +10 -0
- package/src/lib.ts +1 -0
- package/src/store/reducers/executeTopQueries/executeTopQueries.ts +46 -0
- package/src/store/reducers/header/types.ts +3 -1
- package/src/store/reducers/pdisk/types.ts +1 -0
- package/src/store/reducers/pdisk/utils.ts +6 -3
- package/src/store/reducers/query/parsers/prepareStreamingQueryPlan.ts +74 -0
- package/src/store/reducers/storage/prepareGroupsDisks.ts +7 -22
- package/src/store/reducers/storage/utils.ts +4 -0
- package/src/store/reducers/streamingQuery/streamingQuery.ts +44 -19
- package/src/store/reducers/tenant/constants.ts +1 -0
- package/src/styles/mixins.scss +22 -0
- package/src/types/api/pdisk.ts +4 -0
- package/src/types/api/schema/columnEntity.ts +2 -1
- package/src/types/api/schema/sysView.ts +60 -37
- package/src/types/api/schema/table.ts +7 -0
- package/src/types/api/vdisk.ts +9 -0
- package/src/types/store/nodesList.ts +7 -7
- package/src/uiFactory/types.ts +9 -2
- package/src/utils/bytesParsers/formatBytes.ts +23 -4
- package/src/utils/disks/constants.ts +5 -0
- package/src/utils/disks/diskInfo/getDiskLocationItems.ts +50 -0
- package/src/utils/disks/diskInfo/i18n/en.json +9 -0
- package/src/utils/disks/diskInfo/i18n/index.ts +5 -0
- package/src/utils/disks/iconCalculators.ts +1 -1
- package/src/utils/disks/prepareDisks.ts +21 -47
- package/src/utils/disks/types.ts +10 -2
- package/src/utils/hooks/useNodeMetadata.ts +21 -0
- package/src/utils/nodes.ts +6 -1
- package/src/utils/query.ts +55 -0
- package/src/utils/schema.ts +22 -5
- package/src/utils/storageMetrics.ts +27 -14
- package/src/utils/timeParsers/formatDuration.ts +22 -1
- package/src/utils/timeParsers/i18n/en.json +5 -1
- package/src/utils/timeParsers/i18n/ru.json +5 -1
|
@@ -33,15 +33,11 @@ function hasChunkAdvanced(
|
|
|
33
33
|
return false;
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
-
if (!previous.has(offset)) {
|
|
37
|
-
return true;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
36
|
const previousFulfilledTimeStamp = previous.get(offset);
|
|
41
37
|
return (
|
|
42
|
-
previousFulfilledTimeStamp
|
|
43
|
-
|
|
44
|
-
|
|
38
|
+
previousFulfilledTimeStamp !== null &&
|
|
39
|
+
previousFulfilledTimeStamp !== undefined &&
|
|
40
|
+
fulfilledTimeStamp > previousFulfilledTimeStamp
|
|
45
41
|
);
|
|
46
42
|
}
|
|
47
43
|
|
|
@@ -49,15 +45,44 @@ export function getChunkLookupRevision(states: ChunkLookupState[], revision?: st
|
|
|
49
45
|
if (!revision) {
|
|
50
46
|
return serializeChunkLookupRevision(states);
|
|
51
47
|
}
|
|
48
|
+
if (states.length === 0) {
|
|
49
|
+
return revision;
|
|
50
|
+
}
|
|
52
51
|
|
|
53
52
|
const previous = parseChunkLookupRevision(revision);
|
|
54
|
-
|
|
55
|
-
|
|
53
|
+
if (states.every((state) => hasChunkAdvanced(state, previous))) {
|
|
54
|
+
return serializeChunkLookupRevision(states);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
let changed = false;
|
|
58
|
+
const activeOffsets = new Set(states.map(({offset}) => offset));
|
|
59
|
+
for (const offset of previous.keys()) {
|
|
60
|
+
if (!activeOffsets.has(offset)) {
|
|
61
|
+
previous.delete(offset);
|
|
62
|
+
changed = true;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
for (const {offset, status, fulfilledTimeStamp} of states) {
|
|
66
|
+
const previousFulfilledTimeStamp = previous.get(offset);
|
|
67
|
+
if (
|
|
68
|
+
(previousFulfilledTimeStamp === null || previousFulfilledTimeStamp === undefined) &&
|
|
69
|
+
status === QueryStatus.fulfilled &&
|
|
70
|
+
fulfilledTimeStamp !== undefined
|
|
71
|
+
) {
|
|
72
|
+
// Initial loading establishes a baseline, not a completed polling cycle.
|
|
73
|
+
previous.set(offset, fulfilledTimeStamp);
|
|
74
|
+
changed = true;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
return changed
|
|
78
|
+
? JSON.stringify(
|
|
79
|
+
Array.from(previous).sort(([leftOffset], [rightOffset]) => leftOffset - rightOffset),
|
|
80
|
+
)
|
|
56
81
|
: revision;
|
|
57
82
|
}
|
|
58
83
|
|
|
59
84
|
export function isChunkLookupPending(states: ChunkLookupState[], revision?: string) {
|
|
60
85
|
const previous = parseChunkLookupRevision(revision);
|
|
61
86
|
|
|
62
|
-
return states.some((state) => !hasChunkAdvanced(state, previous));
|
|
87
|
+
return states.length === 0 || states.some((state) => !hasChunkAdvanced(state, previous));
|
|
63
88
|
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
.ydb-storage-group-info {
|
|
2
|
+
gap: var(--g-spacing-4) var(--g-spacing-6);
|
|
3
|
+
|
|
4
|
+
&__configuration {
|
|
5
|
+
width: 400px;
|
|
6
|
+
max-width: 100%;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
&__capacity {
|
|
10
|
+
width: 500px;
|
|
11
|
+
max-width: 100%;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.g-definition-list {
|
|
15
|
+
--g-definition-list-item-gap: var(--g-spacing-3);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.g-definition-list__definition {
|
|
19
|
+
min-width: 0;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -1,297 +1,158 @@
|
|
|
1
|
-
import {Flex} from '@gravity-ui/uikit';
|
|
1
|
+
import {Flex, Text, Tooltip} from '@gravity-ui/uikit';
|
|
2
2
|
|
|
3
3
|
import {useBlobStorageCapacityMetricsEnabled} from '../../store/reducers/capabilities/hooks';
|
|
4
4
|
import type {PreparedStorageGroup} from '../../store/reducers/storage/types';
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
5
|
+
import {isNonEmptyValue} from '../../utils';
|
|
6
|
+
import {formatBytes} from '../../utils/bytesParsers';
|
|
7
|
+
import {cn} from '../../utils/cn';
|
|
8
|
+
import {EMPTY_DATA_PLACEHOLDER} from '../../utils/constants';
|
|
9
|
+
import {formatMetricPercent, formatStorageMetricPair} from '../../utils/storageMetrics';
|
|
8
10
|
import {formatToMs} from '../../utils/timeParsers';
|
|
9
|
-
import {
|
|
11
|
+
import {parseOptionalNonNegativeNumber} from '../../utils/utils';
|
|
10
12
|
import {
|
|
11
13
|
getStorageGroupCapacityInfoItems,
|
|
12
|
-
|
|
14
|
+
toDefinitionListItems,
|
|
13
15
|
} from '../DiskCapacityInfo/DiskCapacityInfo';
|
|
14
16
|
import diskCapacityInfoKeyset from '../DiskCapacityInfo/i18n';
|
|
15
|
-
import type {InfoViewerItem} from '../InfoViewer';
|
|
16
|
-
import {InfoViewer} from '../InfoViewer';
|
|
17
|
-
import type {InfoViewerProps} from '../InfoViewer/InfoViewer';
|
|
18
17
|
import {StatusIcon} from '../StatusIcon/StatusIcon';
|
|
19
|
-
import {
|
|
18
|
+
import type {YDBDefinitionListItem} from '../YDBDefinitionList/YDBDefinitionList';
|
|
19
|
+
import {YDBDefinitionList} from '../YDBDefinitionList/YDBDefinitionList';
|
|
20
20
|
import {CAPACITY_CONFIGURATION_HELP_TEXT} from '../capacityMetricsColumns/constants';
|
|
21
21
|
import {formatCapacityUnitCount} from '../capacityMetricsColumns/formatters';
|
|
22
22
|
|
|
23
23
|
import {storageGroupInfoKeyset} from './i18n';
|
|
24
24
|
|
|
25
|
-
|
|
25
|
+
import './StorageGroupInfo.scss';
|
|
26
|
+
|
|
27
|
+
const b = cn('ydb-storage-group-info');
|
|
28
|
+
|
|
29
|
+
interface StorageGroupInfoProps {
|
|
26
30
|
data?: PreparedStorageGroup;
|
|
27
31
|
className?: string;
|
|
28
32
|
}
|
|
29
33
|
|
|
30
|
-
|
|
31
|
-
export function StorageGroupInfo({data, className, ...infoViewerProps}: StorageGroupInfoProps) {
|
|
34
|
+
export function StorageGroupInfo({data, className}: StorageGroupInfoProps) {
|
|
32
35
|
const capacityMetricsEnabled = useBlobStorageCapacityMetricsEnabled();
|
|
33
|
-
|
|
34
36
|
const {
|
|
35
|
-
|
|
36
|
-
Overall,
|
|
37
|
-
DiskSpace,
|
|
38
|
-
MediaType,
|
|
39
|
-
ErasureSpecies,
|
|
40
|
-
Used,
|
|
41
|
-
Limit,
|
|
42
|
-
Usage,
|
|
43
|
-
Read,
|
|
44
|
-
Write,
|
|
37
|
+
PoolName,
|
|
45
38
|
GroupGeneration,
|
|
46
|
-
|
|
47
|
-
State,
|
|
39
|
+
ErasureSpecies,
|
|
48
40
|
MissingDisks,
|
|
49
|
-
Available,
|
|
50
41
|
LatencyPutTabletLogMs,
|
|
51
42
|
LatencyPutUserDataMs,
|
|
52
43
|
LatencyGetFastMs,
|
|
44
|
+
Read,
|
|
45
|
+
Write,
|
|
53
46
|
GroupSizeInUnits,
|
|
47
|
+
Used,
|
|
48
|
+
Limit,
|
|
49
|
+
Available,
|
|
50
|
+
Usage,
|
|
51
|
+
DiskSpace,
|
|
54
52
|
} = data || {};
|
|
53
|
+
const configurationItems: YDBDefinitionListItem[] = [
|
|
54
|
+
{
|
|
55
|
+
name: storageGroupInfoKeyset('field_pool-name'),
|
|
56
|
+
content: PoolName ? (
|
|
57
|
+
<Tooltip content={PoolName}>
|
|
58
|
+
<Text ellipsisLines={2} wordBreak="break-word">
|
|
59
|
+
{PoolName}
|
|
60
|
+
</Text>
|
|
61
|
+
</Tooltip>
|
|
62
|
+
) : (
|
|
63
|
+
EMPTY_DATA_PLACEHOLDER
|
|
64
|
+
),
|
|
65
|
+
},
|
|
66
|
+
...(
|
|
67
|
+
[
|
|
68
|
+
[storageGroupInfoKeyset('group-generation'), GroupGeneration],
|
|
69
|
+
[storageGroupInfoKeyset('erasure-species'), ErasureSpecies],
|
|
70
|
+
[storageGroupInfoKeyset('missing-disks'), MissingDisks],
|
|
71
|
+
] as const
|
|
72
|
+
).map(([name, value]) => ({
|
|
73
|
+
name,
|
|
74
|
+
content: isNonEmptyValue(value) ? value : EMPTY_DATA_PLACEHOLDER,
|
|
75
|
+
})),
|
|
76
|
+
];
|
|
77
|
+
const latencyItems: YDBDefinitionListItem[] = (
|
|
78
|
+
[
|
|
79
|
+
[storageGroupInfoKeyset('latency-put-tablet-log'), LatencyPutTabletLogMs],
|
|
80
|
+
[storageGroupInfoKeyset('latency-put-user-data'), LatencyPutUserDataMs],
|
|
81
|
+
[storageGroupInfoKeyset('latency-get-fast'), LatencyGetFastMs],
|
|
82
|
+
] as const
|
|
83
|
+
).map(([name, value]) => {
|
|
84
|
+
const latency = parseOptionalNonNegativeNumber(value);
|
|
85
|
+
return {
|
|
86
|
+
name,
|
|
87
|
+
content: latency === undefined ? EMPTY_DATA_PLACEHOLDER : formatToMs(latency),
|
|
88
|
+
};
|
|
89
|
+
});
|
|
90
|
+
const throughputItems: YDBDefinitionListItem[] = (
|
|
91
|
+
[
|
|
92
|
+
[storageGroupInfoKeyset('read-throughput'), Read],
|
|
93
|
+
[storageGroupInfoKeyset('write-throughput'), Write],
|
|
94
|
+
] as const
|
|
95
|
+
).map(([name, value]) => ({
|
|
96
|
+
name,
|
|
97
|
+
content:
|
|
98
|
+
formatBytes({
|
|
99
|
+
value: parseOptionalNonNegativeNumber(value),
|
|
100
|
+
size: 'mb',
|
|
101
|
+
fixedDecimalPlaces: 2,
|
|
102
|
+
withSpeedLabel: true,
|
|
103
|
+
}) || EMPTY_DATA_PLACEHOLDER,
|
|
104
|
+
}));
|
|
105
|
+
const capacityItems: YDBDefinitionListItem[] = [];
|
|
55
106
|
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
note
|
|
61
|
-
|
|
62
|
-
|
|
107
|
+
if (capacityMetricsEnabled) {
|
|
108
|
+
capacityItems.push({
|
|
109
|
+
name: diskCapacityInfoKeyset('field_group-size-in-units'),
|
|
110
|
+
content: formatCapacityUnitCount(GroupSizeInUnits),
|
|
111
|
+
note: CAPACITY_CONFIGURATION_HELP_TEXT.GroupSizeInUnits,
|
|
112
|
+
});
|
|
113
|
+
}
|
|
114
|
+
capacityItems.push(
|
|
115
|
+
{
|
|
116
|
+
name: storageGroupInfoKeyset('used-space'),
|
|
117
|
+
content: formatStorageMetricPair(Used, Limit, 2),
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
name: storageGroupInfoKeyset('available'),
|
|
121
|
+
content:
|
|
122
|
+
formatBytes({
|
|
123
|
+
value: parseOptionalNonNegativeNumber(Available),
|
|
124
|
+
size: 'gb',
|
|
125
|
+
fixedDecimalPlaces: 2,
|
|
126
|
+
}) || EMPTY_DATA_PLACEHOLDER,
|
|
127
|
+
},
|
|
63
128
|
);
|
|
64
|
-
|
|
65
129
|
if (capacityMetricsEnabled) {
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
label: storageGroupInfoKeyset('erasure-species'),
|
|
78
|
-
value: ErasureSpecies,
|
|
79
|
-
});
|
|
80
|
-
}
|
|
81
|
-
if (valueIsDefined(MediaType)) {
|
|
82
|
-
configurationInfo.push({
|
|
83
|
-
label: storageGroupInfoKeyset('media-type'),
|
|
84
|
-
value: MediaType,
|
|
85
|
-
});
|
|
86
|
-
}
|
|
87
|
-
if (valueIsDefined(Encryption)) {
|
|
88
|
-
configurationInfo.push({
|
|
89
|
-
label: storageGroupInfoKeyset('encryption'),
|
|
90
|
-
value: Encryption ? storageGroupInfoKeyset('yes') : storageGroupInfoKeyset('no'),
|
|
91
|
-
});
|
|
92
|
-
}
|
|
93
|
-
configurationInfo.push({
|
|
94
|
-
label: (
|
|
95
|
-
<TitleWithHelpMark
|
|
96
|
-
header={diskCapacityInfoKeyset('field_group-size-in-units')}
|
|
97
|
-
note={CAPACITY_CONFIGURATION_HELP_TEXT.GroupSizeInUnits}
|
|
98
|
-
/>
|
|
99
|
-
),
|
|
100
|
-
value: formatCapacityUnitCount(GroupSizeInUnits),
|
|
101
|
-
});
|
|
102
|
-
|
|
103
|
-
if (valueIsDefined(Overall)) {
|
|
104
|
-
runtimeInfo.push({
|
|
105
|
-
label: storageGroupInfoKeyset('overall'),
|
|
106
|
-
value: <StatusIcon status={Overall} />,
|
|
107
|
-
});
|
|
108
|
-
}
|
|
109
|
-
if (valueIsDefined(State)) {
|
|
110
|
-
runtimeInfo.push({label: storageGroupInfoKeyset('state'), value: State});
|
|
111
|
-
}
|
|
112
|
-
if (valueIsDefined(MissingDisks)) {
|
|
113
|
-
runtimeInfo.push({
|
|
114
|
-
label: storageGroupInfoKeyset('missing-disks'),
|
|
115
|
-
value: MissingDisks,
|
|
116
|
-
});
|
|
117
|
-
}
|
|
118
|
-
if (valueIsDefined(Used) && valueIsDefined(Limit)) {
|
|
119
|
-
const usedNum = Number(Used);
|
|
120
|
-
const limitNum = Number(Limit);
|
|
121
|
-
const hasSpaceData = Number.isFinite(usedNum) && Number.isFinite(limitNum);
|
|
122
|
-
runtimeInfo.push({
|
|
123
|
-
label: storageGroupInfoKeyset('used-space'),
|
|
124
|
-
value: hasSpaceData
|
|
125
|
-
? formatStorageValuesToGb(usedNum, limitNum).join(' / ')
|
|
126
|
-
: storageGroupInfoKeyset('no-data'),
|
|
127
|
-
});
|
|
128
|
-
}
|
|
129
|
-
if (valueIsDefined(Available)) {
|
|
130
|
-
runtimeInfo.push({
|
|
131
|
-
label: storageGroupInfoKeyset('available'),
|
|
132
|
-
value: formatStorageValuesToGb(Number(Available)),
|
|
133
|
-
});
|
|
134
|
-
}
|
|
135
|
-
if (valueIsDefined(AllocationUnits)) {
|
|
136
|
-
runtimeInfo.push({
|
|
137
|
-
label: allocationUnitsLabel,
|
|
138
|
-
value: AllocationUnits,
|
|
139
|
-
});
|
|
140
|
-
}
|
|
141
|
-
runtimeInfo.push(...toInfoViewerItems(getStorageGroupCapacityInfoItems(data)));
|
|
142
|
-
if (valueIsDefined(LatencyPutTabletLogMs)) {
|
|
143
|
-
runtimeInfo.push({
|
|
144
|
-
label: storageGroupInfoKeyset('latency-put-tablet-log'),
|
|
145
|
-
value: formatToMs(LatencyPutTabletLogMs),
|
|
146
|
-
});
|
|
147
|
-
}
|
|
148
|
-
if (valueIsDefined(LatencyPutUserDataMs)) {
|
|
149
|
-
runtimeInfo.push({
|
|
150
|
-
label: storageGroupInfoKeyset('latency-put-user-data'),
|
|
151
|
-
value: formatToMs(LatencyPutUserDataMs),
|
|
152
|
-
});
|
|
153
|
-
}
|
|
154
|
-
if (valueIsDefined(LatencyGetFastMs)) {
|
|
155
|
-
runtimeInfo.push({
|
|
156
|
-
label: storageGroupInfoKeyset('latency-get-fast'),
|
|
157
|
-
value: formatToMs(LatencyGetFastMs),
|
|
158
|
-
});
|
|
159
|
-
}
|
|
160
|
-
if (valueIsDefined(Read)) {
|
|
161
|
-
runtimeInfo.push({
|
|
162
|
-
label: storageGroupInfoKeyset('read-throughput'),
|
|
163
|
-
value: bytesToSpeed(Number(Read)),
|
|
164
|
-
});
|
|
165
|
-
}
|
|
166
|
-
if (valueIsDefined(Write)) {
|
|
167
|
-
runtimeInfo.push({
|
|
168
|
-
label: storageGroupInfoKeyset('write-throughput'),
|
|
169
|
-
value: bytesToSpeed(Number(Write)),
|
|
170
|
-
});
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
return (
|
|
174
|
-
<Flex className={className} gap={2} direction="row" wrap>
|
|
175
|
-
<InfoViewer info={configurationInfo} {...infoViewerProps} />
|
|
176
|
-
<InfoViewer info={runtimeInfo} {...infoViewerProps} />
|
|
177
|
-
</Flex>
|
|
130
|
+
capacityItems.push(...toDefinitionListItems(getStorageGroupCapacityInfoItems(data)));
|
|
131
|
+
} else {
|
|
132
|
+
capacityItems.push(
|
|
133
|
+
{
|
|
134
|
+
name: storageGroupInfoKeyset('usage'),
|
|
135
|
+
content: formatMetricPercent(Usage, 2),
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
name: storageGroupInfoKeyset('disk-space'),
|
|
139
|
+
content: DiskSpace ? <StatusIcon status={DiskSpace} /> : EMPTY_DATA_PLACEHOLDER,
|
|
140
|
+
},
|
|
178
141
|
);
|
|
179
142
|
}
|
|
180
143
|
|
|
181
|
-
const storageGroupInfoFirstColumn = [];
|
|
182
|
-
|
|
183
|
-
if (valueIsDefined(GroupGeneration)) {
|
|
184
|
-
storageGroupInfoFirstColumn.push({
|
|
185
|
-
label: storageGroupInfoKeyset('group-generation'),
|
|
186
|
-
value: GroupGeneration,
|
|
187
|
-
});
|
|
188
|
-
}
|
|
189
|
-
if (valueIsDefined(ErasureSpecies)) {
|
|
190
|
-
storageGroupInfoFirstColumn.push({
|
|
191
|
-
label: storageGroupInfoKeyset('erasure-species'),
|
|
192
|
-
value: ErasureSpecies,
|
|
193
|
-
});
|
|
194
|
-
}
|
|
195
|
-
if (valueIsDefined(MediaType)) {
|
|
196
|
-
storageGroupInfoFirstColumn.push({
|
|
197
|
-
label: storageGroupInfoKeyset('media-type'),
|
|
198
|
-
value: MediaType,
|
|
199
|
-
});
|
|
200
|
-
}
|
|
201
|
-
if (valueIsDefined(Encryption)) {
|
|
202
|
-
storageGroupInfoFirstColumn.push({
|
|
203
|
-
label: storageGroupInfoKeyset('encryption'),
|
|
204
|
-
value: Encryption ? storageGroupInfoKeyset('yes') : storageGroupInfoKeyset('no'),
|
|
205
|
-
});
|
|
206
|
-
}
|
|
207
|
-
if (valueIsDefined(Overall)) {
|
|
208
|
-
storageGroupInfoFirstColumn.push({
|
|
209
|
-
label: storageGroupInfoKeyset('overall'),
|
|
210
|
-
value: <StatusIcon status={Overall} />,
|
|
211
|
-
});
|
|
212
|
-
}
|
|
213
|
-
if (valueIsDefined(State)) {
|
|
214
|
-
storageGroupInfoFirstColumn.push({label: storageGroupInfoKeyset('state'), value: State});
|
|
215
|
-
}
|
|
216
|
-
if (valueIsDefined(MissingDisks)) {
|
|
217
|
-
storageGroupInfoFirstColumn.push({
|
|
218
|
-
label: storageGroupInfoKeyset('missing-disks'),
|
|
219
|
-
value: MissingDisks,
|
|
220
|
-
});
|
|
221
|
-
}
|
|
222
|
-
|
|
223
|
-
const storageGroupInfoSecondColumn = [];
|
|
224
|
-
|
|
225
|
-
if (valueIsDefined(Used) && valueIsDefined(Limit)) {
|
|
226
|
-
const usedNum = Number(Used);
|
|
227
|
-
const limitNum = Number(Limit);
|
|
228
|
-
const hasSpaceData = Number.isFinite(usedNum) && Number.isFinite(limitNum);
|
|
229
|
-
storageGroupInfoSecondColumn.push({
|
|
230
|
-
label: storageGroupInfoKeyset('used-space'),
|
|
231
|
-
value: hasSpaceData
|
|
232
|
-
? formatStorageValuesToGb(usedNum, limitNum).join(' / ')
|
|
233
|
-
: storageGroupInfoKeyset('no-data'),
|
|
234
|
-
});
|
|
235
|
-
}
|
|
236
|
-
if (valueIsDefined(Available)) {
|
|
237
|
-
storageGroupInfoSecondColumn.push({
|
|
238
|
-
label: storageGroupInfoKeyset('available'),
|
|
239
|
-
value: formatStorageValuesToGb(Number(Available)),
|
|
240
|
-
});
|
|
241
|
-
}
|
|
242
|
-
if (valueIsDefined(Usage)) {
|
|
243
|
-
storageGroupInfoSecondColumn.push({
|
|
244
|
-
label: storageGroupInfoKeyset('usage'),
|
|
245
|
-
value: `${Usage.toFixed(2)}%`,
|
|
246
|
-
});
|
|
247
|
-
}
|
|
248
|
-
if (valueIsDefined(DiskSpace)) {
|
|
249
|
-
storageGroupInfoSecondColumn.push({
|
|
250
|
-
label: storageGroupInfoKeyset('disk-space'),
|
|
251
|
-
value: <StatusIcon status={DiskSpace} />,
|
|
252
|
-
});
|
|
253
|
-
}
|
|
254
|
-
if (valueIsDefined(LatencyPutTabletLogMs)) {
|
|
255
|
-
storageGroupInfoSecondColumn.push({
|
|
256
|
-
label: storageGroupInfoKeyset('latency-put-tablet-log'),
|
|
257
|
-
value: formatToMs(LatencyPutTabletLogMs),
|
|
258
|
-
});
|
|
259
|
-
}
|
|
260
|
-
if (valueIsDefined(LatencyPutUserDataMs)) {
|
|
261
|
-
storageGroupInfoSecondColumn.push({
|
|
262
|
-
label: storageGroupInfoKeyset('latency-put-user-data'),
|
|
263
|
-
value: formatToMs(LatencyPutUserDataMs),
|
|
264
|
-
});
|
|
265
|
-
}
|
|
266
|
-
if (valueIsDefined(LatencyGetFastMs)) {
|
|
267
|
-
storageGroupInfoSecondColumn.push({
|
|
268
|
-
label: storageGroupInfoKeyset('latency-get-fast'),
|
|
269
|
-
value: formatToMs(LatencyGetFastMs),
|
|
270
|
-
});
|
|
271
|
-
}
|
|
272
|
-
if (valueIsDefined(AllocationUnits)) {
|
|
273
|
-
storageGroupInfoSecondColumn.push({
|
|
274
|
-
label: allocationUnitsLabel,
|
|
275
|
-
value: AllocationUnits,
|
|
276
|
-
});
|
|
277
|
-
}
|
|
278
|
-
if (valueIsDefined(Read)) {
|
|
279
|
-
storageGroupInfoSecondColumn.push({
|
|
280
|
-
label: storageGroupInfoKeyset('read-throughput'),
|
|
281
|
-
value: bytesToSpeed(Number(Read)),
|
|
282
|
-
});
|
|
283
|
-
}
|
|
284
|
-
if (valueIsDefined(Write)) {
|
|
285
|
-
storageGroupInfoSecondColumn.push({
|
|
286
|
-
label: storageGroupInfoKeyset('write-throughput'),
|
|
287
|
-
value: bytesToSpeed(Number(Write)),
|
|
288
|
-
});
|
|
289
|
-
}
|
|
290
|
-
|
|
291
144
|
return (
|
|
292
|
-
<Flex className={className}
|
|
293
|
-
<
|
|
294
|
-
|
|
145
|
+
<Flex className={b(null, className)} wrap="wrap">
|
|
146
|
+
<Flex direction="column" gap={4} className={b('configuration')}>
|
|
147
|
+
<YDBDefinitionList items={configurationItems} nameMaxWidth={200} />
|
|
148
|
+
<YDBDefinitionList items={latencyItems} nameMaxWidth={200} />
|
|
149
|
+
<YDBDefinitionList items={throughputItems} nameMaxWidth={200} />
|
|
150
|
+
</Flex>
|
|
151
|
+
<YDBDefinitionList
|
|
152
|
+
items={capacityItems}
|
|
153
|
+
nameMaxWidth={200}
|
|
154
|
+
wrapperClassName={b('capacity')}
|
|
155
|
+
/>
|
|
295
156
|
</Flex>
|
|
296
157
|
);
|
|
297
158
|
}
|
|
@@ -1,20 +1,12 @@
|
|
|
1
1
|
{
|
|
2
|
-
"encryption": "Encryption",
|
|
3
|
-
"overall": "Overall",
|
|
4
2
|
"disk-space": "Disk Space",
|
|
5
|
-
"
|
|
3
|
+
"field_pool-name": "Pool Name",
|
|
6
4
|
"erasure-species": "Erasure Species",
|
|
7
5
|
"used-space": "Used Space",
|
|
8
|
-
"no-data": "No data",
|
|
9
6
|
"usage": "Usage",
|
|
10
7
|
"read-throughput": "Read Throughput",
|
|
11
8
|
"write-throughput": "Write Throughput",
|
|
12
|
-
"yes": "Yes",
|
|
13
|
-
"no": "No",
|
|
14
9
|
"group-generation": "Group Generation",
|
|
15
|
-
"allocation-units": "Allocation Units",
|
|
16
|
-
"context_allocation-units": "The number of channels used by tablets to write data to the storage group.",
|
|
17
|
-
"state": "State",
|
|
18
10
|
"missing-disks": "Missing Disks",
|
|
19
11
|
"available": "Available Space",
|
|
20
12
|
"latency-put-tablet-log": "Latency (Put Tablet Log)",
|
|
@@ -338,7 +338,11 @@ export function useTableKeyboardAdapter(options: AdapterOptions) {
|
|
|
338
338
|
? findRowIndex(current.key, current.index)
|
|
339
339
|
: current.index;
|
|
340
340
|
if (matchedIndex === undefined && isRowLookupPending?.(current.lookupRevision)) {
|
|
341
|
-
next = {
|
|
341
|
+
next = {
|
|
342
|
+
...current,
|
|
343
|
+
lookupRevision: getRowLookupRevision?.(current.lookupRevision),
|
|
344
|
+
pending: true,
|
|
345
|
+
};
|
|
342
346
|
} else {
|
|
343
347
|
const position = matchedIndex ?? current.index;
|
|
344
348
|
const index = isValidIndex?.(position) === false ? getLast() : position;
|
|
@@ -3,7 +3,7 @@ import React from 'react';
|
|
|
3
3
|
import type {PopupPlacement, PopupProps} from '@gravity-ui/uikit';
|
|
4
4
|
|
|
5
5
|
import {useVDiskPagePath} from '../../routes';
|
|
6
|
-
import {
|
|
6
|
+
import {isCapacityAlert} from '../../types/api/enums';
|
|
7
7
|
import {cn} from '../../utils/cn';
|
|
8
8
|
import {NOT_AVAILABLE_SEVERITY} from '../../utils/disks/constants';
|
|
9
9
|
import type {
|
|
@@ -25,6 +25,7 @@ import {HoverPopup} from '../HoverPopup/HoverPopup';
|
|
|
25
25
|
import {InternalLink} from '../InternalLink';
|
|
26
26
|
import {VDiskPopup} from '../VDiskPopup/VDiskPopup';
|
|
27
27
|
|
|
28
|
+
import {getFlagStatusText} from './getFlagStatusText';
|
|
28
29
|
import {i18n} from './i18n';
|
|
29
30
|
|
|
30
31
|
import './VDisk.scss';
|
|
@@ -110,22 +111,6 @@ function getVDiskBarIndicator({
|
|
|
110
111
|
};
|
|
111
112
|
}
|
|
112
113
|
|
|
113
|
-
function getFlagAccessibleName(flag: EFlag | undefined) {
|
|
114
|
-
switch (flag) {
|
|
115
|
-
case EFlag.Green:
|
|
116
|
-
case EFlag.Blue:
|
|
117
|
-
return i18n('value_ok');
|
|
118
|
-
case EFlag.Yellow:
|
|
119
|
-
return i18n('value_notice');
|
|
120
|
-
case EFlag.Orange:
|
|
121
|
-
return i18n('value_warning');
|
|
122
|
-
case EFlag.Red:
|
|
123
|
-
return i18n('value_impaired');
|
|
124
|
-
default:
|
|
125
|
-
return i18n('context_no-data');
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
|
|
129
114
|
function getReplicationAccessibleName(replicated: boolean | undefined) {
|
|
130
115
|
if (replicated === undefined) {
|
|
131
116
|
return i18n('context_no-data');
|
|
@@ -163,6 +148,28 @@ function getAllModeAccessibleName(data: PreparedVDisk, hasIssues: boolean | unde
|
|
|
163
148
|
});
|
|
164
149
|
}
|
|
165
150
|
|
|
151
|
+
function getAccessibleDiskName(
|
|
152
|
+
data: PreparedVDisk,
|
|
153
|
+
{mode, isNoData}: Pick<VDiskDisplayState, 'mode' | 'isNoData'>,
|
|
154
|
+
) {
|
|
155
|
+
const noData = i18n('context_no-data');
|
|
156
|
+
const diskName = i18n(data.DonorMode ? 'context_donor-vdisk' : 'context_vdisk', {
|
|
157
|
+
vdiskId: data.StringifiedId || noData,
|
|
158
|
+
nodeId: data.NodeId ?? noData,
|
|
159
|
+
});
|
|
160
|
+
if (!isNoData) {
|
|
161
|
+
return diskName;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
const hasVDiskWhiteboardData = data.HasWhiteboardData ?? Boolean(data.VDiskId);
|
|
165
|
+
return i18n(
|
|
166
|
+
mode === 'driveType' && hasVDiskWhiteboardData
|
|
167
|
+
? 'context_pdisk-no-whiteboard'
|
|
168
|
+
: 'context_vdisk-no-whiteboard',
|
|
169
|
+
{disk: diskName, noData},
|
|
170
|
+
);
|
|
171
|
+
}
|
|
172
|
+
|
|
166
173
|
function getAccessibleName(
|
|
167
174
|
data: PreparedVDisk,
|
|
168
175
|
{mode, allMode, isNoData, driveType}: VDiskDisplayState,
|
|
@@ -175,20 +182,7 @@ function getAccessibleName(
|
|
|
175
182
|
}
|
|
176
183
|
|
|
177
184
|
const noData = i18n('context_no-data');
|
|
178
|
-
|
|
179
|
-
vdiskId: data.StringifiedId || noData,
|
|
180
|
-
nodeId: data.NodeId ?? noData,
|
|
181
|
-
});
|
|
182
|
-
if (isNoData) {
|
|
183
|
-
const hasVDiskWhiteboardData = data.HasWhiteboardData ?? Boolean(data.VDiskId);
|
|
184
|
-
diskName = i18n(
|
|
185
|
-
mode === 'driveType' && hasVDiskWhiteboardData
|
|
186
|
-
? 'context_pdisk-no-whiteboard'
|
|
187
|
-
: 'context_vdisk-no-whiteboard',
|
|
188
|
-
{disk: diskName, noData},
|
|
189
|
-
);
|
|
190
|
-
}
|
|
191
|
-
|
|
185
|
+
const diskName = getAccessibleDiskName(data, {mode, isNoData});
|
|
192
186
|
const {CapacityAlert, FrontQueues, SatisfactionRank, Replicated} = isNoData ? {} : data;
|
|
193
187
|
const {FreshRank, LevelRank} = SatisfactionRank ?? {};
|
|
194
188
|
|
|
@@ -212,13 +206,13 @@ function getAccessibleName(
|
|
|
212
206
|
case 'frontQueues':
|
|
213
207
|
return i18n('context_front-queues-accessible-name', {
|
|
214
208
|
disk: diskName,
|
|
215
|
-
frontQueues:
|
|
209
|
+
frontQueues: getFlagStatusText(FrontQueues),
|
|
216
210
|
});
|
|
217
211
|
case 'compaction':
|
|
218
212
|
return i18n('context_compaction-accessible-name', {
|
|
219
213
|
disk: diskName,
|
|
220
|
-
freshCompaction:
|
|
221
|
-
levelCompaction:
|
|
214
|
+
freshCompaction: getFlagStatusText(FreshRank?.Flag),
|
|
215
|
+
levelCompaction: getFlagStatusText(LevelRank?.Flag),
|
|
222
216
|
});
|
|
223
217
|
default:
|
|
224
218
|
return undefined;
|
|
@@ -233,6 +227,7 @@ export interface VDiskProps {
|
|
|
233
227
|
showPopup?: boolean;
|
|
234
228
|
onShowPopup?: VoidFunction;
|
|
235
229
|
onHidePopup?: VoidFunction;
|
|
230
|
+
onClosePopup?: VoidFunction;
|
|
236
231
|
progressBarClassName?: string;
|
|
237
232
|
delayOpen?: number;
|
|
238
233
|
delayClose?: number;
|
|
@@ -256,6 +251,7 @@ export const VDisk = ({
|
|
|
256
251
|
showPopup,
|
|
257
252
|
onShowPopup,
|
|
258
253
|
onHidePopup,
|
|
254
|
+
onClosePopup,
|
|
259
255
|
progressBarClassName,
|
|
260
256
|
delayClose,
|
|
261
257
|
delayOpen,
|
|
@@ -337,6 +333,7 @@ export const VDisk = ({
|
|
|
337
333
|
showPopup={showPopup}
|
|
338
334
|
onShowPopup={onShowPopup}
|
|
339
335
|
onHidePopup={onHidePopup}
|
|
336
|
+
onClosePopup={onClosePopup}
|
|
340
337
|
renderPopupContent={({onClose}) => (
|
|
341
338
|
<VDiskPopup
|
|
342
339
|
data={hidePDiskInPopup ? {...data, PDisk: undefined} : data}
|