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
@@ -0,0 +1,56 @@
|
|
1
|
+
import { ISOLATION_LEVELS, ISOLATION_LEVELS_TITLES, QUERY_MODES, QUERY_MODES_TITLES, STATISTICS_MODES, STATISTICS_MODES_TITLES, TRACING_LEVELS, TRACING_LEVELS_TITLES, } from '../../../../../utils/query';
|
2
|
+
import { QUERY_SETTINGS_FIELD_SETTINGS } from '../../QuerySettingsDialog/constants';
|
3
|
+
import getChangedQueryExecutionSettingsDescription from './getChangedQueryExecutionSettingsDescription';
|
4
|
+
const DEFAULT_QUERY_SETTINGS = {
|
5
|
+
queryMode: QUERY_MODES.script,
|
6
|
+
isolationLevel: ISOLATION_LEVELS.serializable,
|
7
|
+
timeout: '60',
|
8
|
+
statisticsMode: STATISTICS_MODES.none,
|
9
|
+
tracingLevel: TRACING_LEVELS.detailed,
|
10
|
+
};
|
11
|
+
describe('getChangedQueryExecutionSettingsDescription', () => {
|
12
|
+
it('should return an empty object if no settings changed', () => {
|
13
|
+
const currentSettings = { ...DEFAULT_QUERY_SETTINGS };
|
14
|
+
const result = getChangedQueryExecutionSettingsDescription({
|
15
|
+
currentSettings,
|
16
|
+
defaultSettings: DEFAULT_QUERY_SETTINGS,
|
17
|
+
});
|
18
|
+
expect(result).toEqual({});
|
19
|
+
});
|
20
|
+
it('should return the description for changed settings', () => {
|
21
|
+
var _a;
|
22
|
+
const currentSettings = {
|
23
|
+
...DEFAULT_QUERY_SETTINGS,
|
24
|
+
queryMode: QUERY_MODES.pg,
|
25
|
+
timeout: '63',
|
26
|
+
};
|
27
|
+
const result = getChangedQueryExecutionSettingsDescription({
|
28
|
+
currentSettings,
|
29
|
+
defaultSettings: DEFAULT_QUERY_SETTINGS,
|
30
|
+
});
|
31
|
+
expect(result).toEqual({
|
32
|
+
[QUERY_SETTINGS_FIELD_SETTINGS.queryMode.title]: (_a = QUERY_SETTINGS_FIELD_SETTINGS.queryMode.options.find((option) => option.value === QUERY_MODES.pg)) === null || _a === void 0 ? void 0 : _a.content,
|
33
|
+
[QUERY_SETTINGS_FIELD_SETTINGS.timeout.title]: '63',
|
34
|
+
});
|
35
|
+
});
|
36
|
+
it('should return the correct description for all changed settings', () => {
|
37
|
+
const currentSettings = {
|
38
|
+
queryMode: QUERY_MODES.data,
|
39
|
+
isolationLevel: ISOLATION_LEVELS.snapshot,
|
40
|
+
timeout: '120',
|
41
|
+
statisticsMode: STATISTICS_MODES.profile,
|
42
|
+
tracingLevel: TRACING_LEVELS.diagnostic,
|
43
|
+
};
|
44
|
+
const result = getChangedQueryExecutionSettingsDescription({
|
45
|
+
currentSettings,
|
46
|
+
defaultSettings: DEFAULT_QUERY_SETTINGS,
|
47
|
+
});
|
48
|
+
expect(result).toEqual({
|
49
|
+
[QUERY_SETTINGS_FIELD_SETTINGS.queryMode.title]: QUERY_MODES_TITLES.data,
|
50
|
+
[QUERY_SETTINGS_FIELD_SETTINGS.isolationLevel.title]: ISOLATION_LEVELS_TITLES['snapshot-read-only'],
|
51
|
+
[QUERY_SETTINGS_FIELD_SETTINGS.timeout.title]: '120',
|
52
|
+
[QUERY_SETTINGS_FIELD_SETTINGS.statisticsMode.title]: STATISTICS_MODES_TITLES.profile,
|
53
|
+
[QUERY_SETTINGS_FIELD_SETTINGS.tracingLevel.title]: TRACING_LEVELS_TITLES.diagnostic,
|
54
|
+
});
|
55
|
+
});
|
56
|
+
});
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
2
|
+
import { Alert } from '@gravity-ui/uikit';
|
3
|
+
import QuerySettingsDescription from '../../../../components/QuerySettingsDescription/QuerySettingsDescription';
|
4
|
+
import { cn } from '../../../../utils/cn';
|
5
|
+
import { useChangedQuerySettings } from '../../../../utils/hooks/useChangedQuerySettings';
|
6
|
+
import i18n from '../i18n';
|
7
|
+
const b = cn('ydb-query-settings-banner');
|
8
|
+
import './QuerySettingsBanner.scss';
|
9
|
+
export function QuerySettingsBanner() {
|
10
|
+
const { isBannerShown, changedLastExecutionSettingsDescriptions, closeBanner } = useChangedQuerySettings();
|
11
|
+
return isBannerShown ? (_jsx(Alert, { className: b(), theme: "info", align: "baseline", message: _jsx(QuerySettingsDescription, { prefix: i18n('banner.query-settings.message'), querySettings: changedLastExecutionSettingsDescriptions }), onClose: closeBanner })) : null;
|
12
|
+
}
|
@@ -0,0 +1,35 @@
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
2
|
+
import React from 'react';
|
3
|
+
import { Dialog, Link as ExternalLink, Flex, TextInput } from '@gravity-ui/uikit';
|
4
|
+
import { Controller, useForm } from 'react-hook-form';
|
5
|
+
import { ENABLE_TRACING_LEVEL_KEY } from '../../../../lib';
|
6
|
+
import { selectQueryAction, setQueryAction, } from '../../../../store/reducers/queryActions/queryActions';
|
7
|
+
import { cn } from '../../../../utils/cn';
|
8
|
+
import { useQueryExecutionSettings, useSetting, useTypedDispatch, useTypedSelector, } from '../../../../utils/hooks';
|
9
|
+
import { QuerySettingsSelect } from './QuerySettingsSelect';
|
10
|
+
import { QUERY_SETTINGS_FIELD_SETTINGS } from './constants';
|
11
|
+
import i18n from './i18n';
|
12
|
+
import './QuerySettingsDialog.scss';
|
13
|
+
const b = cn('ydb-query-settings-dialog');
|
14
|
+
export function QuerySettingsDialog() {
|
15
|
+
const dispatch = useTypedDispatch();
|
16
|
+
const queryAction = useTypedSelector(selectQueryAction);
|
17
|
+
const [querySettings, setQuerySettings] = useQueryExecutionSettings();
|
18
|
+
const onClose = React.useCallback(() => {
|
19
|
+
dispatch(setQueryAction('idle'));
|
20
|
+
}, [dispatch]);
|
21
|
+
const onSubmit = React.useCallback((data) => {
|
22
|
+
setQuerySettings(data);
|
23
|
+
onClose();
|
24
|
+
}, [onClose, setQuerySettings]);
|
25
|
+
return (_jsxs(Dialog, { open: queryAction === 'settings', size: "s", onClose: onClose, className: b(), hasCloseButton: false, children: [_jsx(Dialog.Header, { caption: i18n('action.settings') }), _jsx(QuerySettingsForm, { initialValues: querySettings, onSubmit: onSubmit, onClose: onClose })] }));
|
26
|
+
}
|
27
|
+
function QuerySettingsForm({ initialValues, onSubmit, onClose }) {
|
28
|
+
const { control, handleSubmit } = useForm({
|
29
|
+
defaultValues: initialValues,
|
30
|
+
});
|
31
|
+
const [enableTracingLevel] = useSetting(ENABLE_TRACING_LEVEL_KEY);
|
32
|
+
return (_jsxs("form", { onSubmit: handleSubmit(onSubmit), children: [_jsxs(Dialog.Body, { className: b('dialog-body'), children: [_jsxs(Flex, { direction: "row", alignItems: "flex-start", className: b('dialog-row'), children: [_jsx("label", { htmlFor: "queryMode", className: b('field-title'), children: QUERY_SETTINGS_FIELD_SETTINGS.queryMode.title }), _jsx("div", { className: b('control-wrapper', { queryMode: true }), children: _jsx(Controller, { name: "queryMode", control: control, render: ({ field }) => (_jsx(QuerySettingsSelect, { setting: field.value, onUpdateSetting: field.onChange, settingOptions: QUERY_SETTINGS_FIELD_SETTINGS.queryMode.options })) }) })] }), _jsxs(Flex, { direction: "row", alignItems: "flex-start", className: b('dialog-row'), children: [_jsx("label", { htmlFor: "timeout", className: b('field-title'), children: QUERY_SETTINGS_FIELD_SETTINGS.timeout.title }), _jsx("div", { className: b('control-wrapper'), children: _jsx(Controller, { name: "timeout", control: control, render: ({ field }) => (_jsxs(React.Fragment, { children: [_jsx(TextInput, { type: "number", ...field, className: b('timeout'), placeholder: "60" }), _jsx("span", { className: b('timeout-suffix'), children: i18n('form.timeout.seconds') })] })) }) })] }), enableTracingLevel && (_jsxs(Flex, { direction: "row", alignItems: "flex-start", className: b('dialog-row'), children: [_jsx("label", { htmlFor: "tracingLevel", className: b('field-title'), children: QUERY_SETTINGS_FIELD_SETTINGS.tracingLevel.title }), _jsx("div", { className: b('control-wrapper'), children: _jsx(Controller, { name: "tracingLevel", control: control, render: ({ field }) => (_jsx(QuerySettingsSelect, { setting: field.value, onUpdateSetting: field.onChange, settingOptions: QUERY_SETTINGS_FIELD_SETTINGS.tracingLevel.options })) }) })] })), _jsxs(Flex, { direction: "row", alignItems: "flex-start", className: b('dialog-row'), children: [_jsx("label", { htmlFor: "isolationLevel", className: b('field-title'), children: QUERY_SETTINGS_FIELD_SETTINGS.isolationLevel.title }), _jsx("div", { className: b('control-wrapper', { isolationLevel: true }), children: _jsx(Controller, { name: "isolationLevel", control: control, render: ({ field }) => (_jsx(QuerySettingsSelect, { setting: field.value, onUpdateSetting: field.onChange, settingOptions: QUERY_SETTINGS_FIELD_SETTINGS.isolationLevel.options })) }) })] }), _jsxs(Flex, { direction: "row", alignItems: "flex-start", className: b('dialog-row'), children: [_jsx("label", { htmlFor: "statisticsMode", className: b('field-title'), children: QUERY_SETTINGS_FIELD_SETTINGS.statisticsMode.title }), _jsx("div", { className: b('control-wrapper'), children: _jsx(Controller, { name: "statisticsMode", control: control, render: ({ field }) => (_jsx(QuerySettingsSelect, { setting: field.value, onUpdateSetting: field.onChange, settingOptions: QUERY_SETTINGS_FIELD_SETTINGS.statisticsMode.options })) }) })] })] }), _jsx(Dialog.Footer, { textButtonApply: i18n('button-done'), textButtonCancel: i18n('button-cancel'), onClickButtonCancel: onClose, propsButtonApply: {
|
33
|
+
type: 'submit',
|
34
|
+
}, renderButtons: (buttonApply, buttonCancel) => (_jsxs("div", { className: b('buttons-container'), children: [_jsx(ExternalLink, { href: "https://ydb.tech/docs", target: "_blank", className: b('documentation-link'), children: i18n('docs') }), _jsxs("div", { className: b('main-buttons'), children: [buttonCancel, buttonApply] })] })) })] }));
|
35
|
+
}
|
@@ -0,0 +1,63 @@
|
|
1
|
+
.ydb-query-settings-dialog {
|
2
|
+
&__dialog-row {
|
3
|
+
& + & {
|
4
|
+
margin-top: var(--g-text-body-1-line-height);
|
5
|
+
}
|
6
|
+
}
|
7
|
+
|
8
|
+
&__field-title {
|
9
|
+
flex: 4;
|
10
|
+
|
11
|
+
margin-right: var(--g-spacing-3);
|
12
|
+
|
13
|
+
font-weight: 500;
|
14
|
+
line-height: var(--g-text-header-2-line-height);
|
15
|
+
white-space: nowrap;
|
16
|
+
}
|
17
|
+
|
18
|
+
.g-dialog-footer__bts-wrapper {
|
19
|
+
width: 100%;
|
20
|
+
}
|
21
|
+
|
22
|
+
&__dialog-body {
|
23
|
+
padding-top: var(--g-spacing-6);
|
24
|
+
}
|
25
|
+
|
26
|
+
&__control-wrapper {
|
27
|
+
display: flex;
|
28
|
+
flex: 6;
|
29
|
+
}
|
30
|
+
|
31
|
+
&__timeout {
|
32
|
+
width: 33.3%;
|
33
|
+
margin-right: var(--g-spacing-2);
|
34
|
+
}
|
35
|
+
|
36
|
+
&__timeout-suffix {
|
37
|
+
display: flex;
|
38
|
+
align-items: center;
|
39
|
+
|
40
|
+
color: var(--g-color-text-secondary);
|
41
|
+
}
|
42
|
+
|
43
|
+
&__documentation-link {
|
44
|
+
display: flex;
|
45
|
+
align-items: center;
|
46
|
+
|
47
|
+
margin-left: var(--g-spacing-4);
|
48
|
+
|
49
|
+
color: var(--g-color-text-secondary);
|
50
|
+
}
|
51
|
+
|
52
|
+
&__buttons-container {
|
53
|
+
display: flex;
|
54
|
+
justify-content: space-between;
|
55
|
+
|
56
|
+
width: 100%;
|
57
|
+
}
|
58
|
+
|
59
|
+
&__main-buttons {
|
60
|
+
display: flex;
|
61
|
+
gap: 10px;
|
62
|
+
}
|
63
|
+
}
|
@@ -0,0 +1,15 @@
|
|
1
|
+
import type { SelectOption } from '@gravity-ui/uikit';
|
2
|
+
import type { IsolationLevel, QueryMode, StatisticsMode, TracingLevel } from '../../../../types/store/query';
|
3
|
+
import './QuerySettingsSelect.scss';
|
4
|
+
export declare const getOptionHeight: () => number;
|
5
|
+
type SelectType = QueryMode | IsolationLevel | StatisticsMode | TracingLevel;
|
6
|
+
type QuerySettingSelectOption<T> = SelectOption<T> & {
|
7
|
+
isDefault?: boolean;
|
8
|
+
};
|
9
|
+
interface QuerySettingsSelectProps<T extends SelectType> {
|
10
|
+
setting: T;
|
11
|
+
settingOptions: QuerySettingSelectOption<T>[];
|
12
|
+
onUpdateSetting: (mode: T) => void;
|
13
|
+
}
|
14
|
+
export declare function QuerySettingsSelect<T extends SelectType>(props: QuerySettingsSelectProps<T>): import("react/jsx-runtime").JSX.Element;
|
15
|
+
export {};
|
@@ -0,0 +1,14 @@
|
|
1
|
+
import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
|
2
|
+
import { Select } from '@gravity-ui/uikit';
|
3
|
+
import { cn } from '../../../../utils/cn';
|
4
|
+
import i18n from './i18n';
|
5
|
+
import './QuerySettingsSelect.scss';
|
6
|
+
// Make option height dynamic.
|
7
|
+
// By default it has static height.
|
8
|
+
export const getOptionHeight = () => -1;
|
9
|
+
const b = cn('ydb-query-settings-select');
|
10
|
+
export function QuerySettingsSelect(props) {
|
11
|
+
return (_jsx("div", { className: b('selector'), children: _jsx(Select, { options: props.settingOptions, value: [props.setting], onUpdate: (value) => {
|
12
|
+
props.onUpdateSetting(value[0]);
|
13
|
+
}, getOptionHeight: getOptionHeight, popupClassName: b('popup'), renderOption: (option) => (_jsxs("div", { className: b('item'), children: [_jsxs("div", { className: b('item-title'), children: [option.content, option.isDefault ? i18n('description.default') : ''] }), option.text && (_jsx("span", { className: b('item-description'), children: option.text }))] })), width: "max" }) }));
|
14
|
+
}
|
@@ -0,0 +1,19 @@
|
|
1
|
+
.ydb-query-settings-select {
|
2
|
+
&__selector {
|
3
|
+
width: 100%;
|
4
|
+
}
|
5
|
+
|
6
|
+
&__popup {
|
7
|
+
max-width: 320px;
|
8
|
+
}
|
9
|
+
|
10
|
+
&__item-description {
|
11
|
+
white-space: pre-wrap;
|
12
|
+
|
13
|
+
color: var(--g-color-text-secondary);
|
14
|
+
}
|
15
|
+
|
16
|
+
&__item {
|
17
|
+
padding: var(--g-spacing-1) 0;
|
18
|
+
}
|
19
|
+
}
|
@@ -0,0 +1,215 @@
|
|
1
|
+
export declare const ISOLATION_LEVEL_SELECT_OPTIONS: ({
|
2
|
+
value: "serializable-read-write";
|
3
|
+
content: string;
|
4
|
+
text: string;
|
5
|
+
isDefault: boolean;
|
6
|
+
} | {
|
7
|
+
value: "online-read-only";
|
8
|
+
content: string;
|
9
|
+
text: string;
|
10
|
+
isDefault?: undefined;
|
11
|
+
} | {
|
12
|
+
value: "stale-read-only";
|
13
|
+
content: string;
|
14
|
+
text: string;
|
15
|
+
isDefault?: undefined;
|
16
|
+
} | {
|
17
|
+
value: "snapshot-read-only";
|
18
|
+
content: string;
|
19
|
+
text: string;
|
20
|
+
isDefault?: undefined;
|
21
|
+
})[];
|
22
|
+
export declare const QUERY_MODE_SELECT_OPTIONS: ({
|
23
|
+
value: "script";
|
24
|
+
content: string;
|
25
|
+
text: string;
|
26
|
+
isDefault: boolean;
|
27
|
+
} | {
|
28
|
+
value: "scan";
|
29
|
+
content: string;
|
30
|
+
text: string;
|
31
|
+
isDefault?: undefined;
|
32
|
+
} | {
|
33
|
+
value: "data";
|
34
|
+
content: string;
|
35
|
+
text: string;
|
36
|
+
isDefault?: undefined;
|
37
|
+
} | {
|
38
|
+
value: "query";
|
39
|
+
content: string;
|
40
|
+
text: string;
|
41
|
+
isDefault?: undefined;
|
42
|
+
} | {
|
43
|
+
value: "pg";
|
44
|
+
content: string;
|
45
|
+
text: string;
|
46
|
+
isDefault?: undefined;
|
47
|
+
})[];
|
48
|
+
export declare const STATISTICS_MODE_SELECT_OPTIONS: ({
|
49
|
+
value: "none";
|
50
|
+
content: string;
|
51
|
+
text: string;
|
52
|
+
isDefault: boolean;
|
53
|
+
} | {
|
54
|
+
value: "basic";
|
55
|
+
content: string;
|
56
|
+
text: string;
|
57
|
+
isDefault?: undefined;
|
58
|
+
} | {
|
59
|
+
value: "full";
|
60
|
+
content: string;
|
61
|
+
text: string;
|
62
|
+
isDefault?: undefined;
|
63
|
+
} | {
|
64
|
+
value: "profile";
|
65
|
+
content: string;
|
66
|
+
text: string;
|
67
|
+
isDefault?: undefined;
|
68
|
+
})[];
|
69
|
+
export declare const TRACING_LEVEL_SELECT_OPTIONS: ({
|
70
|
+
value: "off";
|
71
|
+
content: string;
|
72
|
+
text: string;
|
73
|
+
isDefault?: undefined;
|
74
|
+
} | {
|
75
|
+
value: "toplevel";
|
76
|
+
content: string;
|
77
|
+
text: string;
|
78
|
+
isDefault?: undefined;
|
79
|
+
} | {
|
80
|
+
value: "basic";
|
81
|
+
content: string;
|
82
|
+
text: string;
|
83
|
+
isDefault?: undefined;
|
84
|
+
} | {
|
85
|
+
value: "detailed";
|
86
|
+
content: string;
|
87
|
+
text: string;
|
88
|
+
isDefault: boolean;
|
89
|
+
} | {
|
90
|
+
value: "diagnostic";
|
91
|
+
content: string;
|
92
|
+
text: string;
|
93
|
+
isDefault?: undefined;
|
94
|
+
} | {
|
95
|
+
value: "trace";
|
96
|
+
content: string;
|
97
|
+
text: string;
|
98
|
+
isDefault?: undefined;
|
99
|
+
})[];
|
100
|
+
export declare const QUERY_SETTINGS_FIELD_SETTINGS: {
|
101
|
+
readonly isolationLevel: {
|
102
|
+
readonly title: string;
|
103
|
+
readonly options: ({
|
104
|
+
value: "serializable-read-write";
|
105
|
+
content: string;
|
106
|
+
text: string;
|
107
|
+
isDefault: boolean;
|
108
|
+
} | {
|
109
|
+
value: "online-read-only";
|
110
|
+
content: string;
|
111
|
+
text: string;
|
112
|
+
isDefault?: undefined;
|
113
|
+
} | {
|
114
|
+
value: "stale-read-only";
|
115
|
+
content: string;
|
116
|
+
text: string;
|
117
|
+
isDefault?: undefined;
|
118
|
+
} | {
|
119
|
+
value: "snapshot-read-only";
|
120
|
+
content: string;
|
121
|
+
text: string;
|
122
|
+
isDefault?: undefined;
|
123
|
+
})[];
|
124
|
+
};
|
125
|
+
readonly queryMode: {
|
126
|
+
readonly title: string;
|
127
|
+
readonly options: ({
|
128
|
+
value: "script";
|
129
|
+
content: string;
|
130
|
+
text: string;
|
131
|
+
isDefault: boolean;
|
132
|
+
} | {
|
133
|
+
value: "scan";
|
134
|
+
content: string;
|
135
|
+
text: string;
|
136
|
+
isDefault?: undefined;
|
137
|
+
} | {
|
138
|
+
value: "data";
|
139
|
+
content: string;
|
140
|
+
text: string;
|
141
|
+
isDefault?: undefined;
|
142
|
+
} | {
|
143
|
+
value: "query";
|
144
|
+
content: string;
|
145
|
+
text: string;
|
146
|
+
isDefault?: undefined;
|
147
|
+
} | {
|
148
|
+
value: "pg";
|
149
|
+
content: string;
|
150
|
+
text: string;
|
151
|
+
isDefault?: undefined;
|
152
|
+
})[];
|
153
|
+
};
|
154
|
+
readonly statisticsMode: {
|
155
|
+
readonly title: string;
|
156
|
+
readonly options: ({
|
157
|
+
value: "none";
|
158
|
+
content: string;
|
159
|
+
text: string;
|
160
|
+
isDefault: boolean;
|
161
|
+
} | {
|
162
|
+
value: "basic";
|
163
|
+
content: string;
|
164
|
+
text: string;
|
165
|
+
isDefault?: undefined;
|
166
|
+
} | {
|
167
|
+
value: "full";
|
168
|
+
content: string;
|
169
|
+
text: string;
|
170
|
+
isDefault?: undefined;
|
171
|
+
} | {
|
172
|
+
value: "profile";
|
173
|
+
content: string;
|
174
|
+
text: string;
|
175
|
+
isDefault?: undefined;
|
176
|
+
})[];
|
177
|
+
};
|
178
|
+
readonly tracingLevel: {
|
179
|
+
readonly title: string;
|
180
|
+
readonly options: ({
|
181
|
+
value: "off";
|
182
|
+
content: string;
|
183
|
+
text: string;
|
184
|
+
isDefault?: undefined;
|
185
|
+
} | {
|
186
|
+
value: "toplevel";
|
187
|
+
content: string;
|
188
|
+
text: string;
|
189
|
+
isDefault?: undefined;
|
190
|
+
} | {
|
191
|
+
value: "basic";
|
192
|
+
content: string;
|
193
|
+
text: string;
|
194
|
+
isDefault?: undefined;
|
195
|
+
} | {
|
196
|
+
value: "detailed";
|
197
|
+
content: string;
|
198
|
+
text: string;
|
199
|
+
isDefault: boolean;
|
200
|
+
} | {
|
201
|
+
value: "diagnostic";
|
202
|
+
content: string;
|
203
|
+
text: string;
|
204
|
+
isDefault?: undefined;
|
205
|
+
} | {
|
206
|
+
value: "trace";
|
207
|
+
content: string;
|
208
|
+
text: string;
|
209
|
+
isDefault?: undefined;
|
210
|
+
})[];
|
211
|
+
};
|
212
|
+
readonly timeout: {
|
213
|
+
readonly title: string;
|
214
|
+
};
|
215
|
+
};
|
@@ -0,0 +1,131 @@
|
|
1
|
+
import { ISOLATION_LEVELS, ISOLATION_LEVELS_TITLES, QUERY_MODES, QUERY_MODES_TITLES, STATISTICS_MODES, STATISTICS_MODES_TITLES, TRACING_LEVELS, TRACING_LEVELS_TITLES, } from '../../../../utils/query';
|
2
|
+
import i18n from '../i18n';
|
3
|
+
import formI18n from './i18n';
|
4
|
+
export const ISOLATION_LEVEL_SELECT_OPTIONS = [
|
5
|
+
{
|
6
|
+
value: ISOLATION_LEVELS.serializable,
|
7
|
+
content: ISOLATION_LEVELS_TITLES[ISOLATION_LEVELS.serializable],
|
8
|
+
text: i18n('isolation-level-description.serializable'),
|
9
|
+
isDefault: true,
|
10
|
+
},
|
11
|
+
{
|
12
|
+
value: ISOLATION_LEVELS.onlinero,
|
13
|
+
content: ISOLATION_LEVELS_TITLES[ISOLATION_LEVELS.onlinero],
|
14
|
+
text: i18n('isolation-level-description.onlinero'),
|
15
|
+
},
|
16
|
+
{
|
17
|
+
value: ISOLATION_LEVELS.stalero,
|
18
|
+
content: ISOLATION_LEVELS_TITLES[ISOLATION_LEVELS.stalero],
|
19
|
+
text: i18n('isolation-level-description.stalero'),
|
20
|
+
},
|
21
|
+
{
|
22
|
+
value: ISOLATION_LEVELS.snapshot,
|
23
|
+
content: ISOLATION_LEVELS_TITLES[ISOLATION_LEVELS.snapshot],
|
24
|
+
text: i18n('isolation-level-description.snapshot'),
|
25
|
+
},
|
26
|
+
];
|
27
|
+
export const QUERY_MODE_SELECT_OPTIONS = [
|
28
|
+
{
|
29
|
+
value: QUERY_MODES.script,
|
30
|
+
content: QUERY_MODES_TITLES[QUERY_MODES.script],
|
31
|
+
text: i18n('method-description.script'),
|
32
|
+
isDefault: true,
|
33
|
+
},
|
34
|
+
{
|
35
|
+
value: QUERY_MODES.scan,
|
36
|
+
content: QUERY_MODES_TITLES[QUERY_MODES.scan],
|
37
|
+
text: i18n('method-description.scan'),
|
38
|
+
},
|
39
|
+
{
|
40
|
+
value: QUERY_MODES.data,
|
41
|
+
content: QUERY_MODES_TITLES[QUERY_MODES.data],
|
42
|
+
text: i18n('method-description.data'),
|
43
|
+
},
|
44
|
+
{
|
45
|
+
value: QUERY_MODES.query,
|
46
|
+
content: QUERY_MODES_TITLES[QUERY_MODES.query],
|
47
|
+
text: i18n('method-description.query'),
|
48
|
+
},
|
49
|
+
{
|
50
|
+
value: QUERY_MODES.pg,
|
51
|
+
content: QUERY_MODES_TITLES[QUERY_MODES.pg],
|
52
|
+
text: i18n('method-description.pg'),
|
53
|
+
},
|
54
|
+
];
|
55
|
+
export const STATISTICS_MODE_SELECT_OPTIONS = [
|
56
|
+
{
|
57
|
+
value: STATISTICS_MODES.none,
|
58
|
+
content: STATISTICS_MODES_TITLES[STATISTICS_MODES.none],
|
59
|
+
text: i18n('statistics-mode-description.none'),
|
60
|
+
isDefault: true,
|
61
|
+
},
|
62
|
+
{
|
63
|
+
value: STATISTICS_MODES.basic,
|
64
|
+
content: STATISTICS_MODES_TITLES[STATISTICS_MODES.basic],
|
65
|
+
text: i18n('statistics-mode-description.basic'),
|
66
|
+
},
|
67
|
+
{
|
68
|
+
value: STATISTICS_MODES.full,
|
69
|
+
content: STATISTICS_MODES_TITLES[STATISTICS_MODES.full],
|
70
|
+
text: i18n('statistics-mode-description.full'),
|
71
|
+
},
|
72
|
+
{
|
73
|
+
value: STATISTICS_MODES.profile,
|
74
|
+
content: STATISTICS_MODES_TITLES[STATISTICS_MODES.profile],
|
75
|
+
text: i18n('statistics-mode-description.profile'),
|
76
|
+
},
|
77
|
+
];
|
78
|
+
export const TRACING_LEVEL_SELECT_OPTIONS = [
|
79
|
+
{
|
80
|
+
value: TRACING_LEVELS.off,
|
81
|
+
content: TRACING_LEVELS_TITLES[TRACING_LEVELS.off],
|
82
|
+
text: i18n('tracing-level-description.off'),
|
83
|
+
},
|
84
|
+
{
|
85
|
+
value: TRACING_LEVELS.toplevel,
|
86
|
+
content: TRACING_LEVELS_TITLES[TRACING_LEVELS.toplevel],
|
87
|
+
text: i18n('tracing-level-description.toplevel'),
|
88
|
+
},
|
89
|
+
{
|
90
|
+
value: TRACING_LEVELS.basic,
|
91
|
+
content: TRACING_LEVELS_TITLES[TRACING_LEVELS.basic],
|
92
|
+
text: i18n('tracing-level-description.basic'),
|
93
|
+
},
|
94
|
+
{
|
95
|
+
value: TRACING_LEVELS.detailed,
|
96
|
+
content: TRACING_LEVELS_TITLES[TRACING_LEVELS.detailed],
|
97
|
+
text: i18n('tracing-level-description.detailed'),
|
98
|
+
isDefault: true,
|
99
|
+
},
|
100
|
+
{
|
101
|
+
value: TRACING_LEVELS.diagnostic,
|
102
|
+
content: TRACING_LEVELS_TITLES[TRACING_LEVELS.diagnostic],
|
103
|
+
text: i18n('tracing-level-description.diagnostic'),
|
104
|
+
},
|
105
|
+
{
|
106
|
+
value: TRACING_LEVELS.trace,
|
107
|
+
content: TRACING_LEVELS_TITLES[TRACING_LEVELS.trace],
|
108
|
+
text: i18n('tracing-level-description.trace'),
|
109
|
+
},
|
110
|
+
];
|
111
|
+
export const QUERY_SETTINGS_FIELD_SETTINGS = {
|
112
|
+
isolationLevel: {
|
113
|
+
title: formI18n('form.isolation-level'),
|
114
|
+
options: ISOLATION_LEVEL_SELECT_OPTIONS,
|
115
|
+
},
|
116
|
+
queryMode: {
|
117
|
+
title: formI18n('form.query-mode'),
|
118
|
+
options: QUERY_MODE_SELECT_OPTIONS,
|
119
|
+
},
|
120
|
+
statisticsMode: {
|
121
|
+
title: formI18n('form.statistics-mode'),
|
122
|
+
options: STATISTICS_MODE_SELECT_OPTIONS,
|
123
|
+
},
|
124
|
+
tracingLevel: {
|
125
|
+
title: formI18n('form.tracing-level'),
|
126
|
+
options: TRACING_LEVEL_SELECT_OPTIONS,
|
127
|
+
},
|
128
|
+
timeout: {
|
129
|
+
title: formI18n('form.timeout'),
|
130
|
+
},
|
131
|
+
};
|
@@ -0,0 +1,13 @@
|
|
1
|
+
{
|
2
|
+
"action.settings": "Query settings",
|
3
|
+
"form.query-mode": "Query type",
|
4
|
+
"form.timeout": "Timeout",
|
5
|
+
"form.isolation-level": "Isolation level",
|
6
|
+
"form.statistics-mode": "Statistics collection mode",
|
7
|
+
"form.tracing-level": "Tracing level",
|
8
|
+
"button-done": "Save",
|
9
|
+
"button-cancel": "Cancel",
|
10
|
+
"form.timeout.seconds": "sec",
|
11
|
+
"description.default": " (default)",
|
12
|
+
"docs": "Documentation"
|
13
|
+
}
|
@@ -0,0 +1,2 @@
|
|
1
|
+
declare const _default: (key: "button-cancel" | "action.settings" | "form.query-mode" | "form.timeout" | "form.isolation-level" | "form.statistics-mode" | "form.tracing-level" | "button-done" | "form.timeout.seconds" | "description.default" | "docs", params?: import("@gravity-ui/i18n").Params) => string;
|
2
|
+
export default _default;
|
@@ -0,0 +1,13 @@
|
|
1
|
+
{
|
2
|
+
"action.settings": "Настройки запроса",
|
3
|
+
"form.query-mode": "Тип запроса",
|
4
|
+
"form.timeout": "Таймаут",
|
5
|
+
"form.isolation-level": "Уровень изоляции",
|
6
|
+
"form.statistics-mode": "Режим сбора статистики",
|
7
|
+
"form.tracing-level": "Tracing level",
|
8
|
+
"button-done": "Готово",
|
9
|
+
"button-cancel": "Отменить",
|
10
|
+
"form.timeout.seconds": "сек",
|
11
|
+
"description.default": " (default)",
|
12
|
+
"docs": "Документация"
|
13
|
+
}
|
@@ -17,10 +17,26 @@
|
|
17
17
|
"method-description.data": "DML queries for changing and fetching data in serialization mode.\nAPI call: table.executeDataQuery",
|
18
18
|
"method-description.query": "Any query. An experimental API call supposed to replace all existing methods.\nAPI Call: query.ExecuteScript",
|
19
19
|
"method-description.pg": "Queries in postgresql syntax.\nAPI call: query.ExecuteScript",
|
20
|
+
"isolation-level-description.serializable": "Provides the strictest isolation level for custom transactions",
|
21
|
+
"isolation-level-description.onlinero": "Each read operation in the transaction is reading the data that is most recent at execution time",
|
22
|
+
"isolation-level-description.stalero": "Read operations within a transaction may return results that are slightly out-of-date (lagging by fractions of a second)",
|
23
|
+
"isolation-level-description.snapshot": "All the read operations within a transaction access the database snapshot. All the data reads are consistent",
|
24
|
+
"tracing-level-description.basic": "Spans of main component operations",
|
25
|
+
"tracing-level-description.detailed": "Highest detail applicable for diagnosing problems in production",
|
26
|
+
"tracing-level-description.diagnostic": "Detailed debugging information for developers",
|
27
|
+
"tracing-level-description.off": "No tracing",
|
28
|
+
"tracing-level-description.toplevel": "Lowest detail, no more than two spans per request to the component",
|
29
|
+
"tracing-level-description.trace": "Very detailed debugging information",
|
30
|
+
"statistics-mode-description.none": "Don't collect statistics",
|
31
|
+
"statistics-mode-description.basic": "Collect statistics",
|
32
|
+
"statistics-mode-description.full": "Collect statistics and query plan",
|
33
|
+
"statistics-mode-description.profile": "Collect statistics for individual tasks",
|
20
34
|
"query-duration.description": "Duration of server-side query execution",
|
21
35
|
"action.send-query": "Send query",
|
22
36
|
"action.send-selected-query": "Send selected query",
|
23
37
|
"action.previous-query": "Previous query in history",
|
24
38
|
"action.next-query": "Next query in history",
|
25
|
-
"action.save-query": "Save query"
|
39
|
+
"action.save-query": "Save query",
|
40
|
+
"gear.tooltip": "Query execution settings have been changed for ",
|
41
|
+
"banner.query-settings.message": "Query results are displayed for "
|
26
42
|
}
|
@@ -1,2 +1,2 @@
|
|
1
|
-
declare const _default: (key: "controls.query-mode-selector_type" | "tabs.newQuery" | "tabs.history" | "tabs.saved" | "history.empty" | "saved.empty" | "delete-dialog.header" | "delete-dialog.question" | "delete-dialog.delete" | "delete-dialog.cancel" | "preview.title" | "preview.not-available" | "preview.close" | "method-description.script" | "method-description.scan" | "method-description.data" | "method-description.query" | "method-description.pg" | "query-duration.description" | "action.send-query" | "action.send-selected-query" | "action.previous-query" | "action.next-query" | "action.save-query", params?: import("@gravity-ui/i18n").Params) => string;
|
1
|
+
declare const _default: (key: "controls.query-mode-selector_type" | "tabs.newQuery" | "tabs.history" | "tabs.saved" | "history.empty" | "saved.empty" | "delete-dialog.header" | "delete-dialog.question" | "delete-dialog.delete" | "delete-dialog.cancel" | "preview.title" | "preview.not-available" | "preview.close" | "method-description.script" | "method-description.scan" | "method-description.data" | "method-description.query" | "method-description.pg" | "isolation-level-description.serializable" | "isolation-level-description.onlinero" | "isolation-level-description.stalero" | "isolation-level-description.snapshot" | "tracing-level-description.basic" | "tracing-level-description.detailed" | "tracing-level-description.diagnostic" | "tracing-level-description.off" | "tracing-level-description.toplevel" | "tracing-level-description.trace" | "statistics-mode-description.none" | "statistics-mode-description.basic" | "statistics-mode-description.full" | "statistics-mode-description.profile" | "query-duration.description" | "action.send-query" | "action.send-selected-query" | "action.previous-query" | "action.next-query" | "action.save-query" | "gear.tooltip" | "banner.query-settings.message", params?: import("@gravity-ui/i18n").Params) => string;
|
2
2
|
export default _default;
|