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
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
import {Text, useThemeValue} from '@gravity-ui/uikit';
|
|
4
|
+
|
|
5
|
+
import {ResponseError} from '../../../../components/Errors/ResponseError';
|
|
6
|
+
import {Loader} from '../../../../components/Loader';
|
|
7
|
+
import {prepareStreamingQueryPlan} from '../../../../store/reducers/query/parsers/prepareStreamingQueryPlan';
|
|
8
|
+
import {streamingQueriesApi} from '../../../../store/reducers/streamingQuery/streamingQuery';
|
|
9
|
+
import {cn} from '../../../../utils/cn';
|
|
10
|
+
import {getStringifiedData} from '../../../../utils/dataFormatters/dataFormatters';
|
|
11
|
+
import {useAutoRefreshInterval} from '../../../../utils/hooks';
|
|
12
|
+
import {parseIssuesData} from '../../../../utils/query';
|
|
13
|
+
import {ResultIssues} from '../../Query/Issues/Issues';
|
|
14
|
+
import {Graph} from '../../Query/QueryResult/components/Graph/Graph';
|
|
15
|
+
|
|
16
|
+
import i18n from './i18n';
|
|
17
|
+
|
|
18
|
+
import './StreamingQueryGraph.scss';
|
|
19
|
+
|
|
20
|
+
interface StreamingQueryGraphProps {
|
|
21
|
+
database: string;
|
|
22
|
+
path: string;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
const RUNNING_STATUS = 'RUNNING';
|
|
26
|
+
|
|
27
|
+
const b = cn('ydb-streaming-query-graph');
|
|
28
|
+
|
|
29
|
+
const PLAN_STATE_MESSAGES = {
|
|
30
|
+
empty: 'description_no-plan',
|
|
31
|
+
unparsed: 'description_unparsed-plan',
|
|
32
|
+
unsupported: 'description_unsupported-plan',
|
|
33
|
+
} as const;
|
|
34
|
+
|
|
35
|
+
export function StreamingQueryGraph({database, path}: StreamingQueryGraphProps) {
|
|
36
|
+
const theme = useThemeValue();
|
|
37
|
+
const [autoRefreshInterval] = useAutoRefreshInterval();
|
|
38
|
+
|
|
39
|
+
const {
|
|
40
|
+
currentData: planData,
|
|
41
|
+
isFetching,
|
|
42
|
+
error,
|
|
43
|
+
} = streamingQueriesApi.useGetStreamingQueryPlanQuery(
|
|
44
|
+
{database, path},
|
|
45
|
+
{skip: !database || !path, pollingInterval: autoRefreshInterval},
|
|
46
|
+
);
|
|
47
|
+
|
|
48
|
+
const row = planData?.resultSets?.[0]?.result?.[0];
|
|
49
|
+
|
|
50
|
+
const {state, prepared} = React.useMemo(
|
|
51
|
+
() => prepareStreamingQueryPlan(getStringifiedData(row?.Plan)),
|
|
52
|
+
[row?.Plan],
|
|
53
|
+
);
|
|
54
|
+
|
|
55
|
+
if (isFetching && planData === undefined) {
|
|
56
|
+
return <Loader size="s" className={b('loader')} />;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
const status = getStringifiedData(row?.Status);
|
|
60
|
+
const issues = parseIssuesData(row?.Issues);
|
|
61
|
+
const showStatus = Boolean(issues) || Boolean(status && status !== RUNNING_STATUS);
|
|
62
|
+
|
|
63
|
+
return (
|
|
64
|
+
<div className={b()}>
|
|
65
|
+
{error ? <ResponseError error={error} /> : null}
|
|
66
|
+
{showStatus ? (
|
|
67
|
+
<div className={b('status')}>
|
|
68
|
+
{status ? <Text variant="subheader-2">{status}</Text> : null}
|
|
69
|
+
{issues ? <ResultIssues data={issues} /> : null}
|
|
70
|
+
</div>
|
|
71
|
+
) : null}
|
|
72
|
+
{state === 'ready' ? (
|
|
73
|
+
<Graph explain={prepared} theme={theme} />
|
|
74
|
+
) : (
|
|
75
|
+
<div>{i18n(PLAN_STATE_MESSAGES[state])}</div>
|
|
76
|
+
)}
|
|
77
|
+
</div>
|
|
78
|
+
);
|
|
79
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {StreamingQueryGraph} from './StreamingQueryGraph';
|
|
@@ -19,6 +19,7 @@ import {HotKeys} from './HotKeys/HotKeys';
|
|
|
19
19
|
import {NetworkWrapper} from './Network/NetworkWrapper';
|
|
20
20
|
import {Partitions} from './Partitions/Partitions';
|
|
21
21
|
import {StorageUsage} from './StorageUsage/StorageUsage';
|
|
22
|
+
import {StreamingQueryGraph} from './StreamingQueryGraph';
|
|
22
23
|
import {TenantOverview} from './TenantOverview/TenantOverview';
|
|
23
24
|
import {TopQueries} from './TopQueries/TopQueries';
|
|
24
25
|
import {TopShards} from './TopShards/TopShards';
|
|
@@ -182,6 +183,9 @@ const diagnosticsTabRenderers: Record<TenantDiagnosticsTab, DiagnosticsTabRender
|
|
|
182
183
|
database,
|
|
183
184
|
scrollContainerRef,
|
|
184
185
|
}),
|
|
186
|
+
[TENANT_DIAGNOSTICS_TABS_IDS.computationGraph]: ({database, path}) => (
|
|
187
|
+
<StreamingQueryGraph database={database} path={path} />
|
|
188
|
+
),
|
|
185
189
|
[TENANT_DIAGNOSTICS_TABS_IDS.monitoring]: ({database, databaseFullPath}) => {
|
|
186
190
|
const content = uiFactory.renderMonitoring?.({database, databaseFullPath});
|
|
187
191
|
|
|
@@ -9,10 +9,12 @@ import {EnableFullscreenButton} from '../../../../components/EnableFullscreenBut
|
|
|
9
9
|
import type {SelfCheckResult} from '../../../../types/api/healthcheck';
|
|
10
10
|
import {uiFactory} from '../../../../uiFactory/uiFactory';
|
|
11
11
|
import {createAndDownloadJsonFile} from '../../../../utils/downloadFile';
|
|
12
|
+
import type {HealthcheckAssistantTarget} from '../types';
|
|
12
13
|
|
|
13
14
|
import {HealthcheckDrawerTitle} from './HealthcheckDrawerTitle';
|
|
14
15
|
|
|
15
16
|
interface HealthcheckDrawerProps {
|
|
17
|
+
target?: HealthcheckAssistantTarget;
|
|
16
18
|
children: React.ReactNode;
|
|
17
19
|
isDrawerVisible: boolean;
|
|
18
20
|
onCloseDrawer: () => void;
|
|
@@ -29,6 +31,7 @@ interface HealthcheckDrawerProps {
|
|
|
29
31
|
}
|
|
30
32
|
|
|
31
33
|
export function HealthcheckDrawer({
|
|
34
|
+
target,
|
|
32
35
|
children,
|
|
33
36
|
isDrawerVisible,
|
|
34
37
|
onCloseDrawer,
|
|
@@ -51,11 +54,11 @@ export function HealthcheckDrawer({
|
|
|
51
54
|
|
|
52
55
|
return (
|
|
53
56
|
<React.Fragment>
|
|
54
|
-
{renderDrawerExtension()}
|
|
57
|
+
{renderDrawerExtension({target})}
|
|
55
58
|
{renderDrawerContent()}
|
|
56
59
|
</React.Fragment>
|
|
57
60
|
);
|
|
58
|
-
}, [renderDrawerContent, renderDrawerExtension]);
|
|
61
|
+
}, [renderDrawerContent, renderDrawerExtension, target]);
|
|
59
62
|
|
|
60
63
|
const handleDownload = React.useCallback(
|
|
61
64
|
(event: React.MouseEvent<HTMLButtonElement>) => {
|
|
@@ -119,6 +119,14 @@ export function YqlEditor({
|
|
|
119
119
|
const currentStatementCleanupRef = React.useRef<VoidFunction>();
|
|
120
120
|
const [isEditorMounted, setIsEditorMounted] = React.useState(false);
|
|
121
121
|
|
|
122
|
+
React.useEffect(() => {
|
|
123
|
+
// onEditorReady removes the parent's visibility:hidden loading state.
|
|
124
|
+
// Focus after that render commits; focusing during editorDidMount is too early.
|
|
125
|
+
if (isEditorMounted) {
|
|
126
|
+
editorRef.current?.focus();
|
|
127
|
+
}
|
|
128
|
+
}, [isEditorMounted]);
|
|
129
|
+
|
|
122
130
|
const isMultiTabQueryEditorEnabled = useMultiTabQueryEditorEnabled();
|
|
123
131
|
const isAutocompleteEnabled = useEventHandler(() => Boolean(enableAutocomplete));
|
|
124
132
|
|
|
@@ -330,7 +338,6 @@ export function YqlEditor({
|
|
|
330
338
|
if (!isMultiTabQueryEditorEnabled) {
|
|
331
339
|
initUserPrompt(editor, getLastQueryText);
|
|
332
340
|
}
|
|
333
|
-
editor.focus();
|
|
334
341
|
editor.addAction({
|
|
335
342
|
id: 'sendQuery',
|
|
336
343
|
label: i18n('action_send-query'),
|
|
@@ -8,6 +8,7 @@ import {useTypedSelector} from '../../utils/hooks';
|
|
|
8
8
|
|
|
9
9
|
import {Healthcheck} from './Healthcheck/Healthcheck';
|
|
10
10
|
import {HealthcheckDrawer} from './Healthcheck/components/HealthcheckDrawer';
|
|
11
|
+
import {getDatabaseHealthcheckAssistantTarget} from './Healthcheck/utils';
|
|
11
12
|
import {useCurrentSchema} from './TenantContext';
|
|
12
13
|
import i18n from './i18n';
|
|
13
14
|
import {useTenantQueryParams} from './useTenantQueryParams';
|
|
@@ -46,6 +47,15 @@ export function TenantDrawerHealthcheck({children, clusterName}: TenantDrawerHea
|
|
|
46
47
|
|
|
47
48
|
return (
|
|
48
49
|
<HealthcheckDrawer
|
|
50
|
+
target={
|
|
51
|
+
database
|
|
52
|
+
? getDatabaseHealthcheckAssistantTarget({
|
|
53
|
+
database,
|
|
54
|
+
clusterName,
|
|
55
|
+
scope: 'database',
|
|
56
|
+
})
|
|
57
|
+
: undefined
|
|
58
|
+
}
|
|
49
59
|
isDrawerVisible={Boolean(showHealthcheck)}
|
|
50
60
|
onCloseDrawer={handleCloseDrawer}
|
|
51
61
|
renderDrawerContent={renderDrawerContent}
|
|
@@ -8,6 +8,7 @@ import type {PreparedTenant} from '../../store/reducers/tenants/types';
|
|
|
8
8
|
import {useTypedSelector} from '../../utils/hooks';
|
|
9
9
|
import {Healthcheck} from '../Tenant/Healthcheck/Healthcheck';
|
|
10
10
|
import {HealthcheckDrawer} from '../Tenant/Healthcheck/components/HealthcheckDrawer';
|
|
11
|
+
import {getDatabaseHealthcheckAssistantTarget} from '../Tenant/Healthcheck/utils';
|
|
11
12
|
import tenantI18n from '../Tenant/i18n';
|
|
12
13
|
import {useTenantQueryParams} from '../Tenant/useTenantQueryParams';
|
|
13
14
|
|
|
@@ -78,6 +79,15 @@ export function DatabaseDrawerHealthcheck({children, clusterName}: DatabaseDrawe
|
|
|
78
79
|
|
|
79
80
|
return (
|
|
80
81
|
<HealthcheckDrawer
|
|
82
|
+
target={
|
|
83
|
+
database
|
|
84
|
+
? getDatabaseHealthcheckAssistantTarget({
|
|
85
|
+
database,
|
|
86
|
+
clusterName: selectedClusterName,
|
|
87
|
+
scope: 'database',
|
|
88
|
+
})
|
|
89
|
+
: undefined
|
|
90
|
+
}
|
|
81
91
|
isDrawerVisible={Boolean(database)}
|
|
82
92
|
onCloseDrawer={handleCloseDrawer}
|
|
83
93
|
renderDrawerContent={renderDrawerContent}
|
package/src/lib.ts
CHANGED
|
@@ -106,6 +106,17 @@ WHERE Query NOT LIKE '%${QUERY_TECHNICAL_MARK}%'
|
|
|
106
106
|
AND QueryStartAt is not null`;
|
|
107
107
|
}
|
|
108
108
|
|
|
109
|
+
function getRunningQueriesByPoolText(poolName: string) {
|
|
110
|
+
const escapedPoolName = poolName.replace(/'/g, "''");
|
|
111
|
+
return `${QUERY_TECHNICAL_MARK}
|
|
112
|
+
SELECT
|
|
113
|
+
COUNT_IF(State = 'EXECUTING' AND (WmState IS NULL OR WmState NOT IN ('PENDING', 'DELAYED'))) as RunningQueriesCount,
|
|
114
|
+
COUNT_IF(State = 'QUEUED' OR WmState = 'PENDING' OR WmState = 'DELAYED') as QueuedQueriesCount
|
|
115
|
+
FROM \`.sys/query_sessions\`
|
|
116
|
+
WHERE Query NOT LIKE '%${QUERY_TECHNICAL_MARK}%'
|
|
117
|
+
AND WmPoolId = '${escapedPoolName}'`;
|
|
118
|
+
}
|
|
119
|
+
|
|
109
120
|
interface QueriesRequestParams {
|
|
110
121
|
database: string;
|
|
111
122
|
filters?: TopQueriesFilters;
|
|
@@ -233,6 +244,41 @@ export const topQueriesApi = api.injectEndpoints({
|
|
|
233
244
|
},
|
|
234
245
|
providesTags: ['All'],
|
|
235
246
|
}),
|
|
247
|
+
getRunningQueriesByPool: build.query({
|
|
248
|
+
queryFn: async (
|
|
249
|
+
{database, poolName}: {database: string; poolName: string},
|
|
250
|
+
{signal},
|
|
251
|
+
) => {
|
|
252
|
+
try {
|
|
253
|
+
const response = await window.api.viewer.sendQuery(
|
|
254
|
+
{
|
|
255
|
+
query: getRunningQueriesByPoolText(poolName),
|
|
256
|
+
database,
|
|
257
|
+
action: 'execute-query',
|
|
258
|
+
internal_call: true,
|
|
259
|
+
},
|
|
260
|
+
{signal, withRetries: true},
|
|
261
|
+
);
|
|
262
|
+
|
|
263
|
+
if (isQueryErrorResponse(response)) {
|
|
264
|
+
throw response;
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
const data = parseQueryAPIResponse(response);
|
|
268
|
+
const row = data?.resultSets?.[0]?.result?.[0];
|
|
269
|
+
|
|
270
|
+
return {
|
|
271
|
+
data: {
|
|
272
|
+
runningQueriesCount: Number(row?.RunningQueriesCount) || 0,
|
|
273
|
+
queuedQueriesCount: Number(row?.QueuedQueriesCount) || 0,
|
|
274
|
+
},
|
|
275
|
+
};
|
|
276
|
+
} catch (error) {
|
|
277
|
+
return {error};
|
|
278
|
+
}
|
|
279
|
+
},
|
|
280
|
+
providesTags: ['All'],
|
|
281
|
+
}),
|
|
236
282
|
}),
|
|
237
283
|
overrideExisting: 'throw',
|
|
238
284
|
});
|
|
@@ -76,7 +76,9 @@ export type PageBreadcrumbsOptions<T extends Page = undefined> = T extends 'home
|
|
|
76
76
|
? NodeBreadcrumbsOptions
|
|
77
77
|
: T extends 'tablet'
|
|
78
78
|
? TabletBreadcrumbsOptions
|
|
79
|
-
:
|
|
79
|
+
: T extends 'storageGroup'
|
|
80
|
+
? StorageGroupBreadcrumbsOptions
|
|
81
|
+
: {};
|
|
80
82
|
|
|
81
83
|
export interface HeaderState {
|
|
82
84
|
page?: Page;
|
|
@@ -62,9 +62,11 @@ export function preparePDiskDataResponse([pdiskResponse = {}, nodeResponse]: [
|
|
|
62
62
|
};
|
|
63
63
|
}
|
|
64
64
|
|
|
65
|
-
const preparedVDisks = WhiteboardVDisksData.map((disk) =>
|
|
66
|
-
prepareWhiteboardVDiskData({...disk, NodeId}),
|
|
67
|
-
|
|
65
|
+
const preparedVDisks = WhiteboardVDisksData.map((disk) => ({
|
|
66
|
+
...prepareWhiteboardVDiskData({...disk, NodeId}),
|
|
67
|
+
PDiskType: preparedPDisk.Type,
|
|
68
|
+
PDiskPath: preparedPDisk.Path,
|
|
69
|
+
}));
|
|
68
70
|
|
|
69
71
|
setDonorRecipientReferences((cb) => {
|
|
70
72
|
for (const vDisk of preparedVDisks) {
|
|
@@ -145,6 +147,7 @@ export function preparePDiskDataResponse([pdiskResponse = {}, nodeResponse]: [
|
|
|
145
147
|
NodeHost: preparedNode.Host,
|
|
146
148
|
NodeType: preparedNode.Roles?.[0],
|
|
147
149
|
NodeDC: preparedNode.DC,
|
|
150
|
+
NodeRack: preparedNode.Rack,
|
|
148
151
|
SlotItems: diskSlots,
|
|
149
152
|
};
|
|
150
153
|
}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import type {QueryPlan} from '../../../../types/api/query';
|
|
2
|
+
import type {PreparedQueryData} from '../types';
|
|
3
|
+
|
|
4
|
+
import {preparePlanData} from './preparePlanData';
|
|
5
|
+
|
|
6
|
+
// empty: nothing has been published yet; unparsed: a plan arrived but cannot be read,
|
|
7
|
+
// for instance truncated by the backend; unsupported: a readable plan of an unknown version.
|
|
8
|
+
export type StreamingQueryPlanState = 'empty' | 'unparsed' | 'unsupported' | 'ready';
|
|
9
|
+
|
|
10
|
+
interface StreamingQueryPlan {
|
|
11
|
+
state: StreamingQueryPlanState;
|
|
12
|
+
prepared?: PreparedQueryData['preparedPlan'];
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
function isObject(value: unknown): value is Record<string, unknown> {
|
|
16
|
+
return Boolean(value) && typeof value === 'object' && !Array.isArray(value);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
function isPlanNode(value: unknown) {
|
|
20
|
+
return isObject(value) && typeof value['Node Type'] === 'string';
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
function isStringList(value: unknown) {
|
|
24
|
+
return (
|
|
25
|
+
value === undefined || (Array.isArray(value) && value.every((i) => typeof i === 'string'))
|
|
26
|
+
);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
// The graph blocks render these fields directly, so anything else would throw while drawing.
|
|
30
|
+
function isRenderable(prepared: PreparedQueryData['preparedPlan']) {
|
|
31
|
+
return (prepared?.nodes ?? []).every(({data}) => {
|
|
32
|
+
return (
|
|
33
|
+
(data?.id === undefined || typeof data.id === 'number') &&
|
|
34
|
+
(data?.name === undefined || typeof data.name === 'string') &&
|
|
35
|
+
isStringList(data?.operators) &&
|
|
36
|
+
isStringList(data?.tables)
|
|
37
|
+
);
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export function prepareStreamingQueryPlan(planText?: string): StreamingQueryPlan {
|
|
42
|
+
if (!planText) {
|
|
43
|
+
return {state: 'empty'};
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
let parsed: unknown;
|
|
47
|
+
try {
|
|
48
|
+
parsed = JSON.parse(planText);
|
|
49
|
+
} catch {
|
|
50
|
+
return {state: 'unparsed'};
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
if (!isObject(parsed) || !isObject(parsed.meta)) {
|
|
54
|
+
return {state: 'empty'};
|
|
55
|
+
}
|
|
56
|
+
if (!parsed.Plan) {
|
|
57
|
+
return {state: 'empty'};
|
|
58
|
+
}
|
|
59
|
+
if (!isPlanNode(parsed.Plan)) {
|
|
60
|
+
return {state: 'unparsed'};
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
try {
|
|
64
|
+
const {simplifiedPlan: _simplifiedPlan, ...prepared} = preparePlanData(
|
|
65
|
+
parsed as unknown as QueryPlan,
|
|
66
|
+
);
|
|
67
|
+
if (!isRenderable(prepared)) {
|
|
68
|
+
return {state: 'unparsed'};
|
|
69
|
+
}
|
|
70
|
+
return prepared.nodes?.length ? {state: 'ready', prepared} : {state: 'unsupported'};
|
|
71
|
+
} catch {
|
|
72
|
+
return {state: 'unparsed'};
|
|
73
|
+
}
|
|
74
|
+
}
|
|
@@ -32,31 +32,14 @@ export function prepareGroupsVDisk(data: TStorageVDisk = {}): PreparedVDisk {
|
|
|
32
32
|
SlotSize: PDisk?.SlotSize,
|
|
33
33
|
});
|
|
34
34
|
|
|
35
|
-
const
|
|
36
|
-
const whiteboardAvailableSize = parseOptionalNonNegativeNumber(whiteboardVDisk.AvailableSize);
|
|
37
|
-
const whiteboardSlotSize = parseOptionalNonNegativeNumber(
|
|
38
|
-
PDisk?.Whiteboard?.EnforcedDynamicSlotSize,
|
|
39
|
-
);
|
|
40
|
-
const whiteboardSizeFields =
|
|
35
|
+
const WhiteboardSize =
|
|
41
36
|
hasWhiteboardData && data.Whiteboard
|
|
42
37
|
? prepareVDiskSizeFields({
|
|
43
|
-
AvailableSize:
|
|
44
|
-
AllocatedSize:
|
|
45
|
-
SlotSize:
|
|
46
|
-
})
|
|
38
|
+
AvailableSize: whiteboardVDisk.AvailableSize,
|
|
39
|
+
AllocatedSize: whiteboardVDisk.AllocatedSize,
|
|
40
|
+
SlotSize: PDisk?.Whiteboard?.EnforcedDynamicSlotSize,
|
|
41
|
+
}).DisplaySize
|
|
47
42
|
: undefined;
|
|
48
|
-
const WhiteboardSize = whiteboardSizeFields
|
|
49
|
-
? {
|
|
50
|
-
AllocatedSize:
|
|
51
|
-
whiteboardAllocatedSize === undefined
|
|
52
|
-
? undefined
|
|
53
|
-
: whiteboardSizeFields.AllocatedSize,
|
|
54
|
-
SizeLimit:
|
|
55
|
-
whiteboardAvailableSize === undefined && whiteboardSlotSize === undefined
|
|
56
|
-
? undefined
|
|
57
|
-
: whiteboardSizeFields.SizeLimit,
|
|
58
|
-
}
|
|
59
|
-
: undefined;
|
|
60
43
|
|
|
61
44
|
const preparedDonors = bscVDisk.Donors?.map((donor) => {
|
|
62
45
|
const preparedDonor = prepareGroupsVDisk(donor);
|
|
@@ -77,6 +60,8 @@ export function prepareGroupsVDisk(data: TStorageVDisk = {}): PreparedVDisk {
|
|
|
77
60
|
HasWhiteboardData: hasWhiteboardData,
|
|
78
61
|
...(WhiteboardSize ? {WhiteboardSize} : {}),
|
|
79
62
|
PDisk: preparedPDisk,
|
|
63
|
+
PDiskType: preparedPDisk.Type,
|
|
64
|
+
PDiskPath: preparedPDisk.Path,
|
|
80
65
|
Donors: preparedDonors,
|
|
81
66
|
PDiskId,
|
|
82
67
|
StringifiedId,
|
|
@@ -88,10 +88,14 @@ const prepareStorageNodeData = (
|
|
|
88
88
|
pDisk.Realtime !== undefined);
|
|
89
89
|
return prepareWhiteboardPDiskData({...pDisk, NodeId}, hasWhiteboardData ? pDisk : null);
|
|
90
90
|
});
|
|
91
|
+
const pDisksById = new Map(pDisks?.map((pDisk) => [pDisk.PDiskId, pDisk]));
|
|
91
92
|
const vDisks = VDisks?.map((vDisk) => {
|
|
93
|
+
const pDisk = vDisk.PDiskId === undefined ? undefined : pDisksById.get(vDisk.PDiskId);
|
|
92
94
|
return {
|
|
93
95
|
...prepareWhiteboardVDiskData({...vDisk, VDiskId: vDisk.VDiskId}),
|
|
94
96
|
NodeId,
|
|
97
|
+
PDiskType: pDisk?.Type,
|
|
98
|
+
PDiskPath: pDisk?.Path,
|
|
95
99
|
};
|
|
96
100
|
});
|
|
97
101
|
|
|
@@ -3,38 +3,63 @@ import {isQueryErrorResponse, parseQueryAPIResponse} from '../../../utils/query'
|
|
|
3
3
|
import {api} from '../api';
|
|
4
4
|
|
|
5
5
|
function getStreamingQueryInfoSQL(path: string) {
|
|
6
|
+
// Select available columns so older backends without lifecycle fields remain supported.
|
|
7
|
+
const safePath = path.replace(/'/g, "''");
|
|
8
|
+
return `${QUERY_TECHNICAL_MARK}
|
|
9
|
+
SELECT * WITHOUT Plan, Ast
|
|
10
|
+
FROM \`.sys/streaming_queries\`
|
|
11
|
+
WHERE Path = '${safePath}'
|
|
12
|
+
LIMIT 1`;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
function getStreamingQueryPlanSQL(path: string) {
|
|
6
16
|
const safePath = path.replace(/'/g, "''");
|
|
7
17
|
return `${QUERY_TECHNICAL_MARK}
|
|
8
18
|
SELECT
|
|
9
|
-
Status
|
|
10
|
-
Issues
|
|
11
|
-
|
|
19
|
+
Status,
|
|
20
|
+
Issues,
|
|
21
|
+
Plan
|
|
12
22
|
FROM \`.sys/streaming_queries\`
|
|
13
23
|
WHERE Path = '${safePath}'
|
|
14
24
|
LIMIT 1`;
|
|
15
25
|
}
|
|
16
26
|
|
|
27
|
+
async function execStreamingSQL(
|
|
28
|
+
sql: string,
|
|
29
|
+
{database, signal}: {database: string; signal: AbortSignal},
|
|
30
|
+
) {
|
|
31
|
+
const response = await window.api.viewer.sendQuery(
|
|
32
|
+
{query: sql, database, action: 'execute-query', internal_call: true},
|
|
33
|
+
{signal, withRetries: true},
|
|
34
|
+
);
|
|
35
|
+
if (isQueryErrorResponse(response)) {
|
|
36
|
+
return {error: response};
|
|
37
|
+
}
|
|
38
|
+
return {data: parseQueryAPIResponse(response)};
|
|
39
|
+
}
|
|
40
|
+
|
|
17
41
|
export const streamingQueriesApi = api.injectEndpoints({
|
|
18
42
|
endpoints: (build) => ({
|
|
19
43
|
getStreamingQueryInfo: build.query({
|
|
20
44
|
queryFn: async ({database, path}: {database: string; path: string}, {signal}) => {
|
|
21
45
|
try {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
46
|
+
return await execStreamingSQL(getStreamingQueryInfoSQL(path), {
|
|
47
|
+
database,
|
|
48
|
+
signal,
|
|
49
|
+
});
|
|
50
|
+
} catch (error) {
|
|
51
|
+
return {error};
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
providesTags: ['All'],
|
|
55
|
+
}),
|
|
56
|
+
getStreamingQueryPlan: build.query({
|
|
57
|
+
queryFn: async ({database, path}: {database: string; path: string}, {signal}) => {
|
|
58
|
+
try {
|
|
59
|
+
return await execStreamingSQL(getStreamingQueryPlanSQL(path), {
|
|
60
|
+
database,
|
|
61
|
+
signal,
|
|
62
|
+
});
|
|
38
63
|
} catch (error) {
|
|
39
64
|
return {error};
|
|
40
65
|
}
|
package/src/styles/mixins.scss
CHANGED
|
@@ -9,6 +9,28 @@
|
|
|
9
9
|
}
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
+
@mixin capacity-alert-label-colors($color) {
|
|
13
|
+
background-color: var(--ydb-capacity-alert-label-background);
|
|
14
|
+
|
|
15
|
+
@if $color == 'green' {
|
|
16
|
+
--ydb-capacity-alert-label-background: var(--g-color-base-positive-light);
|
|
17
|
+
|
|
18
|
+
color: var(--g-color-text-positive-heavy);
|
|
19
|
+
} @else if $color == 'yellow' {
|
|
20
|
+
--ydb-capacity-alert-label-background: var(--g-color-base-warning-light);
|
|
21
|
+
|
|
22
|
+
color: var(--g-color-text-warning-heavy);
|
|
23
|
+
} @else if $color == 'red' {
|
|
24
|
+
--ydb-capacity-alert-label-background: var(--g-color-base-danger-light);
|
|
25
|
+
|
|
26
|
+
color: var(--g-color-base-danger-heavy);
|
|
27
|
+
} @else {
|
|
28
|
+
--ydb-capacity-alert-label-background: var(--ydb-space-#{$color}-bg);
|
|
29
|
+
|
|
30
|
+
color: var(--ydb-space-#{$color}-text);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
12
34
|
@mixin container() {
|
|
13
35
|
max-width: 1170px;
|
|
14
36
|
margin: 0 auto;
|
package/src/types/api/pdisk.ts
CHANGED
|
@@ -56,6 +56,10 @@ export interface TPDiskStateInfo {
|
|
|
56
56
|
/** float; percent in the 0..100 scale. */
|
|
57
57
|
PDiskUsage?: number;
|
|
58
58
|
PDiskCapacityAlert?: ECapacityAlert | string;
|
|
59
|
+
/** Added by viewer from the BlobStorage controller system view. */
|
|
60
|
+
Status?: EDriveStatus;
|
|
61
|
+
DecommitStatus?: EDecommitStatus;
|
|
62
|
+
MaintenanceStatus?: EMaintenanceStatus;
|
|
59
63
|
}
|
|
60
64
|
|
|
61
65
|
export enum TPDiskState {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type {EColumnCodec, EUnit, TPathID, TStorageSettings, TTypeInfo} from './shared';
|
|
2
|
-
import type {TFamilyDescription} from './table';
|
|
2
|
+
import type {TFamilyDescription, TTTLTier} from './table';
|
|
3
3
|
|
|
4
4
|
export interface TColumnTableDescription {
|
|
5
5
|
Name?: string;
|
|
@@ -71,6 +71,7 @@ interface TTtl {
|
|
|
71
71
|
ExpireAfterBytes?: string;
|
|
72
72
|
|
|
73
73
|
ColumnUnit?: EUnit;
|
|
74
|
+
Tiers?: TTTLTier[];
|
|
74
75
|
}
|
|
75
76
|
|
|
76
77
|
interface TColumnTableSchema {
|