@ytsaurus/ui 1.13.1 → 1.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/shared/yt-types.d.ts +6 -0
- package/build/cjs/ui/common/yt-api-init.js +3 -1
- package/build/cjs/ui/common/yt-api-init.js.map +1 -1
- package/build/cjs/ui/constants/scheduling/index.d.ts +6 -7
- package/build/cjs/ui/constants/scheduling/index.js +7 -8
- package/build/cjs/ui/constants/scheduling/index.js.map +1 -1
- package/build/cjs/ui/pages/components/tabs/node/NodePage.js +1 -4
- package/build/cjs/ui/pages/components/tabs/node/NodePage.js.map +1 -1
- package/build/cjs/ui/pages/components/tabs/nodes/NodeCard/NodeCard.js +12 -16
- package/build/cjs/ui/pages/components/tabs/nodes/NodeCard/NodeCard.js.map +1 -1
- package/build/cjs/ui/pages/operations/OperationDetail/tabs/details/Runtime/Runtime.js +2 -5
- package/build/cjs/ui/pages/operations/OperationDetail/tabs/details/Runtime/Runtime.js.map +1 -1
- package/build/cjs/ui/pages/operations/OperationsList/OperationsListToolbar/OperationsListToolbar.js +1 -5
- package/build/cjs/ui/pages/operations/OperationsList/OperationsListToolbar/OperationsListToolbar.js.map +1 -1
- package/build/cjs/ui/pages/operations/selectors.d.ts +8 -7
- package/build/cjs/ui/pages/query-tracker/module/queries_list/selectors.d.ts +32 -28
- package/build/cjs/ui/pages/query-tracker/module/query/selectors.d.ts +8 -7
- package/build/cjs/ui/pages/query-tracker/module/settings/selector.d.ts +8 -7
- package/build/cjs/ui/pages/scheduling/Alerts.js +1 -1
- package/build/cjs/ui/pages/scheduling/Alerts.js.map +1 -1
- package/build/cjs/ui/pages/scheduling/Content/Content.js +2 -2
- package/build/cjs/ui/pages/scheduling/Content/Content.js.map +1 -1
- package/build/cjs/ui/pages/scheduling/Content/{SchedulingOperationsUpdater.d.ts → SchedulingExpandedPoolsUpdater.d.ts} +2 -2
- package/build/cjs/ui/pages/scheduling/Content/{SchedulingOperationsUpdater.js → SchedulingExpandedPoolsUpdater.js} +7 -8
- package/build/cjs/ui/pages/scheduling/Content/SchedulingExpandedPoolsUpdater.js.map +1 -0
- package/build/cjs/ui/pages/scheduling/Content/SchedulingResources.js +4 -3
- package/build/cjs/ui/pages/scheduling/Content/SchedulingResources.js.map +1 -1
- package/build/cjs/ui/pages/scheduling/Content/controls/ShareUsageBar.js +1 -1
- package/build/cjs/ui/pages/scheduling/Content/controls/ShareUsageBar.js.map +1 -1
- package/build/cjs/ui/pages/scheduling/Content/tabs/Details/Details.js +13 -8
- package/build/cjs/ui/pages/scheduling/Content/tabs/Details/Details.js.map +1 -1
- package/build/cjs/ui/pages/scheduling/Content/tabs/Overview/Overview.d.ts +12 -10
- package/build/cjs/ui/pages/scheduling/Content/tabs/Overview/Overview.js +30 -21
- package/build/cjs/ui/pages/scheduling/Content/tabs/Overview/Overview.js.map +1 -1
- package/build/cjs/ui/pages/scheduling/Content/tabs/SchedulingOperationsError/SchedulingOperationsError.js +2 -2
- package/build/cjs/ui/pages/scheduling/Content/tabs/SchedulingOperationsError/SchedulingOperationsError.js.map +1 -1
- package/build/cjs/ui/pages/scheduling/Content/tabs/ScherdulingOperataionsLoader/SchedulingOperationsLoader.js +2 -2
- package/build/cjs/ui/pages/scheduling/Content/tabs/ScherdulingOperataionsLoader/SchedulingOperationsLoader.js.map +1 -1
- package/build/cjs/ui/pages/scheduling/PoolQoutaEditor/PoolQuotaEditor.d.ts +0 -1
- package/build/cjs/ui/pages/scheduling/PoolQoutaEditor/PoolQuotaEditor.js +1 -3
- package/build/cjs/ui/pages/scheduling/PoolQoutaEditor/PoolQuotaEditor.js.map +1 -1
- package/build/cjs/ui/pages/scheduling/Scheduling/PoolEditorDialog/PoolEditorDialog.d.ts +24 -0
- package/build/cjs/ui/pages/scheduling/Scheduling/PoolEditorDialog/PoolEditorDialog.js +8 -19
- package/build/cjs/ui/pages/scheduling/Scheduling/PoolEditorDialog/PoolEditorDialog.js.map +1 -1
- package/build/cjs/ui/pages/scheduling/Scheduling/Scheduling.js +29 -48
- package/build/cjs/ui/pages/scheduling/Scheduling/Scheduling.js.map +1 -1
- package/build/cjs/ui/pages/scheduling/Scheduling/SchedulingTopRowContent.js +8 -4
- package/build/cjs/ui/pages/scheduling/Scheduling/SchedulingTopRowContent.js.map +1 -1
- package/build/cjs/ui/rum/rum-wrap-api.d.ts +95 -53
- package/build/cjs/ui/rum/rum-wrap-api.js +59 -56
- package/build/cjs/ui/rum/rum-wrap-api.js.map +1 -1
- package/build/cjs/ui/store/actions/components/node/node.js +6 -29
- package/build/cjs/ui/store/actions/components/node/node.js.map +1 -1
- package/build/cjs/ui/store/actions/operations/detail.js +1 -1
- package/build/cjs/ui/store/actions/operations/detail.js.map +1 -1
- package/build/cjs/ui/store/actions/scheduling/create-pool-dialog.js +3 -3
- package/build/cjs/ui/store/actions/scheduling/create-pool-dialog.js.map +1 -1
- package/build/cjs/ui/store/actions/scheduling/expanded-pools.d.ts +15 -0
- package/build/cjs/ui/store/actions/scheduling/expanded-pools.js +377 -0
- package/build/cjs/ui/store/actions/scheduling/expanded-pools.js.map +1 -0
- package/build/cjs/ui/store/actions/scheduling/scheduling-ts.d.ts +15 -1
- package/build/cjs/ui/store/actions/scheduling/scheduling-ts.js +226 -10
- package/build/cjs/ui/store/actions/scheduling/scheduling-ts.js.map +1 -1
- package/build/cjs/ui/store/actions/scheduling/scheduling.d.ts +1 -32
- package/build/cjs/ui/store/actions/scheduling/scheduling.js +12 -250
- package/build/cjs/ui/store/actions/scheduling/scheduling.js.map +1 -1
- package/build/cjs/ui/store/reducers/components/node/node.d.ts +0 -2
- package/build/cjs/ui/store/reducers/components/node/node.js +2 -5
- package/build/cjs/ui/store/reducers/components/node/node.js.map +1 -1
- package/build/cjs/ui/store/reducers/index.d.ts +9 -7
- package/build/cjs/ui/store/reducers/index.js +3 -4
- package/build/cjs/ui/store/reducers/index.js.map +1 -1
- package/build/cjs/ui/store/reducers/scheduling/expanded-pools.d.ts +28 -0
- package/build/cjs/ui/store/reducers/scheduling/{scheduling-operations.js → expanded-pools.js} +10 -8
- package/build/cjs/ui/store/reducers/scheduling/expanded-pools.js.map +1 -0
- package/build/cjs/ui/store/reducers/scheduling/index.d.ts +5 -93
- package/build/cjs/ui/store/reducers/scheduling/index.js +10 -136
- package/build/cjs/ui/store/reducers/scheduling/index.js.map +1 -1
- package/build/cjs/ui/store/reducers/scheduling/scheduling.d.ts +100 -0
- package/build/cjs/ui/store/reducers/scheduling/scheduling.js +139 -0
- package/build/cjs/ui/store/reducers/scheduling/scheduling.js.map +1 -0
- package/build/cjs/ui/store/reducers/scheduling/url-mapping.d.ts +13 -2
- package/build/cjs/ui/store/reducers/scheduling/url-mapping.js +31 -26
- package/build/cjs/ui/store/reducers/scheduling/url-mapping.js.map +1 -1
- package/build/cjs/ui/store/selectors/accounts/account-usage.d.ts +64 -56
- package/build/cjs/ui/store/selectors/accounts/accounts-ts.d.ts +64 -56
- package/build/cjs/ui/store/selectors/chaos_cell_bundles/index.d.ts +88 -77
- package/build/cjs/ui/store/selectors/chyt/index.d.ts +56 -49
- package/build/cjs/ui/store/selectors/components/node/memory.d.ts +56 -49
- package/build/cjs/ui/store/selectors/components/node-maintenance-modal.d.ts +1712 -13
- package/build/cjs/ui/store/selectors/components/nodes/node-card.d.ts +8 -7
- package/build/cjs/ui/store/selectors/components/nodes/nodes/data.d.ts +16 -14
- package/build/cjs/ui/store/selectors/components/nodes/nodes/predicates.d.ts +48 -42
- package/build/cjs/ui/store/selectors/components/versions/versions_v2-ts.d.ts +859 -9
- package/build/cjs/ui/store/selectors/components/versions/versions_v2.d.ts +40 -35
- package/build/cjs/ui/store/selectors/global/index.d.ts +116 -102
- package/build/cjs/ui/store/selectors/global/index.js +2 -3
- package/build/cjs/ui/store/selectors/global/index.js.map +1 -1
- package/build/cjs/ui/store/selectors/global/supported-features.d.ts +48 -42
- package/build/cjs/ui/store/selectors/modals/errors.d.ts +8 -7
- package/build/cjs/ui/store/selectors/navigation/content/document.d.ts +8 -7
- package/build/cjs/ui/store/selectors/navigation/content/replicated-table.d.ts +24 -21
- package/build/cjs/ui/store/selectors/navigation/content/table-mount-config.d.ts +8 -7
- package/build/cjs/ui/store/selectors/navigation/content/table-ts.d.ts +32 -28
- package/build/cjs/ui/store/selectors/navigation/content/table.d.ts +56 -49
- package/build/cjs/ui/store/selectors/navigation/modals/attributes-editor.d.ts +24 -21
- package/build/cjs/ui/store/selectors/navigation/modals/remote-copy-modal.d.ts +8 -7
- package/build/cjs/ui/store/selectors/navigation/navigation.d.ts +16 -14
- package/build/cjs/ui/store/selectors/navigation/tabs/access-log.d.ts +8 -7
- package/build/cjs/ui/store/selectors/navigation/tabs/annotation.d.ts +8 -7
- package/build/cjs/ui/store/selectors/navigation/tabs/consumer.d.ts +8 -7
- package/build/cjs/ui/store/selectors/navigation/tabs/locks.d.ts +16 -14
- package/build/cjs/ui/store/selectors/navigation/tabs/queue.d.ts +16 -14
- package/build/cjs/ui/store/selectors/navigation/tabs/tablet-errors.d.ts +8 -7
- package/build/cjs/ui/store/selectors/operations/index.d.ts +96 -84
- package/build/cjs/ui/store/selectors/operations/jobs-monitor.d.ts +32 -28
- package/build/cjs/ui/store/selectors/operations/operation.d.ts +939 -79
- package/build/cjs/ui/store/selectors/operations/operation.js +2 -17
- package/build/cjs/ui/store/selectors/operations/operation.js.map +1 -1
- package/build/cjs/ui/store/selectors/operations/operations-list.d.ts +24 -21
- package/build/cjs/ui/store/selectors/operations/statistics-v2.d.ts +64 -56
- package/build/cjs/ui/store/selectors/scheduling/attributes-to-filter.d.ts +876 -0
- package/build/cjs/ui/store/selectors/scheduling/attributes-to-filter.js +75 -0
- package/build/cjs/ui/store/selectors/scheduling/attributes-to-filter.js.map +1 -0
- package/build/cjs/ui/store/selectors/scheduling/create-pool-dialog.d.ts +8 -7
- package/build/cjs/ui/store/selectors/scheduling/create-pool-dialog.js +3 -3
- package/build/cjs/ui/store/selectors/scheduling/create-pool-dialog.js.map +1 -1
- package/build/cjs/ui/store/selectors/scheduling/{scheduling-operations.d.ts → expanded-pools.d.ts} +14 -14
- package/build/cjs/ui/store/selectors/scheduling/expanded-pools.js +35 -0
- package/build/cjs/ui/store/selectors/scheduling/expanded-pools.js.map +1 -0
- package/build/cjs/ui/store/selectors/scheduling/index.d.ts +8 -7
- package/build/cjs/ui/store/selectors/scheduling/index.js +3 -3
- package/build/cjs/ui/store/selectors/scheduling/index.js.map +1 -1
- package/build/cjs/ui/store/selectors/scheduling/monitor.js +1 -1
- package/build/cjs/ui/store/selectors/scheduling/monitor.js.map +1 -1
- package/build/cjs/ui/store/selectors/scheduling/scheduling-pools.d.ts +2552 -3
- package/build/cjs/ui/store/selectors/scheduling/scheduling-pools.js +10 -18
- package/build/cjs/ui/store/selectors/scheduling/scheduling-pools.js.map +1 -1
- package/build/cjs/ui/store/selectors/scheduling/scheduling-ts.d.ts +4291 -45
- package/build/cjs/ui/store/selectors/scheduling/scheduling.d.ts +13739 -149
- package/build/cjs/ui/store/selectors/scheduling/scheduling.js +35 -30
- package/build/cjs/ui/store/selectors/scheduling/scheduling.js.map +1 -1
- package/build/cjs/ui/store/selectors/tablet_cell_bundles/index.d.ts +120 -105
- package/build/cjs/ui/store/selectors/thor/support.d.ts +4294 -86
- package/build/cjs/ui/store/selectors/thor/support.js +76 -138
- package/build/cjs/ui/store/selectors/thor/support.js.map +1 -1
- package/build/cjs/ui/store/selectors/thor/support.spec.js +163 -68
- package/build/cjs/ui/store/selectors/thor/support.spec.js.map +1 -1
- package/build/cjs/ui/store/window-store.js +2 -2
- package/build/cjs/ui/store/window-store.js.map +1 -1
- package/build/cjs/ui/utils/batch.d.ts +54 -0
- package/build/cjs/ui/utils/batch.js +27 -0
- package/build/cjs/ui/utils/batch.js.map +1 -0
- package/build/cjs/ui/utils/scheduling/pool-child.d.ts +1 -1
- package/build/cjs/ui/utils/scheduling/pool-child.js +20 -9
- package/build/cjs/ui/utils/scheduling/pool-child.js.map +1 -1
- package/build/cjs/ui/utils/scheduling/scheduling.d.ts +2 -6
- package/build/cjs/ui/utils/scheduling/scheduling.js +3 -3
- package/build/cjs/ui/utils/scheduling/scheduling.js.map +1 -1
- package/build/cjs/ui/utils/utils.d.ts +3 -2
- package/build/cjs/ui/utils/utils.js +17 -9
- package/build/cjs/ui/utils/utils.js.map +1 -1
- package/build/esm/shared/yt-types.d.ts +6 -0
- package/build/esm/ui/common/yt-api-init.js +4 -2
- package/build/esm/ui/common/yt-api-init.js.map +1 -1
- package/build/esm/ui/constants/scheduling/index.d.ts +6 -7
- package/build/esm/ui/constants/scheduling/index.js +6 -7
- package/build/esm/ui/constants/scheduling/index.js.map +1 -1
- package/build/esm/ui/pages/components/tabs/node/NodePage.js +1 -4
- package/build/esm/ui/pages/components/tabs/node/NodePage.js.map +1 -1
- package/build/esm/ui/pages/components/tabs/nodes/NodeCard/NodeCard.js +12 -16
- package/build/esm/ui/pages/components/tabs/nodes/NodeCard/NodeCard.js.map +1 -1
- package/build/esm/ui/pages/operations/OperationDetail/tabs/details/Runtime/Runtime.js +3 -6
- package/build/esm/ui/pages/operations/OperationDetail/tabs/details/Runtime/Runtime.js.map +1 -1
- package/build/esm/ui/pages/operations/OperationsList/OperationsListToolbar/OperationsListToolbar.js +1 -5
- package/build/esm/ui/pages/operations/OperationsList/OperationsListToolbar/OperationsListToolbar.js.map +1 -1
- package/build/esm/ui/pages/operations/selectors.d.ts +8 -7
- package/build/esm/ui/pages/query-tracker/module/queries_list/selectors.d.ts +32 -28
- package/build/esm/ui/pages/query-tracker/module/query/selectors.d.ts +8 -7
- package/build/esm/ui/pages/query-tracker/module/settings/selector.d.ts +8 -7
- package/build/esm/ui/pages/scheduling/Alerts.js +1 -1
- package/build/esm/ui/pages/scheduling/Alerts.js.map +1 -1
- package/build/esm/ui/pages/scheduling/Content/Content.js +2 -2
- package/build/esm/ui/pages/scheduling/Content/Content.js.map +1 -1
- package/build/esm/ui/pages/scheduling/Content/{SchedulingOperationsUpdater.d.ts → SchedulingExpandedPoolsUpdater.d.ts} +2 -2
- package/build/esm/ui/pages/scheduling/Content/SchedulingExpandedPoolsUpdater.js +15 -0
- package/build/esm/ui/pages/scheduling/Content/SchedulingExpandedPoolsUpdater.js.map +1 -0
- package/build/esm/ui/pages/scheduling/Content/SchedulingResources.js +4 -3
- package/build/esm/ui/pages/scheduling/Content/SchedulingResources.js.map +1 -1
- package/build/esm/ui/pages/scheduling/Content/controls/ShareUsageBar.js +1 -1
- package/build/esm/ui/pages/scheduling/Content/controls/ShareUsageBar.js.map +1 -1
- package/build/esm/ui/pages/scheduling/Content/tabs/Details/Details.js +14 -9
- package/build/esm/ui/pages/scheduling/Content/tabs/Details/Details.js.map +1 -1
- package/build/esm/ui/pages/scheduling/Content/tabs/Overview/Overview.d.ts +12 -10
- package/build/esm/ui/pages/scheduling/Content/tabs/Overview/Overview.js +27 -18
- package/build/esm/ui/pages/scheduling/Content/tabs/Overview/Overview.js.map +1 -1
- package/build/esm/ui/pages/scheduling/Content/tabs/SchedulingOperationsError/SchedulingOperationsError.js +1 -1
- package/build/esm/ui/pages/scheduling/Content/tabs/SchedulingOperationsError/SchedulingOperationsError.js.map +1 -1
- package/build/esm/ui/pages/scheduling/Content/tabs/ScherdulingOperataionsLoader/SchedulingOperationsLoader.js +1 -1
- package/build/esm/ui/pages/scheduling/Content/tabs/ScherdulingOperataionsLoader/SchedulingOperationsLoader.js.map +1 -1
- package/build/esm/ui/pages/scheduling/PoolQoutaEditor/PoolQuotaEditor.d.ts +0 -1
- package/build/esm/ui/pages/scheduling/PoolQoutaEditor/PoolQuotaEditor.js +1 -3
- package/build/esm/ui/pages/scheduling/PoolQoutaEditor/PoolQuotaEditor.js.map +1 -1
- package/build/esm/ui/pages/scheduling/Scheduling/PoolEditorDialog/PoolEditorDialog.d.ts +24 -0
- package/build/esm/ui/pages/scheduling/Scheduling/PoolEditorDialog/PoolEditorDialog.js +8 -19
- package/build/esm/ui/pages/scheduling/Scheduling/PoolEditorDialog/PoolEditorDialog.js.map +1 -1
- package/build/esm/ui/pages/scheduling/Scheduling/Scheduling.js +26 -45
- package/build/esm/ui/pages/scheduling/Scheduling/Scheduling.js.map +1 -1
- package/build/esm/ui/pages/scheduling/Scheduling/SchedulingTopRowContent.js +6 -2
- package/build/esm/ui/pages/scheduling/Scheduling/SchedulingTopRowContent.js.map +1 -1
- package/build/esm/ui/rum/rum-wrap-api.d.ts +95 -53
- package/build/esm/ui/rum/rum-wrap-api.js +58 -55
- package/build/esm/ui/rum/rum-wrap-api.js.map +1 -1
- package/build/esm/ui/store/actions/components/node/node.js +6 -28
- package/build/esm/ui/store/actions/components/node/node.js.map +1 -1
- package/build/esm/ui/store/actions/operations/detail.js +1 -1
- package/build/esm/ui/store/actions/operations/detail.js.map +1 -1
- package/build/esm/ui/store/actions/scheduling/create-pool-dialog.js +2 -2
- package/build/esm/ui/store/actions/scheduling/create-pool-dialog.js.map +1 -1
- package/build/esm/ui/store/actions/scheduling/expanded-pools.d.ts +15 -0
- package/build/esm/ui/store/actions/scheduling/expanded-pools.js +363 -0
- package/build/esm/ui/store/actions/scheduling/expanded-pools.js.map +1 -0
- package/build/esm/ui/store/actions/scheduling/scheduling-ts.d.ts +15 -1
- package/build/esm/ui/store/actions/scheduling/scheduling-ts.js +221 -13
- package/build/esm/ui/store/actions/scheduling/scheduling-ts.js.map +1 -1
- package/build/esm/ui/store/actions/scheduling/scheduling.d.ts +1 -32
- package/build/esm/ui/store/actions/scheduling/scheduling.js +16 -247
- package/build/esm/ui/store/actions/scheduling/scheduling.js.map +1 -1
- package/build/esm/ui/store/reducers/components/node/node.d.ts +0 -2
- package/build/esm/ui/store/reducers/components/node/node.js +2 -5
- package/build/esm/ui/store/reducers/components/node/node.js.map +1 -1
- package/build/esm/ui/store/reducers/index.d.ts +9 -7
- package/build/esm/ui/store/reducers/index.js +3 -4
- package/build/esm/ui/store/reducers/index.js.map +1 -1
- package/build/esm/ui/store/reducers/scheduling/expanded-pools.d.ts +28 -0
- package/build/esm/ui/store/reducers/scheduling/{scheduling-operations.js → expanded-pools.js} +11 -9
- package/build/esm/ui/store/reducers/scheduling/expanded-pools.js.map +1 -0
- package/build/esm/ui/store/reducers/scheduling/index.d.ts +5 -93
- package/build/esm/ui/store/reducers/scheduling/index.js +9 -135
- package/build/esm/ui/store/reducers/scheduling/index.js.map +1 -1
- package/build/esm/ui/store/reducers/scheduling/scheduling.d.ts +100 -0
- package/build/esm/ui/store/reducers/scheduling/scheduling.js +132 -0
- package/build/esm/ui/store/reducers/scheduling/scheduling.js.map +1 -0
- package/build/esm/ui/store/reducers/scheduling/url-mapping.d.ts +13 -2
- package/build/esm/ui/store/reducers/scheduling/url-mapping.js +19 -14
- package/build/esm/ui/store/reducers/scheduling/url-mapping.js.map +1 -1
- package/build/esm/ui/store/selectors/accounts/account-usage.d.ts +64 -56
- package/build/esm/ui/store/selectors/accounts/accounts-ts.d.ts +64 -56
- package/build/esm/ui/store/selectors/chaos_cell_bundles/index.d.ts +88 -77
- package/build/esm/ui/store/selectors/chyt/index.d.ts +56 -49
- package/build/esm/ui/store/selectors/components/node/memory.d.ts +56 -49
- package/build/esm/ui/store/selectors/components/node-maintenance-modal.d.ts +1712 -13
- package/build/esm/ui/store/selectors/components/nodes/node-card.d.ts +8 -7
- package/build/esm/ui/store/selectors/components/nodes/nodes/data.d.ts +16 -14
- package/build/esm/ui/store/selectors/components/nodes/nodes/predicates.d.ts +48 -42
- package/build/esm/ui/store/selectors/components/versions/versions_v2-ts.d.ts +859 -9
- package/build/esm/ui/store/selectors/components/versions/versions_v2.d.ts +40 -35
- package/build/esm/ui/store/selectors/global/index.d.ts +116 -102
- package/build/esm/ui/store/selectors/global/index.js +2 -3
- package/build/esm/ui/store/selectors/global/index.js.map +1 -1
- package/build/esm/ui/store/selectors/global/supported-features.d.ts +48 -42
- package/build/esm/ui/store/selectors/modals/errors.d.ts +8 -7
- package/build/esm/ui/store/selectors/navigation/content/document.d.ts +8 -7
- package/build/esm/ui/store/selectors/navigation/content/replicated-table.d.ts +24 -21
- package/build/esm/ui/store/selectors/navigation/content/table-mount-config.d.ts +8 -7
- package/build/esm/ui/store/selectors/navigation/content/table-ts.d.ts +32 -28
- package/build/esm/ui/store/selectors/navigation/content/table.d.ts +56 -49
- package/build/esm/ui/store/selectors/navigation/modals/attributes-editor.d.ts +24 -21
- package/build/esm/ui/store/selectors/navigation/modals/remote-copy-modal.d.ts +8 -7
- package/build/esm/ui/store/selectors/navigation/navigation.d.ts +16 -14
- package/build/esm/ui/store/selectors/navigation/tabs/access-log.d.ts +8 -7
- package/build/esm/ui/store/selectors/navigation/tabs/annotation.d.ts +8 -7
- package/build/esm/ui/store/selectors/navigation/tabs/consumer.d.ts +8 -7
- package/build/esm/ui/store/selectors/navigation/tabs/locks.d.ts +16 -14
- package/build/esm/ui/store/selectors/navigation/tabs/queue.d.ts +16 -14
- package/build/esm/ui/store/selectors/navigation/tabs/tablet-errors.d.ts +8 -7
- package/build/esm/ui/store/selectors/operations/index.d.ts +96 -84
- package/build/esm/ui/store/selectors/operations/jobs-monitor.d.ts +32 -28
- package/build/esm/ui/store/selectors/operations/operation.d.ts +939 -79
- package/build/esm/ui/store/selectors/operations/operation.js +2 -17
- package/build/esm/ui/store/selectors/operations/operation.js.map +1 -1
- package/build/esm/ui/store/selectors/operations/operations-list.d.ts +24 -21
- package/build/esm/ui/store/selectors/operations/statistics-v2.d.ts +64 -56
- package/build/esm/ui/store/selectors/scheduling/attributes-to-filter.d.ts +876 -0
- package/build/esm/ui/store/selectors/scheduling/attributes-to-filter.js +68 -0
- package/build/esm/ui/store/selectors/scheduling/attributes-to-filter.js.map +1 -0
- package/build/esm/ui/store/selectors/scheduling/create-pool-dialog.d.ts +8 -7
- package/build/esm/ui/store/selectors/scheduling/create-pool-dialog.js +3 -3
- package/build/esm/ui/store/selectors/scheduling/create-pool-dialog.js.map +1 -1
- package/build/esm/ui/store/selectors/scheduling/{scheduling-operations.d.ts → expanded-pools.d.ts} +14 -14
- package/build/esm/ui/store/selectors/scheduling/{scheduling-operations.js → expanded-pools.js} +13 -10
- package/build/esm/ui/store/selectors/scheduling/expanded-pools.js.map +1 -0
- package/build/esm/ui/store/selectors/scheduling/index.d.ts +8 -7
- package/build/esm/ui/store/selectors/scheduling/index.js +3 -3
- package/build/esm/ui/store/selectors/scheduling/index.js.map +1 -1
- package/build/esm/ui/store/selectors/scheduling/monitor.js +1 -1
- package/build/esm/ui/store/selectors/scheduling/monitor.js.map +1 -1
- package/build/esm/ui/store/selectors/scheduling/scheduling-pools.d.ts +2552 -3
- package/build/esm/ui/store/selectors/scheduling/scheduling-pools.js +11 -19
- package/build/esm/ui/store/selectors/scheduling/scheduling-pools.js.map +1 -1
- package/build/esm/ui/store/selectors/scheduling/scheduling-ts.d.ts +4291 -45
- package/build/esm/ui/store/selectors/scheduling/scheduling.d.ts +13739 -149
- package/build/esm/ui/store/selectors/scheduling/scheduling.js +34 -29
- package/build/esm/ui/store/selectors/scheduling/scheduling.js.map +1 -1
- package/build/esm/ui/store/selectors/tablet_cell_bundles/index.d.ts +120 -105
- package/build/esm/ui/store/selectors/thor/support.d.ts +4294 -86
- package/build/esm/ui/store/selectors/thor/support.js +73 -134
- package/build/esm/ui/store/selectors/thor/support.js.map +1 -1
- package/build/esm/ui/store/selectors/thor/support.spec.js +164 -69
- package/build/esm/ui/store/selectors/thor/support.spec.js.map +1 -1
- package/build/esm/ui/store/window-store.js +1 -1
- package/build/esm/ui/store/window-store.js.map +1 -1
- package/build/esm/ui/utils/batch.d.ts +54 -0
- package/build/esm/ui/utils/batch.js +19 -0
- package/build/esm/ui/utils/batch.js.map +1 -0
- package/build/esm/ui/utils/scheduling/pool-child.d.ts +1 -1
- package/build/esm/ui/utils/scheduling/pool-child.js +20 -9
- package/build/esm/ui/utils/scheduling/pool-child.js.map +1 -1
- package/build/esm/ui/utils/scheduling/scheduling.d.ts +2 -6
- package/build/esm/ui/utils/scheduling/scheduling.js +3 -3
- package/build/esm/ui/utils/scheduling/scheduling.js.map +1 -1
- package/build/esm/ui/utils/utils.d.ts +3 -2
- package/build/esm/ui/utils/utils.js +17 -9
- package/build/esm/ui/utils/utils.js.map +1 -1
- package/dist/public/build/assets-manifest.json +7 -7
- package/dist/public/build/js/main.64fccb27.js +3 -0
- package/dist/public/build/js/{main.4eb01db4.js.map → main.64fccb27.js.map} +1 -1
- package/dist/public/build/js/{runtime.9491563b.js → runtime.fd8cf219.js} +2 -2
- package/dist/public/build/js/{runtime.9491563b.js.map → runtime.fd8cf219.js.map} +1 -1
- package/dist/public/build/manifest.json +4 -4
- package/package.json +2 -2
- package/build/cjs/ui/pages/scheduling/Content/SchedulingOperationsUpdater.js.map +0 -1
- package/build/cjs/ui/store/actions/scheduling/scheduling-operations.d.ts +0 -15
- package/build/cjs/ui/store/actions/scheduling/scheduling-operations.js +0 -280
- package/build/cjs/ui/store/actions/scheduling/scheduling-operations.js.map +0 -1
- package/build/cjs/ui/store/reducers/scheduling/scheduling-operations.d.ts +0 -19
- package/build/cjs/ui/store/reducers/scheduling/scheduling-operations.js.map +0 -1
- package/build/cjs/ui/store/selectors/scheduling/scheduling-operations.js +0 -32
- package/build/cjs/ui/store/selectors/scheduling/scheduling-operations.js.map +0 -1
- package/build/esm/ui/pages/scheduling/Content/SchedulingOperationsUpdater.js +0 -16
- package/build/esm/ui/pages/scheduling/Content/SchedulingOperationsUpdater.js.map +0 -1
- package/build/esm/ui/store/actions/scheduling/scheduling-operations.d.ts +0 -15
- package/build/esm/ui/store/actions/scheduling/scheduling-operations.js +0 -267
- package/build/esm/ui/store/actions/scheduling/scheduling-operations.js.map +0 -1
- package/build/esm/ui/store/reducers/scheduling/scheduling-operations.d.ts +0 -19
- package/build/esm/ui/store/reducers/scheduling/scheduling-operations.js.map +0 -1
- package/build/esm/ui/store/selectors/scheduling/scheduling-operations.js.map +0 -1
- package/dist/public/build/js/main.4eb01db4.js +0 -3
- /package/dist/public/build/js/{main.4eb01db4.js.LICENSE.txt → main.64fccb27.js.LICENSE.txt} +0 -0
@@ -3,17 +3,178 @@ import _map from "lodash/map";
|
|
3
3
|
import _forEach from "lodash/forEach";
|
4
4
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
5
5
|
import _isEmpty from "lodash/isEmpty";
|
6
|
+
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
7
|
+
import _objectSpread from "@babel/runtime/helpers/objectSpread2";
|
6
8
|
var _excluded = ["guaranteeType"];
|
7
|
-
import { INTEGRAL_GUARANTEES_PREFIX, POOL_RESOURCE_TYPE_TO_ATTRIBUTE } from '../../../utils/scheduling/scheduling';
|
8
|
-
import { getBatchError } from '../../../utils/utils';
|
9
|
+
import { INTEGRAL_GUARANTEES_PREFIX, POOL_RESOURCE_TYPE_TO_ATTRIBUTE, computePoolPath, prepareCurrentTree, prepareTrees } from '../../../utils/scheduling/scheduling';
|
10
|
+
import { extractBatchV4Values, getBatchError, splitBatchResults, wrapApiPromiseByToaster } from '../../../utils/utils';
|
11
|
+
import { makeGet, makeList } from '../../../utils/batch';
|
9
12
|
import { updateNodeAttributes } from '../../../utils/cypress-attributes';
|
10
|
-
import {
|
13
|
+
import { Toaster } from '@gravity-ui/uikit';
|
14
|
+
|
15
|
+
// @ts-expect-error
|
16
|
+
import yt from '@ytsaurus/javascript-wrapper/lib/yt';
|
17
|
+
import { getPools, getSchedulingIsInitialLoading, getTree } from '../../../store/selectors/scheduling/scheduling';
|
18
|
+
import { POOL_TOGGLE_DELETE_VISIBILITY, SCHEDULING_DATA_FAILURE, SCHEDULING_DATA_PARTITION, SCHEDULING_DATA_REQUEST, SCHEDULING_DATA_SUCCESS, SCHEDULING_DELETE_POOL_FAILURE, SCHEDULING_DELETE_POOL_REQUEST, SCHEDULING_DELETE_POOL_SUCCESS } from '../../../constants/scheduling';
|
19
|
+
import { loadExpandedPools } from './expanded-pools';
|
20
|
+
import { RumWrapper, YTApiId, ytApiV3Id, ytApiV4Id } from '../../../rum/rum-wrap-api';
|
21
|
+
import { getCluster } from '../../../store/selectors/global';
|
22
|
+
import { RumMeasureTypes } from '../../../rum/rum-measure-types';
|
23
|
+
import { getSchedulingAttributesToFilterTime, schedulingOverviewHasFilter } from '../../../store/selectors/scheduling/attributes-to-filter';
|
24
|
+
import { USE_CACHE } from '../../../../shared/constants/yt-api';
|
25
|
+
var toaster = new Toaster();
|
26
|
+
export function loadSchedulingData() {
|
27
|
+
return function (dispatch, getState) {
|
28
|
+
dispatch({
|
29
|
+
type: SCHEDULING_DATA_REQUEST
|
30
|
+
});
|
31
|
+
var state = getState();
|
32
|
+
var isInitialLoading = getSchedulingIsInitialLoading(state);
|
33
|
+
if (isInitialLoading && schedulingOverviewHasFilter(state)) {
|
34
|
+
dispatch(schedulingLoadFilterAttributes());
|
35
|
+
}
|
36
|
+
var cluster = getCluster(state);
|
37
|
+
var rumId = new RumWrapper(cluster, RumMeasureTypes.SCHEDULING);
|
38
|
+
return rumId.fetch(YTApiId.schedulingData, ytApiV3Id.executeBatch(YTApiId.schedulingData, _objectSpread({
|
39
|
+
requests: [makeGet('//sys/scheduler/@alerts'), makeList('//sys/scheduler/orchid/scheduler/pool_trees'), makeGet('//sys/scheduler/orchid/scheduler/default_fair_share_tree')]
|
40
|
+
}, USE_CACHE))).then(function (data) {
|
41
|
+
var _splitBatchResults = splitBatchResults(data),
|
42
|
+
error = _splitBatchResults.error,
|
43
|
+
_splitBatchResults$re = _slicedToArray(_splitBatchResults.results, 3),
|
44
|
+
schedulerAlerts = _splitBatchResults$re[0],
|
45
|
+
rawTrees = _splitBatchResults$re[1],
|
46
|
+
defaultTree = _splitBatchResults$re[2];
|
47
|
+
if (error) {
|
48
|
+
return Promise.reject(error);
|
49
|
+
}
|
50
|
+
var state = getState();
|
51
|
+
var trees = prepareTrees(rawTrees);
|
52
|
+
var tree = prepareCurrentTree(defaultTree, trees, state.scheduling.scheduling.tree);
|
53
|
+
dispatch({
|
54
|
+
type: SCHEDULING_DATA_PARTITION,
|
55
|
+
data: {
|
56
|
+
schedulerAlerts: schedulerAlerts,
|
57
|
+
trees: trees,
|
58
|
+
tree: tree
|
59
|
+
}
|
60
|
+
});
|
61
|
+
var treeRequests = [makeGet("//sys/scheduler/orchid/scheduler/pool_trees/".concat(tree, "/resource_usage")), makeGet("//sys/scheduler/orchid/scheduler/pool_trees/".concat(tree, "/resource_limits")), makeGet("//sys/scheduler/orchid/scheduler/pool_trees/".concat(tree, "/config")), makeGet("//sys/scheduler/orchid/scheduler/pool_trees/".concat(tree, "/resource_distribution_info"))];
|
62
|
+
if (isInitialLoading) {
|
63
|
+
/**
|
64
|
+
* We don't need to call `dispatch(loadExpandedPools(tree))` for this branch of code,
|
65
|
+
* the call should be triggered by SchedulingExpandedPoolsUpdater
|
66
|
+
*/
|
67
|
+
//dispatch(loadExpandedPools(tree));
|
68
|
+
} else {
|
69
|
+
dispatch(loadExpandedPools(tree));
|
70
|
+
}
|
71
|
+
return rumId.fetch(YTApiId.schedulingLoadTree, ytApiV4Id.executeBatch(YTApiId.schedulingLoadTree, _objectSpread({
|
72
|
+
requests: treeRequests
|
73
|
+
}, USE_CACHE))).then(function (treeData) {
|
74
|
+
var extracted = extractBatchV4Values(treeData, treeRequests);
|
75
|
+
var _splitBatchResults2 = splitBatchResults(extracted.results),
|
76
|
+
error = _splitBatchResults2.error,
|
77
|
+
results = _splitBatchResults2.results;
|
78
|
+
if (error) {
|
79
|
+
throw error;
|
80
|
+
}
|
81
|
+
return results;
|
82
|
+
});
|
83
|
+
}).then(function (_ref) {
|
84
|
+
var _ref2 = _slicedToArray(_ref, 4),
|
85
|
+
resource_usage = _ref2[0],
|
86
|
+
resource_limits = _ref2[1],
|
87
|
+
config = _ref2[2],
|
88
|
+
resource_distribution_info = _ref2[3];
|
89
|
+
var treeResources = {
|
90
|
+
resource_usage: resource_usage,
|
91
|
+
resource_limits: resource_limits,
|
92
|
+
config: config,
|
93
|
+
resource_distribution_info: resource_distribution_info
|
94
|
+
};
|
95
|
+
dispatch({
|
96
|
+
type: SCHEDULING_DATA_SUCCESS,
|
97
|
+
data: {
|
98
|
+
treeResources: treeResources
|
99
|
+
}
|
100
|
+
});
|
101
|
+
})["catch"](function (error) {
|
102
|
+
if (error.code !== yt.codes.CANCELLED) {
|
103
|
+
dispatch({
|
104
|
+
type: SCHEDULING_DATA_FAILURE,
|
105
|
+
data: {
|
106
|
+
error: error
|
107
|
+
}
|
108
|
+
});
|
109
|
+
}
|
110
|
+
});
|
111
|
+
};
|
112
|
+
}
|
113
|
+
export function deletePool(item) {
|
114
|
+
return function (dispatch, getState) {
|
115
|
+
if (!item) {
|
116
|
+
return;
|
117
|
+
}
|
118
|
+
var state = getState();
|
119
|
+
var tree = getTree(state);
|
120
|
+
var pools = getPools(state);
|
121
|
+
var path = computePoolPath(item, pools);
|
122
|
+
dispatch({
|
123
|
+
type: SCHEDULING_DELETE_POOL_REQUEST
|
124
|
+
});
|
125
|
+
return yt.v3.remove({
|
126
|
+
path: "//sys/pool_trees/".concat(tree, "/").concat(path)
|
127
|
+
}).then(function () {
|
128
|
+
toaster.add({
|
129
|
+
name: 'delete pool',
|
130
|
+
autoHiding: 10000,
|
131
|
+
type: 'success',
|
132
|
+
title: "Successfully deleted ".concat(item.name, ". Please wait.")
|
133
|
+
});
|
134
|
+
dispatch({
|
135
|
+
type: SCHEDULING_DELETE_POOL_SUCCESS
|
136
|
+
});
|
137
|
+
dispatch(closePoolDeleteModal());
|
138
|
+
setTimeout(function () {
|
139
|
+
return dispatch(loadSchedulingData());
|
140
|
+
}, 3000);
|
141
|
+
})["catch"](function (error) {
|
142
|
+
if (error.code !== yt.codes.CANCELLED) {
|
143
|
+
dispatch({
|
144
|
+
type: SCHEDULING_DELETE_POOL_FAILURE,
|
145
|
+
data: {
|
146
|
+
error: error
|
147
|
+
}
|
148
|
+
});
|
149
|
+
return Promise.reject();
|
150
|
+
}
|
151
|
+
return null;
|
152
|
+
});
|
153
|
+
};
|
154
|
+
}
|
155
|
+
export function openPoolDeleteModal(item) {
|
156
|
+
return {
|
157
|
+
type: POOL_TOGGLE_DELETE_VISIBILITY,
|
158
|
+
data: {
|
159
|
+
visibility: true,
|
160
|
+
item: item
|
161
|
+
}
|
162
|
+
};
|
163
|
+
}
|
164
|
+
export function closePoolDeleteModal() {
|
165
|
+
return {
|
166
|
+
type: POOL_TOGGLE_DELETE_VISIBILITY,
|
167
|
+
data: {
|
168
|
+
visibility: false,
|
169
|
+
item: undefined
|
170
|
+
}
|
171
|
+
};
|
172
|
+
}
|
11
173
|
export function setPoolAttributes(params) {
|
12
174
|
var poolPath = params.poolPath,
|
13
175
|
values = params.values,
|
14
176
|
initials = params.initials,
|
15
|
-
tree = params.tree
|
16
|
-
allowTransfer = params.allowTransfer;
|
177
|
+
tree = params.tree;
|
17
178
|
if (_isEmpty(values)) {
|
18
179
|
return Promise.resolve();
|
19
180
|
}
|
@@ -22,12 +183,12 @@ export function setPoolAttributes(params) {
|
|
22
183
|
var guaranteeType = values.guaranteeType,
|
23
184
|
restValues = _objectWithoutProperties(values, _excluded);
|
24
185
|
_forEach(restValues, function (v, k) {
|
25
|
-
var
|
26
|
-
limit =
|
27
|
-
source =
|
186
|
+
var _ref3 = v || {},
|
187
|
+
limit = _ref3.limit,
|
188
|
+
source = _ref3.source;
|
28
189
|
var key = k;
|
29
190
|
var attr = POOL_RESOURCE_TYPE_TO_ATTRIBUTE[key];
|
30
|
-
if (!source || limit === undefined
|
191
|
+
if (!source || limit === undefined) {
|
31
192
|
toModify.push({
|
32
193
|
attr: attr,
|
33
194
|
value: limit
|
@@ -59,10 +220,10 @@ export function setPoolAttributes(params) {
|
|
59
220
|
});
|
60
221
|
});
|
61
222
|
}
|
62
|
-
function transferPoolQuota(
|
63
|
-
var poolPath =
|
64
|
-
transferData =
|
65
|
-
tree =
|
223
|
+
function transferPoolQuota(_ref4) {
|
224
|
+
var poolPath = _ref4.poolPath,
|
225
|
+
transferData = _ref4.transferData,
|
226
|
+
tree = _ref4.tree;
|
66
227
|
if (_isEmpty(transferData)) {
|
67
228
|
return Promise.resolve();
|
68
229
|
}
|
@@ -97,4 +258,51 @@ function transferPoolQuota(_ref2) {
|
|
97
258
|
return res;
|
98
259
|
});
|
99
260
|
}
|
261
|
+
export function schedulingLoadFilterAttributes() {
|
262
|
+
return function (dispatch, getState) {
|
263
|
+
var state = getState();
|
264
|
+
var lastTime = getSchedulingAttributesToFilterTime(state);
|
265
|
+
if (Date.now() - lastTime < 120000) {
|
266
|
+
return undefined;
|
267
|
+
}
|
268
|
+
return wrapApiPromiseByToaster(ytApiV3Id.get(YTApiId.schedulingFilterAttributes, _objectSpread({
|
269
|
+
path: '//sys/scheduler/orchid/scheduler/pool_trees/physical/pools',
|
270
|
+
fields: ['parent', 'abc']
|
271
|
+
}, USE_CACHE)), {
|
272
|
+
skipSuccessToast: true,
|
273
|
+
toasterName: 'schedulingLoadFilterAttributes',
|
274
|
+
errorContent: 'Failed to load attributes required for filtering'
|
275
|
+
}).then(function (attributesToFilter) {
|
276
|
+
dispatch({
|
277
|
+
type: SCHEDULING_DATA_PARTITION,
|
278
|
+
data: {
|
279
|
+
attributesToFilter: attributesToFilter,
|
280
|
+
attributesToFilterTime: Date.now()
|
281
|
+
}
|
282
|
+
});
|
283
|
+
});
|
284
|
+
};
|
285
|
+
}
|
286
|
+
export function schedulingSetFilter(filter) {
|
287
|
+
return function (dispatch) {
|
288
|
+
dispatch(schedulingLoadFilterAttributes());
|
289
|
+
dispatch({
|
290
|
+
type: SCHEDULING_DATA_PARTITION,
|
291
|
+
data: {
|
292
|
+
filter: filter
|
293
|
+
}
|
294
|
+
});
|
295
|
+
};
|
296
|
+
}
|
297
|
+
export function schedulingSetAbcFilter(abcServiceFilter) {
|
298
|
+
return function (dispatch) {
|
299
|
+
dispatch(schedulingLoadFilterAttributes());
|
300
|
+
dispatch({
|
301
|
+
type: SCHEDULING_DATA_PARTITION,
|
302
|
+
data: {
|
303
|
+
abcServiceFilter: abcServiceFilter
|
304
|
+
}
|
305
|
+
});
|
306
|
+
};
|
307
|
+
}
|
100
308
|
// #sourceMappingURL=scheduling-ts.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["INTEGRAL_GUARANTEES_PREFIX","POOL_RESOURCE_TYPE_TO_ATTRIBUTE","getBatchError","updateNodeAttributes","YTApiId","ytApiV4Id","setPoolAttributes","params","poolPath","values","initials","tree","allowTransfer","_isEmpty","Promise","resolve","transferData","toModify","guaranteeType","restValues","_objectWithoutProperties","_excluded","_forEach","v","k","_ref","limit","source","key","attr","undefined","push","value","_initials$key","prevLimit","diff","path","Object","hasOwnProperty","call","then","transferPoolQuota","_ref2","tmp","split","dstPool","length","requests","_map","transferPath","startsWith","substr","dotPath","replace","delta","_update","Math","abs","command","parameters","source_pool","destination_pool","pool_tree","resource_delta","executeBatch","schedulingTransferPoolQuota","res","err","results","reject"],"sources":["scheduling-ts.ts"],"sourcesContent":["import _ from 'lodash';\nimport {\n INTEGRAL_GUARANTEES_PREFIX,\n InitialPoolResourceInfo,\n POOL_RESOURCE_TYPE_TO_ATTRIBUTE,\n PoolResourceType,\n} from '../../../utils/scheduling/scheduling';\nimport {getBatchError} from '../../../utils/utils';\nimport {updateNodeAttributes} from '../../../utils/cypress-attributes';\nimport {YTApiId, ytApiV4Id} from '../../../rum/rum-wrap-api';\n\ntype PoolResources = Partial<\n Record<Exclude<PoolResourceType, 'guaranteeType'>, InitialPoolResourceInfo>\n>;\n\ninterface SetResourceGuaranteeParams {\n poolPath: string;\n values: PoolResources & {guaranteeType: string};\n initials: PoolResources;\n tree: string;\n allowTransfer?: boolean;\n}\n\nexport function setPoolAttributes(params: SetResourceGuaranteeParams) {\n const {poolPath, values, initials, tree, allowTransfer} = params;\n if (_.isEmpty(values)) {\n return Promise.resolve();\n }\n\n const transferData: Array<{diff: number; source: string; path: string}> = [];\n const toModify: Array<{attr: string; value: any}> = [];\n\n const {guaranteeType, ...restValues} = values;\n\n _.forEach(restValues, (v, k) => {\n const {limit, source} = v || {};\n const key = k as keyof typeof restValues;\n\n const attr = POOL_RESOURCE_TYPE_TO_ATTRIBUTE[key];\n if (!source || limit === undefined || !allowTransfer) {\n toModify.push({attr, value: limit});\n } else {\n const prevLimit = initials[key]?.limit || 0;\n const diff = (limit || 0) - prevLimit;\n if (diff) {\n transferData.push({diff, source, path: attr});\n }\n }\n });\n\n if (Object.hasOwnProperty.call(values, 'guaranteeType')) {\n toModify.push({\n attr: POOL_RESOURCE_TYPE_TO_ATTRIBUTE['guaranteeType'],\n value: guaranteeType,\n });\n }\n\n return updateNodeAttributes(poolPath, toModify).then(() => {\n return transferPoolQuota({poolPath, transferData, tree});\n });\n}\n\ninterface TransferPoolQuotaParams {\n poolPath: string;\n transferData: Array<{diff: number; source: string; path: string}>;\n tree: string;\n}\n\nfunction transferPoolQuota({poolPath, transferData, tree}: TransferPoolQuotaParams) {\n if (_.isEmpty(transferData)) {\n return Promise.resolve();\n }\n const tmp = poolPath.split('/');\n const dstPool = tmp[tmp.length - 1];\n\n const requests = _.map(transferData, (v) => {\n const {diff, source, path} = v;\n const transferPath = path.startsWith(INTEGRAL_GUARANTEES_PREFIX)\n ? path.substr(INTEGRAL_GUARANTEES_PREFIX.length)\n : path;\n const dotPath = transferPath.replace(/\\//g, '.');\n\n const delta = _.update({}, dotPath, () => Math.abs(diff));\n\n return {\n command: 'transfer_pool_resources' as const,\n parameters: {\n source_pool: diff > 0 ? source : dstPool,\n destination_pool: diff > 0 ? dstPool : source,\n pool_tree: tree,\n resource_delta: delta,\n },\n };\n });\n\n return ytApiV4Id\n .executeBatch(YTApiId.schedulingTransferPoolQuota, {requests})\n .then((res: any) => {\n const err = getBatchError(res.results);\n if (err) {\n return Promise.reject(err);\n }\n return res;\n });\n}\n"],"mappings":";;;;;;AACA,SACIA,0BAA0B,EAE1BC,+BAA+B,QAE5B,sCAAsC;AAC7C,SAAQC,aAAa,QAAO,sBAAsB;AAClD,SAAQC,oBAAoB,QAAO,mCAAmC;AACtE,SAAQC,OAAO,EAAEC,SAAS,QAAO,2BAA2B;AAc5D,OAAO,SAAS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CAACc,UAAU,CAAClD,0BAA0B,CAAC,GAC1DoC,IAAI,CAACe,MAAM,CAACnD,0BAA0B,CAAC8C,MAAM,CAAC,GAC9CV,IAAI;IACV,IAAMgB,OAAO,GAAGH,YAAY,CAACI,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC;IAEhD,IAAMC,KAAK,GAAGC,OAAA,CAAS,CAAC,CAAC,EAAEH,OAAO,EAAE;MAAA,OAAMI,IAAI,CAACC,GAAG,CAACtB,IAAI,CAAC;IAAA,EAAC;IAEzD,OAAO;MACHuB,OAAO,EAAE,yBAAkC;MAC3CC,UAAU,EAAE;QACRC,WAAW,EAAEzB,IAAI,GAAG,CAAC,GAAGR,MAAM,GAAGkB,OAAO;QACxCgB,gBAAgB,EAAE1B,IAAI,GAAG,CAAC,GAAGU,OAAO,GAAGlB,MAAM;QAC7CmC,SAAS,EAAEnD,IAAI;QACfoD,cAAc,EAAET;MACpB;IACJ,CAAC;EACL,CAAC,CAAC;EAEF,OAAOjD,SAAS,CACX2D,YAAY,CAAC5D,OAAO,CAAC6D,2BAA2B,EAAE;IAAClB,QAAQ,EAARA;EAAQ,CAAC,CAAC,CAC7DP,IAAI,CAAC,UAAC0B,GAAQ,EAAK;IAChB,IAAMC,GAAG,GAAGjE,aAAa,CAACgE,GAAG,CAACE,OAAO,CAAC;IACtC,IAAID,GAAG,EAAE;MACL,OAAOrD,OAAO,CAACuD,MAAM,CAACF,GAAG,CAAC;IAC9B;IACA,OAAOD,GAAG;EACd,CAAC,CAAC;AACV"}
|
1
|
+
{"version":3,"names":["INTEGRAL_GUARANTEES_PREFIX","POOL_RESOURCE_TYPE_TO_ATTRIBUTE","computePoolPath","prepareCurrentTree","prepareTrees","extractBatchV4Values","getBatchError","splitBatchResults","wrapApiPromiseByToaster","makeGet","makeList","updateNodeAttributes","Toaster","yt","getPools","getSchedulingIsInitialLoading","getTree","POOL_TOGGLE_DELETE_VISIBILITY","SCHEDULING_DATA_FAILURE","SCHEDULING_DATA_PARTITION","SCHEDULING_DATA_REQUEST","SCHEDULING_DATA_SUCCESS","SCHEDULING_DELETE_POOL_FAILURE","SCHEDULING_DELETE_POOL_REQUEST","SCHEDULING_DELETE_POOL_SUCCESS","loadExpandedPools","RumWrapper","YTApiId","ytApiV3Id","ytApiV4Id","getCluster","RumMeasureTypes","getSchedulingAttributesToFilterTime","schedulingOverviewHasFilter","USE_CACHE","toaster","loadSchedulingData","dispatch","getState","type","state","isInitialLoading","schedulingLoadFilterAttributes","cluster","rumId","SCHEDULING","fetch","schedulingData","executeBatch","_objectSpread","requests","then","data","_splitBatchResults","error","_splitBatchResults$re","_slicedToArray","results","schedulerAlerts","rawTrees","defaultTree","Promise","reject","trees","tree","scheduling","treeRequests","concat","schedulingLoadTree","treeData","extracted","_splitBatchResults2","_ref","_ref2","resource_usage","resource_limits","config","resource_distribution_info","treeResources","code","codes","CANCELLED","deletePool","item","pools","path","v3","remove","add","name","autoHiding","title","closePoolDeleteModal","setTimeout","openPoolDeleteModal","visibility","undefined","setPoolAttributes","params","poolPath","values","initials","_isEmpty","resolve","transferData","toModify","guaranteeType","restValues","_objectWithoutProperties","_excluded","_forEach","v","k","_ref3","limit","source","key","attr","push","value","_initials$key","prevLimit","diff","Object","hasOwnProperty","call","transferPoolQuota","_ref4","tmp","split","dstPool","length","_map","transferPath","startsWith","substr","dotPath","replace","delta","_update","Math","abs","command","parameters","source_pool","destination_pool","pool_tree","resource_delta","schedulingTransferPoolQuota","res","err","lastTime","Date","now","get","schedulingFilterAttributes","fields","skipSuccessToast","toasterName","errorContent","attributesToFilter","attributesToFilterTime","schedulingSetFilter","filter","schedulingSetAbcFilter","abcServiceFilter"],"sources":["scheduling-ts.ts"],"sourcesContent":["import _ from 'lodash';\nimport {\n INTEGRAL_GUARANTEES_PREFIX,\n InitialPoolResourceInfo,\n POOL_RESOURCE_TYPE_TO_ATTRIBUTE,\n PoolResourceType,\n computePoolPath,\n prepareCurrentTree,\n prepareTrees,\n} from '../../../utils/scheduling/scheduling';\nimport {\n extractBatchV4Values,\n getBatchError,\n splitBatchResults,\n wrapApiPromiseByToaster,\n} from '../../../utils/utils';\nimport {makeGet, makeList} from '../../../utils/batch';\nimport {updateNodeAttributes} from '../../../utils/cypress-attributes';\n\nimport {ThunkAction} from 'redux-thunk';\n\nimport {Toaster} from '@gravity-ui/uikit';\n\n// @ts-expect-error\nimport yt from '@ytsaurus/javascript-wrapper/lib/yt';\n\nimport {\n getPools,\n getSchedulingIsInitialLoading,\n getTree,\n} from '../../../store/selectors/scheduling/scheduling';\n\nimport {\n POOL_TOGGLE_DELETE_VISIBILITY,\n SCHEDULING_DATA_FAILURE,\n SCHEDULING_DATA_PARTITION,\n SCHEDULING_DATA_REQUEST,\n SCHEDULING_DATA_SUCCESS,\n SCHEDULING_DELETE_POOL_FAILURE,\n SCHEDULING_DELETE_POOL_REQUEST,\n SCHEDULING_DELETE_POOL_SUCCESS,\n} from '../../../constants/scheduling';\nimport {loadExpandedPools} from './expanded-pools';\nimport {RumWrapper, YTApiId, ytApiV3Id, ytApiV4Id} from '../../../rum/rum-wrap-api';\nimport {getCluster} from '../../../store/selectors/global';\nimport {RumMeasureTypes} from '../../../rum/rum-measure-types';\nimport type {RootState} from '../../../store/reducers';\nimport type {SchedulingAction} from '../../../store/reducers/scheduling/scheduling';\nimport type {PoolInfo} from '../../../store/selectors/scheduling/scheduling-pools';\nimport {\n getSchedulingAttributesToFilterTime,\n schedulingOverviewHasFilter,\n} from '../../../store/selectors/scheduling/attributes-to-filter';\nimport {USE_CACHE} from '../../../../shared/constants/yt-api';\n\nconst toaster = new Toaster();\n\ntype SchedulingThunkAction<T = unknown> = ThunkAction<T, RootState, unknown, SchedulingAction>;\n\nexport function loadSchedulingData(): SchedulingThunkAction {\n return (dispatch, getState) => {\n dispatch({type: SCHEDULING_DATA_REQUEST});\n\n const state = getState();\n const isInitialLoading = getSchedulingIsInitialLoading(state);\n\n if (isInitialLoading && schedulingOverviewHasFilter(state)) {\n dispatch(schedulingLoadFilterAttributes());\n }\n\n const cluster = getCluster(state);\n const rumId = new RumWrapper(cluster, RumMeasureTypes.SCHEDULING);\n return rumId\n .fetch(\n YTApiId.schedulingData,\n ytApiV3Id.executeBatch(YTApiId.schedulingData, {\n requests: [\n makeGet('//sys/scheduler/@alerts'),\n makeList('//sys/scheduler/orchid/scheduler/pool_trees'),\n makeGet('//sys/scheduler/orchid/scheduler/default_fair_share_tree'),\n ],\n ...USE_CACHE,\n }),\n )\n .then((data) => {\n const {\n error,\n results: [schedulerAlerts, rawTrees, defaultTree],\n } = splitBatchResults(data);\n\n if (error) {\n return Promise.reject(error);\n }\n\n const state = getState();\n\n const trees = prepareTrees(rawTrees);\n const tree = prepareCurrentTree(\n defaultTree,\n trees,\n state.scheduling.scheduling.tree,\n );\n\n dispatch({\n type: SCHEDULING_DATA_PARTITION,\n data: {schedulerAlerts, trees, tree},\n });\n\n const treeRequests = [\n makeGet(`//sys/scheduler/orchid/scheduler/pool_trees/${tree}/resource_usage`),\n makeGet(`//sys/scheduler/orchid/scheduler/pool_trees/${tree}/resource_limits`),\n makeGet(`//sys/scheduler/orchid/scheduler/pool_trees/${tree}/config`),\n makeGet(\n `//sys/scheduler/orchid/scheduler/pool_trees/${tree}/resource_distribution_info`,\n ),\n ];\n\n if (isInitialLoading) {\n /**\n * We don't need to call `dispatch(loadExpandedPools(tree))` for this branch of code,\n * the call should be triggered by SchedulingExpandedPoolsUpdater\n */\n //dispatch(loadExpandedPools(tree));\n } else {\n dispatch(loadExpandedPools(tree));\n }\n\n return rumId\n .fetch(\n YTApiId.schedulingLoadTree,\n ytApiV4Id.executeBatch(YTApiId.schedulingLoadTree, {\n requests: treeRequests,\n ...USE_CACHE,\n }),\n )\n .then((treeData) => {\n const extracted = extractBatchV4Values(treeData, treeRequests);\n const {error, results} = splitBatchResults(extracted.results);\n if (error) {\n throw error;\n }\n return results;\n });\n })\n .then(([resource_usage, resource_limits, config, resource_distribution_info]) => {\n const treeResources = {\n resource_usage,\n resource_limits,\n config,\n resource_distribution_info,\n };\n\n dispatch({\n type: SCHEDULING_DATA_SUCCESS,\n data: {\n treeResources,\n },\n });\n })\n .catch((error) => {\n if (error.code !== yt.codes.CANCELLED) {\n dispatch({\n type: SCHEDULING_DATA_FAILURE,\n data: {error},\n });\n }\n });\n };\n}\n\nexport function deletePool(item?: PoolInfo): SchedulingThunkAction {\n return (dispatch, getState) => {\n if (!item) {\n return;\n }\n\n const state = getState();\n\n const tree = getTree(state);\n const pools = getPools(state);\n const path = computePoolPath(item, pools);\n\n dispatch({type: SCHEDULING_DELETE_POOL_REQUEST});\n\n return yt.v3\n .remove({\n path: `//sys/pool_trees/${tree}/${path}`,\n })\n .then(() => {\n toaster.add({\n name: 'delete pool',\n autoHiding: 10000,\n type: 'success',\n title: `Successfully deleted ${item.name}. Please wait.`,\n });\n\n dispatch({type: SCHEDULING_DELETE_POOL_SUCCESS});\n dispatch(closePoolDeleteModal());\n setTimeout(() => dispatch(loadSchedulingData()), 3000);\n })\n .catch((error: any) => {\n if (error.code !== yt.codes.CANCELLED) {\n dispatch({\n type: SCHEDULING_DELETE_POOL_FAILURE,\n data: {error},\n });\n\n return Promise.reject();\n }\n return null;\n });\n };\n}\n\nexport function openPoolDeleteModal(item: PoolInfo): SchedulingAction {\n return {\n type: POOL_TOGGLE_DELETE_VISIBILITY,\n data: {\n visibility: true,\n item,\n },\n };\n}\n\nexport function closePoolDeleteModal(): SchedulingAction {\n return {\n type: POOL_TOGGLE_DELETE_VISIBILITY,\n data: {\n visibility: false,\n item: undefined,\n },\n };\n}\n\ntype PoolResources = Partial<\n Record<Exclude<PoolResourceType, 'guaranteeType'>, InitialPoolResourceInfo>\n>;\n\ninterface SetResourceGuaranteeParams {\n poolPath: string;\n values: PoolResources & {guaranteeType: string};\n initials: PoolResources;\n tree: string;\n}\n\nexport function setPoolAttributes(params: SetResourceGuaranteeParams) {\n const {poolPath, values, initials, tree} = params;\n if (_.isEmpty(values)) {\n return Promise.resolve();\n }\n\n const transferData: Array<{diff: number; source: string; path: string}> = [];\n const toModify: Array<{attr: string; value: any}> = [];\n\n const {guaranteeType, ...restValues} = values;\n\n _.forEach(restValues, (v, k) => {\n const {limit, source} = v || {};\n const key = k as keyof typeof restValues;\n\n const attr = POOL_RESOURCE_TYPE_TO_ATTRIBUTE[key];\n if (!source || limit === undefined) {\n toModify.push({attr, value: limit});\n } else {\n const prevLimit = initials[key]?.limit || 0;\n const diff = (limit || 0) - prevLimit;\n if (diff) {\n transferData.push({diff, source, path: attr});\n }\n }\n });\n\n if (Object.hasOwnProperty.call(values, 'guaranteeType')) {\n toModify.push({\n attr: POOL_RESOURCE_TYPE_TO_ATTRIBUTE['guaranteeType'],\n value: guaranteeType,\n });\n }\n\n return updateNodeAttributes(poolPath, toModify).then(() => {\n return transferPoolQuota({poolPath, transferData, tree});\n });\n}\n\ninterface TransferPoolQuotaParams {\n poolPath: string;\n transferData: Array<{diff: number; source: string; path: string}>;\n tree: string;\n}\n\nfunction transferPoolQuota({poolPath, transferData, tree}: TransferPoolQuotaParams) {\n if (_.isEmpty(transferData)) {\n return Promise.resolve();\n }\n const tmp = poolPath.split('/');\n const dstPool = tmp[tmp.length - 1];\n\n const requests = _.map(transferData, (v) => {\n const {diff, source, path} = v;\n const transferPath = path.startsWith(INTEGRAL_GUARANTEES_PREFIX)\n ? path.substr(INTEGRAL_GUARANTEES_PREFIX.length)\n : path;\n const dotPath = transferPath.replace(/\\//g, '.');\n\n const delta = _.update({}, dotPath, () => Math.abs(diff));\n\n return {\n command: 'transfer_pool_resources' as const,\n parameters: {\n source_pool: diff > 0 ? source : dstPool,\n destination_pool: diff > 0 ? dstPool : source,\n pool_tree: tree,\n resource_delta: delta,\n },\n };\n });\n\n return ytApiV4Id\n .executeBatch(YTApiId.schedulingTransferPoolQuota, {requests})\n .then((res: any) => {\n const err = getBatchError(res.results);\n if (err) {\n return Promise.reject(err);\n }\n return res;\n });\n}\n\nexport function schedulingLoadFilterAttributes(): SchedulingThunkAction {\n return (dispatch, getState) => {\n const state = getState();\n const lastTime = getSchedulingAttributesToFilterTime(state);\n if (Date.now() - lastTime < 120000) {\n return undefined;\n }\n\n return wrapApiPromiseByToaster(\n ytApiV3Id.get(YTApiId.schedulingFilterAttributes, {\n path: '//sys/scheduler/orchid/scheduler/pool_trees/physical/pools',\n fields: ['parent', 'abc'],\n ...USE_CACHE,\n }),\n {\n skipSuccessToast: true,\n toasterName: 'schedulingLoadFilterAttributes',\n errorContent: 'Failed to load attributes required for filtering',\n },\n ).then((attributesToFilter) => {\n dispatch({\n type: SCHEDULING_DATA_PARTITION,\n data: {attributesToFilter, attributesToFilterTime: Date.now()},\n });\n });\n };\n}\n\nexport function schedulingSetFilter(filter: string): SchedulingThunkAction {\n return (dispatch) => {\n dispatch(schedulingLoadFilterAttributes());\n dispatch({\n type: SCHEDULING_DATA_PARTITION,\n data: {filter},\n });\n };\n}\n\nexport function schedulingSetAbcFilter(abcServiceFilter: {\n id: number;\n slug: string;\n}): SchedulingThunkAction {\n return (dispatch) => {\n dispatch(schedulingLoadFilterAttributes());\n dispatch({\n type: SCHEDULING_DATA_PARTITION,\n data: {abcServiceFilter},\n });\n };\n}\n"],"mappings":";;;;;;;;AACA,SACIA,0BAA0B,EAE1BC,+BAA+B,EAE/BC,eAAe,EACfC,kBAAkB,EAClBC,YAAY,QACT,sCAAsC;AAC7C,SACIC,oBAAoB,EACpBC,aAAa,EACbC,iBAAiB,EACjBC,uBAAuB,QACpB,sBAAsB;AAC7B,SAAQC,OAAO,EAAEC,QAAQ,QAAO,sBAAsB;AACtD,SAAQC,oBAAoB,QAAO,mCAAmC;AAItE,SAAQC,OAAO,QAAO,mBAAmB;;AAEzC;AACA,OAAOC,EAAE,MAAM,qCAAqC;AAEpD,SACIC,QAAQ,EACRC,6BAA6B,EAC7BC,OAAO,QACJ,gDAAgD;AAEvD,SACIC,6BAA6B,EAC7BC,uBAAuB,EACvBC,yBAAyB,EACzBC,uBAAuB,EACvBC,uBAAuB,EACvBC,8BAA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QAAQ,CAACK,8BAA8B,CAAC,CAAC,CAAC;IAC1CL,QAAQ,CAAC;MACLE,IAAI,EAAEpB,yBAAyB;MAC/BiC,IAAI,EAAE;QAACiH,gBAAgB,EAAhBA;MAAgB;IAC3B,CAAC,CAAC;EACN,CAAC;AACL"}
|
@@ -1,20 +1,4 @@
|
|
1
|
-
export function
|
2
|
-
export function deletePool(item: any): (dispatch: any, getState: any) => any;
|
3
|
-
export function editPool(pool: any, values: any, initialValues: any, allowTransfer: any): (dispatch: any, getState: any) => Promise<void | undefined>;
|
4
|
-
export function openDeleteModal(item: any): {
|
5
|
-
type: string;
|
6
|
-
data: {
|
7
|
-
visibility: boolean;
|
8
|
-
item: any;
|
9
|
-
};
|
10
|
-
};
|
11
|
-
export function closeDeleteModal(): {
|
12
|
-
type: string;
|
13
|
-
data: {
|
14
|
-
visibility: boolean;
|
15
|
-
item: undefined;
|
16
|
-
};
|
17
|
-
};
|
1
|
+
export function editPool(pool: any, values: any, initialValues: any): (dispatch: any, getState: any) => Promise<void | undefined>;
|
18
2
|
export function openEditModal(item: any): {
|
19
3
|
type: string;
|
20
4
|
data: {
|
@@ -38,20 +22,6 @@ export function changePool(pool: any): {
|
|
38
22
|
pool: any;
|
39
23
|
};
|
40
24
|
};
|
41
|
-
export function changeFilter(filter: any): {
|
42
|
-
type: string;
|
43
|
-
data: {
|
44
|
-
filter: any;
|
45
|
-
};
|
46
|
-
};
|
47
|
-
export function changeAbcServiceFilter(slug: any): {
|
48
|
-
type: string;
|
49
|
-
data: {
|
50
|
-
abcServiceFilter: {
|
51
|
-
slug: any;
|
52
|
-
};
|
53
|
-
};
|
54
|
-
};
|
55
25
|
export function changeContentMode(evt: any): {
|
56
26
|
type: string;
|
57
27
|
data: {
|
@@ -65,4 +35,3 @@ export function changePoolChildrenFilter(poolChildrenFilter: any): {
|
|
65
35
|
};
|
66
36
|
};
|
67
37
|
export function togglePoolFavourites(pool: any, tree: any): (dispatch: any, getState: any) => any;
|
68
|
-
export function abortAndReset(): (dispatch: any) => void;
|