@ytsaurus/ui 1.13.0 → 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/constants.d.ts +5 -1
- package/build/cjs/ui/rum/constants.js +5 -2
- package/build/cjs/ui/rum/constants.js.map +1 -1
- package/build/cjs/ui/rum/rum-counter.js +1 -1
- package/build/cjs/ui/rum/rum-counter.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/actions/system/masters.d.ts +7 -5
- package/build/cjs/ui/store/actions/system/masters.js +305 -235
- package/build/cjs/ui/store/actions/system/masters.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/reducers/system/masters.d.ts +2 -2
- package/build/cjs/ui/store/reducers/system/masters.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/system/masters.d.ts +1 -1
- package/build/cjs/ui/store/selectors/system/masters.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/constants.d.ts +5 -1
- package/build/esm/ui/rum/constants.js +5 -2
- package/build/esm/ui/rum/constants.js.map +1 -1
- package/build/esm/ui/rum/rum-counter.js +1 -1
- package/build/esm/ui/rum/rum-counter.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/actions/system/masters.d.ts +7 -5
- package/build/esm/ui/store/actions/system/masters.js +303 -233
- package/build/esm/ui/store/actions/system/masters.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/reducers/system/masters.d.ts +2 -2
- package/build/esm/ui/store/reducers/system/masters.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/system/masters.d.ts +1 -1
- package/build/esm/ui/store/selectors/system/masters.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.9d592639.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.9d592639.js +0 -3
- /package/dist/public/build/js/{main.9d592639.js.LICENSE.txt → main.64fccb27.js.LICENSE.txt} +0 -0
@@ -5,196 +5,238 @@ Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
});
|
6
6
|
exports.FETCH_MASTER_DATA = exports.FETCH_MASTER_CONFIG = void 0;
|
7
7
|
exports.loadMasters = loadMasters;
|
8
|
-
var _sortBy2 = _interopRequireDefault(require("lodash/sortBy"));
|
9
|
-
var _each2 = _interopRequireDefault(require("lodash/each"));
|
10
8
|
var _reduce2 = _interopRequireDefault(require("lodash/reduce"));
|
11
|
-
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
|
12
9
|
var _keys2 = _interopRequireDefault(require("lodash/keys"));
|
13
10
|
var _map2 = _interopRequireDefault(require("lodash/map"));
|
11
|
+
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
|
14
12
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
15
13
|
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
|
14
|
+
var _sortBy2 = _interopRequireDefault(require("lodash/sortBy"));
|
15
|
+
var _each2 = _interopRequireDefault(require("lodash/each"));
|
16
|
+
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
17
|
+
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
16
18
|
var _ypath = _interopRequireDefault(require("../../../common/thor/ypath"));
|
17
19
|
var _uikit = require("@gravity-ui/uikit");
|
18
20
|
var _utils = _interopRequireDefault(require("../../../constants/utils"));
|
19
21
|
var _index = require("../../../utils/index");
|
20
22
|
var _utils2 = require("../../../utils/utils");
|
21
|
-
var
|
23
|
+
var _constants = require("../../../rum/constants");
|
22
24
|
var _rumWrapApi = require("../../../rum/rum-wrap-api");
|
23
|
-
var
|
25
|
+
var _constants2 = require("../../../../shared/constants");
|
24
26
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
25
27
|
var FETCH_MASTER_CONFIG = exports.FETCH_MASTER_CONFIG = (0, _utils.default)('MASTER_CONFIG');
|
26
28
|
var FETCH_MASTER_DATA = exports.FETCH_MASTER_DATA = (0, _utils.default)('MASTER_DATA');
|
27
29
|
var toaster = new _uikit.Toaster();
|
30
|
+
var NODE_DOES_NOT_EXIST = _constants.YTErrors.NODE_DOES_NOT_EXIST;
|
28
31
|
function loadMastersConfig() {
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
attributes: ['annotations', 'maintenance', 'maintenance_message']
|
34
|
-
}, _constants.USE_SUPRESS_SYNC)
|
35
|
-
}, {
|
36
|
-
command: 'get',
|
37
|
-
parameters: (0, _objectSpread2.default)({
|
38
|
-
path: '//sys/@cell_tag'
|
39
|
-
}, _constants.USE_SUPRESS_SYNC)
|
40
|
-
}, {
|
41
|
-
command: 'get',
|
42
|
-
parameters: (0, _objectSpread2.default)({
|
43
|
-
path: '//sys/secondary_masters',
|
44
|
-
attributes: ['annotations', 'maintenance', 'maintenance_message']
|
45
|
-
}, _constants.USE_SUPRESS_SYNC)
|
46
|
-
}, {
|
47
|
-
command: 'get',
|
48
|
-
parameters: (0, _objectSpread2.default)({
|
49
|
-
path: '//sys/timestamp_providers',
|
50
|
-
attributes: ['annotations', 'native_cell_tag', 'maintenance', 'maintenance_message']
|
51
|
-
}, _constants.USE_SUPRESS_SYNC)
|
52
|
-
}, {
|
53
|
-
command: 'get',
|
54
|
-
parameters: (0, _objectSpread2.default)({
|
55
|
-
path: '//sys/discovery_servers',
|
56
|
-
attributes: ['annotations', 'native_cell_tag']
|
57
|
-
}, _constants.USE_SUPRESS_SYNC)
|
58
|
-
}, {
|
59
|
-
command: 'get',
|
60
|
-
parameters: (0, _objectSpread2.default)({
|
61
|
-
path: '//sys/queue_agents/instances',
|
62
|
-
attributes: ['annotations', 'maintenance', 'maintenance_message']
|
63
|
-
}, _constants.USE_SUPRESS_SYNC)
|
64
|
-
}];
|
65
|
-
return _rumWrapApi.ytApiV3Id.executeBatch(_rumWrapApi.YTApiId.systemMastersConfig, {
|
66
|
-
requests: requests
|
67
|
-
}).then(function (_ref) {
|
32
|
+
return _loadMastersConfig.apply(this, arguments);
|
33
|
+
}
|
34
|
+
function _loadMastersConfig() {
|
35
|
+
_loadMastersConfig = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2() {
|
68
36
|
var _timestampProvidersRe, _queueAgentsResult$er;
|
69
|
-
var
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
return {
|
106
|
-
|
107
|
-
|
108
|
-
|
37
|
+
var requests, _yield$ytApiV3Id$exec, _yield$ytApiV3Id$exec2, primaryMasterResult, secondaryMastersResult, timestampProvidersResult, discoveryServersResult, queueAgentsResult, batchError, error, queueAgentsError, _ref3, timestamp_path, _ref4, primary_path, tag_cell_requests, _yield$ytApiV3Id$exec3, _yield$ytApiV3Id$exec4, primaryMasterCellTag, timestampProviderCellTag, primaryMaster, secondaryMasters, timestampProviders, mainResult, discoveryRequests, queueAgentsStateRequests, discoveryServersStatuses, queueAgentsStatuses, results, discoveryResults, queueAgentsStateResults;
|
38
|
+
return _regenerator.default.wrap(function _callee2$(_context2) {
|
39
|
+
while (1) switch (_context2.prev = _context2.next) {
|
40
|
+
case 0:
|
41
|
+
requests = [{
|
42
|
+
command: 'get',
|
43
|
+
parameters: (0, _objectSpread2.default)({
|
44
|
+
path: '//sys/primary_masters',
|
45
|
+
attributes: ['annotations', 'maintenance', 'maintenance_message']
|
46
|
+
}, _constants2.USE_SUPRESS_SYNC)
|
47
|
+
}, {
|
48
|
+
command: 'get',
|
49
|
+
parameters: (0, _objectSpread2.default)({
|
50
|
+
path: '//sys/secondary_masters',
|
51
|
+
attributes: ['annotations', 'maintenance', 'maintenance_message']
|
52
|
+
}, _constants2.USE_SUPRESS_SYNC)
|
53
|
+
}, {
|
54
|
+
command: 'get',
|
55
|
+
parameters: (0, _objectSpread2.default)({
|
56
|
+
path: '//sys/timestamp_providers',
|
57
|
+
attributes: ['annotations', 'maintenance', 'maintenance_message']
|
58
|
+
}, _constants2.USE_SUPRESS_SYNC)
|
59
|
+
}, {
|
60
|
+
command: 'get',
|
61
|
+
parameters: (0, _objectSpread2.default)({
|
62
|
+
path: '//sys/discovery_servers',
|
63
|
+
attributes: ['annotations', 'native_cell_tag']
|
64
|
+
}, _constants2.USE_SUPRESS_SYNC)
|
65
|
+
}, {
|
66
|
+
command: 'get',
|
67
|
+
parameters: (0, _objectSpread2.default)({
|
68
|
+
path: '//sys/queue_agents/instances',
|
69
|
+
attributes: ['annotations', 'maintenance', 'maintenance_message']
|
70
|
+
}, _constants2.USE_SUPRESS_SYNC)
|
71
|
+
}];
|
72
|
+
_context2.next = 3;
|
73
|
+
return _rumWrapApi.ytApiV3Id.executeBatch(_rumWrapApi.YTApiId.systemMastersConfig, {
|
74
|
+
requests: requests
|
75
|
+
});
|
76
|
+
case 3:
|
77
|
+
_yield$ytApiV3Id$exec = _context2.sent;
|
78
|
+
_yield$ytApiV3Id$exec2 = (0, _slicedToArray2.default)(_yield$ytApiV3Id$exec, 5);
|
79
|
+
primaryMasterResult = _yield$ytApiV3Id$exec2[0];
|
80
|
+
secondaryMastersResult = _yield$ytApiV3Id$exec2[1];
|
81
|
+
timestampProvidersResult = _yield$ytApiV3Id$exec2[2];
|
82
|
+
discoveryServersResult = _yield$ytApiV3Id$exec2[3];
|
83
|
+
queueAgentsResult = _yield$ytApiV3Id$exec2[4];
|
84
|
+
batchError = (0, _utils2.getBatchError)([primaryMasterResult, secondaryMastersResult], "Masters' details cannot be loaded");
|
85
|
+
if (!batchError) {
|
86
|
+
_context2.next = 13;
|
87
|
+
break;
|
88
|
+
}
|
89
|
+
throw batchError;
|
90
|
+
case 13:
|
91
|
+
error = (0, _utils2.getBatchError)([timestampProvidersResult], 'Timestamp providers cannot be loaded');
|
92
|
+
if (!(error && ((_timestampProvidersRe = timestampProvidersResult.error) === null || _timestampProvidersRe === void 0 ? void 0 : _timestampProvidersRe.code) !== NODE_DOES_NOT_EXIST)) {
|
93
|
+
_context2.next = 16;
|
94
|
+
break;
|
95
|
+
}
|
96
|
+
throw error;
|
97
|
+
case 16:
|
98
|
+
queueAgentsError = (0, _utils2.getBatchError)([queueAgentsResult], 'Queue agents cannot be loaded');
|
99
|
+
if (!(queueAgentsError && ((_queueAgentsResult$er = queueAgentsResult.error) === null || _queueAgentsResult$er === void 0 ? void 0 : _queueAgentsResult$er.code) !== NODE_DOES_NOT_EXIST)) {
|
100
|
+
_context2.next = 19;
|
101
|
+
break;
|
102
|
+
}
|
103
|
+
throw queueAgentsError;
|
104
|
+
case 19:
|
105
|
+
_ref3 = (0, _toConsumableArray2.default)(Object.keys(_ypath.default.getValue(timestampProvidersResult.output))), timestamp_path = _ref3[0];
|
106
|
+
_ref4 = (0, _toConsumableArray2.default)(Object.keys(_ypath.default.getValue(primaryMasterResult.output))), primary_path = _ref4[0];
|
107
|
+
tag_cell_requests = [{
|
108
|
+
command: 'get',
|
109
|
+
parameters: (0, _objectSpread2.default)({
|
110
|
+
path: "//sys/primary_masters/".concat(primary_path, "/orchid/config/primary_master/cell_id")
|
111
|
+
}, _constants2.USE_SUPRESS_SYNC)
|
112
|
+
}, {
|
113
|
+
command: 'get',
|
114
|
+
parameters: (0, _objectSpread2.default)({
|
115
|
+
path: "//sys/timestamp_providers/".concat(timestamp_path, "/orchid/config/clock_cell")
|
116
|
+
}, _constants2.USE_SUPRESS_SYNC)
|
117
|
+
}];
|
118
|
+
_context2.next = 24;
|
119
|
+
return _rumWrapApi.ytApiV3Id.executeBatch(_rumWrapApi.YTApiId.systemMastersConfig, {
|
120
|
+
requests: [].concat(tag_cell_requests)
|
121
|
+
});
|
122
|
+
case 24:
|
123
|
+
_yield$ytApiV3Id$exec3 = _context2.sent;
|
124
|
+
_yield$ytApiV3Id$exec4 = (0, _slicedToArray2.default)(_yield$ytApiV3Id$exec3, 2);
|
125
|
+
primaryMasterCellTag = _yield$ytApiV3Id$exec4[0];
|
126
|
+
timestampProviderCellTag = _yield$ytApiV3Id$exec4[1];
|
127
|
+
primaryMaster = primaryMasterResult.output;
|
128
|
+
secondaryMasters = secondaryMastersResult.output;
|
129
|
+
timestampProviders = !timestampProvidersResult.output ? {} : {
|
130
|
+
addresses: (0, _map2.default)(_ypath.default.getValue(timestampProvidersResult.output), function (value, address) {
|
131
|
+
return {
|
132
|
+
host: address,
|
133
|
+
physicalHost: _ypath.default.getValue(value, '/@annotations/physical_host'),
|
134
|
+
attributes: _ypath.default.getValue(value, '/@')
|
135
|
+
};
|
136
|
+
}),
|
137
|
+
cellTag: getCellIdTag(_ypath.default.getValue(timestampProviderCellTag.output).cell_id)
|
138
|
+
};
|
139
|
+
mainResult = {
|
140
|
+
primaryMaster: {
|
141
|
+
addresses: (0, _map2.default)((0, _keys2.default)(primaryMaster), function (address) {
|
142
|
+
var value = primaryMaster[address];
|
143
|
+
return {
|
144
|
+
host: address,
|
145
|
+
physicalHost: _ypath.default.getValue(value, '/@annotations/physical_host'),
|
146
|
+
attributes: _ypath.default.getValue(value, '/@')
|
147
|
+
};
|
148
|
+
}),
|
149
|
+
cellTag: getCellIdTag(primaryMasterCellTag.output)
|
150
|
+
},
|
151
|
+
secondaryMasters: (0, _map2.default)(secondaryMasters, function (addresses, cellTag) {
|
152
|
+
return {
|
153
|
+
addresses: (0, _map2.default)((0, _keys2.default)(addresses), function (address) {
|
154
|
+
var value = secondaryMasters[cellTag][address];
|
155
|
+
return {
|
156
|
+
host: address,
|
157
|
+
physicalHost: _ypath.default.getValue(value, '/@annotations/physical_host'),
|
158
|
+
attributes: _ypath.default.getValue(value, '/@')
|
159
|
+
};
|
160
|
+
}),
|
161
|
+
cellTag: Number(cellTag)
|
162
|
+
};
|
163
|
+
}),
|
164
|
+
timestampProviders: timestampProviders,
|
165
|
+
discoveryServers: {},
|
166
|
+
queueAgents: {}
|
109
167
|
};
|
110
|
-
|
111
|
-
cellTag: primaryCellTag
|
112
|
-
},
|
113
|
-
secondaryMasters: (0, _map2.default)(secondaryMasters, function (addresses, cellTag) {
|
114
|
-
return {
|
115
|
-
addresses: (0, _map2.default)((0, _keys2.default)(addresses), function (address) {
|
116
|
-
var value = secondaryMasters[cellTag][address];
|
168
|
+
discoveryRequests = (0, _map2.default)(_ypath.default.getValue(discoveryServersResult.output), function (_v, address) {
|
117
169
|
return {
|
118
|
-
|
119
|
-
|
120
|
-
|
170
|
+
command: 'get',
|
171
|
+
parameters: (0, _objectSpread2.default)({
|
172
|
+
path: "//sys/discovery_servers/".concat(address, "/orchid/discovery_server")
|
173
|
+
}, _constants2.USE_SUPRESS_SYNC),
|
174
|
+
address: address
|
121
175
|
};
|
122
|
-
})
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
mainResult.queueAgents = queueAgentsResult.output ? {
|
187
|
-
addresses: (0, _map2.default)(_ypath.default.getValue(queueAgentsResult.output), function (value, address) {
|
188
|
-
return {
|
189
|
-
host: address,
|
190
|
-
physicalHost: _ypath.default.getValue(value, '/@annotations/physical_host'),
|
191
|
-
attributes: _ypath.default.getValue(value, '/@'),
|
192
|
-
state: queueAgentsStatuses[address]
|
193
|
-
};
|
194
|
-
})
|
195
|
-
} : {};
|
196
|
-
return mainResult;
|
197
|
-
});
|
176
|
+
});
|
177
|
+
queueAgentsStateRequests = (0, _map2.default)(_ypath.default.getValue(queueAgentsResult.output), function (_v, address) {
|
178
|
+
return {
|
179
|
+
command: 'get',
|
180
|
+
parameters: (0, _objectSpread2.default)({
|
181
|
+
path: "//sys/queue_agents/instances/".concat(address, "/orchid/cypress_synchronizer/active")
|
182
|
+
}, _constants2.USE_SUPRESS_SYNC),
|
183
|
+
address: address
|
184
|
+
};
|
185
|
+
});
|
186
|
+
discoveryServersStatuses = {};
|
187
|
+
queueAgentsStatuses = {};
|
188
|
+
_context2.prev = 36;
|
189
|
+
_context2.next = 39;
|
190
|
+
return _rumWrapApi.ytApiV3Id.executeBatch(_rumWrapApi.YTApiId.systemMastersConfigDiscoveryServer, {
|
191
|
+
requests: [].concat((0, _toConsumableArray2.default)(discoveryRequests), (0, _toConsumableArray2.default)(queueAgentsStateRequests))
|
192
|
+
});
|
193
|
+
case 39:
|
194
|
+
results = _context2.sent;
|
195
|
+
discoveryResults = results.slice(0, discoveryRequests.length);
|
196
|
+
queueAgentsStateResults = results.slice(discoveryRequests.length, queueAgentsStateRequests.length);
|
197
|
+
discoveryServersStatuses = (0, _reduce2.default)(discoveryResults, function (acc, item, key) {
|
198
|
+
acc[discoveryRequests[key].address] = item !== null && item !== void 0 && item.error ? 'offline' : 'online';
|
199
|
+
return acc;
|
200
|
+
}, {});
|
201
|
+
queueAgentsStatuses = (0, _reduce2.default)(queueAgentsStateResults, function (acc, item, key) {
|
202
|
+
acc[queueAgentsStateRequests[key].address] = typeof item.output !== 'undefined' ? item.output ? 'active' : 'standby' : 'offline';
|
203
|
+
return acc;
|
204
|
+
}, {});
|
205
|
+
_context2.next = 48;
|
206
|
+
break;
|
207
|
+
case 46:
|
208
|
+
_context2.prev = 46;
|
209
|
+
_context2.t0 = _context2["catch"](36);
|
210
|
+
case 48:
|
211
|
+
mainResult.discoveryServers = discoveryServersResult.output ? {
|
212
|
+
addresses: (0, _map2.default)(_ypath.default.getValue(discoveryServersResult.output), function (value, address) {
|
213
|
+
return {
|
214
|
+
host: address,
|
215
|
+
physicalHost: _ypath.default.getValue(value, '/@annotations/physical_host'),
|
216
|
+
attributes: _ypath.default.getValue(value, '/@'),
|
217
|
+
state: discoveryServersStatuses[address]
|
218
|
+
};
|
219
|
+
}),
|
220
|
+
cellTag: _ypath.default.getValue(discoveryServersResult.output, '/@native_cell_tag')
|
221
|
+
} : {};
|
222
|
+
mainResult.queueAgents = queueAgentsResult.output ? {
|
223
|
+
addresses: (0, _map2.default)(_ypath.default.getValue(queueAgentsResult.output), function (value, address) {
|
224
|
+
return {
|
225
|
+
host: address,
|
226
|
+
physicalHost: _ypath.default.getValue(value, '/@annotations/physical_host'),
|
227
|
+
attributes: _ypath.default.getValue(value, '/@'),
|
228
|
+
state: queueAgentsStatuses[address]
|
229
|
+
};
|
230
|
+
})
|
231
|
+
} : {};
|
232
|
+
return _context2.abrupt("return", mainResult);
|
233
|
+
case 51:
|
234
|
+
case "end":
|
235
|
+
return _context2.stop();
|
236
|
+
}
|
237
|
+
}, _callee2, null, [[36, 46]]);
|
238
|
+
}));
|
239
|
+
return _loadMastersConfig.apply(this, arguments);
|
198
240
|
}
|
199
241
|
function loadHydra(requests, masterInfo, type, masterEntry) {
|
200
242
|
var addresses = masterEntry.addresses,
|
@@ -214,8 +256,8 @@ function loadHydra(requests, masterInfo, type, masterEntry) {
|
|
214
256
|
}
|
215
257
|
(0, _each2.default)((0, _sortBy2.default)(addresses, function (address) {
|
216
258
|
return address.host;
|
217
|
-
}), function (
|
218
|
-
var host =
|
259
|
+
}), function (_ref) {
|
260
|
+
var host = _ref.host;
|
219
261
|
masterInfo.push({
|
220
262
|
host: host,
|
221
263
|
type: type,
|
@@ -224,72 +266,100 @@ function loadHydra(requests, masterInfo, type, masterEntry) {
|
|
224
266
|
requests.push({
|
225
267
|
command: 'get',
|
226
268
|
parameters: (0, _objectSpread2.default)({
|
227
|
-
path: cypressPath + '/' + host + hydraPath
|
228
|
-
|
229
|
-
}, _constants.USE_SUPRESS_SYNC)
|
269
|
+
path: cypressPath + '/' + host + hydraPath
|
270
|
+
}, _constants2.USE_SUPRESS_SYNC)
|
230
271
|
});
|
231
272
|
});
|
232
273
|
}
|
233
274
|
function loadMasters() {
|
234
|
-
return function (
|
235
|
-
dispatch
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
-
|
280
|
-
|
281
|
-
|
282
|
-
|
283
|
-
|
284
|
-
|
285
|
-
|
286
|
-
|
287
|
-
|
288
|
-
|
289
|
-
|
290
|
-
|
291
|
-
|
292
|
-
|
293
|
-
|
275
|
+
return /*#__PURE__*/function () {
|
276
|
+
var _ref2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(dispatch) {
|
277
|
+
var config, masterDataRequests, masterInfo, data, _response, _data, code, message;
|
278
|
+
return _regenerator.default.wrap(function _callee$(_context) {
|
279
|
+
while (1) switch (_context.prev = _context.next) {
|
280
|
+
case 0:
|
281
|
+
dispatch({
|
282
|
+
type: FETCH_MASTER_CONFIG.REQUEST
|
283
|
+
});
|
284
|
+
_context.prev = 1;
|
285
|
+
_context.next = 4;
|
286
|
+
return loadMastersConfig();
|
287
|
+
case 4:
|
288
|
+
config = _context.sent;
|
289
|
+
dispatch({
|
290
|
+
type: FETCH_MASTER_CONFIG.SUCCESS,
|
291
|
+
data: config
|
292
|
+
});
|
293
|
+
dispatch({
|
294
|
+
type: FETCH_MASTER_DATA.REQUEST
|
295
|
+
});
|
296
|
+
masterDataRequests = [];
|
297
|
+
masterInfo = [];
|
298
|
+
loadHydra(masterDataRequests, masterInfo, 'primary', config.primaryMaster);
|
299
|
+
(0, _each2.default)(config.secondaryMasters, function (currentConfig) {
|
300
|
+
loadHydra(masterDataRequests, masterInfo, 'secondary', currentConfig);
|
301
|
+
});
|
302
|
+
loadHydra(masterDataRequests, masterInfo, 'providers', config.timestampProviders);
|
303
|
+
loadHydra(masterDataRequests, masterInfo, 'discovery', config.discoveryServers);
|
304
|
+
_context.next = 15;
|
305
|
+
return _rumWrapApi.ytApiV3Id.executeBatch(_rumWrapApi.YTApiId.systemMasters, {
|
306
|
+
requests: masterDataRequests
|
307
|
+
});
|
308
|
+
case 15:
|
309
|
+
data = _context.sent;
|
310
|
+
dispatch({
|
311
|
+
type: FETCH_MASTER_DATA.SUCCESS,
|
312
|
+
data: {
|
313
|
+
masterInfo: masterInfo,
|
314
|
+
data: data
|
315
|
+
}
|
316
|
+
});
|
317
|
+
_context.next = 27;
|
318
|
+
break;
|
319
|
+
case 19:
|
320
|
+
_context.prev = 19;
|
321
|
+
_context.t0 = _context["catch"](1);
|
322
|
+
dispatch({
|
323
|
+
type: FETCH_MASTER_DATA.FAILURE,
|
324
|
+
data: _context.t0
|
325
|
+
});
|
326
|
+
_data = (_context.t0 === null || _context.t0 === void 0 || (_response = _context.t0.response) === null || _response === void 0 ? void 0 : _response.data) || _context.t0;
|
327
|
+
code = _data.code, message = _data.message;
|
328
|
+
toaster.add({
|
329
|
+
name: 'load/system/masters',
|
330
|
+
autoHiding: false,
|
331
|
+
type: 'error',
|
332
|
+
content: "[code ".concat(code, "] ").concat(message),
|
333
|
+
title: 'Could not load Masters',
|
334
|
+
actions: [{
|
335
|
+
label: ' view',
|
336
|
+
onClick: function onClick() {
|
337
|
+
return (0, _utils2.showErrorPopup)(_context.t0);
|
338
|
+
}
|
339
|
+
}]
|
340
|
+
});
|
341
|
+
if (!(0, _index.isRetryFutile)(_context.t0 === null || _context.t0 === void 0 ? void 0 : _context.t0.code)) {
|
342
|
+
_context.next = 27;
|
343
|
+
break;
|
344
|
+
}
|
345
|
+
return _context.abrupt("return", {
|
346
|
+
isRetryFutile: true
|
347
|
+
});
|
348
|
+
case 27:
|
349
|
+
case "end":
|
350
|
+
return _context.stop();
|
351
|
+
}
|
352
|
+
}, _callee, null, [[1, 19]]);
|
353
|
+
}));
|
354
|
+
return function (_x) {
|
355
|
+
return _ref2.apply(this, arguments);
|
356
|
+
};
|
357
|
+
}();
|
358
|
+
}
|
359
|
+
function getCellIdTag(uuid) {
|
360
|
+
var _uuid$split = uuid.split('-'),
|
361
|
+
_uuid$split2 = (0, _slicedToArray2.default)(_uuid$split, 3),
|
362
|
+
third = _uuid$split2[2];
|
363
|
+
return Number("0x".concat(third.substring(0, third.length - 4)));
|
294
364
|
}
|
295
365
|
// #sourceMappingURL=masters.js.map
|