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
|
@@ -2,43 +2,66 @@ import type {TPathID} from './shared';
|
|
|
2
2
|
|
|
3
3
|
export interface TSysViewDescription {
|
|
4
4
|
Name?: string;
|
|
5
|
-
|
|
5
|
+
/**
|
|
6
|
+
* ESysViewType: enum name ("EVSlots") on YDB <= 26.3.1.x,
|
|
7
|
+
* numeric value (13) since ydb-platform/ydb#54332
|
|
8
|
+
*/
|
|
9
|
+
Type?: ESysViewType | number;
|
|
6
10
|
SourceObject?: TPathID;
|
|
7
11
|
}
|
|
8
12
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
13
|
+
/**
|
|
14
|
+
* Numeric ESysViewType values
|
|
15
|
+
* source: https://github.com/ydb-platform/ydb/blob/main/ydb/core/protos/sys_view_types.proto
|
|
16
|
+
*/
|
|
17
|
+
export const SYS_VIEW_TYPE_IDS = {
|
|
18
|
+
EPartitionStats: 1,
|
|
19
|
+
ENodes: 2,
|
|
20
|
+
ETopQueriesByDurationOneMinute: 3,
|
|
21
|
+
ETopQueriesByDurationOneHour: 4,
|
|
22
|
+
ETopQueriesByReadBytesOneMinute: 5,
|
|
23
|
+
ETopQueriesByReadBytesOneHour: 6,
|
|
24
|
+
ETopQueriesByCpuTimeOneMinute: 7,
|
|
25
|
+
ETopQueriesByCpuTimeOneHour: 8,
|
|
26
|
+
ETopQueriesByRequestUnitsOneMinute: 9,
|
|
27
|
+
ETopQueriesByRequestUnitsOneHour: 10,
|
|
28
|
+
EQuerySessions: 11,
|
|
29
|
+
EPDisks: 12,
|
|
30
|
+
EVSlots: 13,
|
|
31
|
+
EGroups: 14,
|
|
32
|
+
EStoragePools: 15,
|
|
33
|
+
EStorageStats: 16,
|
|
34
|
+
ETablets: 17,
|
|
35
|
+
EQueryMetricsOneMinute: 18,
|
|
36
|
+
ETopPartitionsByCpuOneMinute: 19,
|
|
37
|
+
ETopPartitionsByCpuOneHour: 20,
|
|
38
|
+
ETopPartitionsByTliOneMinute: 21,
|
|
39
|
+
ETopPartitionsByTliOneHour: 22,
|
|
40
|
+
EResourcePoolClassifiers: 23,
|
|
41
|
+
EResourcePools: 24,
|
|
42
|
+
EAuthUsers: 25,
|
|
43
|
+
EAuthGroups: 26,
|
|
44
|
+
EAuthGroupMembers: 27,
|
|
45
|
+
EAuthOwners: 28,
|
|
46
|
+
EAuthPermissions: 29,
|
|
47
|
+
EAuthEffectivePermissions: 30,
|
|
48
|
+
EPgTables: 31,
|
|
49
|
+
EInformationSchemaTables: 32,
|
|
50
|
+
EPgClass: 33,
|
|
51
|
+
EShowCreate: 34,
|
|
52
|
+
ECompileCacheQueries: 35,
|
|
53
|
+
EStorePrimaryIndexStats: 36,
|
|
54
|
+
EStorePrimaryIndexSchemaStats: 37,
|
|
55
|
+
EStorePrimaryIndexPortionStats: 38,
|
|
56
|
+
EStorePrimaryIndexGranuleStats: 39,
|
|
57
|
+
EStorePrimaryIndexOptimizerStats: 40,
|
|
58
|
+
ETablePrimaryIndexStats: 41,
|
|
59
|
+
ETablePrimaryIndexSchemaStats: 42,
|
|
60
|
+
ETablePrimaryIndexPortionStats: 43,
|
|
61
|
+
ETablePrimaryIndexGranuleStats: 44,
|
|
62
|
+
ETablePrimaryIndexOptimizerStats: 45,
|
|
63
|
+
EStreamingQueries: 46,
|
|
64
|
+
EUdfModules: 47,
|
|
65
|
+
} as const;
|
|
66
|
+
|
|
67
|
+
export type ESysViewType = keyof typeof SYS_VIEW_TYPE_IDS;
|
|
@@ -66,6 +66,13 @@ interface TEnabled {
|
|
|
66
66
|
ExpireAfterSeconds?: number;
|
|
67
67
|
ColumnUnit?: EUnit;
|
|
68
68
|
SysSettings?: TSysSettings;
|
|
69
|
+
Tiers?: TTTLTier[];
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export interface TTTLTier {
|
|
73
|
+
ApplyAfterSeconds?: number;
|
|
74
|
+
Delete?: {};
|
|
75
|
+
EvictToExternalStorage?: {Storage?: string};
|
|
69
76
|
}
|
|
70
77
|
|
|
71
78
|
interface TSysSettings {
|
package/src/types/api/vdisk.ts
CHANGED
|
@@ -41,6 +41,8 @@ export interface TVDiskStateInfo {
|
|
|
41
41
|
SatisfactionRank?: TVDiskSatisfactionRank;
|
|
42
42
|
/** Is VDisk replicated? (i.e. contains all blobs it must have) */
|
|
43
43
|
Replicated?: boolean;
|
|
44
|
+
/** Detailed Whiteboard replication status. May be absent on older nodes. */
|
|
45
|
+
DetailedReplicationStatus?: EVDiskDetailedReplicationStatus;
|
|
44
46
|
/** Does this VDisk has any yet unreplicated phantom-like blobs? */
|
|
45
47
|
UnreplicatedPhantoms?: boolean;
|
|
46
48
|
/** The same for the non-phantom-like blobs. */
|
|
@@ -138,6 +140,13 @@ export enum EVDiskState {
|
|
|
138
140
|
PDiskError = 'PDiskError',
|
|
139
141
|
}
|
|
140
142
|
|
|
143
|
+
export enum EVDiskDetailedReplicationStatus {
|
|
144
|
+
Replicated = 'Replicated',
|
|
145
|
+
WaitingForToken = 'WaitingForToken',
|
|
146
|
+
InProgress = 'InProgress',
|
|
147
|
+
PhantomsOnly = 'PhantomsOnly',
|
|
148
|
+
}
|
|
149
|
+
|
|
141
150
|
/**
|
|
142
151
|
* BSC VDisk data
|
|
143
152
|
*
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
>;
|
|
1
|
+
export interface NodeMetadata {
|
|
2
|
+
Host?: string;
|
|
3
|
+
DC?: string;
|
|
4
|
+
Rack?: string;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
export type NodesMap = Map<number, NodeMetadata>;
|
package/src/uiFactory/types.ts
CHANGED
|
@@ -7,7 +7,10 @@ import type {
|
|
|
7
7
|
GetHealthcheckViewTitles,
|
|
8
8
|
GetHealthcheckViewsOrder,
|
|
9
9
|
} from '../containers/Tenant/Healthcheck/shared';
|
|
10
|
-
import type {
|
|
10
|
+
import type {
|
|
11
|
+
HealthcheckAssistantActionProps,
|
|
12
|
+
HealthcheckAssistantTarget,
|
|
13
|
+
} from '../containers/Tenant/Healthcheck/types';
|
|
11
14
|
import type {ClusterInfo} from '../store/reducers/cluster/cluster';
|
|
12
15
|
import type {PreparedStorageNode} from '../store/reducers/storage/types';
|
|
13
16
|
import type {PreparedTenant} from '../store/reducers/tenants/types';
|
|
@@ -70,7 +73,7 @@ export interface UIFactory<H extends string = CommonIssueCategory, T extends str
|
|
|
70
73
|
* Renders after the drawer header and before Healthcheck content.
|
|
71
74
|
* Stays mounted while the drawer is open, independent of loading, error or issue state.
|
|
72
75
|
*/
|
|
73
|
-
renderDrawerExtension?: () => React.ReactNode;
|
|
76
|
+
renderDrawerExtension?: (props: HealthcheckDrawerExtensionProps) => React.ReactNode;
|
|
74
77
|
};
|
|
75
78
|
hasAccess: HasAccess;
|
|
76
79
|
hideGrantAccess?: boolean;
|
|
@@ -211,6 +214,10 @@ export type RenderNodeTooltipActions = (props: {data?: PreparedStorageNode}) =>
|
|
|
211
214
|
|
|
212
215
|
export type RenderChatPanel = () => React.ReactNode;
|
|
213
216
|
|
|
217
|
+
export interface HealthcheckDrawerExtensionProps {
|
|
218
|
+
target?: HealthcheckAssistantTarget;
|
|
219
|
+
}
|
|
220
|
+
|
|
214
221
|
export type RenderHealthcheckAssistantAction = (
|
|
215
222
|
props: HealthcheckAssistantActionProps,
|
|
216
223
|
) => React.ReactNode;
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import {GIGABYTE, KILOBYTE, MEGABYTE, PETABYTE, TERABYTE, UNBREAKABLE_GAP} from '../constants';
|
|
2
2
|
import type {FormatToSizeArgs, FormatValuesArgs} from '../dataFormatters/common';
|
|
3
|
-
import {
|
|
3
|
+
import {
|
|
4
|
+
formatNumber,
|
|
5
|
+
roundToDecimalPlaces,
|
|
6
|
+
roundToPrecision,
|
|
7
|
+
} from '../dataFormatters/dataFormatters';
|
|
8
|
+
import {configuredNumeral} from '../numeral';
|
|
4
9
|
import {isNumeric} from '../utils';
|
|
5
10
|
|
|
6
11
|
import i18n from './i18n';
|
|
@@ -57,8 +62,22 @@ export const getBytesSizeUnit = (value: number) => {
|
|
|
57
62
|
return size;
|
|
58
63
|
};
|
|
59
64
|
|
|
60
|
-
const formatToSize = ({
|
|
61
|
-
|
|
65
|
+
const formatToSize = ({
|
|
66
|
+
value,
|
|
67
|
+
size = 'mb',
|
|
68
|
+
precision = 0,
|
|
69
|
+
fixedDecimalPlaces,
|
|
70
|
+
}: FormatToSizeArgs<BytesSizes> & {fixedDecimalPlaces?: number}) => {
|
|
71
|
+
const convertedValue = Number(value) / sizes[size].value;
|
|
72
|
+
if (fixedDecimalPlaces !== undefined) {
|
|
73
|
+
const roundedValue = roundToDecimalPlaces(convertedValue, fixedDecimalPlaces);
|
|
74
|
+
const pattern =
|
|
75
|
+
roundedValue !== 0 && fixedDecimalPlaces > 0
|
|
76
|
+
? `0,0.${'0'.repeat(fixedDecimalPlaces)}`
|
|
77
|
+
: '0,0';
|
|
78
|
+
return configuredNumeral(roundedValue).format(pattern);
|
|
79
|
+
}
|
|
80
|
+
const result = roundToPrecision(convertedValue, precision);
|
|
62
81
|
|
|
63
82
|
return formatNumber(result);
|
|
64
83
|
};
|
|
@@ -78,7 +97,7 @@ export const formatBytes = ({
|
|
|
78
97
|
withSizeLabel = true,
|
|
79
98
|
delimiter,
|
|
80
99
|
...params
|
|
81
|
-
}: FormatValuesArgs<BytesSizes>) => {
|
|
100
|
+
}: FormatValuesArgs<BytesSizes> & {fixedDecimalPlaces?: number}) => {
|
|
82
101
|
if (!isNumeric(value)) {
|
|
83
102
|
return '';
|
|
84
103
|
}
|
|
@@ -142,6 +142,7 @@ export const PDISK_STATE_SEVERITY = {
|
|
|
142
142
|
export interface LabelVisualConfig {
|
|
143
143
|
theme: LabelProps['theme'];
|
|
144
144
|
icon?: IconData;
|
|
145
|
+
dangerHeavy?: boolean;
|
|
145
146
|
}
|
|
146
147
|
|
|
147
148
|
export const NUMERIC_SEVERITY_TO_LABEL_VIEW: Record<number, LabelVisualConfig> = {
|
|
@@ -157,6 +158,10 @@ export const NUMERIC_SEVERITY_TO_LABEL_VIEW: Record<number, LabelVisualConfig> =
|
|
|
157
158
|
theme: 'danger',
|
|
158
159
|
icon: CircleExclamation,
|
|
159
160
|
},
|
|
161
|
+
[SOLID_RED_SEVERITY]: {
|
|
162
|
+
theme: 'danger',
|
|
163
|
+
dangerHeavy: true,
|
|
164
|
+
},
|
|
160
165
|
[DISK_COLOR_STATE_TO_NUMERIC_SEVERITY.Blue]: {
|
|
161
166
|
theme: 'info',
|
|
162
167
|
icon: ArrowsRotateLeft,
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import {isNil} from 'lodash';
|
|
2
|
+
|
|
3
|
+
import type {YDBDefinitionListItem} from '../../../components/YDBDefinitionList/YDBDefinitionList';
|
|
4
|
+
import type {NodeMetadata} from '../../../types/store/nodesList';
|
|
5
|
+
import {EMPTY_DATA_PLACEHOLDER} from '../../constants';
|
|
6
|
+
|
|
7
|
+
import i18n from './i18n';
|
|
8
|
+
|
|
9
|
+
export interface DiskDetailItem extends YDBDefinitionListItem {
|
|
10
|
+
/** Stable field identifier for ordering and grouping independently of translated names. */
|
|
11
|
+
id: string;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
interface DiskLocationData {
|
|
15
|
+
NodeId?: number;
|
|
16
|
+
PDiskId?: number;
|
|
17
|
+
Path?: string;
|
|
18
|
+
VDiskSlotId?: number;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export function getDiskLocationItems(
|
|
22
|
+
data: DiskLocationData,
|
|
23
|
+
nodeData: NodeMetadata,
|
|
24
|
+
{withVDiskSlotId = false}: {withVDiskSlotId?: boolean} = {},
|
|
25
|
+
): DiskDetailItem[] {
|
|
26
|
+
const entries = [
|
|
27
|
+
{id: 'fqdn', name: i18n('field_fqdn'), value: nodeData.Host},
|
|
28
|
+
{id: 'rack', name: i18n('field_rack'), value: nodeData.Rack},
|
|
29
|
+
{id: 'datacenter', name: i18n('field_datacenter'), value: nodeData.DC},
|
|
30
|
+
{id: 'pdisk-path', name: i18n('field_pdisk-path'), value: data.Path},
|
|
31
|
+
{id: 'node-id', name: i18n('field_node-id'), value: data.NodeId || undefined},
|
|
32
|
+
{id: 'pdisk-id', name: i18n('field_pdisk-id'), value: data.PDiskId},
|
|
33
|
+
];
|
|
34
|
+
if (withVDiskSlotId) {
|
|
35
|
+
entries.push({
|
|
36
|
+
id: 'vdisk-slot-id',
|
|
37
|
+
name: i18n('field_vdisk-slot-id'),
|
|
38
|
+
value: data.VDiskSlotId,
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
return entries.map(({id, name, value}) => {
|
|
42
|
+
const missing = isNil(value) || value === '';
|
|
43
|
+
return {
|
|
44
|
+
id,
|
|
45
|
+
name,
|
|
46
|
+
content: missing ? EMPTY_DATA_PLACEHOLDER : value,
|
|
47
|
+
copyText: missing ? undefined : value,
|
|
48
|
+
};
|
|
49
|
+
});
|
|
50
|
+
}
|
|
@@ -161,7 +161,7 @@ export function calculateFrontQueuesIcon(
|
|
|
161
161
|
* Get icon and color for a single status flag.
|
|
162
162
|
* Maps EFlag to the corresponding pair-legend icon and color.
|
|
163
163
|
*/
|
|
164
|
-
function getFlagIconWithColor(flag: EFlag | undefined): IconWithColor | undefined {
|
|
164
|
+
export function getFlagIconWithColor(flag: EFlag | undefined): IconWithColor | undefined {
|
|
165
165
|
if (!flag || flag === EFlag.Grey) {
|
|
166
166
|
return {
|
|
167
167
|
icon: CircleQuestionFill,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {isNil} from 'lodash';
|
|
2
2
|
|
|
3
|
-
import type {TPDiskStateInfo} from '../../types/api/pdisk';
|
|
3
|
+
import type {TPDiskInfo, TPDiskStateInfo} from '../../types/api/pdisk';
|
|
4
4
|
import type {TVDiskStateInfo, TVSlotId} from '../../types/api/vdisk';
|
|
5
5
|
import {stringifyVdiskId} from '../dataFormatters/dataFormatters';
|
|
6
6
|
import {isNumeric, parseOptionalNonNegativeNumber} from '../utils';
|
|
@@ -8,7 +8,7 @@ import {isNumeric, parseOptionalNonNegativeNumber} from '../utils';
|
|
|
8
8
|
import {calculatePDiskSeverity} from './calculatePDiskSeverity';
|
|
9
9
|
import {calculateVDiskSeverity} from './calculateVDiskSeverity';
|
|
10
10
|
import {getPDiskType} from './getPDiskType';
|
|
11
|
-
import {getPDiskId, isFullVDiskData} from './helpers';
|
|
11
|
+
import {getPDiskId, isFullVDiskData, makeVDiskLocationKey} from './helpers';
|
|
12
12
|
import type {PreparedPDisk, PreparedVDisk} from './types';
|
|
13
13
|
|
|
14
14
|
export function prepareWhiteboardVDiskData(
|
|
@@ -21,16 +21,7 @@ export function prepareWhiteboardVDiskData(
|
|
|
21
21
|
if (!isFullVDiskData(vDiskState)) {
|
|
22
22
|
const {NodeId, PDiskId, VSlotId, ...restVDiskFields} = vDiskState;
|
|
23
23
|
|
|
24
|
-
const
|
|
25
|
-
!isNil(VSlotId) && !isNil(PDiskId) && !isNil(NodeId)
|
|
26
|
-
? {
|
|
27
|
-
NodeId,
|
|
28
|
-
PDiskId,
|
|
29
|
-
VSlotId,
|
|
30
|
-
}
|
|
31
|
-
: undefined;
|
|
32
|
-
|
|
33
|
-
const StringifiedId = stringifyVdiskId(vDiskId);
|
|
24
|
+
const StringifiedId = makeVDiskLocationKey(NodeId, PDiskId, VSlotId) ?? '';
|
|
34
25
|
|
|
35
26
|
return {
|
|
36
27
|
...restVDiskFields,
|
|
@@ -66,13 +57,7 @@ export function prepareWhiteboardVDiskData(
|
|
|
66
57
|
AllocatedSize: AllocatedSize,
|
|
67
58
|
SlotSize: PDisk?.EnforcedDynamicSlotSize,
|
|
68
59
|
});
|
|
69
|
-
const WhiteboardSize = hasWhiteboardData
|
|
70
|
-
? prepareWhiteboardVDiskSizeFields({
|
|
71
|
-
AvailableSize,
|
|
72
|
-
AllocatedSize,
|
|
73
|
-
SlotSize: PDisk?.EnforcedDynamicSlotSize,
|
|
74
|
-
})
|
|
75
|
-
: undefined;
|
|
60
|
+
const WhiteboardSize = hasWhiteboardData ? vDiskSizeFields.DisplaySize : undefined;
|
|
76
61
|
|
|
77
62
|
const Severity = calculateVDiskSeverity(vDiskState);
|
|
78
63
|
|
|
@@ -124,7 +109,7 @@ export function prepareWhiteboardVDiskData(
|
|
|
124
109
|
}
|
|
125
110
|
|
|
126
111
|
export function prepareWhiteboardPDiskData(
|
|
127
|
-
pdiskState: TPDiskStateInfo = {},
|
|
112
|
+
pdiskState: TPDiskStateInfo & Pick<TPDiskInfo, 'StatusV2'> = {},
|
|
128
113
|
whiteboardSizeSource: Pick<TPDiskStateInfo, 'AvailableSize' | 'TotalSize'> | null = pdiskState,
|
|
129
114
|
): PreparedPDisk {
|
|
130
115
|
const hasWhiteboardData = pdiskState.HasWhiteboardData ?? Boolean(whiteboardSizeSource);
|
|
@@ -170,33 +155,7 @@ export function prepareWhiteboardPDiskData(
|
|
|
170
155
|
State,
|
|
171
156
|
Severity,
|
|
172
157
|
SlotSize: EnforcedDynamicSlotSize,
|
|
173
|
-
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
function prepareWhiteboardVDiskSizeFields({
|
|
177
|
-
AvailableSize,
|
|
178
|
-
AllocatedSize,
|
|
179
|
-
SlotSize,
|
|
180
|
-
}: {
|
|
181
|
-
AvailableSize: unknown;
|
|
182
|
-
AllocatedSize: unknown;
|
|
183
|
-
SlotSize: unknown;
|
|
184
|
-
}) {
|
|
185
|
-
const allocatedSize = parseOptionalNonNegativeNumber(AllocatedSize);
|
|
186
|
-
const availableSize = parseOptionalNonNegativeNumber(AvailableSize);
|
|
187
|
-
const slotSize = parseOptionalNonNegativeNumber(SlotSize);
|
|
188
|
-
const preparedSizeFields = prepareVDiskSizeFields({
|
|
189
|
-
AvailableSize: availableSize,
|
|
190
|
-
AllocatedSize: allocatedSize,
|
|
191
|
-
SlotSize: slotSize,
|
|
192
|
-
});
|
|
193
|
-
|
|
194
|
-
return {
|
|
195
|
-
AllocatedSize: allocatedSize === undefined ? undefined : preparedSizeFields.AllocatedSize,
|
|
196
|
-
SizeLimit:
|
|
197
|
-
availableSize === undefined && slotSize === undefined
|
|
198
|
-
? undefined
|
|
199
|
-
: preparedSizeFields.SizeLimit,
|
|
158
|
+
DriveStatus: pdiskState.Status ?? pdiskState.StatusV2,
|
|
200
159
|
};
|
|
201
160
|
}
|
|
202
161
|
|
|
@@ -253,12 +212,27 @@ export function prepareVDiskSizeFields({
|
|
|
253
212
|
});
|
|
254
213
|
const allocatedPercent = sizeLimit > 0 ? Math.floor((allocated * 100) / sizeLimit) : NaN;
|
|
255
214
|
|
|
215
|
+
// Preserve missing values for display without changing the legacy calculations above.
|
|
216
|
+
const displayAllocatedSize = parseOptionalNonNegativeNumber(AllocatedSize);
|
|
217
|
+
const displayAvailableSize = parseOptionalNonNegativeNumber(AvailableSize);
|
|
218
|
+
const displaySlotSize = parseOptionalNonNegativeNumber(SlotSize);
|
|
219
|
+
let displaySizeLimit: number | undefined;
|
|
220
|
+
if (!displayAvailableSize && displaySlotSize) {
|
|
221
|
+
displaySizeLimit = displaySlotSize;
|
|
222
|
+
} else if (displayAllocatedSize !== undefined && displayAvailableSize !== undefined) {
|
|
223
|
+
displaySizeLimit = displayAllocatedSize + displayAvailableSize;
|
|
224
|
+
}
|
|
225
|
+
|
|
256
226
|
return {
|
|
257
227
|
AvailableSize: available,
|
|
258
228
|
AllocatedSize: allocated,
|
|
259
229
|
SizeLimit: sizeLimit,
|
|
260
230
|
FreeSize: freeSize,
|
|
261
231
|
AllocatedPercent: allocatedPercent,
|
|
232
|
+
DisplaySize: {
|
|
233
|
+
AllocatedSize: displayAllocatedSize,
|
|
234
|
+
SizeLimit: displaySizeLimit,
|
|
235
|
+
},
|
|
262
236
|
};
|
|
263
237
|
}
|
|
264
238
|
|
package/src/utils/disks/types.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type {EFlag} from '../../types/api/enums';
|
|
2
2
|
import type {EDriveStatus, TPDiskInfo, TPDiskStateInfo} from '../../types/api/pdisk';
|
|
3
|
-
import type {EVDiskStatus, TVDiskStateInfo
|
|
3
|
+
import type {EVDiskStatus, TVDiskStateInfo} from '../../types/api/vdisk';
|
|
4
4
|
import type {ValueOf} from '../../types/common';
|
|
5
5
|
|
|
6
6
|
import type {PDISK_TYPES} from './getPDiskType';
|
|
@@ -98,6 +98,8 @@ export interface PreparedVDisk
|
|
|
98
98
|
extends Omit<TVDiskStateInfo, 'PDisk' | 'AvailableSize' | 'AllocatedSize' | 'Donors'> {
|
|
99
99
|
Status?: EVDiskStatus;
|
|
100
100
|
PDisk?: PreparedPDisk;
|
|
101
|
+
PDiskType?: string;
|
|
102
|
+
PDiskPath?: string;
|
|
101
103
|
Severity?: number;
|
|
102
104
|
StringifiedId?: string;
|
|
103
105
|
|
|
@@ -106,6 +108,11 @@ export interface PreparedVDisk
|
|
|
106
108
|
AllocatedPercent?: number;
|
|
107
109
|
SizeLimit?: number;
|
|
108
110
|
FreeSize?: number;
|
|
111
|
+
/** Size values for display, preserving missing source values independently. */
|
|
112
|
+
DisplaySize?: {
|
|
113
|
+
AllocatedSize?: number;
|
|
114
|
+
SizeLimit?: number;
|
|
115
|
+
};
|
|
109
116
|
WhiteboardSize?: {
|
|
110
117
|
AllocatedSize?: number;
|
|
111
118
|
SizeLimit?: number;
|
|
@@ -118,7 +125,8 @@ export interface PreparedVDisk
|
|
|
118
125
|
|
|
119
126
|
export type PDiskType = ValueOf<typeof PDISK_TYPES>;
|
|
120
127
|
|
|
121
|
-
export interface UnavailableDonor
|
|
128
|
+
export interface UnavailableDonor
|
|
129
|
+
extends Pick<PreparedVDisk, 'NodeId' | 'PDiskId' | 'VDiskSlotId'> {
|
|
122
130
|
DonorMode?: boolean;
|
|
123
131
|
StoragePoolName?: string;
|
|
124
132
|
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import {isNil} from 'lodash';
|
|
2
|
+
|
|
3
|
+
import {selectNodesMap} from '../../store/reducers/nodesList';
|
|
4
|
+
import type {NodeMetadata} from '../../types/store/nodesList';
|
|
5
|
+
import {useTypedSelector} from '../hooks';
|
|
6
|
+
|
|
7
|
+
import {useDatabaseFromQuery} from './useDatabaseFromQuery';
|
|
8
|
+
|
|
9
|
+
export function useNodeMetadata(
|
|
10
|
+
nodeId: number | undefined,
|
|
11
|
+
parentNodeData?: NodeMetadata,
|
|
12
|
+
): NodeMetadata {
|
|
13
|
+
const database = useDatabaseFromQuery();
|
|
14
|
+
const nodesMap = useTypedSelector((state) => selectNodesMap(state, database));
|
|
15
|
+
const storedNodeData = isNil(nodeId) ? undefined : nodesMap?.get(nodeId);
|
|
16
|
+
return {
|
|
17
|
+
Host: parentNodeData?.Host || storedNodeData?.Host,
|
|
18
|
+
DC: parentNodeData?.DC || storedNodeData?.DC,
|
|
19
|
+
Rack: parentNodeData?.Rack || storedNodeData?.Rack,
|
|
20
|
+
};
|
|
21
|
+
}
|
package/src/utils/nodes.ts
CHANGED
|
@@ -32,9 +32,14 @@ export const isUnavailableNode = <
|
|
|
32
32
|
export const prepareNodesMap = (nodesList?: TNodeInfo[]) => {
|
|
33
33
|
return nodesList?.reduce<NodesMap>((nodeHosts, node) => {
|
|
34
34
|
if (valueIsDefined(node.Id)) {
|
|
35
|
+
const physicalLocation = node.PhysicalLocation;
|
|
36
|
+
// The legacy numeric Rack can be a hash of the actual rack name.
|
|
37
|
+
const Rack = physicalLocation?.Location?.match(/(?:^|\/)R=([^/]+)/)?.[1];
|
|
38
|
+
|
|
35
39
|
nodeHosts.set(node.Id, {
|
|
36
40
|
Host: node.Host,
|
|
37
|
-
DC:
|
|
41
|
+
DC: physicalLocation?.DataCenterId,
|
|
42
|
+
Rack,
|
|
38
43
|
});
|
|
39
44
|
}
|
|
40
45
|
return nodeHosts;
|
package/src/utils/query.ts
CHANGED
|
@@ -253,6 +253,61 @@ export function isErrorResponse(data: unknown): data is ErrorResponse {
|
|
|
253
253
|
return Boolean(data && typeof data === 'object' && 'issues' in data);
|
|
254
254
|
}
|
|
255
255
|
|
|
256
|
+
function hasIssueContent(data: ErrorResponse) {
|
|
257
|
+
return Boolean(data.error || data.issues?.length);
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
// The issues view walks this tree and renders these fields, so anything else would throw while drawing.
|
|
261
|
+
function isIssueTree(value: unknown): boolean {
|
|
262
|
+
return (
|
|
263
|
+
Array.isArray(value) &&
|
|
264
|
+
value.every((issue) => {
|
|
265
|
+
if (!issue || typeof issue !== 'object' || Array.isArray(issue)) {
|
|
266
|
+
return false;
|
|
267
|
+
}
|
|
268
|
+
const {
|
|
269
|
+
message,
|
|
270
|
+
issue_code: issueCode,
|
|
271
|
+
issues,
|
|
272
|
+
} = issue as {
|
|
273
|
+
message?: unknown;
|
|
274
|
+
issue_code?: unknown;
|
|
275
|
+
issues?: unknown;
|
|
276
|
+
};
|
|
277
|
+
return (
|
|
278
|
+
(message === undefined || typeof message === 'string') &&
|
|
279
|
+
(issueCode === undefined || typeof issueCode === 'number') &&
|
|
280
|
+
(issues === undefined || issues === null || isIssueTree(issues))
|
|
281
|
+
);
|
|
282
|
+
})
|
|
283
|
+
);
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
function hasRenderableIssues(data: ErrorResponse) {
|
|
287
|
+
const message: unknown = data.error?.message;
|
|
288
|
+
return (
|
|
289
|
+
(message === undefined || typeof message === 'string') &&
|
|
290
|
+
(data.issues === undefined || data.issues === null || isIssueTree(data.issues))
|
|
291
|
+
);
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
export function parseIssuesData(raw: unknown): ErrorResponse | string | undefined {
|
|
295
|
+
if (typeof raw === 'string' && raw) {
|
|
296
|
+
try {
|
|
297
|
+
const parsed: unknown = JSON.parse(raw);
|
|
298
|
+
return isErrorResponse(parsed) && hasIssueContent(parsed) && hasRenderableIssues(parsed)
|
|
299
|
+
? parsed
|
|
300
|
+
: undefined;
|
|
301
|
+
} catch {
|
|
302
|
+
return raw;
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
if (isErrorResponse(raw) && hasIssueContent(raw) && hasRenderableIssues(raw)) {
|
|
306
|
+
return raw;
|
|
307
|
+
}
|
|
308
|
+
return undefined;
|
|
309
|
+
}
|
|
310
|
+
|
|
256
311
|
// Although schema is set in request, if schema is not supported default schema for the version will be used
|
|
257
312
|
// So we should additionally parse response
|
|
258
313
|
export function parseQueryAPIResponse(
|
package/src/utils/schema.ts
CHANGED
|
@@ -1,14 +1,31 @@
|
|
|
1
1
|
import type {ESysViewType} from '../types/api/schema/sysView';
|
|
2
|
+
import {SYS_VIEW_TYPE_IDS} from '../types/api/schema/sysView';
|
|
2
3
|
|
|
3
|
-
|
|
4
|
-
|
|
4
|
+
const SYS_VIEW_TYPE_NAMES_BY_ID = new Map<number, ESysViewType>(
|
|
5
|
+
(Object.keys(SYS_VIEW_TYPE_IDS) as ESysViewType[]).map(
|
|
6
|
+
(name) => [SYS_VIEW_TYPE_IDS[name], name] as const,
|
|
7
|
+
),
|
|
8
|
+
);
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Normalizes SysViewDescription.Type for display.
|
|
12
|
+
* YDB <= 26.3.1.x returns the enum name ("EVSlots"),
|
|
13
|
+
* YDB with ydb-platform/ydb#54332 returns the numeric value (13).
|
|
14
|
+
*/
|
|
15
|
+
export function prepareSystemViewType(type?: string | number | null): string | undefined {
|
|
16
|
+
if (type === undefined || type === null || type === '') {
|
|
5
17
|
return undefined;
|
|
6
18
|
}
|
|
19
|
+
|
|
20
|
+
// Ids unknown to this UI version are shown as-is instead of hiding the row
|
|
21
|
+
const name =
|
|
22
|
+
typeof type === 'number' ? (SYS_VIEW_TYPE_NAMES_BY_ID.get(type) ?? String(type)) : type;
|
|
23
|
+
|
|
7
24
|
// System view type is enum, its format from backend is EType
|
|
8
25
|
// We need to display only Type, remove redundant E
|
|
9
26
|
// EStoragePools -> StoragePools, EStorageStats -> StorageStats
|
|
10
|
-
if (
|
|
11
|
-
return
|
|
27
|
+
if (name.startsWith('E')) {
|
|
28
|
+
return name.slice(1);
|
|
12
29
|
}
|
|
13
|
-
return
|
|
30
|
+
return name;
|
|
14
31
|
}
|