ydb-embedded-ui 6.11.0 → 6.13.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/components/AutoRefreshControl/i18n/index.d.ts +1 -1
- package/dist/components/ButtonWithConfirmDialog/ButtonWithConfirmDialog.d.ts +3 -2
- package/dist/components/ButtonWithConfirmDialog/ButtonWithConfirmDialog.js +9 -5
- package/dist/components/CriticalActionDialog/CriticalActionDialog.d.ts +5 -3
- package/dist/components/CriticalActionDialog/CriticalActionDialog.js +8 -7
- package/dist/components/CriticalActionDialog/CriticalActionDialog.scss +1 -1
- package/dist/components/CriticalActionDialog/i18n/en.json +1 -0
- package/dist/components/CriticalActionDialog/i18n/index.d.ts +1 -1
- package/dist/components/DateRange/DateRange.d.ts +4 -4
- package/dist/components/DateRange/DateRange.js +23 -26
- package/dist/components/DateRange/DateRange.scss +14 -13
- package/dist/components/DateRange/__test__/fromDateRangeValues.test.js +80 -0
- package/dist/components/DateRange/__test__/getdatePickerSize.test.d.ts +1 -0
- package/dist/components/DateRange/__test__/getdatePickerSize.test.js +56 -0
- package/dist/components/DateRange/__test__/toDateRangeValues.test.d.ts +1 -0
- package/dist/components/DateRange/__test__/toDateRangeValues.test.js +80 -0
- package/dist/components/DateRange/i18n/en.json +4 -0
- package/dist/components/DateRange/i18n/index.d.ts +2 -0
- package/dist/components/DateRange/i18n/index.js +5 -0
- package/dist/components/DateRange/i18n/ru.json +4 -0
- package/dist/components/DateRange/utils.d.ts +5 -0
- package/dist/components/DateRange/utils.js +41 -0
- package/dist/components/DeveloperUILinkButton/DeveloperUILinkButton.d.ts +8 -0
- package/dist/components/{DeveloperUiLink/DeveloperUiLink.js → DeveloperUILinkButton/DeveloperUILinkButton.js} +3 -3
- package/dist/components/{DeveloperUiLink/DeveloperUiLink.scss → DeveloperUILinkButton/DeveloperUILinkButton.scss} +3 -2
- package/dist/components/DiskStateProgressBar/DiskStateProgressBar.d.ts +6 -1
- package/dist/components/DiskStateProgressBar/DiskStateProgressBar.js +22 -12
- package/dist/components/DiskStateProgressBar/DiskStateProgressBar.scss +45 -45
- package/dist/components/EntityStatus/EntityStatus.js +1 -1
- package/dist/components/EntityStatus/EntityStatus.scss +6 -2
- package/dist/components/Errors/PageError/PageError.d.ts +11 -0
- package/dist/components/Errors/PageError/PageError.js +19 -0
- package/dist/components/Errors/i18n/en.json +2 -1
- package/dist/components/Errors/i18n/index.d.ts +1 -1
- package/dist/components/Errors/i18n/ru.json +2 -1
- package/dist/components/Fullscreen/Fullscreen.d.ts +1 -1
- package/dist/components/Fullscreen/Fullscreen.js +34 -27
- package/dist/components/Fullscreen/Fullscreen.scss +16 -8
- package/dist/components/Graph/Graph.d.ts +13 -0
- package/dist/components/Graph/Graph.js +41 -0
- package/dist/components/LabelWithPopover/LabelWithPopover.d.ts +4 -1
- package/dist/components/LabelWithPopover/LabelWithPopover.js +1 -1
- package/dist/components/Loader/Loader.d.ts +2 -1
- package/dist/components/Loader/Loader.js +6 -1
- package/dist/components/LoaderWrapper/LoaderWrapper.d.ts +10 -0
- package/dist/components/LoaderWrapper/LoaderWrapper.js +8 -0
- package/dist/components/MetricChart/reducer.d.ts +2 -2
- package/dist/components/MonacoEditor/MonacoEditor.js +0 -2
- package/dist/components/NodeHostWrapper/NodeHostWrapper.d.ts +0 -1
- package/dist/components/NodeHostWrapper/NodeHostWrapper.js +3 -6
- package/dist/components/PDiskInfo/PDiskInfo.d.ts +8 -5
- package/dist/components/PDiskInfo/PDiskInfo.js +76 -26
- package/dist/components/PDiskInfo/PDiskInfo.scss +15 -1
- package/dist/components/PDiskInfo/i18n/en.json +11 -5
- package/dist/components/PDiskInfo/i18n/index.d.ts +1 -1
- package/dist/components/PDiskPopup/PDiskPopup.js +8 -2
- package/dist/components/ProgressViewer/ProgressViewer.js +3 -0
- package/dist/components/QueryExecutionStatus/QueryExecutionStatus.js +13 -3
- package/dist/components/QueryExecutionStatus/QueryExecutionStatus.scss +4 -0
- package/dist/components/QuerySettingsDescription/QuerySettingsDescription.d.ts +7 -0
- package/dist/components/QuerySettingsDescription/QuerySettingsDescription.js +8 -0
- package/dist/components/QuerySettingsDescription/QuerySettingsDescription.scss +8 -0
- package/dist/components/QuerySettingsDescription/index.d.ts +1 -0
- package/dist/components/QuerySettingsDescription/index.js +1 -0
- package/dist/components/VDisk/VDisk.js +3 -4
- package/dist/components/VDiskInfo/VDiskInfo.d.ts +4 -3
- package/dist/components/VDiskInfo/VDiskInfo.js +12 -5
- package/dist/components/VDiskInfo/VDiskInfo.scss +7 -1
- package/dist/components/VDiskInfo/i18n/en.json +2 -1
- package/dist/components/VDiskInfo/i18n/index.d.ts +1 -1
- package/dist/containers/App/Content.js +15 -19
- package/dist/containers/AsideNavigation/AsideNavigation.js +2 -1
- package/dist/containers/AsideNavigation/YdbInternalUser/YdbInternalUser.js +4 -4
- package/dist/containers/Authentication/Authentication.js +8 -10
- package/dist/containers/Authentication/utils.d.ts +8 -0
- package/dist/containers/Authentication/utils.js +15 -0
- package/dist/containers/Cluster/Cluster.scss +1 -4
- package/dist/containers/Cluster/ClusterInfo/ClusterInfo.js +6 -6
- package/dist/containers/Cluster/ClusterInfo/ClusterInfo.scss +1 -1
- package/dist/containers/Clusters/constants.d.ts +1 -1
- package/dist/containers/Heatmap/Heatmap.d.ts +2 -1
- package/dist/containers/Heatmap/Heatmap.js +7 -6
- package/dist/containers/Node/Node.js +5 -7
- package/dist/containers/Node/Node.scss +5 -4
- package/dist/containers/Node/NodeStructure/NodeStructure.js +4 -4
- package/dist/containers/Node/NodeStructure/NodeStructure.scss +4 -20
- package/dist/containers/Node/NodeStructure/Pdisk.js +3 -3
- package/dist/containers/Nodes/Nodes.js +6 -8
- package/dist/containers/Nodes/getNodesColumns.js +6 -21
- package/dist/containers/PDiskPage/PDiskGroups/PDiskGroups.d.ts +6 -0
- package/dist/containers/PDiskPage/PDiskGroups/PDiskGroups.js +24 -0
- package/dist/containers/PDiskPage/PDiskPage.js +79 -30
- package/dist/containers/PDiskPage/PDiskPage.scss +8 -5
- package/dist/containers/PDiskPage/PDiskSpaceDistribution/PDiskSpaceDistribution.d.ts +7 -0
- package/dist/containers/PDiskPage/PDiskSpaceDistribution/PDiskSpaceDistribution.js +93 -0
- package/dist/containers/PDiskPage/PDiskSpaceDistribution/PDiskSpaceDistribution.scss +52 -0
- package/dist/containers/PDiskPage/PDiskSpaceDistribution/utils.d.ts +4 -0
- package/dist/containers/PDiskPage/PDiskSpaceDistribution/utils.js +9 -0
- package/dist/containers/PDiskPage/i18n/en.json +9 -1
- package/dist/containers/PDiskPage/i18n/index.d.ts +1 -1
- package/dist/containers/Storage/PDisk/PDisk.js +3 -4
- package/dist/containers/Storage/Storage.js +4 -6
- package/dist/containers/Storage/StorageGroups/getStorageGroupsColumns.js +16 -6
- package/dist/containers/Tablet/Tablet.js +2 -2
- package/dist/containers/Tablet/TabletControls/TabletControls.js +2 -1
- package/dist/containers/Tablets/Tablets.js +14 -13
- package/dist/containers/Tenant/Acl/Acl.d.ts +2 -1
- package/dist/containers/Tenant/Acl/Acl.js +10 -8
- package/dist/containers/Tenant/Acl/Acl.scss +8 -8
- package/dist/containers/Tenant/Acl/i18n/en.json +6 -0
- package/dist/containers/Tenant/Acl/i18n/index.d.ts +2 -0
- package/dist/containers/Tenant/Acl/i18n/index.js +4 -0
- package/dist/containers/Tenant/Diagnostics/Consumers/Consumers.js +2 -5
- package/dist/containers/Tenant/Diagnostics/Describe/Describe.d.ts +2 -1
- package/dist/containers/Tenant/Diagnostics/Describe/Describe.js +14 -17
- package/dist/containers/Tenant/Diagnostics/DetailedOverview/DetailedOverview.js +1 -1
- package/dist/containers/Tenant/Diagnostics/DetailedOverview/DetailedOverview.scss +1 -0
- package/dist/containers/Tenant/Diagnostics/Diagnostics.js +3 -3
- package/dist/containers/Tenant/Diagnostics/Diagnostics.scss +3 -1
- package/dist/containers/Tenant/Diagnostics/HotKeys/HotKeys.d.ts +2 -1
- package/dist/containers/Tenant/Diagnostics/HotKeys/HotKeys.js +3 -3
- package/dist/containers/Tenant/Diagnostics/Network/Network.js +8 -11
- package/dist/containers/Tenant/Diagnostics/Network/Network.scss +1 -0
- package/dist/containers/Tenant/Diagnostics/Overview/Overview.d.ts +2 -2
- package/dist/containers/Tenant/Diagnostics/Overview/Overview.js +8 -10
- package/dist/containers/Tenant/Diagnostics/Overview/TableInfo/i18n/en.json +14 -1
- package/dist/containers/Tenant/Diagnostics/Overview/TableInfo/i18n/index.d.ts +1 -1
- package/dist/containers/Tenant/Diagnostics/Overview/TableInfo/i18n/index.js +1 -2
- package/dist/containers/Tenant/Diagnostics/Overview/TableInfo/prepareTableInfo.js +36 -17
- package/dist/containers/Tenant/Diagnostics/Overview/TopicStats/TopicStats.js +3 -4
- package/dist/containers/Tenant/Diagnostics/Partitions/Partitions.js +1 -4
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopQueries.js +8 -5
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantOverview.js +1 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantOverviewTableLayout.js +3 -3
- package/dist/containers/Tenant/Diagnostics/TenantOverview/getSectionTitle.d.ts +2 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/getSectionTitle.js +2 -2
- package/dist/containers/Tenant/Diagnostics/TenantOverview/i18n/en.json +3 -2
- package/dist/containers/Tenant/Diagnostics/TenantOverview/i18n/index.d.ts +1 -1
- package/dist/containers/Tenant/Diagnostics/TopQueries/TopQueries.js +6 -5
- package/dist/containers/Tenant/Diagnostics/TopQueries/getTopQueriesColumns.d.ts +2 -2
- package/dist/containers/Tenant/Diagnostics/TopQueries/getTopQueriesColumns.js +14 -14
- package/dist/containers/Tenant/Diagnostics/TopShards/TopShards.js +7 -6
- package/dist/containers/Tenant/Diagnostics/TopShards/getTopShardsColumns.js +4 -4
- package/dist/containers/Tenant/ObjectSummary/ObjectSummary.js +31 -18
- package/dist/containers/Tenant/Query/ExecuteResult/ExecuteResult.d.ts +2 -2
- package/dist/containers/Tenant/Query/ExecuteResult/ExecuteResult.js +56 -20
- package/dist/containers/Tenant/Query/ExecuteResult/ExecuteResult.scss +10 -6
- package/dist/containers/Tenant/Query/ExecuteResult/i18n/en.json +7 -0
- package/dist/containers/Tenant/Query/ExecuteResult/i18n/index.d.ts +2 -0
- package/dist/containers/Tenant/Query/ExecuteResult/i18n/index.js +4 -0
- package/dist/containers/Tenant/Query/ExecuteResult/utils.d.ts +18 -0
- package/dist/containers/Tenant/Query/ExecuteResult/utils.js +36 -0
- package/dist/containers/Tenant/Query/ExplainResult/ExplainResult.d.ts +23 -1
- package/dist/containers/Tenant/Query/ExplainResult/ExplainResult.js +56 -111
- package/dist/containers/Tenant/Query/ExplainResult/ExplainResult.scss +1 -30
- package/dist/containers/Tenant/Query/ExplainResult/components/Ast/Ast.d.ts +7 -0
- package/dist/containers/Tenant/Query/ExplainResult/components/Ast/Ast.js +18 -0
- package/dist/containers/Tenant/Query/ExplainResult/components/Ast/Ast.scss +8 -0
- package/dist/containers/Tenant/Query/ExplainResult/components/Graph/Graph.d.ts +8 -0
- package/dist/containers/Tenant/Query/ExplainResult/components/Graph/Graph.js +14 -0
- package/dist/containers/Tenant/Query/ExplainResult/components/Graph/Graph.scss +14 -0
- package/dist/containers/Tenant/Query/ExplainResult/components/SimplifiedPlan/MetricsCell.d.ts +6 -0
- package/dist/containers/Tenant/Query/ExplainResult/components/SimplifiedPlan/MetricsCell.js +11 -0
- package/dist/containers/Tenant/Query/ExplainResult/components/SimplifiedPlan/OperationCell.d.ts +13 -0
- package/dist/containers/Tenant/Query/ExplainResult/components/SimplifiedPlan/OperationCell.js +48 -0
- package/dist/containers/Tenant/Query/ExplainResult/components/SimplifiedPlan/OperationParams.d.ts +6 -0
- package/dist/containers/Tenant/Query/ExplainResult/components/SimplifiedPlan/OperationParams.js +66 -0
- package/dist/containers/Tenant/Query/ExplainResult/components/SimplifiedPlan/SimplifiedPlan.d.ts +7 -0
- package/dist/containers/Tenant/Query/ExplainResult/components/SimplifiedPlan/SimplifiedPlan.js +100 -0
- package/dist/containers/Tenant/Query/ExplainResult/components/SimplifiedPlan/SimplifiedPlan.scss +128 -0
- package/dist/containers/Tenant/Query/ExplainResult/components/SimplifiedPlan/types.d.ts +5 -0
- package/dist/containers/Tenant/Query/ExplainResult/components/SimplifiedPlan/types.js +1 -0
- package/dist/containers/Tenant/Query/ExplainResult/components/SimplifiedPlan/utils.d.ts +5 -0
- package/dist/containers/Tenant/Query/ExplainResult/components/SimplifiedPlan/utils.js +59 -0
- package/dist/containers/Tenant/Query/ExplainResult/components/TextExplain/TextExplain.d.ts +8 -0
- package/dist/containers/Tenant/Query/ExplainResult/components/TextExplain/TextExplain.js +11 -0
- package/dist/containers/Tenant/Query/ExplainResult/components/TextExplain/TextExplain.scss +14 -0
- package/dist/containers/Tenant/Query/ExplainResult/i18n/en.json +8 -0
- package/dist/containers/Tenant/Query/ExplainResult/i18n/index.d.ts +2 -0
- package/dist/containers/Tenant/Query/ExplainResult/i18n/index.js +4 -0
- package/dist/containers/Tenant/Query/Preview/Preview.js +2 -3
- package/dist/containers/Tenant/Query/QueriesHistory/QueriesHistory.js +1 -19
- package/dist/containers/Tenant/Query/QueryDuration/QueryDuration.js +1 -1
- package/dist/containers/Tenant/Query/QueryDuration/QueryDuration.scss +11 -0
- package/dist/containers/Tenant/Query/QueryEditor/QueryEditor.d.ts +1 -1
- package/dist/containers/Tenant/Query/QueryEditor/QueryEditor.js +96 -95
- package/dist/containers/Tenant/Query/QueryEditorControls/QueryEditorControls.d.ts +5 -6
- package/dist/containers/Tenant/Query/QueryEditorControls/QueryEditorControls.js +18 -47
- package/dist/containers/Tenant/Query/QueryEditorControls/utils/getChangedQueryExecutionSettings.d.ts +2 -0
- package/dist/containers/Tenant/Query/QueryEditorControls/utils/getChangedQueryExecutionSettings.js +5 -0
- package/dist/containers/Tenant/Query/QueryEditorControls/utils/getChangedQueryExecutionSettings.test.d.ts +1 -0
- package/dist/containers/Tenant/Query/QueryEditorControls/utils/getChangedQueryExecutionSettings.test.js +42 -0
- package/dist/containers/Tenant/Query/QueryEditorControls/utils/getChangedQueryExecutionSettingsDescription.d.ts +5 -0
- package/dist/containers/Tenant/Query/QueryEditorControls/utils/getChangedQueryExecutionSettingsDescription.js +19 -0
- package/dist/containers/Tenant/Query/QueryEditorControls/utils/getChangedQueryExecutionSettingsDescription.test.d.ts +1 -0
- package/dist/containers/Tenant/Query/QueryEditorControls/utils/getChangedQueryExecutionSettingsDescription.test.js +56 -0
- package/dist/containers/Tenant/Query/QuerySettingsBanner/QuerySettingsBanner.d.ts +2 -0
- package/dist/containers/Tenant/Query/QuerySettingsBanner/QuerySettingsBanner.js +12 -0
- package/dist/containers/Tenant/Query/QuerySettingsBanner/QuerySettingsBanner.scss +3 -0
- package/dist/containers/Tenant/Query/QuerySettingsDialog/QuerySettingsDialog.d.ts +2 -0
- package/dist/containers/Tenant/Query/QuerySettingsDialog/QuerySettingsDialog.js +35 -0
- package/dist/containers/Tenant/Query/QuerySettingsDialog/QuerySettingsDialog.scss +63 -0
- package/dist/containers/Tenant/Query/QuerySettingsDialog/QuerySettingsSelect.d.ts +15 -0
- package/dist/containers/Tenant/Query/QuerySettingsDialog/QuerySettingsSelect.js +14 -0
- package/dist/containers/Tenant/Query/QuerySettingsDialog/QuerySettingsSelect.scss +19 -0
- package/dist/containers/Tenant/Query/QuerySettingsDialog/constants.d.ts +215 -0
- package/dist/containers/Tenant/Query/QuerySettingsDialog/constants.js +131 -0
- package/dist/containers/Tenant/Query/QuerySettingsDialog/i18n/en.json +13 -0
- package/dist/containers/Tenant/Query/QuerySettingsDialog/i18n/index.d.ts +2 -0
- package/dist/containers/Tenant/Query/QuerySettingsDialog/i18n/index.js +5 -0
- package/dist/containers/Tenant/Query/QuerySettingsDialog/i18n/ru.json +13 -0
- package/dist/containers/Tenant/Query/i18n/en.json +17 -1
- package/dist/containers/Tenant/Query/i18n/index.d.ts +1 -1
- package/dist/containers/Tenant/Schema/CreateDirectoryDialog/CreateDirectoryDialog.d.ts +3 -2
- package/dist/containers/Tenant/Schema/CreateDirectoryDialog/CreateDirectoryDialog.js +2 -2
- package/dist/containers/Tenant/Schema/SchemaTree/SchemaTree.js +8 -8
- package/dist/containers/Tenant/Schema/SchemaViewer/SchemaViewer.js +6 -3
- package/dist/containers/Tenant/Schema/SchemaViewer/columns.d.ts +2 -1
- package/dist/containers/Tenant/Schema/SchemaViewer/columns.js +13 -1
- package/dist/containers/Tenant/Schema/SchemaViewer/i18n/en.json +1 -0
- package/dist/containers/Tenant/Schema/SchemaViewer/i18n/index.d.ts +1 -1
- package/dist/containers/Tenant/Schema/SchemaViewer/prepareData.js +3 -2
- package/dist/containers/Tenant/Schema/SchemaViewer/types.d.ts +1 -0
- package/dist/containers/Tenant/Tenant.js +4 -8
- package/dist/containers/Tenant/TenantPages.d.ts +12 -1
- package/dist/containers/Tenant/TenantPages.js +1 -1
- package/dist/containers/Tenant/i18n/en.json +2 -2
- package/dist/containers/Tenant/i18n/index.d.ts +1 -1
- package/dist/containers/Tenant/utils/schema.js +1 -1
- package/dist/containers/Tenant/utils/schemaActions.d.ts +2 -2
- package/dist/containers/Tenant/utils/schemaActions.js +2 -2
- package/dist/containers/Tenants/Tenants.js +5 -8
- package/dist/containers/Tenants/Tenants.scss +0 -4
- package/dist/containers/UserSettings/i18n/en.json +3 -3
- package/dist/containers/UserSettings/i18n/index.d.ts +1 -1
- package/dist/containers/UserSettings/settings.d.ts +2 -2
- package/dist/containers/UserSettings/settings.js +18 -19
- package/dist/containers/VDiskPage/VDiskPage.js +27 -13
- package/dist/containers/VDiskPage/i18n/en.json +1 -0
- package/dist/containers/VDiskPage/i18n/index.d.ts +1 -1
- package/dist/routes.js +2 -2
- package/dist/services/api.d.ts +59 -28
- package/dist/services/api.js +74 -98
- package/dist/services/settings.d.ts +11 -3
- package/dist/services/settings.js +7 -5
- package/dist/store/configureStore.d.ts +7 -7
- package/dist/store/defaultStore.d.ts +3 -3
- package/dist/store/reducers/api.d.ts +1 -1
- package/dist/store/reducers/api.js +1 -1
- package/dist/store/reducers/authentication/authentication.d.ts +37 -24
- package/dist/store/reducers/authentication/authentication.js +77 -57
- package/dist/store/reducers/authentication/types.d.ts +0 -8
- package/dist/store/reducers/capabilities/capabilities.d.ts +106 -0
- package/dist/store/reducers/capabilities/capabilities.js +22 -0
- package/dist/store/reducers/capabilities/hooks.d.ts +2 -0
- package/dist/store/reducers/capabilities/hooks.js +13 -0
- package/dist/store/reducers/cluster/cluster.d.ts +2 -2
- package/dist/store/reducers/clusterNodes/clusterNodes.d.ts +2 -2
- package/dist/store/reducers/clusters/clusters.d.ts +2 -2
- package/dist/store/reducers/describe.d.ts +5 -2
- package/dist/store/reducers/describe.js +2 -2
- package/dist/store/reducers/executeQuery.d.ts +7 -14
- package/dist/store/reducers/executeQuery.js +19 -14
- package/dist/store/reducers/executeTopQueries/executeTopQueries.d.ts +2 -2
- package/dist/store/reducers/executeTopQueries/executeTopQueries.js +19 -14
- package/dist/store/reducers/executeTopQueries/types.d.ts +2 -2
- package/dist/store/reducers/executeTopQueries/utils.js +11 -7
- package/dist/store/reducers/explainQuery/explainQuery.d.ts +5 -4
- package/dist/store/reducers/explainQuery/explainQuery.js +20 -5
- package/dist/store/reducers/explainQuery/types.d.ts +13 -1
- package/dist/store/reducers/explainQuery/utils.js +7 -2
- package/dist/store/reducers/healthcheckInfo/healthcheckInfo.d.ts +58 -58
- package/dist/store/reducers/heatmap.d.ts +2 -2
- package/dist/store/reducers/heatmap.js +3 -3
- package/dist/store/reducers/hotKeys/hotKeys.d.ts +3 -2
- package/dist/store/reducers/hotKeys/hotKeys.js +3 -3
- package/dist/store/reducers/index.d.ts +6 -6
- package/dist/store/reducers/network/network.d.ts +2 -2
- package/dist/store/reducers/network/network.js +1 -1
- package/dist/store/reducers/node/node.d.ts +3 -3
- package/dist/store/reducers/node/selectors.d.ts +1 -1
- package/dist/store/reducers/node/selectors.js +2 -2
- package/dist/store/reducers/nodes/nodes.d.ts +3 -3
- package/dist/store/reducers/nodesList.d.ts +3 -3
- package/dist/store/reducers/overview/overview.d.ts +5 -2
- package/dist/store/reducers/overview/overview.js +2 -2
- package/dist/store/reducers/partitions/partitions.d.ts +2 -2
- package/dist/store/reducers/pdisk/pdisk.d.ts +3 -3
- package/dist/store/reducers/pdisk/pdisk.js +15 -2
- package/dist/store/reducers/pdisk/types.d.ts +17 -1
- package/dist/store/reducers/pdisk/utils.d.ts +2 -2
- package/dist/store/reducers/pdisk/utils.js +68 -8
- package/dist/store/reducers/preview.d.ts +2 -2
- package/dist/store/reducers/preview.js +1 -1
- package/dist/store/reducers/queryActions/types.d.ts +1 -1
- package/dist/store/reducers/schema/schema.d.ts +28 -10
- package/dist/store/reducers/schema/schema.js +20 -14
- package/dist/store/reducers/schemaAcl/schemaAcl.d.ts +4 -2
- package/dist/store/reducers/schemaAcl/schemaAcl.js +9 -3
- package/dist/store/reducers/shardsWorkload/shardsWorkload.d.ts +2 -2
- package/dist/store/reducers/shardsWorkload/shardsWorkload.js +22 -6
- package/dist/store/reducers/shardsWorkload/types.d.ts +2 -2
- package/dist/store/reducers/storage/storage.d.ts +3 -3
- package/dist/store/reducers/tablet.d.ts +3 -3
- package/dist/store/reducers/tablets.d.ts +13 -13
- package/dist/store/reducers/tabletsFilters.d.ts +1 -1
- package/dist/store/reducers/tenant/tenant.d.ts +2 -2
- package/dist/store/reducers/tenantOverview/executeTopTables/executeTopTables.d.ts +2 -2
- package/dist/store/reducers/tenantOverview/executeTopTables/executeTopTables.js +1 -1
- package/dist/store/reducers/tenantOverview/topNodes/topNodes.d.ts +2 -2
- package/dist/store/reducers/tenantOverview/topShards/tenantOverviewTopShards.d.ts +2 -2
- package/dist/store/reducers/tenantOverview/topShards/tenantOverviewTopShards.js +1 -1
- package/dist/store/reducers/tenantOverview/topStorageGroups/topStorageGroups.d.ts +2 -2
- package/dist/store/reducers/tenants/selectors.d.ts +31 -30
- package/dist/store/reducers/tenants/selectors.js +8 -2
- package/dist/store/reducers/tenants/tenants.d.ts +2 -2
- package/dist/store/reducers/topic.d.ts +44 -44
- package/dist/store/reducers/vdisk/vdisk.d.ts +2 -2
- package/dist/store/reducers/vdisk/vdisk.js +1 -1
- package/dist/store/reducers/viewSchema/viewSchema.d.ts +2 -2
- package/dist/store/reducers/viewSchema/viewSchema.js +1 -1
- package/dist/store/state-url-mapping.d.ts +70 -0
- package/dist/store/state-url-mapping.js +1 -5
- package/dist/styles/mixins.scss +13 -0
- package/dist/types/api/acl.d.ts +1 -0
- package/dist/types/api/capabilities.d.ts +7 -0
- package/dist/types/api/capabilities.js +1 -0
- package/dist/types/api/modifyDisk.d.ts +8 -0
- package/dist/types/api/modifyDisk.js +1 -0
- package/dist/types/api/pdisk.d.ts +65 -2
- package/dist/types/api/query.d.ts +39 -3
- package/dist/types/api/query.js +9 -1
- package/dist/types/api/schema/shared.d.ts +8 -0
- package/dist/types/api/vdisk.d.ts +33 -2
- package/dist/types/common.d.ts +3 -0
- package/dist/types/store/heatmap.d.ts +1 -0
- package/dist/types/store/query.d.ts +11 -1
- package/dist/utils/__test__/prepareQueryExplain.test.d.ts +1 -0
- package/dist/utils/__test__/prepareQueryExplain.test.js +115 -0
- package/dist/utils/constants.d.ts +13 -3
- package/dist/utils/constants.js +15 -3
- package/dist/utils/dataFormatters/dataFormatters.d.ts +0 -5
- package/dist/utils/dataFormatters/dataFormatters.js +3 -12
- package/dist/utils/developerUI/developerUI.d.ts +1 -0
- package/dist/utils/developerUI/developerUI.js +3 -0
- package/dist/utils/disks/getPDiskType.d.ts +3 -3
- package/dist/utils/disks/helpers.d.ts +1 -0
- package/dist/utils/disks/helpers.js +3 -0
- package/dist/utils/disks/prepareDisks.d.ts +2 -2
- package/dist/utils/disks/prepareDisks.js +17 -22
- package/dist/utils/disks/types.d.ts +7 -5
- package/dist/utils/hooks/index.d.ts +2 -1
- package/dist/utils/hooks/index.js +2 -1
- package/dist/utils/hooks/useChangedQuerySettings.d.ts +10 -0
- package/dist/utils/hooks/useChangedQuerySettings.js +46 -0
- package/dist/utils/hooks/useDelayed.d.ts +1 -0
- package/dist/utils/hooks/useDelayed.js +13 -0
- package/dist/utils/hooks/useEventHandler.d.ts +6 -0
- package/dist/utils/hooks/useEventHandler.js +17 -0
- package/dist/utils/hooks/useLastQueryExecutionSettings.d.ts +2 -0
- package/dist/utils/hooks/useLastQueryExecutionSettings.js +5 -0
- package/dist/utils/hooks/useQueryExecutionSettings.d.ts +8 -0
- package/dist/utils/hooks/useQueryExecutionSettings.js +15 -0
- package/dist/utils/monaco/constats.d.ts +2 -0
- package/dist/utils/monaco/constats.js +2 -0
- package/dist/utils/monaco/yql/constants.d.ts +0 -1
- package/dist/utils/monaco/yql/constants.js +0 -1
- package/dist/utils/monaco/yql/yql.completionItemProvider.js +2 -2
- package/dist/utils/prepareQueryExplain.d.ts +3 -1
- package/dist/utils/prepareQueryExplain.js +54 -2
- package/dist/utils/query.d.ts +24 -1
- package/dist/utils/query.js +41 -0
- package/dist/utils/query.test.js +3 -0
- package/dist/utils/utils.d.ts +8 -7
- package/dist/utils/utils.js +23 -11
- package/package.json +8 -2
- package/dist/components/DeveloperUiLink/DeveloperUiLink.d.ts +0 -8
- package/dist/components/NodeHostWrapper/NodeHostWrapper.scss +0 -15
- package/dist/containers/Node/NodeStructure/Vdisk.d.ts +0 -6
- package/dist/containers/Node/NodeStructure/Vdisk.js +0 -13
- package/dist/containers/PDiskPage/PDiskGroups.d.ts +0 -9
- package/dist/containers/PDiskPage/PDiskGroups.js +0 -20
- package/dist/containers/Tenant/Diagnostics/Overview/TableInfo/i18n/ru.json +0 -5
- package/dist/containers/Tenant/Query/ExplainResult/utils.d.ts +0 -2
- package/dist/containers/Tenant/Query/ExplainResult/utils.js +0 -4
- package/dist/store/reducers/tenantOverview/topQueries/tenantOverviewTopQueries.d.ts +0 -5
- package/dist/store/reducers/tenantOverview/topQueries/tenantOverviewTopQueries.js +0 -38
- package/dist/store/utils.d.ts +0 -23
- package/dist/store/utils.js +0 -49
- package/dist/types/api/restartPDisk.d.ts +0 -4
- package/dist/utils/hooks/useQueryModes.d.ts +0 -2
- package/dist/utils/hooks/useQueryModes.js +0 -5
- package/dist/utils/monaco/index.d.ts +0 -1
- package/dist/utils/monaco/index.js +0 -6
- package/dist/utils/monaco/s-expression/constants.d.ts +0 -1
- package/dist/utils/monaco/s-expression/constants.js +0 -1
- package/dist/utils/monaco/s-expression/registerLanguage.d.ts +0 -1
- package/dist/utils/monaco/s-expression/registerLanguage.js +0 -59
- package/dist/utils/monaco/yql/registerLanguage.d.ts +0 -1
- package/dist/utils/monaco/yql/registerLanguage.js +0 -8
- package/dist/utils/monaco/yql/yql.d.ts +0 -7
- package/dist/utils/monaco/yql/yql.js +0 -180
- package/dist/utils/monaco/yql/yql.keywords.d.ts +0 -3
- package/dist/utils/monaco/yql/yql.keywords.js +0 -3
- /package/dist/{types/api/restartPDisk.js → components/DateRange/__test__/fromDateRangeValues.test.d.ts} +0 -0
@@ -1,5 +1,75 @@
|
|
1
1
|
import type { Action, Reducer, UnknownAction } from '@reduxjs/toolkit';
|
2
2
|
import type { History, Location } from 'history';
|
3
|
+
export declare const paramSetup: {
|
4
|
+
readonly global: {
|
5
|
+
readonly problemFilter: {
|
6
|
+
readonly stateKey: "settings.problemFilter";
|
7
|
+
readonly initialState: import("./reducers/settings/types").ProblemFilterValue;
|
8
|
+
};
|
9
|
+
};
|
10
|
+
readonly '/tenant': {
|
11
|
+
readonly sort: {
|
12
|
+
readonly stateKey: "heatmap.sort";
|
13
|
+
readonly initialState: boolean;
|
14
|
+
readonly type: "bool";
|
15
|
+
};
|
16
|
+
readonly heatmap: {
|
17
|
+
readonly stateKey: "heatmap.heatmap";
|
18
|
+
readonly initialState: boolean;
|
19
|
+
readonly type: "bool";
|
20
|
+
};
|
21
|
+
readonly currentMetric: {
|
22
|
+
readonly stateKey: "heatmap.currentMetric";
|
23
|
+
readonly initialState: import("../types/store/heatmap").IHeatmapMetricValue | undefined;
|
24
|
+
};
|
25
|
+
readonly stateFilter: {
|
26
|
+
readonly stateKey: "tablets.stateFilter";
|
27
|
+
readonly type: "array";
|
28
|
+
};
|
29
|
+
readonly typeFilter: {
|
30
|
+
readonly stateKey: "tablets.typeFilter";
|
31
|
+
readonly type: "array";
|
32
|
+
};
|
33
|
+
readonly tenantPage: {
|
34
|
+
readonly stateKey: "tenant.tenantPage";
|
35
|
+
};
|
36
|
+
readonly queryTab: {
|
37
|
+
readonly stateKey: "tenant.queryTab";
|
38
|
+
};
|
39
|
+
readonly diagnosticsTab: {
|
40
|
+
readonly stateKey: "tenant.diagnosticsTab";
|
41
|
+
};
|
42
|
+
readonly summaryTab: {
|
43
|
+
readonly stateKey: "tenant.summaryTab";
|
44
|
+
};
|
45
|
+
readonly metricsTab: {
|
46
|
+
readonly stateKey: "tenant.metricsTab";
|
47
|
+
};
|
48
|
+
readonly shardsMode: {
|
49
|
+
readonly stateKey: "shardsWorkload.mode";
|
50
|
+
};
|
51
|
+
readonly shardsDateFrom: {
|
52
|
+
readonly stateKey: "shardsWorkload.from";
|
53
|
+
};
|
54
|
+
readonly shardsDateTo: {
|
55
|
+
readonly stateKey: "shardsWorkload.to";
|
56
|
+
};
|
57
|
+
readonly topQueriesDateFrom: {
|
58
|
+
readonly stateKey: "executeTopQueries.from";
|
59
|
+
};
|
60
|
+
readonly topQueriesDateTo: {
|
61
|
+
readonly stateKey: "executeTopQueries.to";
|
62
|
+
};
|
63
|
+
readonly selectedConsumer: {
|
64
|
+
readonly stateKey: "partitions.selectedConsumer";
|
65
|
+
};
|
66
|
+
};
|
67
|
+
readonly '/cluster/tenants': {
|
68
|
+
readonly search: {
|
69
|
+
readonly stateKey: "tenants.searchValue";
|
70
|
+
};
|
71
|
+
};
|
72
|
+
};
|
3
73
|
export default function getLocationMiddleware<S = any, A extends Action = UnknownAction, P = S>(history: History, rootReducer: Reducer<S, A, P>): {
|
4
74
|
locationMiddleware: import("redux").Middleware<{}, S, import("redux").Dispatch<{
|
5
75
|
payload: Location<unknown>;
|
@@ -9,7 +9,7 @@ import { parseQuery } from 'redux-location-state/lib/parseQuery';
|
|
9
9
|
import { stateToParams } from 'redux-location-state/lib/stateToParams';
|
10
10
|
import { initialState as initialHeatmapState } from './reducers/heatmap';
|
11
11
|
import { initialState as initialSettingsState } from './reducers/settings/settings';
|
12
|
-
const paramSetup = {
|
12
|
+
export const paramSetup = {
|
13
13
|
global: {
|
14
14
|
problemFilter: {
|
15
15
|
stateKey: 'settings.problemFilter',
|
@@ -59,19 +59,15 @@ const paramSetup = {
|
|
59
59
|
},
|
60
60
|
shardsDateFrom: {
|
61
61
|
stateKey: 'shardsWorkload.from',
|
62
|
-
type: 'number',
|
63
62
|
},
|
64
63
|
shardsDateTo: {
|
65
64
|
stateKey: 'shardsWorkload.to',
|
66
|
-
type: 'number',
|
67
65
|
},
|
68
66
|
topQueriesDateFrom: {
|
69
67
|
stateKey: 'executeTopQueries.from',
|
70
|
-
type: 'number',
|
71
68
|
},
|
72
69
|
topQueriesDateTo: {
|
73
70
|
stateKey: 'executeTopQueries.to',
|
74
|
-
type: 'number',
|
75
71
|
},
|
76
72
|
selectedConsumer: {
|
77
73
|
stateKey: 'partitions.selectedConsumer',
|
package/dist/styles/mixins.scss
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
@import '@gravity-ui/uikit/styles/mixins.scss';
|
2
|
+
|
1
3
|
@mixin container() {
|
2
4
|
max-width: 1170px;
|
3
5
|
margin: 0 auto;
|
@@ -40,6 +42,11 @@
|
|
40
42
|
line-height: var(--g-text-subheader-2-line-height);
|
41
43
|
}
|
42
44
|
|
45
|
+
@mixin subheader-3-typography() {
|
46
|
+
font-size: var(--g-text-subheader-3-font-size);
|
47
|
+
line-height: var(--g-text-subheader-3-line-height);
|
48
|
+
}
|
49
|
+
|
43
50
|
@mixin header-1-typography() {
|
44
51
|
font-size: var(--g-text-header-1-font-size);
|
45
52
|
line-height: var(--g-text-header-1-line-height);
|
@@ -285,3 +292,9 @@
|
|
285
292
|
max-width: calc(100% - 50px);
|
286
293
|
}
|
287
294
|
}
|
295
|
+
|
296
|
+
@mixin tabs-wrapper-styles() {
|
297
|
+
--g-tabs-border-width: 0;
|
298
|
+
|
299
|
+
box-shadow: inset 0 -1px 0 0 var(--g-color-line-generic);
|
300
|
+
}
|
package/dist/types/api/acl.d.ts
CHANGED
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
@@ -1,8 +1,7 @@
|
|
1
1
|
import type { EFlag } from './enums';
|
2
|
+
import type { TVDiskStateInfo, TVSlotEntry } from './vdisk';
|
2
3
|
/**
|
3
4
|
* endpoint: /viewer/json/pdiskinfo
|
4
|
-
*
|
5
|
-
* source: https://github.com/ydb-platform/ydb/blob/main/ydb/core/protos/node_whiteboard.proto
|
6
5
|
*/
|
7
6
|
export interface TEvPDiskStateResponse {
|
8
7
|
PDiskStateInfo?: TPDiskStateInfo[];
|
@@ -10,6 +9,11 @@ export interface TEvPDiskStateResponse {
|
|
10
9
|
ResponseTime?: string;
|
11
10
|
ResponseDuration?: number;
|
12
11
|
}
|
12
|
+
/**
|
13
|
+
* Node whiteboard PDisk data
|
14
|
+
*
|
15
|
+
* source: https://github.com/ydb-platform/ydb/blob/main/ydb/core/protos/node_whiteboard.proto
|
16
|
+
*/
|
13
17
|
export interface TPDiskStateInfo {
|
14
18
|
PDiskId?: number;
|
15
19
|
/** uint64 */
|
@@ -33,6 +37,15 @@ export interface TPDiskStateInfo {
|
|
33
37
|
StateFlag?: EFlag;
|
34
38
|
Overall?: EFlag;
|
35
39
|
SerialNumber?: string;
|
40
|
+
/** uint64 */
|
41
|
+
SystemSize?: string;
|
42
|
+
/** uint64 */
|
43
|
+
LogUsedSize?: string;
|
44
|
+
/** uint64 */
|
45
|
+
LogTotalSize?: string;
|
46
|
+
/** uint64 */
|
47
|
+
EnforcedDynamicSlotSize?: string;
|
48
|
+
ExpectedSlotCount?: number;
|
36
49
|
}
|
37
50
|
export declare enum TPDiskState {
|
38
51
|
Initial = "Initial",
|
@@ -54,3 +67,53 @@ export declare enum TPDiskState {
|
|
54
67
|
NodeDisconnected = "NodeDisconnected",
|
55
68
|
Unknown = "Unknown"
|
56
69
|
}
|
70
|
+
/**
|
71
|
+
* endpoint: /pdisk/info
|
72
|
+
*/
|
73
|
+
export interface TPDiskInfoResponse {
|
74
|
+
Whiteboard?: TPDiskInfoWhiteboard;
|
75
|
+
BSC?: TPDiskInfoBSC;
|
76
|
+
}
|
77
|
+
interface TPDiskInfoWhiteboard {
|
78
|
+
PDisk?: TPDiskStateInfo;
|
79
|
+
VDisks?: TVDiskStateInfo[];
|
80
|
+
}
|
81
|
+
interface TPDiskInfoBSC {
|
82
|
+
PDisk?: TPDiskInfo;
|
83
|
+
VDisks?: TVSlotEntry;
|
84
|
+
}
|
85
|
+
/**
|
86
|
+
* BSC PDisk data
|
87
|
+
*
|
88
|
+
* source: https://github.com/ydb-platform/ydb/blob/main/ydb/core/protos/sys_view.proto
|
89
|
+
*/
|
90
|
+
export interface TPDiskInfo {
|
91
|
+
Type?: EPDiskType;
|
92
|
+
/** uint64 */
|
93
|
+
Kind?: string;
|
94
|
+
Path?: string;
|
95
|
+
/** uint64 */
|
96
|
+
Guid?: string;
|
97
|
+
/** uint64 */
|
98
|
+
BoxId?: string;
|
99
|
+
SharedWithOs?: boolean;
|
100
|
+
ReadCentric?: boolean;
|
101
|
+
/** uint64 */
|
102
|
+
AvailableSize?: string;
|
103
|
+
/** uint64 */
|
104
|
+
TotalSize?: string;
|
105
|
+
StatusV2?: EDriveStatus;
|
106
|
+
/** uint64 */
|
107
|
+
StatusChangeTimestamp?: string;
|
108
|
+
/** uint64 */
|
109
|
+
EnforcedDynamicSlotSize?: string;
|
110
|
+
ExpectedSlotCount?: number;
|
111
|
+
NumActiveSlots?: number;
|
112
|
+
/** uint64 */
|
113
|
+
Category?: string;
|
114
|
+
DecommitStatus?: EDecommitStatus;
|
115
|
+
}
|
116
|
+
type EDriveStatus = 'UNKNOWN' | 'ACTIVE' | 'INACTIVE' | 'BROKEN' | 'FAULTY' | 'TO_BE_REMOVED';
|
117
|
+
type EDecommitStatus = 'DECOMMIT_UNSET' | 'DECOMMIT_NONE' | 'DECOMMIT_PENDING' | 'DECOMMIT_IMMINENT' | 'DECOMMIT_REJECTED';
|
118
|
+
type EPDiskType = 'ROT' | 'SSD' | 'NVME' | 'UNKNOWN_TYPE';
|
119
|
+
export {};
|
@@ -1,3 +1,4 @@
|
|
1
|
+
import type { IsolationLevel, StatisticsMode } from '../store/query';
|
1
2
|
interface Position {
|
2
3
|
row?: number;
|
3
4
|
column?: number;
|
@@ -115,27 +116,46 @@ interface PlanNodeOperator {
|
|
115
116
|
Table?: string;
|
116
117
|
Iterator?: string;
|
117
118
|
}
|
118
|
-
|
119
|
+
interface CommonPlanNode {
|
119
120
|
PlanNodeId?: number;
|
120
121
|
'Node Type'?: string;
|
121
|
-
|
122
|
+
PlanNodeType?: string;
|
123
|
+
}
|
124
|
+
export interface PlanNode extends CommonPlanNode {
|
122
125
|
Operators?: PlanNodeOperator[];
|
123
126
|
Tables?: string[];
|
124
|
-
|
127
|
+
Plans?: PlanNode[];
|
125
128
|
Stats?: PlanNodeStats;
|
126
129
|
'CTE Name'?: string;
|
127
130
|
'Subplan Name'?: string;
|
128
131
|
'Parent Relationship'?: string;
|
129
132
|
}
|
133
|
+
export interface SimlifiedPlanOperatorOtherParams {
|
134
|
+
[key: string]: string | number | string[] | Record<string, unknown> | undefined;
|
135
|
+
}
|
136
|
+
interface SimlifiedPlanOperator extends SimlifiedPlanOperatorOtherParams {
|
137
|
+
'E-Rows'?: string;
|
138
|
+
'A-Rows'?: number;
|
139
|
+
'A-Cpu'?: number;
|
140
|
+
Name: string;
|
141
|
+
'E-Size'?: string;
|
142
|
+
'E-Cost'?: string;
|
143
|
+
}
|
144
|
+
export interface SimplifiedNode extends CommonPlanNode {
|
145
|
+
Plans?: SimplifiedNode[];
|
146
|
+
Operators?: [SimlifiedPlanOperator];
|
147
|
+
}
|
130
148
|
export interface ScriptPlan {
|
131
149
|
queries?: {
|
132
150
|
Plan?: PlanNode;
|
151
|
+
SimplifiedPlan?: SimplifiedNode;
|
133
152
|
tables?: PlanTable[];
|
134
153
|
}[];
|
135
154
|
meta: PlanMeta;
|
136
155
|
}
|
137
156
|
export interface QueryPlan {
|
138
157
|
Plan?: PlanNode;
|
158
|
+
SimplifiedPlan?: SimplifiedNode;
|
139
159
|
tables?: PlanTable[];
|
140
160
|
meta: PlanMeta;
|
141
161
|
}
|
@@ -148,6 +168,22 @@ export interface ColumnType {
|
|
148
168
|
name: string;
|
149
169
|
type: string;
|
150
170
|
}
|
171
|
+
export declare const TracingLevelNumber: {
|
172
|
+
off: number;
|
173
|
+
toplevel: number;
|
174
|
+
basic: number;
|
175
|
+
detailed: number;
|
176
|
+
diagnostic: number;
|
177
|
+
trace: number;
|
178
|
+
};
|
179
|
+
/** undefined = 'none' */
|
180
|
+
export type Stats = StatisticsMode;
|
181
|
+
/** undefined = '60000' */
|
182
|
+
export type Timeout = number;
|
183
|
+
/** undefined = 'serializable-read-write' */
|
184
|
+
export type TransactionMode = IsolationLevel;
|
185
|
+
/** undefined = '15' */
|
186
|
+
export type TracingLevel = number;
|
151
187
|
/** undefined = 'classic' */
|
152
188
|
export type Schemas = 'classic' | 'modern' | 'ydb' | 'multi' | undefined;
|
153
189
|
/** undefined = 'execute' */
|
package/dist/types/api/query.js
CHANGED
@@ -1 +1,9 @@
|
|
1
|
-
|
1
|
+
import { TRACING_LEVELS } from '../../utils/query';
|
2
|
+
export const TracingLevelNumber = {
|
3
|
+
[TRACING_LEVELS.off]: 0,
|
4
|
+
[TRACING_LEVELS.toplevel]: 4,
|
5
|
+
[TRACING_LEVELS.basic]: 9,
|
6
|
+
[TRACING_LEVELS.detailed]: 13,
|
7
|
+
[TRACING_LEVELS.diagnostic]: 14,
|
8
|
+
[TRACING_LEVELS.trace]: 15,
|
9
|
+
};
|
@@ -21,6 +21,14 @@ export interface TColumnDescription {
|
|
21
21
|
FamilyName?: string;
|
22
22
|
/** Path to sequence for default values */
|
23
23
|
DefaultFromSequence?: string;
|
24
|
+
DefaultFromLiteral?: {
|
25
|
+
type: {
|
26
|
+
type_id: string;
|
27
|
+
};
|
28
|
+
value: {
|
29
|
+
text_value: string;
|
30
|
+
};
|
31
|
+
};
|
24
32
|
NotNull?: boolean;
|
25
33
|
}
|
26
34
|
export declare enum EColumnCodec {
|
@@ -2,14 +2,17 @@ import type { EFlag } from './enums';
|
|
2
2
|
import type { TPDiskStateInfo } from './pdisk';
|
3
3
|
/**
|
4
4
|
* endpoint: /viewer/json/vdiskinfo
|
5
|
-
*
|
6
|
-
* source: https://github.com/ydb-platform/ydb/blob/main/ydb/core/protos/node_whiteboard.proto
|
7
5
|
*/
|
8
6
|
export interface TEvVDiskStateResponse {
|
9
7
|
VDiskStateInfo?: TVDiskStateInfo[];
|
10
8
|
ResponseTime?: string;
|
11
9
|
ResponseDuration?: number;
|
12
10
|
}
|
11
|
+
/**
|
12
|
+
* Node whiteboard VDisk data
|
13
|
+
*
|
14
|
+
* source: https://github.com/ydb-platform/ydb/blob/main/ydb/core/protos/node_whiteboard.proto
|
15
|
+
*/
|
13
16
|
export interface TVDiskStateInfo {
|
14
17
|
VDiskId?: TVDiskID;
|
15
18
|
/** uint64 */
|
@@ -38,6 +41,9 @@ export interface TVDiskStateInfo {
|
|
38
41
|
UnreplicatedPhantoms?: boolean;
|
39
42
|
/** The same for the non-phantom-like blobs. */
|
40
43
|
UnreplicatedNonPhantoms?: boolean;
|
44
|
+
/** Replication progress (0 to 1) */
|
45
|
+
ReplicationProgress?: number;
|
46
|
+
ReplicationSecondsRemaining?: number;
|
41
47
|
/**
|
42
48
|
* uint64
|
43
49
|
* How many unsynced VDisks from current BlobStorage group we see
|
@@ -116,4 +122,29 @@ export declare enum EVDiskState {
|
|
116
122
|
OK = "OK",
|
117
123
|
PDiskError = "PDiskError"
|
118
124
|
}
|
125
|
+
/**
|
126
|
+
* BSC VDisk data
|
127
|
+
*
|
128
|
+
* source: https://github.com/ydb-platform/ydb/blob/main/ydb/core/protos/sys_view.proto
|
129
|
+
*/
|
130
|
+
export interface TVSlotEntry {
|
131
|
+
Key?: TVSlotKey;
|
132
|
+
Info?: TVSlotInfo;
|
133
|
+
}
|
134
|
+
type TVSlotKey = TVSlotId;
|
135
|
+
export interface TVSlotInfo {
|
136
|
+
GroupId?: number;
|
137
|
+
GroupGeneration?: number;
|
138
|
+
FailRealm?: number;
|
139
|
+
FailDomain?: number;
|
140
|
+
VDisk?: number;
|
141
|
+
/** uint64 */
|
142
|
+
AllocatedSize?: string;
|
143
|
+
/** uint64 */
|
144
|
+
AvailableSize?: string;
|
145
|
+
StatusV2?: EVDiskStatus;
|
146
|
+
Kind?: string;
|
147
|
+
IsBeingDeleted?: boolean;
|
148
|
+
}
|
149
|
+
type EVDiskStatus = 'ERROR' | 'INIT_PENDING' | 'REPLICATING' | 'READY';
|
119
150
|
export {};
|
package/dist/types/common.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import type { QUERY_ACTIONS, QUERY_MODES, QUERY_SYNTAX } from '../../utils/query';
|
1
|
+
import type { ISOLATION_LEVELS, QUERY_ACTIONS, QUERY_MODES, QUERY_SYNTAX, STATISTICS_MODES, TRACING_LEVELS } from '../../utils/query';
|
2
2
|
import type { IResponseError, NetworkError } from '../api/error';
|
3
3
|
import type { ColumnType, KeyValueRow, ErrorResponse as QueryErrorResponseData, QueryPlan, ScriptPlan, TKqpStatsQuery } from '../api/query';
|
4
4
|
import type { ValueOf } from '../common';
|
@@ -18,11 +18,21 @@ export interface QueryRequestParams {
|
|
18
18
|
database: string;
|
19
19
|
query: string;
|
20
20
|
}
|
21
|
+
export interface QuerySettings {
|
22
|
+
queryMode: QueryMode;
|
23
|
+
isolationLevel: IsolationLevel;
|
24
|
+
timeout?: string;
|
25
|
+
statisticsMode?: StatisticsMode;
|
26
|
+
tracingLevel?: TracingLevel;
|
27
|
+
}
|
21
28
|
export type QueryErrorResponse = IResponseError<QueryErrorResponseData>;
|
22
29
|
export type QueryError = NetworkError | QueryErrorResponse;
|
23
30
|
export type QueryAction = ValueOf<typeof QUERY_ACTIONS>;
|
24
31
|
export type QueryMode = ValueOf<typeof QUERY_MODES>;
|
25
32
|
export type QuerySyntax = ValueOf<typeof QUERY_SYNTAX>;
|
33
|
+
export type IsolationLevel = ValueOf<typeof ISOLATION_LEVELS>;
|
34
|
+
export type StatisticsMode = ValueOf<typeof STATISTICS_MODES>;
|
35
|
+
export type TracingLevel = ValueOf<typeof TRACING_LEVELS>;
|
26
36
|
export interface SavedQuery {
|
27
37
|
name: string;
|
28
38
|
body: string;
|
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
@@ -0,0 +1,115 @@
|
|
1
|
+
import { prepareSimplifiedPlan } from '../prepareQueryExplain';
|
2
|
+
describe('prepareSimplifiedPlan', () => {
|
3
|
+
test('should handle empty input', () => {
|
4
|
+
const plans = [];
|
5
|
+
const result = prepareSimplifiedPlan(plans);
|
6
|
+
expect(result).toEqual([]);
|
7
|
+
});
|
8
|
+
test('should handle single node without children', () => {
|
9
|
+
const plans = [
|
10
|
+
{
|
11
|
+
Operators: [
|
12
|
+
{
|
13
|
+
['A-Cpu']: 10,
|
14
|
+
['A-Rows']: 100,
|
15
|
+
['E-Cost']: '20',
|
16
|
+
['E-Rows']: '200',
|
17
|
+
['E-Size']: '50',
|
18
|
+
['Name']: 'TestNode',
|
19
|
+
testParams: { foo: 'bar' },
|
20
|
+
},
|
21
|
+
],
|
22
|
+
},
|
23
|
+
];
|
24
|
+
const expected = [
|
25
|
+
{
|
26
|
+
name: 'TestNode',
|
27
|
+
operationParams: { testParams: { foo: 'bar' } },
|
28
|
+
aCpu: 10,
|
29
|
+
aRows: 100,
|
30
|
+
eCost: '20',
|
31
|
+
eRows: '200',
|
32
|
+
eSize: '50',
|
33
|
+
children: [],
|
34
|
+
},
|
35
|
+
];
|
36
|
+
const result = prepareSimplifiedPlan(plans);
|
37
|
+
expect(result).toEqual(expected);
|
38
|
+
});
|
39
|
+
test('should handle nested nodes', () => {
|
40
|
+
const plans = [
|
41
|
+
{
|
42
|
+
Operators: [
|
43
|
+
{
|
44
|
+
['A-Cpu']: 10,
|
45
|
+
['A-Rows']: 100,
|
46
|
+
['E-Cost']: '20',
|
47
|
+
['E-Rows']: '200',
|
48
|
+
['E-Size']: '50',
|
49
|
+
['Name']: 'RootNode',
|
50
|
+
testParams: { foo: 'bar' },
|
51
|
+
},
|
52
|
+
],
|
53
|
+
Plans: [
|
54
|
+
{
|
55
|
+
Operators: [
|
56
|
+
{
|
57
|
+
['A-Cpu']: 5,
|
58
|
+
['A-Rows']: 50,
|
59
|
+
['E-Cost']: '10',
|
60
|
+
['E-Rows']: '100',
|
61
|
+
['E-Size']: '25',
|
62
|
+
['Name']: 'ChildNode',
|
63
|
+
testParams: { foo: 'bar' },
|
64
|
+
},
|
65
|
+
],
|
66
|
+
},
|
67
|
+
],
|
68
|
+
},
|
69
|
+
];
|
70
|
+
const expected = [
|
71
|
+
{
|
72
|
+
name: 'RootNode',
|
73
|
+
operationParams: { testParams: { foo: 'bar' } },
|
74
|
+
aCpu: 10,
|
75
|
+
aRows: 100,
|
76
|
+
eCost: '20',
|
77
|
+
eRows: '200',
|
78
|
+
eSize: '50',
|
79
|
+
children: [
|
80
|
+
{
|
81
|
+
name: 'ChildNode',
|
82
|
+
operationParams: { testParams: { foo: 'bar' } },
|
83
|
+
aCpu: 5,
|
84
|
+
aRows: 50,
|
85
|
+
eCost: '10',
|
86
|
+
eRows: '100',
|
87
|
+
eSize: '25',
|
88
|
+
children: [],
|
89
|
+
},
|
90
|
+
],
|
91
|
+
},
|
92
|
+
];
|
93
|
+
const result = prepareSimplifiedPlan(plans);
|
94
|
+
expect(result).toEqual(expected);
|
95
|
+
});
|
96
|
+
test('should handle nodes without operators', () => {
|
97
|
+
const plans = [
|
98
|
+
{
|
99
|
+
PlanNodeId: 0,
|
100
|
+
'Node Type': 'Query',
|
101
|
+
PlanNodeType: 'Query',
|
102
|
+
Plans: [
|
103
|
+
{
|
104
|
+
PlanNodeId: 1,
|
105
|
+
'Node Type': 'TableScan',
|
106
|
+
PlanNodeType: 'TableScan',
|
107
|
+
},
|
108
|
+
],
|
109
|
+
},
|
110
|
+
];
|
111
|
+
const expected = [];
|
112
|
+
const result = prepareSimplifiedPlan(plans);
|
113
|
+
expect(result).toEqual(expected);
|
114
|
+
});
|
115
|
+
});
|
@@ -8,6 +8,7 @@ export declare const TERABYTE = 1000000000000;
|
|
8
8
|
export declare const MINUTE_IN_SECONDS = 60;
|
9
9
|
export declare const HOUR_IN_SECONDS: number;
|
10
10
|
export declare const DAY_IN_SECONDS: number;
|
11
|
+
export declare const WEEK_IN_SECONDS: number;
|
11
12
|
export declare const MS_IN_NANOSECONDS = 1000000;
|
12
13
|
export declare const TABLET_COLORS: {
|
13
14
|
Created: string;
|
@@ -94,15 +95,24 @@ export declare const TENANT_OVERVIEW_TABLES_SETTINGS: {
|
|
94
95
|
readonly stripedRows?: boolean;
|
95
96
|
readonly headerMod?: "multiline" | "pre";
|
96
97
|
};
|
97
|
-
export declare const
|
98
|
+
export declare const DEFAULT_QUERY_SETTINGS: {
|
99
|
+
queryMode: "script";
|
100
|
+
isolationLevel: "serializable-read-write";
|
101
|
+
timeout: string;
|
102
|
+
statisticsMode: "none";
|
103
|
+
tracingLevel: "detailed";
|
104
|
+
};
|
105
|
+
export declare const QUERY_EXECUTION_SETTINGS_KEY = "queryExecutionSettings";
|
106
|
+
export declare const LAST_QUERY_EXECUTION_SETTINGS_KEY = "last_query_execution_settings";
|
107
|
+
export declare const QUERY_SETTINGS_BANNER_LAST_CLOSED_KEY = "querySettingsBannerLastClosed";
|
98
108
|
export declare const LAST_USED_QUERY_ACTION_KEY = "last_used_query_action";
|
99
109
|
export declare const PARTITIONS_HIDDEN_COLUMNS_KEY = "partitionsHiddenColumns";
|
100
110
|
export declare const TENANT_INITIAL_PAGE_KEY = "saved_tenant_initial_tab";
|
101
111
|
export declare const USE_PAGINATED_TABLES_KEY = "useBackendParamsForTables";
|
112
|
+
export declare const SHOW_DOMAIN_DATABASE_KEY = "showDomainDatabase";
|
102
113
|
export declare const QUERY_USE_MULTI_SCHEMA_KEY = "queryUseMultiSchema";
|
103
114
|
export declare const USE_CLUSTER_BALANCER_AS_BACKEND_KEY = "useClusterBalancerAsBacked";
|
104
115
|
export declare const ENABLE_AUTOCOMPLETE = "enableAutocomplete";
|
105
116
|
export declare const AUTOCOMPLETE_ON_ENTER = "autocompleteOnEnter";
|
106
117
|
export declare const IS_HOTKEYS_HELP_HIDDEN_KEY = "isHotKeysHelpHidden";
|
107
|
-
export declare const
|
108
|
-
export declare const USE_DIRECTORY_OPERATIONS = "useDirectoryOperations";
|
118
|
+
export declare const ENABLE_TRACING_LEVEL_KEY = "enableTracingLevel";
|
package/dist/utils/constants.js
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
import DataTable from '@gravity-ui/react-data-table';
|
2
2
|
import { EType } from '../types/api/tablet';
|
3
|
+
import { ISOLATION_LEVELS, QUERY_MODES, STATISTICS_MODES, TRACING_LEVELS } from './query';
|
3
4
|
const SECOND = 1000;
|
4
5
|
export const AUTO_RELOAD_INTERVAL = 10 * SECOND;
|
5
6
|
export const DEFAULT_POLLING_INTERVAL = 30 * SECOND;
|
@@ -13,6 +14,7 @@ export const TERABYTE = 1000000000000;
|
|
13
14
|
export const MINUTE_IN_SECONDS = 60;
|
14
15
|
export const HOUR_IN_SECONDS = 60 * MINUTE_IN_SECONDS;
|
15
16
|
export const DAY_IN_SECONDS = 24 * HOUR_IN_SECONDS;
|
17
|
+
export const WEEK_IN_SECONDS = 7 * DAY_IN_SECONDS;
|
16
18
|
export const MS_IN_NANOSECONDS = 1000000;
|
17
19
|
export const TABLET_COLORS = {
|
18
20
|
Created: 'grey',
|
@@ -94,7 +96,16 @@ export const TENANT_OVERVIEW_TABLES_SETTINGS = {
|
|
94
96
|
stickyHead: 'fixed',
|
95
97
|
dynamicRender: false,
|
96
98
|
};
|
97
|
-
export const
|
99
|
+
export const DEFAULT_QUERY_SETTINGS = {
|
100
|
+
queryMode: QUERY_MODES.script,
|
101
|
+
isolationLevel: ISOLATION_LEVELS.serializable,
|
102
|
+
timeout: '60',
|
103
|
+
statisticsMode: STATISTICS_MODES.none,
|
104
|
+
tracingLevel: TRACING_LEVELS.detailed,
|
105
|
+
};
|
106
|
+
export const QUERY_EXECUTION_SETTINGS_KEY = 'queryExecutionSettings';
|
107
|
+
export const LAST_QUERY_EXECUTION_SETTINGS_KEY = 'last_query_execution_settings';
|
108
|
+
export const QUERY_SETTINGS_BANNER_LAST_CLOSED_KEY = 'querySettingsBannerLastClosed';
|
98
109
|
export const LAST_USED_QUERY_ACTION_KEY = 'last_used_query_action';
|
99
110
|
export const PARTITIONS_HIDDEN_COLUMNS_KEY = 'partitionsHiddenColumns';
|
100
111
|
// Remain "tab" in key name for backward compatibility
|
@@ -102,11 +113,12 @@ export const TENANT_INITIAL_PAGE_KEY = 'saved_tenant_initial_tab';
|
|
102
113
|
// Setting to use paginated tables
|
103
114
|
// Old key value for backward compatibility
|
104
115
|
export const USE_PAGINATED_TABLES_KEY = 'useBackendParamsForTables';
|
116
|
+
// Setting to hide domain in database list
|
117
|
+
export const SHOW_DOMAIN_DATABASE_KEY = 'showDomainDatabase';
|
105
118
|
// Enable schema that supports multiple resultsets
|
106
119
|
export const QUERY_USE_MULTI_SCHEMA_KEY = 'queryUseMultiSchema';
|
107
120
|
export const USE_CLUSTER_BALANCER_AS_BACKEND_KEY = 'useClusterBalancerAsBacked';
|
108
121
|
export const ENABLE_AUTOCOMPLETE = 'enableAutocomplete';
|
109
122
|
export const AUTOCOMPLETE_ON_ENTER = 'autocompleteOnEnter';
|
110
123
|
export const IS_HOTKEYS_HELP_HIDDEN_KEY = 'isHotKeysHelpHidden';
|
111
|
-
export const
|
112
|
-
export const USE_DIRECTORY_OPERATIONS = 'useDirectoryOperations';
|
124
|
+
export const ENABLE_TRACING_LEVEL_KEY = 'enableTracingLevel';
|