@ytsaurus/ui 1.14.2 → 1.15.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/@types/core.d.ts +3 -2
- package/build/cjs/server/configs/local.js +1 -0
- package/build/cjs/server/configs/local.js.map +1 -1
- package/build/cjs/shared/constants/yt-api-id.d.ts +139 -0
- package/build/cjs/shared/constants/yt-api-id.js +148 -0
- package/build/cjs/shared/constants/yt-api-id.js.map +1 -0
- package/build/cjs/shared/ui-settings.d.ts +1 -0
- package/build/cjs/shared/ui-settings.js.map +1 -1
- package/build/cjs/shared/utils/check-permission.d.ts +1 -14
- package/build/cjs/shared/utils/check-permission.js +6 -10
- package/build/cjs/shared/utils/check-permission.js.map +1 -1
- package/build/cjs/ui/UIFactory.d.ts +4 -1
- package/build/cjs/ui/UIFactory.js +9 -2
- package/build/cjs/ui/UIFactory.js.map +1 -1
- package/build/cjs/ui/components/Support/Support.js +6 -4
- package/build/cjs/ui/components/Support/Support.js.map +1 -1
- package/build/cjs/ui/containers/AppNavigation/AppNavigationComponent.js +50 -5
- package/build/cjs/ui/containers/AppNavigation/AppNavigationComponent.js.map +1 -1
- package/build/cjs/ui/containers/SettingsPanel/settings-description.js +1 -1
- package/build/cjs/ui/containers/SettingsPanel/settings-description.js.map +1 -1
- package/build/cjs/ui/containers/SupportComponent/SupportComponent.d.ts +5 -0
- package/build/cjs/ui/containers/SupportComponent/SupportComponent.js +24 -0
- package/build/cjs/ui/containers/SupportComponent/SupportComponent.js.map +1 -0
- package/build/cjs/ui/pages/operations/OperationDetail/tabs/details/Details/Details.css +6 -1
- package/build/cjs/ui/pages/operations/OperationDetail/tabs/details/Details/Details.css.map +1 -1
- package/build/cjs/ui/rum/rum-wrap-api.d.ts +3 -141
- package/build/cjs/ui/rum/rum-wrap-api.js +12 -145
- package/build/cjs/ui/rum/rum-wrap-api.js.map +1 -1
- package/build/cjs/ui/store/actions/cluster-params.js +22 -15
- package/build/cjs/ui/store/actions/cluster-params.js.map +1 -1
- package/build/cjs/ui/store/actions/scheduling/expanded-pools.js +1 -1
- package/build/cjs/ui/store/actions/scheduling/expanded-pools.js.map +1 -1
- package/build/cjs/ui/store/actions/system/masters.js +7 -3
- package/build/cjs/ui/store/actions/system/masters.js.map +1 -1
- package/build/cjs/ui/store/selectors/global/index.d.ts +1 -1
- package/build/cjs/ui/store/selectors/global/index.js +4 -4
- package/build/cjs/ui/store/selectors/global/index.js.map +1 -1
- package/build/cjs/ui/utils/scheduling/pool-child.js +1 -1
- package/build/cjs/ui/utils/scheduling/pool-child.js.map +1 -1
- package/build/esm/@types/core.d.ts +3 -2
- package/build/esm/server/configs/local.js +2 -1
- package/build/esm/server/configs/local.js.map +1 -1
- package/build/esm/shared/constants/yt-api-id.d.ts +139 -0
- package/build/esm/shared/constants/yt-api-id.js +141 -0
- package/build/esm/shared/constants/yt-api-id.js.map +1 -0
- package/build/esm/shared/ui-settings.d.ts +1 -0
- package/build/esm/shared/ui-settings.js.map +1 -1
- package/build/esm/shared/utils/check-permission.d.ts +1 -14
- package/build/esm/shared/utils/check-permission.js +8 -11
- package/build/esm/shared/utils/check-permission.js.map +1 -1
- package/build/esm/ui/UIFactory.d.ts +4 -1
- package/build/esm/ui/UIFactory.js +9 -2
- package/build/esm/ui/UIFactory.js.map +1 -1
- package/build/esm/ui/components/Support/Support.js +6 -4
- package/build/esm/ui/components/Support/Support.js.map +1 -1
- package/build/esm/ui/containers/AppNavigation/AppNavigationComponent.js +50 -5
- package/build/esm/ui/containers/AppNavigation/AppNavigationComponent.js.map +1 -1
- package/build/esm/ui/containers/SettingsPanel/settings-description.js +2 -2
- package/build/esm/ui/containers/SettingsPanel/settings-description.js.map +1 -1
- package/build/esm/ui/containers/SupportComponent/SupportComponent.d.ts +5 -0
- package/build/esm/ui/containers/SupportComponent/SupportComponent.js +18 -0
- package/build/esm/ui/containers/SupportComponent/SupportComponent.js.map +1 -0
- package/build/esm/ui/pages/operations/OperationDetail/tabs/details/Details/Details.css +6 -1
- package/build/esm/ui/pages/operations/OperationDetail/tabs/details/Details/Details.css.map +1 -1
- package/build/esm/ui/pages/operations/OperationDetail/tabs/details/Details/Details.scss +6 -1
- package/build/esm/ui/rum/rum-wrap-api.d.ts +3 -141
- package/build/esm/ui/rum/rum-wrap-api.js +3 -141
- package/build/esm/ui/rum/rum-wrap-api.js.map +1 -1
- package/build/esm/ui/store/actions/cluster-params.js +24 -17
- package/build/esm/ui/store/actions/cluster-params.js.map +1 -1
- package/build/esm/ui/store/actions/scheduling/expanded-pools.js +1 -1
- package/build/esm/ui/store/actions/scheduling/expanded-pools.js.map +1 -1
- package/build/esm/ui/store/actions/system/masters.js +7 -3
- package/build/esm/ui/store/actions/system/masters.js.map +1 -1
- package/build/esm/ui/store/selectors/global/index.d.ts +1 -1
- package/build/esm/ui/store/selectors/global/index.js +3 -3
- package/build/esm/ui/store/selectors/global/index.js.map +1 -1
- package/build/esm/ui/utils/scheduling/pool-child.js +1 -1
- package/build/esm/ui/utils/scheduling/pool-child.js.map +1 -1
- package/dist/public/build/assets-manifest.json +16 -16
- package/dist/public/build/css/{89.3546950a.chunk.css → 861.c5a67589.chunk.css} +1 -1
- package/dist/public/build/css/861.c5a67589.chunk.css.map +1 -0
- package/dist/public/build/css/{main.e919e247.css → main.675cb8c4.css} +2 -2
- package/dist/public/build/css/main.675cb8c4.css.map +1 -0
- package/dist/public/build/js/861.9703a31c.chunk.js +2 -0
- package/dist/public/build/js/861.9703a31c.chunk.js.map +1 -0
- package/dist/public/build/js/{943.f6342dd5.chunk.js → 943.40ff6440.chunk.js} +2 -2
- package/dist/public/build/js/{943.f6342dd5.chunk.js.map → 943.40ff6440.chunk.js.map} +1 -1
- package/dist/public/build/js/main.fb68ce2c.js +3 -0
- package/dist/public/build/js/{main.8e777909.js.map → main.fb68ce2c.js.map} +1 -1
- package/dist/public/build/js/runtime.ac9a4336.js +2 -0
- package/dist/public/build/js/{runtime.fd8cf219.js.map → runtime.ac9a4336.js.map} +1 -1
- package/dist/public/build/manifest.json +12 -12
- package/dist/server/configs/local.js +1 -0
- package/dist/shared/ui-settings.d.ts +1 -0
- package/package.json +4 -4
- package/dist/public/build/css/89.3546950a.chunk.css.map +0 -1
- package/dist/public/build/css/main.e919e247.css.map +0 -1
- package/dist/public/build/js/89.07445d46.chunk.js +0 -2
- package/dist/public/build/js/89.07445d46.chunk.js.map +0 -1
- package/dist/public/build/js/main.8e777909.js +0 -3
- package/dist/public/build/js/runtime.fd8cf219.js +0 -2
- /package/dist/public/build/js/{main.8e777909.js.LICENSE.txt → main.fb68ce2c.js.LICENSE.txt} +0 -0
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["_reselect","require","_ypath","_interopRequireDefault","_utils","_settingsTs","_ytConfig","_settings","_UIFactory","_uiSettings","_settings2","obj","__esModule","default","getGlobalError","exports","state","global","error","getCluster","_state$global","cluster","getRootPagesCluster","rootPagesCluster","getGlobalLoadState","loadState","getTheme","theme","getClusterUiConfig","clusterUiConfig","getClusterUiConfigEnablePerAccountTabletAccounting","_state$global$cluster","enable_per_account_tablet_accounting","getClusterUiConfigEnablePerBundleTabletAccounting","_state$global$cluster2","enable_per_bundle_tablet_accounting","getClusterUiConfigBundleAccountingHelpLink","per_bundle_accounting_help_link","getCurrentClusterConfig","createSelector","getClusterConfig","YT","clusters","getClusterConfigByName","clusterName","isAllowYtTwmApi","getConfigData","ytApiUseCORS","getClusterProxy","clusterConfig","allowYtTvmApi","concat","window","location","host","id","proxy","getHttpProxyVersion","version","getGlobalSchedulerVersion","schedulerVersion","getGlobalMasterVersion","masterVersion","getCurrentClusterNS","getClusterNS","ns","undefined","getUISizes","tabSize","collapsibleSize","getPoolTrees","_state$global2","poolTrees","getAllAccounts","accounts","getBundles","bundles","getGlobalUsers","users","getGlobalGroups","groups","getCurrentUserName","_state$global3","login","getAuthWay","_state$global4","authWay","getAllowedExperimentalPages","allowedExperimentalPages","isCheckedDeveloper","_state$global5","isDeveloper","isDeveloperSettings","isLocalCluster","UIFactory","isWatchMen","getSettingsRegularUserUI","regularUserUI","isQueryTrackerAllowed","allowedPages","expPages","getExperimentalPages","includes","Page","QUERIES","getAllUserNames","usersData","_map","_ref","$value","getAllGroupNames","groupsData","_ref2","getGlobalGroupAttributesMap","data","_reduce","acc","_ref3","$attributes","getAllPoolNames","getAllKeys","_keys","res","key","_typeof","_toConsumableArray","_orderBy","_uniq","_flatten","_values","getAllPoolTreeNames","getAllBundlesNames","bundleNames","bundle","ypath","getValue","_sortBy","getAllUserNamesSorted","getAllGroupNamesSorted","getAllIdmGroupNamesSorted","names","attrs","_filter","name","flags","get","getGlobalDefaultPoolTreeName","poolTreeDefault","getGlobalShowLoginDialog","allowLoginDialog","showLoginDialog","getAuthPagesEnabled","getOAuthEnabled","allowOAuth","getOAuthButtonLabel","oauthButtonLabel","getGlobalAsideHeaderWidth","asideHeaderWidth"],"sources":["index.ts"],"sourcesContent":["import {createSelector} from 'reselect';\nimport _ from 'lodash';\n\n// @ts-ignore\nimport ypath from '@ytsaurus/interface-helpers/lib/ypath';\n\nimport {flags, getClusterConfig} from '../../../utils';\nimport {getSettingsRegularUserUI} from '../settings-ts';\n\nimport {RootState} from '../../../store/reducers';\nimport YT from '../../../config/yt-config';\nimport {getClusterNS} from '../settings';\nimport {ClusterConfig} from '../../../../shared/yt-types';\nimport {FIX_MY_TYPE} from '../../../types';\nimport UIFactory from '../../../UIFactory';\nimport {getConfigData} from '../../../config/ui-settings';\nimport {Page} from '../../../../shared/constants/settings';\nimport {AuthWay} from '../../../../shared/constants';\n\nexport const getGlobalError = (state: RootState) => state.global.error.error;\n\nexport const getCluster = (state: RootState): string => state?.global?.cluster || '';\nexport const getRootPagesCluster = (state: RootState) => state?.global.rootPagesCluster;\n\nexport const getGlobalLoadState = (state: RootState) => state.global.loadState;\n\nexport const getTheme = (state: RootState): '' | 'dark' | 'light' => state.global.theme;\n\nexport const getClusterUiConfig = (state: RootState) => state.global.clusterUiConfig;\n\nexport const getClusterUiConfigEnablePerAccountTabletAccounting = (state: RootState) => {\n return state.global.clusterUiConfig.enable_per_account_tablet_accounting ?? false;\n};\nexport const getClusterUiConfigEnablePerBundleTabletAccounting = (state: RootState) =>\n state.global.clusterUiConfig.enable_per_bundle_tablet_accounting ?? true;\nexport const getClusterUiConfigBundleAccountingHelpLink = (state: RootState) =>\n state.global.clusterUiConfig.per_bundle_accounting_help_link;\n\nexport const getCurrentClusterConfig = createSelector([getCluster], (cluster): ClusterConfig => {\n return getClusterConfig(YT.clusters, cluster);\n});\n\nexport function getClusterConfigByName(clusterName: string): ClusterConfig {\n return getClusterConfig(YT.clusters, clusterName);\n}\n\nexport function isAllowYtTwmApi() {\n return !getConfigData().ytApiUseCORS;\n}\n\nexport function getClusterProxy(clusterConfig: ClusterConfig): string {\n const allowYtTvmApi = !getConfigData().ytApiUseCORS;\n if (allowYtTvmApi) {\n return `${window.location.host}/api/yt/${clusterConfig.id}`;\n }\n return clusterConfig.proxy;\n}\n\nexport const getHttpProxyVersion = createSelector(\n [getCluster, (state: RootState) => state.global.version],\n (cluster, version) => {\n return cluster ? version : '';\n },\n);\n\nexport const getGlobalSchedulerVersion = createSelector(\n [getCluster, (state: RootState) => state.global.schedulerVersion],\n (cluster, version) => {\n return cluster ? version : '';\n },\n);\n\nexport const getGlobalMasterVersion = createSelector(\n [getCluster, (state: RootState) => state.global.masterVersion],\n (cluster, version) => {\n return cluster ? version : '';\n },\n);\n\nexport const getCurrentClusterNS = createSelector([getCluster, getClusterNS], (cluster, ns) => {\n return cluster ? ns : undefined;\n});\n\nexport const getUISizes = () => {\n return {\n tabSize: 'l' as const,\n collapsibleSize: 'ss' as const,\n };\n};\n\nexport const getPoolTrees = (state: RootState) => state?.global?.poolTrees;\nexport const getAllAccounts = (state: RootState) => state.global.accounts;\nexport const getBundles = (state: RootState) => state?.global.bundles;\nexport const getGlobalUsers = (state: RootState) => state.global.users;\nexport const getGlobalGroups = (state: RootState) => state.global.groups;\nexport const getCurrentUserName = (state: RootState): string => state?.global?.login;\nexport const getAuthWay = (state: RootState): AuthWay => state?.global?.authWay;\n\nexport const getAllowedExperimentalPages = (state: RootState) =>\n state?.global.allowedExperimentalPages;\n\nconst isCheckedDeveloper = (state: RootState): boolean => state?.global?.isDeveloper;\n\nexport const isDeveloperSettings = createSelector(\n [isCheckedDeveloper, getCurrentUserName],\n (isDeveloper, login) => {\n return YT.isLocalCluster || UIFactory.isWatchMen(login) || isDeveloper;\n },\n);\n\nexport const isDeveloper = createSelector(\n [isDeveloperSettings, getSettingsRegularUserUI],\n (isDeveloper, regularUserUI) => {\n return !regularUserUI && isDeveloper;\n },\n);\n\nexport const isQueryTrackerAllowed = createSelector(\n [isDeveloper, getAllowedExperimentalPages],\n (isDeveloper, allowedPages) => {\n const expPages = UIFactory.getExperimentalPages();\n return (\n isDeveloper || !expPages.includes(Page.QUERIES) || allowedPages.includes(Page.QUERIES)\n );\n },\n);\n\nexport const getAllUserNames = createSelector([getGlobalUsers], (usersData) => {\n return _.map(usersData, ({$value}) => $value as string);\n});\n\nexport const getAllGroupNames = createSelector([getGlobalGroups], (groupsData) => {\n return _.map(groupsData, ({$value}) => $value as string);\n});\n\nexport const getGlobalGroupAttributesMap = createSelector([getGlobalGroups], (data) => {\n return _.reduce(\n data,\n (acc, {$value, $attributes}) => {\n acc[$value] = $attributes;\n return acc;\n },\n {} as Record<string, {upravlyator_managed: boolean}>,\n );\n});\n\nexport const getAllPoolNames = createSelector(getPoolTrees, (poolTrees) => {\n const getAllKeys = (obj: FIX_MY_TYPE): Array<string> => {\n return _.reduce(\n _.keys(obj),\n (res: FIX_MY_TYPE, key: FIX_MY_TYPE) => {\n if (typeof obj[key] === 'object' && obj[key] !== null) {\n return [...res, key, ...getAllKeys(obj[key])];\n }\n\n return [...res, key];\n },\n [],\n );\n };\n\n return _.orderBy(_.uniq(_.flatten(_.map(_.values(poolTrees), getAllKeys))));\n});\n\nexport const getAllPoolTreeNames = createSelector(getPoolTrees, (poolTrees) => {\n return _.keys(poolTrees);\n});\n\nexport const getAllBundlesNames = createSelector(getBundles, (bundles) => {\n const bundleNames = _.map(bundles, (bundle) => ypath.getValue(bundle, ''));\n\n return _.sortBy(bundleNames);\n});\n\nexport const getAllUserNamesSorted = createSelector(\n [getAllUserNames],\n _.sortBy as (items: Array<unknown>) => Array<string>,\n);\n\nexport const getAllGroupNamesSorted = createSelector(\n [getAllGroupNames],\n _.sortBy as (items: Array<unknown>) => Array<string>,\n);\n\nexport const getAllIdmGroupNamesSorted = createSelector(\n [getAllGroupNamesSorted, getGlobalGroupAttributesMap],\n (names, attrs) => {\n return _.filter(names, (name) =>\n flags.get(attrs[name]['upravlyator_managed'] as FIX_MY_TYPE),\n );\n },\n);\n\nexport const getGlobalDefaultPoolTreeName = (state: RootState) =>\n state.global.poolTreeDefault || 'physical';\n\nexport const getGlobalShowLoginDialog = (state: RootState) => {\n return (\n getConfigData().allowLoginDialog && (!state.global.login || state.global.showLoginDialog)\n );\n};\n\nexport const getAuthPagesEnabled = () => {\n return getConfigData().allowLoginDialog;\n};\n\nexport const getOAuthEnabled = () => {\n return getConfigData().allowOAuth;\n};\n\nexport const getOAuthButtonLabel = () => {\n return getConfigData().oauthButtonLabel;\n};\n\nexport const getGlobalAsideHeaderWidth = (state: RootState) => state.global.asideHeaderWidth;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,SAAA,GAAAC,OAAA;AAIA,IAAAC,MAAA,GAAAC,sBAAA,CAAAF,OAAA;AAEA,IAAAG,MAAA,GAAAH,OAAA;AACA,IAAAI,WAAA,GAAAJ,OAAA;AAGA,IAAAK,SAAA,GAAAH,sBAAA,CAAAF,OAAA;AACA,IAAAM,SAAA,GAAAN,OAAA;AAGA,IAAAO,UAAA,GAAAL,sBAAA,CAAAF,OAAA;AACA,IAAAQ,WAAA,GAAAR,OAAA;AACA,IAAAS,UAAA,GAAAT,OAAA;AAA0D,SAAAE,uBAAAQ,GAAA,WAAAA,GAAA,IAAAA,GA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AG,SAA5BA,yBAAyBA,CAAI5I,KAAgB;EAAA,OAAKA,KAAK,CAACC,MAAM,CAAC4I,gBAAgB;AAAA"}
|
1
|
+
{"version":3,"names":["_reselect","require","_ypath","_interopRequireDefault","_utils","_settingsTs","_ytConfig","_settings","_UIFactory","_uiSettings","_settings2","obj","__esModule","default","getGlobalError","exports","state","global","error","getCluster","_state$global","cluster","getRootPagesCluster","rootPagesCluster","getGlobalLoadState","loadState","getTheme","theme","getClusterUiConfig","clusterUiConfig","getClusterUiConfigEnablePerAccountTabletAccounting","_state$global$cluster","enable_per_account_tablet_accounting","getClusterUiConfigEnablePerBundleTabletAccounting","_state$global$cluster2","enable_per_bundle_tablet_accounting","getClusterUiConfigBundleAccountingHelpLink","per_bundle_accounting_help_link","getCurrentClusterConfig","createSelector","getClusterConfig","YT","clusters","getClusterConfigByName","clusterName","isAllowYtTwmApi","getConfigData","ytApiUseCORS","getClusterProxy","clusterConfig","allowYtTvmApi","concat","window","location","host","id","proxy","getHttpProxyVersion","version","getGlobalSchedulerVersion","schedulerVersion","getGlobalMasterVersion","masterVersion","getCurrentClusterNS","getClusterNS","ns","undefined","getUISizes","tabSize","collapsibleSize","getPoolTrees","_state$global2","poolTrees","getAllAccounts","accounts","getBundles","bundles","getGlobalUsers","users","getGlobalGroups","groups","getCurrentUserName","_state$global3","login","getAuthWay","_state$global4","authWay","getAllowedExperimentalPages","allowedExperimentalPages","isDeveloperRaw","_state$global5","isDeveloper","isDeveloperOrWatchMen","isLocalCluster","UIFactory","isWatchMen","getSettingsRegularUserUI","regularUserUI","isQueryTrackerAllowed","allowedPages","expPages","getExperimentalPages","includes","Page","QUERIES","getAllUserNames","usersData","_map","_ref","$value","getAllGroupNames","groupsData","_ref2","getGlobalGroupAttributesMap","data","_reduce","acc","_ref3","$attributes","getAllPoolNames","getAllKeys","_keys","res","key","_typeof","_toConsumableArray","_orderBy","_uniq","_flatten","_values","getAllPoolTreeNames","getAllBundlesNames","bundleNames","bundle","ypath","getValue","_sortBy","getAllUserNamesSorted","getAllGroupNamesSorted","getAllIdmGroupNamesSorted","names","attrs","_filter","name","flags","get","getGlobalDefaultPoolTreeName","poolTreeDefault","getGlobalShowLoginDialog","allowLoginDialog","showLoginDialog","getAuthPagesEnabled","getOAuthEnabled","allowOAuth","getOAuthButtonLabel","oauthButtonLabel","getGlobalAsideHeaderWidth","asideHeaderWidth"],"sources":["index.ts"],"sourcesContent":["import {createSelector} from 'reselect';\nimport _ from 'lodash';\n\n// @ts-ignore\nimport ypath from '@ytsaurus/interface-helpers/lib/ypath';\n\nimport {flags, getClusterConfig} from '../../../utils';\nimport {getSettingsRegularUserUI} from '../settings-ts';\n\nimport {RootState} from '../../../store/reducers';\nimport YT from '../../../config/yt-config';\nimport {getClusterNS} from '../settings';\nimport {ClusterConfig} from '../../../../shared/yt-types';\nimport {FIX_MY_TYPE} from '../../../types';\nimport UIFactory from '../../../UIFactory';\nimport {getConfigData} from '../../../config/ui-settings';\nimport {Page} from '../../../../shared/constants/settings';\nimport {AuthWay} from '../../../../shared/constants';\n\nexport const getGlobalError = (state: RootState) => state.global.error.error;\n\nexport const getCluster = (state: RootState): string => state?.global?.cluster || '';\nexport const getRootPagesCluster = (state: RootState) => state?.global.rootPagesCluster;\n\nexport const getGlobalLoadState = (state: RootState) => state.global.loadState;\n\nexport const getTheme = (state: RootState): '' | 'dark' | 'light' => state.global.theme;\n\nexport const getClusterUiConfig = (state: RootState) => state.global.clusterUiConfig;\n\nexport const getClusterUiConfigEnablePerAccountTabletAccounting = (state: RootState) => {\n return state.global.clusterUiConfig.enable_per_account_tablet_accounting ?? false;\n};\nexport const getClusterUiConfigEnablePerBundleTabletAccounting = (state: RootState) =>\n state.global.clusterUiConfig.enable_per_bundle_tablet_accounting ?? true;\nexport const getClusterUiConfigBundleAccountingHelpLink = (state: RootState) =>\n state.global.clusterUiConfig.per_bundle_accounting_help_link;\n\nexport const getCurrentClusterConfig = createSelector([getCluster], (cluster): ClusterConfig => {\n return getClusterConfig(YT.clusters, cluster);\n});\n\nexport function getClusterConfigByName(clusterName: string): ClusterConfig {\n return getClusterConfig(YT.clusters, clusterName);\n}\n\nexport function isAllowYtTwmApi() {\n return !getConfigData().ytApiUseCORS;\n}\n\nexport function getClusterProxy(clusterConfig: ClusterConfig): string {\n const allowYtTvmApi = !getConfigData().ytApiUseCORS;\n if (allowYtTvmApi) {\n return `${window.location.host}/api/yt/${clusterConfig.id}`;\n }\n return clusterConfig.proxy;\n}\n\nexport const getHttpProxyVersion = createSelector(\n [getCluster, (state: RootState) => state.global.version],\n (cluster, version) => {\n return cluster ? version : '';\n },\n);\n\nexport const getGlobalSchedulerVersion = createSelector(\n [getCluster, (state: RootState) => state.global.schedulerVersion],\n (cluster, version) => {\n return cluster ? version : '';\n },\n);\n\nexport const getGlobalMasterVersion = createSelector(\n [getCluster, (state: RootState) => state.global.masterVersion],\n (cluster, version) => {\n return cluster ? version : '';\n },\n);\n\nexport const getCurrentClusterNS = createSelector([getCluster, getClusterNS], (cluster, ns) => {\n return cluster ? ns : undefined;\n});\n\nexport const getUISizes = () => {\n return {\n tabSize: 'l' as const,\n collapsibleSize: 'ss' as const,\n };\n};\n\nexport const getPoolTrees = (state: RootState) => state?.global?.poolTrees;\nexport const getAllAccounts = (state: RootState) => state.global.accounts;\nexport const getBundles = (state: RootState) => state?.global.bundles;\nexport const getGlobalUsers = (state: RootState) => state.global.users;\nexport const getGlobalGroups = (state: RootState) => state.global.groups;\nexport const getCurrentUserName = (state: RootState): string => state?.global?.login;\nexport const getAuthWay = (state: RootState): AuthWay => state?.global?.authWay;\n\nexport const getAllowedExperimentalPages = (state: RootState) =>\n state?.global.allowedExperimentalPages;\n\nconst isDeveloperRaw = (state: RootState): boolean => state?.global?.isDeveloper;\n\nexport const isDeveloperOrWatchMen = createSelector(\n [isDeveloperRaw, getCurrentUserName],\n (isDeveloper, login) => {\n return YT.isLocalCluster || UIFactory.isWatchMen(login) || isDeveloper;\n },\n);\n\nexport const isDeveloper = createSelector(\n [isDeveloperOrWatchMen, getSettingsRegularUserUI],\n (isDeveloper, regularUserUI) => {\n return !regularUserUI && isDeveloper;\n },\n);\n\nexport const isQueryTrackerAllowed = createSelector(\n [isDeveloper, getAllowedExperimentalPages],\n (isDeveloper, allowedPages) => {\n const expPages = UIFactory.getExperimentalPages();\n return (\n isDeveloper || !expPages.includes(Page.QUERIES) || allowedPages.includes(Page.QUERIES)\n );\n },\n);\n\nexport const getAllUserNames = createSelector([getGlobalUsers], (usersData) => {\n return _.map(usersData, ({$value}) => $value as string);\n});\n\nexport const getAllGroupNames = createSelector([getGlobalGroups], (groupsData) => {\n return _.map(groupsData, ({$value}) => $value as string);\n});\n\nexport const getGlobalGroupAttributesMap = createSelector([getGlobalGroups], (data) => {\n return _.reduce(\n data,\n (acc, {$value, $attributes}) => {\n acc[$value] = $attributes;\n return acc;\n },\n {} as Record<string, {upravlyator_managed: boolean}>,\n );\n});\n\nexport const getAllPoolNames = createSelector(getPoolTrees, (poolTrees) => {\n const getAllKeys = (obj: FIX_MY_TYPE): Array<string> => {\n return _.reduce(\n _.keys(obj),\n (res: FIX_MY_TYPE, key: FIX_MY_TYPE) => {\n if (typeof obj[key] === 'object' && obj[key] !== null) {\n return [...res, key, ...getAllKeys(obj[key])];\n }\n\n return [...res, key];\n },\n [],\n );\n };\n\n return _.orderBy(_.uniq(_.flatten(_.map(_.values(poolTrees), getAllKeys))));\n});\n\nexport const getAllPoolTreeNames = createSelector(getPoolTrees, (poolTrees) => {\n return _.keys(poolTrees);\n});\n\nexport const getAllBundlesNames = createSelector(getBundles, (bundles) => {\n const bundleNames = _.map(bundles, (bundle) => ypath.getValue(bundle, ''));\n\n return _.sortBy(bundleNames);\n});\n\nexport const getAllUserNamesSorted = createSelector(\n [getAllUserNames],\n _.sortBy as (items: Array<unknown>) => Array<string>,\n);\n\nexport const getAllGroupNamesSorted = createSelector(\n [getAllGroupNames],\n _.sortBy as (items: Array<unknown>) => Array<string>,\n);\n\nexport const getAllIdmGroupNamesSorted = createSelector(\n [getAllGroupNamesSorted, getGlobalGroupAttributesMap],\n (names, attrs) => {\n return _.filter(names, (name) =>\n flags.get(attrs[name]['upravlyator_managed'] as FIX_MY_TYPE),\n );\n },\n);\n\nexport const getGlobalDefaultPoolTreeName = (state: RootState) =>\n state.global.poolTreeDefault || 'physical';\n\nexport const getGlobalShowLoginDialog = (state: RootState) => {\n return (\n getConfigData().allowLoginDialog && (!state.global.login || state.global.showLoginDialog)\n );\n};\n\nexport const getAuthPagesEnabled = () => {\n return getConfigData().allowLoginDialog;\n};\n\nexport const getOAuthEnabled = () => {\n return getConfigData().allowOAuth;\n};\n\nexport const getOAuthButtonLabel = () => {\n return getConfigData().oauthButtonLabel;\n};\n\nexport const getGlobalAsideHeaderWidth = (state: RootState) => state.global.asideHeaderWidth;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,SAAA,GAAAC,OAAA;AAIA,IAAAC,MAAA,GAAAC,sBAAA,CAAAF,OAAA;AAEA,IAAAG,MAAA,GAAAH,OAAA;AACA,IAAAI,WAAA,GAAAJ,OAAA;AAGA,IAAAK,SAAA,GAAAH,sBAAA,CAAAF,OAAA;AACA,IAAAM,SAAA,GAAAN,OAAA;AAGA,IAAAO,UAAA,GAAAL,sBAAA,CAAAF,OAAA;AACA,IAAAQ,WAAA,GAAAR,OAAA;AACA,IAAAS,UAAA,GAAAT,OAAA;AAA0D,SAAAE,uBAAAQ,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAb1D;;AAgBO,IAAMG,cAAc,GAAAC,OAAA,CAAAD,cAAA,GAAG,SAAjBA,cAAcA,CAAIE,KAAgB;EAAA,OAAKA,KAAK,CAACC,MAAM,CAACC,KAAK,CAACA,KAAK;AAAA;AAErE,IAAMC,UAAU,GAAAJ,OAAA,CAAAI,UAAA,GAAG,SAAbA,UAAUA,CAAIH,KAAgB;EAAA,IAAAI,aAA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AMG,4BAA4B,GAAAnI,OAAA,CAAAmI,4BAAA,GAAG,SAA/BA,4BAA4BA,CAAIlI,KAAgB;EAAA,OACzDA,KAAK,CAACC,MAAM,CAACkI,eAAe,IAAI,UAAU;AAAA;AAEvC,IAAMC,wBAAwB,GAAArI,OAAA,CAAAqI,wBAAA,GAAG,SAA3BA,wBAAwBA,CAAIpI,KAAgB,EAAK;EAC1D,OACI,IAAA8B,yBAAa,EAAC,CAAC,CAACuG,gBAAgB,KAAK,CAACrI,KAAK,CAACC,MAAM,CAACkE,KAAK,IAAInE,KAAK,CAACC,MAAM,CAACqI,eAAe,CAAC;AAEjG,CAAC;AAEM,IAAMC,mBAAmB,GAAAxI,OAAA,CAAAwI,mBAAA,GAAG,SAAtBA,mBAAmBA,CAAA,EAAS;EACrC,OAAO,IAAAzG,yBAAa,EAAC,CAAC,CAACuG,gBAAgB;AAC3C,CAAC;AAEM,IAAMG,eAAe,GAAAzI,OAAA,CAAAyI,eAAA,GAAG,SAAlBA,eAAeA,CAAA,EAAS;EACjC,OAAO,IAAA1G,yBAAa,EAAC,CAAC,CAAC2G,UAAU;AACrC,CAAC;AAEM,IAAMC,mBAAmB,GAAA3I,OAAA,CAAA2I,mBAAA,GAAG,SAAtBA,mBAAmBA,CAAA,EAAS;EACrC,OAAO,IAAA5G,yBAAa,EAAC,CAAC,CAAC6G,gBAAgB;AAC3C,CAAC;AAEM,IAAMC,yBAAyB,GAAA7I,OAAA,CAAA6I,yBAAA,GAAG,SAA5BA,yBAAyBA,CAAI5I,KAAgB;EAAA,OAAKA,KAAK,CAACC,MAAM,CAAC4I,gBAAgB;AAAA"}
|
@@ -114,7 +114,7 @@ function updatePoolChild(data, cypressData, type, treeResources) {
|
|
114
114
|
data.accumulated = _ypath.default.getValue(attributes, '/accumulated_resource_ratio_volume');
|
115
115
|
data.accumulatedCpu = _ypath.default.getValue(attributes, '/accumulated_resource_volume/cpu');
|
116
116
|
data.burstDuration = _ypath.default.getValue(attributes, '/estimated_burst_usage_duration_sec');
|
117
|
-
var fifoSortParams = (0, _map2.default)(_ypath.default.getValue(cypressAttributes, '/fifo_sort_parameters'), function (param) {
|
117
|
+
var fifoSortParams = (0, _map2.default)(_ypath.default.getValue(attributes, '/fifo_sort_parameters') || _ypath.default.getValue(cypressAttributes, '/fifo_sort_parameters'), function (param) {
|
118
118
|
return _ypath.default.getValue(param);
|
119
119
|
});
|
120
120
|
data.fifoSortParams = fifoSortParams.length > 0 ? fifoSortParams : ['start_time', 'weight', 'pending_job_count'];
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["_ypath","_interopRequireDefault","require","_scheduling","_errors","obj","__esModule","default","RESOURCE_LIMIT_MAPPER","user_memory","preparePoolChildResource","data","type","treeResources","resource","attributes","name","ROOT_POOL_NAME","resources","guaranteed","ypath","getNumber","usage","min","demand","limitResource","limit","cypressAttributes","treeLimit","detailed","updatePoolChild","cypressData","getAttributes","_data$leaves","parent","console","error","_initedBy","mode","getValue","leaves","_map","leaf","child_pool_count","children","length","i","push","concat","incomplete","pool_operation_count","NaN","emptyOp","_i","_objectSpread","operationCount","maxOperationCount","maxOperationCountEdited","runningOperationCount","maxRunningOperationCount","maxRunningOperationCountEdited","id","starvation_status","weight","weightEdited","minShareRatio","maxShareRatio","fairShareRatio","fifoIndex","usageRatio","demandRatio","isEphemeral","getBoolean","integralType","userDefinedBurstCPU","burstCPU","userDefinedFlowCPU","flowCPU","userDefinedFlowGPU","flowGPU","accumulated","accumulatedCpu","burstDuration","fifoSortParams","param","abc","forbidImmediateOperations","createEphemeralSubpools","dominantResource","e","appendInnerErrors","message"],"sources":["pool-child.js"],"sourcesContent":["import _ from 'lodash';\nimport ypath from '../../common/thor/ypath';\nimport {ROOT_POOL_NAME} from '../../constants/scheduling';\nimport {appendInnerErrors} from '../errors';\n\nconst RESOURCE_LIMIT_MAPPER = {\n user_memory: 'memory',\n};\n\nfunction preparePoolChildResource(data, type, treeResources, resource) {\n const attributes = data.attributes;\n\n if (data.name === ROOT_POOL_NAME) {\n data.resources[resource] = {\n guaranteed: ypath.getNumber(treeResources, '/resource_limits/' + resource),\n usage: ypath.getNumber(treeResources, '/resource_usage/' + resource),\n };\n } else {\n const min = ypath.getNumber(attributes, '/strong_guarantee_resources/' + resource);\n const usage = ypath.getNumber(attributes, '/resource_usage/' + resource);\n const demand = ypath.getNumber(attributes, '/resource_demand/' + resource);\n const guaranteed = ypath.getNumber(\n attributes,\n '/promised_fair_share_resources/' + resource,\n );\n\n const limitResource = RESOURCE_LIMIT_MAPPER[resource] || resource;\n const limit = ypath.getNumber(data.cypressAttributes, '/resource_limits/' + limitResource);\n\n const treeLimit = ypath.getNumber(treeResources, '/resource_limits/' + resource);\n const detailed =\n treeLimit * ypath.getNumber(attributes, '/detailed_fair_share/total/' + limitResource);\n\n data.resources[resource] = {\n min,\n guaranteed,\n usage,\n demand,\n limit,\n detailed,\n };\n }\n\n return data;\n}\n\nexport function updatePoolChild(data, cypressData, type, treeResources) {\n try {\n const attributes = data.attributes;\n const cypressAttributes = ypath.getAttributes(cypressData);\n\n data.cypressAttributes = cypressAttributes;\n data.type = type;\n\n if (data.type === 'pool') {\n if (typeof attributes === 'undefined' && data.parent) {\n console.error(\n 'Pool \"%s\" without attributes inited by \"%s\"',\n data.name,\n data._initedBy,\n );\n }\n\n data.mode = ypath.getValue(attributes, '/mode');\n\n data.leaves = _.map(data.leaves, (leaf) => {\n return updatePoolChild(leaf, {}, 'operation', treeResources);\n });\n\n const child_pool_count = ypath.getNumber(attributes, '/child_pool_count');\n if (child_pool_count > 0 && !data.children.length) {\n for (let i = 0; i < child_pool_count; ++i) {\n data.children.push({\n parent: data.name,\n type: 'pool',\n name: `#key_${data.name}_${i}`,\n attributes: {},\n leaves: [],\n incomplete: true,\n });\n }\n }\n\n if (!data.leaves?.length) {\n data.pool_operation_count = ypath.getNumber(\n attributes,\n '/pool_operation_count',\n NaN,\n );\n if (data.pool_operation_count > 0) {\n const emptyOp = updatePoolChild(\n {attributes: {}},\n {},\n 'operation',\n treeResources,\n );\n data.leaves = [];\n for (let i = 0; i < data.pool_operation_count; ++i) {\n data.leaves.push({\n ...emptyOp,\n name: `##fake_operation_${data.name}_${i}`,\n });\n }\n }\n }\n\n // Operations\n data.operationCount = ypath.getNumber(attributes, '/operation_count');\n data.maxOperationCount = ypath.getNumber(attributes, '/max_operation_count');\n data.maxOperationCountEdited = ypath.getNumber(\n cypressAttributes,\n '/max_operation_count',\n );\n data.runningOperationCount = ypath.getNumber(attributes, '/running_operation_count');\n data.maxRunningOperationCount = ypath.getNumber(\n attributes,\n '/max_running_operation_count',\n );\n data.maxRunningOperationCountEdited = ypath.getNumber(\n cypressAttributes,\n '/max_running_operation_count',\n );\n }\n\n data.id = data.name;\n data.starvation_status = ypath.getValue(attributes, '/starvation_status');\n\n // General\n data.weight = ypath.getNumber(attributes, '/weight');\n data.weightEdited = ypath.getNumber(cypressAttributes, '/weight');\n data.minShareRatio = ypath.getNumber(attributes, '/min_share_ratio');\n data.maxShareRatio = ypath.getNumber(attributes, '/max_share_ratio');\n data.fairShareRatio = ypath.getNumber(attributes, '/fair_share_ratio');\n data.fifoIndex = ypath.getNumber(attributes, '/fifo_index');\n data.usageRatio = ypath.getNumber(attributes, '/usage_ratio');\n data.demandRatio = ypath.getNumber(attributes, '/demand_ratio');\n data.isEphemeral = ypath.getBoolean(attributes, '/is_ephemeral');\n\n data.integralType = ypath.getValue(attributes, '/integral_guarantee_type');\n const userDefinedBurstCPU = ypath.getNumber(\n cypressAttributes,\n '/integral_guarantees/burst_guarantee_resources/cpu',\n NaN,\n );\n data.burstCPU = ypath.getNumber(\n attributes,\n '/specified_burst_guarantee_resources/cpu',\n userDefinedBurstCPU,\n );\n const userDefinedFlowCPU = ypath.getNumber(\n cypressAttributes,\n '/integral_guarantees/resource_flow/cpu',\n NaN,\n );\n data.flowCPU = ypath.getNumber(\n attributes,\n '/specified_resource_flow/cpu',\n userDefinedFlowCPU,\n );\n const userDefinedFlowGPU = ypath.getNumber(\n cypressAttributes,\n '/integral_guarantees/resource_flow/gpu',\n NaN,\n );\n data.flowGPU = ypath.getNumber(\n attributes,\n '/specified_resource_flow/gpu',\n userDefinedFlowGPU,\n );\n\n data.accumulated = ypath.getValue(attributes, '/accumulated_resource_ratio_volume');\n data.accumulatedCpu = ypath.getValue(attributes, '/accumulated_resource_volume/cpu');\n data.burstDuration = ypath.getValue(attributes, '/estimated_burst_usage_duration_sec');\n\n const fifoSortParams = _.map(\n ypath.getValue(cypressAttributes, '/fifo_sort_parameters'),\n (param) => ypath.getValue(param),\n );\n data.fifoSortParams =\n fifoSortParams.length > 0\n ? fifoSortParams\n : ['start_time', 'weight', 'pending_job_count'];\n data.abc = ypath.getValue(attributes, '/abc') || {};\n data.forbidImmediateOperations =\n ypath.getBoolean(cypressAttributes, '/forbid_immediate_operations') || false;\n data.createEphemeralSubpools =\n ypath.getBoolean(cypressAttributes, '/create_ephemeral_subpools') || false;\n\n // Resources\n data.dominantResource = ypath.getValue(attributes, '/dominant_resource');\n\n data.resources = {};\n\n preparePoolChildResource(data, type, treeResources, 'cpu');\n preparePoolChildResource(data, type, treeResources, 'user_memory');\n preparePoolChildResource(data, type, treeResources, 'gpu');\n preparePoolChildResource(data, type, treeResources, 'user_slots');\n\n return data;\n } catch (e) {\n throw appendInnerErrors(e, {\n message: `An error occured while parsing pool \"${data.name}\" data.`,\n });\n }\n}\n"],"mappings":";;;;;;;;AACA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,WAAA,GAAAD,OAAA;AACA,IAAAE,OAAA,GAAAF,OAAA;AAA2C,SAAAD,uBAAAI,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAE3C,IAAMG,qBAAqB,GAAG;EAC1BC,WAAW,EAAE;AACjB,CAAC;AAED,SAASC,wBAAwBA,CAACC,IAAI,EAAEC,IAAI,EAAEC,aAAa,EAAEC,QAAQ,EAAE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C,GACnBsC,cAAc,GACd,CAAC,YAAY,EAAE,QAAQ,EAAE,mBAAmB,CAAC;IACvDxE,IAAI,CAAC0E,GAAG,GAAGjE,cAAK,CAACmB,QAAQ,CAACxB,UAAU,EAAE,MAAM,CAAC,IAAI,CAAC,CAAC;IACnDJ,IAAI,CAAC2E,yBAAyB,GAC1BlE,cAAK,CAACoD,UAAU,CAAC7C,iBAAiB,EAAE,8BAA8B,CAAC,IAAI,KAAK;IAChFhB,IAAI,CAAC4E,uBAAuB,GACxBnE,cAAK,CAACoD,UAAU,CAAC7C,iBAAiB,EAAE,4BAA4B,CAAC,IAAI,KAAK;;IAE9E;IACAhB,IAAI,CAAC6E,gBAAgB,GAAGpE,cAAK,CAACmB,QAAQ,CAACxB,UAAU,EAAE,oBAAoB,CAAC;IAExEJ,IAAI,CAACO,SAAS,GAAG,CAAC,CAAC;IAEnBR,wBAAwB,CAACC,IAAI,EAAEC,IAAI,EAAEC,aAAa,EAAE,KAAK,CAAC;IAC1DH,wBAAwB,CAACC,IAAI,EAAEC,IAAI,EAAEC,aAAa,EAAE,aAAa,CAAC;IAClEH,wBAAwB,CAACC,IAAI,EAAEC,IAAI,EAAEC,aAAa,EAAE,KAAK,CAAC;IAC1DH,wBAAwB,CAACC,IAAI,EAAEC,IAAI,EAAEC,aAAa,EAAE,YAAY,CAAC;IAEjE,OAAOF,IAAI;EACf,CAAC,CAAC,OAAO8E,CAAC,EAAE;IACR,MAAM,IAAAC,yBAAiB,EAACD,CAAC,EAAE;MACvBE,OAAO,2CAAA3C,MAAA,CAA0CrC,IAAI,CAACK,IAAI;IAC9D,CAAC,CAAC;EACN;AACJ"}
|
1
|
+
{"version":3,"names":["_ypath","_interopRequireDefault","require","_scheduling","_errors","obj","__esModule","default","RESOURCE_LIMIT_MAPPER","user_memory","preparePoolChildResource","data","type","treeResources","resource","attributes","name","ROOT_POOL_NAME","resources","guaranteed","ypath","getNumber","usage","min","demand","limitResource","limit","cypressAttributes","treeLimit","detailed","updatePoolChild","cypressData","getAttributes","_data$leaves","parent","console","error","_initedBy","mode","getValue","leaves","_map","leaf","child_pool_count","children","length","i","push","concat","incomplete","pool_operation_count","NaN","emptyOp","_i","_objectSpread","operationCount","maxOperationCount","maxOperationCountEdited","runningOperationCount","maxRunningOperationCount","maxRunningOperationCountEdited","id","starvation_status","weight","weightEdited","minShareRatio","maxShareRatio","fairShareRatio","fifoIndex","usageRatio","demandRatio","isEphemeral","getBoolean","integralType","userDefinedBurstCPU","burstCPU","userDefinedFlowCPU","flowCPU","userDefinedFlowGPU","flowGPU","accumulated","accumulatedCpu","burstDuration","fifoSortParams","param","abc","forbidImmediateOperations","createEphemeralSubpools","dominantResource","e","appendInnerErrors","message"],"sources":["pool-child.js"],"sourcesContent":["import _ from 'lodash';\nimport ypath from '../../common/thor/ypath';\nimport {ROOT_POOL_NAME} from '../../constants/scheduling';\nimport {appendInnerErrors} from '../errors';\n\nconst RESOURCE_LIMIT_MAPPER = {\n user_memory: 'memory',\n};\n\nfunction preparePoolChildResource(data, type, treeResources, resource) {\n const attributes = data.attributes;\n\n if (data.name === ROOT_POOL_NAME) {\n data.resources[resource] = {\n guaranteed: ypath.getNumber(treeResources, '/resource_limits/' + resource),\n usage: ypath.getNumber(treeResources, '/resource_usage/' + resource),\n };\n } else {\n const min = ypath.getNumber(attributes, '/strong_guarantee_resources/' + resource);\n const usage = ypath.getNumber(attributes, '/resource_usage/' + resource);\n const demand = ypath.getNumber(attributes, '/resource_demand/' + resource);\n const guaranteed = ypath.getNumber(\n attributes,\n '/promised_fair_share_resources/' + resource,\n );\n\n const limitResource = RESOURCE_LIMIT_MAPPER[resource] || resource;\n const limit = ypath.getNumber(data.cypressAttributes, '/resource_limits/' + limitResource);\n\n const treeLimit = ypath.getNumber(treeResources, '/resource_limits/' + resource);\n const detailed =\n treeLimit * ypath.getNumber(attributes, '/detailed_fair_share/total/' + limitResource);\n\n data.resources[resource] = {\n min,\n guaranteed,\n usage,\n demand,\n limit,\n detailed,\n };\n }\n\n return data;\n}\n\nexport function updatePoolChild(data, cypressData, type, treeResources) {\n try {\n const attributes = data.attributes;\n const cypressAttributes = ypath.getAttributes(cypressData);\n\n data.cypressAttributes = cypressAttributes;\n data.type = type;\n\n if (data.type === 'pool') {\n if (typeof attributes === 'undefined' && data.parent) {\n console.error(\n 'Pool \"%s\" without attributes inited by \"%s\"',\n data.name,\n data._initedBy,\n );\n }\n\n data.mode = ypath.getValue(attributes, '/mode');\n\n data.leaves = _.map(data.leaves, (leaf) => {\n return updatePoolChild(leaf, {}, 'operation', treeResources);\n });\n\n const child_pool_count = ypath.getNumber(attributes, '/child_pool_count');\n if (child_pool_count > 0 && !data.children.length) {\n for (let i = 0; i < child_pool_count; ++i) {\n data.children.push({\n parent: data.name,\n type: 'pool',\n name: `#key_${data.name}_${i}`,\n attributes: {},\n leaves: [],\n incomplete: true,\n });\n }\n }\n\n if (!data.leaves?.length) {\n data.pool_operation_count = ypath.getNumber(\n attributes,\n '/pool_operation_count',\n NaN,\n );\n if (data.pool_operation_count > 0) {\n const emptyOp = updatePoolChild(\n {attributes: {}},\n {},\n 'operation',\n treeResources,\n );\n data.leaves = [];\n for (let i = 0; i < data.pool_operation_count; ++i) {\n data.leaves.push({\n ...emptyOp,\n name: `##fake_operation_${data.name}_${i}`,\n });\n }\n }\n }\n\n // Operations\n data.operationCount = ypath.getNumber(attributes, '/operation_count');\n data.maxOperationCount = ypath.getNumber(attributes, '/max_operation_count');\n data.maxOperationCountEdited = ypath.getNumber(\n cypressAttributes,\n '/max_operation_count',\n );\n data.runningOperationCount = ypath.getNumber(attributes, '/running_operation_count');\n data.maxRunningOperationCount = ypath.getNumber(\n attributes,\n '/max_running_operation_count',\n );\n data.maxRunningOperationCountEdited = ypath.getNumber(\n cypressAttributes,\n '/max_running_operation_count',\n );\n }\n\n data.id = data.name;\n data.starvation_status = ypath.getValue(attributes, '/starvation_status');\n\n // General\n data.weight = ypath.getNumber(attributes, '/weight');\n data.weightEdited = ypath.getNumber(cypressAttributes, '/weight');\n data.minShareRatio = ypath.getNumber(attributes, '/min_share_ratio');\n data.maxShareRatio = ypath.getNumber(attributes, '/max_share_ratio');\n data.fairShareRatio = ypath.getNumber(attributes, '/fair_share_ratio');\n data.fifoIndex = ypath.getNumber(attributes, '/fifo_index');\n data.usageRatio = ypath.getNumber(attributes, '/usage_ratio');\n data.demandRatio = ypath.getNumber(attributes, '/demand_ratio');\n data.isEphemeral = ypath.getBoolean(attributes, '/is_ephemeral');\n\n data.integralType = ypath.getValue(attributes, '/integral_guarantee_type');\n const userDefinedBurstCPU = ypath.getNumber(\n cypressAttributes,\n '/integral_guarantees/burst_guarantee_resources/cpu',\n NaN,\n );\n data.burstCPU = ypath.getNumber(\n attributes,\n '/specified_burst_guarantee_resources/cpu',\n userDefinedBurstCPU,\n );\n const userDefinedFlowCPU = ypath.getNumber(\n cypressAttributes,\n '/integral_guarantees/resource_flow/cpu',\n NaN,\n );\n data.flowCPU = ypath.getNumber(\n attributes,\n '/specified_resource_flow/cpu',\n userDefinedFlowCPU,\n );\n const userDefinedFlowGPU = ypath.getNumber(\n cypressAttributes,\n '/integral_guarantees/resource_flow/gpu',\n NaN,\n );\n data.flowGPU = ypath.getNumber(\n attributes,\n '/specified_resource_flow/gpu',\n userDefinedFlowGPU,\n );\n\n data.accumulated = ypath.getValue(attributes, '/accumulated_resource_ratio_volume');\n data.accumulatedCpu = ypath.getValue(attributes, '/accumulated_resource_volume/cpu');\n data.burstDuration = ypath.getValue(attributes, '/estimated_burst_usage_duration_sec');\n\n const fifoSortParams = _.map(\n ypath.getValue(attributes, '/fifo_sort_parameters') ||\n ypath.getValue(cypressAttributes, '/fifo_sort_parameters'),\n (param) => ypath.getValue(param),\n );\n data.fifoSortParams =\n fifoSortParams.length > 0\n ? fifoSortParams\n : ['start_time', 'weight', 'pending_job_count'];\n data.abc = ypath.getValue(attributes, '/abc') || {};\n data.forbidImmediateOperations =\n ypath.getBoolean(cypressAttributes, '/forbid_immediate_operations') || false;\n data.createEphemeralSubpools =\n ypath.getBoolean(cypressAttributes, '/create_ephemeral_subpools') || false;\n\n // Resources\n data.dominantResource = ypath.getValue(attributes, '/dominant_resource');\n\n data.resources = {};\n\n preparePoolChildResource(data, type, treeResources, 'cpu');\n preparePoolChildResource(data, type, treeResources, 'user_memory');\n preparePoolChildResource(data, type, treeResources, 'gpu');\n preparePoolChildResource(data, type, treeResources, 'user_slots');\n\n return data;\n } catch (e) {\n throw appendInnerErrors(e, {\n message: `An error occured while parsing pool \"${data.name}\" data.`,\n });\n }\n}\n"],"mappings":";;;;;;;;AACA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,WAAA,GAAAD,OAAA;AACA,IAAAE,OAAA,GAAAF,OAAA;AAA2C,SAAAD,uBAAAI,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAE3C,IAAMG,qBAAqB,GAAG;EAC1BC,WAAW,EAAE;AACjB,CAAC;AAED,SAASC,wBAAwBA,CAACC,IAAI,EAAEC,IAAI,EAAEC,aAAa,EAAEC,QAAQ,EAAE;EACnE,IAAMC,UAAU,GAAGJ,IAAI,CAACI,UAAU;EAElC,IAAIJ,IAAI,CAACK,IAAI,KAAKC,0BAAc,EAAE;IAC9BN,IAAI,CAACO,SAAS,CAACJ,QAAQ,CAAC,GAAG;MACvBK,UAAU,EAAEC,cAAK,CAACC,SAAS,CAACR,aAAa,EAAE,mBAAmB,GAAGC,QAAQ,CAAC;MAC1EQ,KAAK,EAAEF,cAAK,CAACC,SAAS,CAACR,aAAa,EAAE,kBAAkB,GAAGC,QAAQ;IACvE,CAAC;EACL,CAAC,MAAM;IACH,IAAMS,GAAG,GAAGH,cAAK,CAACC,SAAS,CAACN,UAAU,EAAE,8BAA8B,GAAGD,QAAQ,CAAC;IAClF,IAAMQ,KAAK,GAAGF,cAAK,CAACC,SAAS,CAACN,UAAU,EAAE,kBAAkB,GAAGD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AQ,CAACxB,UAAU,EAAE,oBAAoB,CAAC;IAExEJ,IAAI,CAACO,SAAS,GAAG,CAAC,CAAC;IAEnBR,wBAAwB,CAACC,IAAI,EAAEC,IAAI,EAAEC,aAAa,EAAE,KAAK,CAAC;IAC1DH,wBAAwB,CAACC,IAAI,EAAEC,IAAI,EAAEC,aAAa,EAAE,aAAa,CAAC;IAClEH,wBAAwB,CAACC,IAAI,EAAEC,IAAI,EAAEC,aAAa,EAAE,KAAK,CAAC;IAC1DH,wBAAwB,CAACC,IAAI,EAAEC,IAAI,EAAEC,aAAa,EAAE,YAAY,CAAC;IAEjE,OAAOF,IAAI;EACf,CAAC,CAAC,OAAO8E,CAAC,EAAE;IACR,MAAM,IAAAC,yBAAiB,EAACD,CAAC,EAAE;MACvBE,OAAO,2CAAA3C,MAAA,CAA0CrC,IAAI,CAACK,IAAI;IAC9D,CAAC,CAAC;EACN;AACJ"}
|
@@ -2,12 +2,13 @@ import {AppConfig, AppContext} from '@gravity-ui/nodekit';
|
|
2
2
|
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
3
3
|
import {Request, Response} from '@gravity-ui/expresskit';
|
4
4
|
import {MetrikaCounter} from '@gravity-ui/app-layout';
|
5
|
-
import {UISettings} from 'shared/ui-settings';
|
6
|
-
import {Settings} from '../shared/constants/settings-types';
|
7
5
|
import type {NodeKit} from '@gravity-ui/nodekit';
|
8
6
|
|
9
7
|
import {ClusterConfig} from '@ytsaurus/ui/build/cjs/shared/yt-types';
|
10
8
|
|
9
|
+
import {UISettings} from '../../shared/ui-settings';
|
10
|
+
import {Settings} from '../shared/constants/settings-types';
|
11
|
+
|
11
12
|
export interface YTCoreConfig {
|
12
13
|
/**
|
13
14
|
* Path to the file with OAuth-token of special-user ("the OAuthRobot" below) in format: {"oauthToken": "******"}
|
@@ -21,7 +21,8 @@ var localModeConfig = {
|
|
21
21
|
uploadTableMaxSize: 50 * 1024 * 1024,
|
22
22
|
uploadTableUseLocalmode: true,
|
23
23
|
queryTrackerStage: 'testing',
|
24
|
-
directDownload: false
|
24
|
+
directDownload: false,
|
25
|
+
reportBugUrl: 'https://github.com/ytsaurus/ytsaurus-ui/issues/new'
|
25
26
|
},
|
26
27
|
userSettingsConfig: {
|
27
28
|
cluster: YT_LOCAL_CLUSTER_ID,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["typeis","AuthPolicy","YT_LOCAL_CLUSTER_ID","localModeConfig","appAuthPolicy","disabled","ytInterfaceSecret","undefined","expressBodyParserJSONConfig","limit","type","req","_req$url","_req$url2","url","startsWith","Boolean","uiSettings","newTableReplicasCount","uploadTableMaxSize","uploadTableUseLocalmode","queryTrackerStage","directDownload","userSettingsConfig","cluster","mapNodePath"],"sources":["local.ts"],"sourcesContent":["import typeis from 'type-is';\n\nimport {AuthPolicy} from '@gravity-ui/expresskit';\nimport {AppConfig} from '@gravity-ui/nodekit';\nimport {YT_LOCAL_CLUSTER_ID} from '../../shared/constants';\n\nconst localModeConfig: Partial<AppConfig> = {\n appAuthPolicy: AuthPolicy.disabled,\n ytInterfaceSecret: undefined,\n\n expressBodyParserJSONConfig: {\n limit: '51mb',\n type(req) {\n // Enable raw parser for all content-types on yt-api for piping requests\n if (req.url?.startsWith('/api/yt/')) return false;\n if (req.url?.startsWith('/localmode/api/yt/')) return false;\n\n // Simulate default logic given that 'type' option is 'application/json'\n return Boolean(typeis(req, 'application/json'));\n },\n },\n\n uiSettings: {\n newTableReplicasCount: 1,\n uploadTableMaxSize: 50 * 1024 * 1024,\n uploadTableUseLocalmode: true,\n queryTrackerStage: 'testing',\n\n directDownload: false,\n },\n\n userSettingsConfig: {\n cluster: YT_LOCAL_CLUSTER_ID,\n mapNodePath: '//tmp',\n },\n};\n\nexport default localModeConfig;\n"],"mappings":"AAAA,OAAOA,MAAM,MAAM,SAAS;AAE5B,SAAQC,UAAU,QAAO,wBAAwB;AAEjD,SAAQC,mBAAmB,QAAO,wBAAwB;AAE1D,IAAMC,eAAmC,GAAG;EACxCC,aAAa,EAAEH,UAAU,CAACI,QAAQ;EAClCC,iBAAiB,EAAEC,SAAS;EAE5BC,2BAA2B,EAAE;IACzBC,KAAK,EAAE,MAAM;IACbC,IAAI,WAAAA,KAACC,GAAG,EAAE;MAAA,IAAAC,QAAA,EAAAC,SAAA;MACN;MACA,KAAAD,QAAA,GAAID,GAAG,CAACG,GAAG,cAAAF,QAAA,eAAPA,QAAA,CAASG,UAAU,CAAC,UAAU,CAAC,EAAE,OAAO,KAAK;MACjD,KAAAF,SAAA,GAAIF,GAAG,CAACG,GAAG,cAAAD,SAAA,eAAPA,SAAA,CAASE,UAAU,CAAC,oBAAoB,CAAC,EAAE,OAAO,KAAK;;MAE3D;MACA,OAAOC,OAAO,CAAChB,MAAM,CAACW,GAAG,EAAE,kBAAkB,CAAC,CAAC;IACnD;EACJ,CAAC;EAEDM,UAAU,EAAE;IACRC,qBAAqB,EAAE,CAAC;IACxBC,kBAAkB,EAAE,EAAE,GAAG,IAAI,GAAG,IAAI;IACpCC,uBAAuB,EAAE,IAAI;IAC7BC,iBAAiB,EAAE,SAAS;IAE5BC,cAAc,EAAE;
|
1
|
+
{"version":3,"names":["typeis","AuthPolicy","YT_LOCAL_CLUSTER_ID","localModeConfig","appAuthPolicy","disabled","ytInterfaceSecret","undefined","expressBodyParserJSONConfig","limit","type","req","_req$url","_req$url2","url","startsWith","Boolean","uiSettings","newTableReplicasCount","uploadTableMaxSize","uploadTableUseLocalmode","queryTrackerStage","directDownload","reportBugUrl","userSettingsConfig","cluster","mapNodePath"],"sources":["local.ts"],"sourcesContent":["import typeis from 'type-is';\n\nimport {AuthPolicy} from '@gravity-ui/expresskit';\nimport {AppConfig} from '@gravity-ui/nodekit';\nimport {YT_LOCAL_CLUSTER_ID} from '../../shared/constants';\n\nconst localModeConfig: Partial<AppConfig> = {\n appAuthPolicy: AuthPolicy.disabled,\n ytInterfaceSecret: undefined,\n\n expressBodyParserJSONConfig: {\n limit: '51mb',\n type(req) {\n // Enable raw parser for all content-types on yt-api for piping requests\n if (req.url?.startsWith('/api/yt/')) return false;\n if (req.url?.startsWith('/localmode/api/yt/')) return false;\n\n // Simulate default logic given that 'type' option is 'application/json'\n return Boolean(typeis(req, 'application/json'));\n },\n },\n\n uiSettings: {\n newTableReplicasCount: 1,\n uploadTableMaxSize: 50 * 1024 * 1024,\n uploadTableUseLocalmode: true,\n queryTrackerStage: 'testing',\n\n directDownload: false,\n\n reportBugUrl: 'https://github.com/ytsaurus/ytsaurus-ui/issues/new',\n },\n\n userSettingsConfig: {\n cluster: YT_LOCAL_CLUSTER_ID,\n mapNodePath: '//tmp',\n },\n};\n\nexport default localModeConfig;\n"],"mappings":"AAAA,OAAOA,MAAM,MAAM,SAAS;AAE5B,SAAQC,UAAU,QAAO,wBAAwB;AAEjD,SAAQC,mBAAmB,QAAO,wBAAwB;AAE1D,IAAMC,eAAmC,GAAG;EACxCC,aAAa,EAAEH,UAAU,CAACI,QAAQ;EAClCC,iBAAiB,EAAEC,SAAS;EAE5BC,2BAA2B,EAAE;IACzBC,KAAK,EAAE,MAAM;IACbC,IAAI,WAAAA,KAACC,GAAG,EAAE;MAAA,IAAAC,QAAA,EAAAC,SAAA;MACN;MACA,KAAAD,QAAA,GAAID,GAAG,CAACG,GAAG,cAAAF,QAAA,eAAPA,QAAA,CAASG,UAAU,CAAC,UAAU,CAAC,EAAE,OAAO,KAAK;MACjD,KAAAF,SAAA,GAAIF,GAAG,CAACG,GAAG,cAAAD,SAAA,eAAPA,SAAA,CAASE,UAAU,CAAC,oBAAoB,CAAC,EAAE,OAAO,KAAK;;MAE3D;MACA,OAAOC,OAAO,CAAChB,MAAM,CAACW,GAAG,EAAE,kBAAkB,CAAC,CAAC;IACnD;EACJ,CAAC;EAEDM,UAAU,EAAE;IACRC,qBAAqB,EAAE,CAAC;IACxBC,kBAAkB,EAAE,EAAE,GAAG,IAAI,GAAG,IAAI;IACpCC,uBAAuB,EAAE,IAAI;IAC7BC,iBAAiB,EAAE,SAAS;IAE5BC,cAAc,EAAE,KAAK;IAErBC,YAAY,EAAE;EAClB,CAAC;EAEDC,kBAAkB,EAAE;IAChBC,OAAO,EAAEvB,mBAAmB;IAC5BwB,WAAW,EAAE;EACjB;AACJ,CAAC;AAED,eAAevB,eAAe"}
|
@@ -0,0 +1,139 @@
|
|
1
|
+
export declare enum YTApiId {
|
2
|
+
ui_clusterInfo = 0,
|
3
|
+
ui_loadColumnPreset = 1,
|
4
|
+
clusterParams = 2,
|
5
|
+
clusterParamsIsDeveloper = 3,
|
6
|
+
checkPermissions = 4,
|
7
|
+
getPoolTree = 5,
|
8
|
+
getPoolTrees = 6,
|
9
|
+
getPoolDefaultPoolTreeName = 7,
|
10
|
+
getPoolTreesPath = 8,
|
11
|
+
listPoolNames = 9,
|
12
|
+
getUsableBundles = 10,
|
13
|
+
listAccounts = 11,
|
14
|
+
listBundles = 12,
|
15
|
+
listGroups = 13,
|
16
|
+
listUsableAccounts = 14,
|
17
|
+
listUsers = 15,
|
18
|
+
listUsersUM = 16,
|
19
|
+
openAttributesModal = 17,
|
20
|
+
pathEditorLoadSuggestions = 18,
|
21
|
+
updateAttributes = 19,
|
22
|
+
updateNodeAttributes = 20,
|
23
|
+
accountsData = 21,
|
24
|
+
accountsEditData = 22,
|
25
|
+
attributesEditorGetAttrs = 23,
|
26
|
+
attributesEditorMerge = 24,
|
27
|
+
attributesEditorSet = 25,
|
28
|
+
componentsClusterNodes = 26,
|
29
|
+
componentGetRpcProxies = 27,
|
30
|
+
componentsRpcProxies = 28,
|
31
|
+
componentsShards = 29,
|
32
|
+
componentsUpdateNodeData = 30,
|
33
|
+
groupsData = 31,
|
34
|
+
groupsEditData = 32,
|
35
|
+
groupsListAll = 33,
|
36
|
+
dynTableCheckPerm = 34,
|
37
|
+
dynTableSelectRows = 35,
|
38
|
+
dynTableSelectRowsPreload = 36,
|
39
|
+
tableReadPreload = 37,
|
40
|
+
tableRead = 38,
|
41
|
+
navigationAttributes = 39,
|
42
|
+
navigationCheckPermissions = 40,
|
43
|
+
navigationCopy = 41,
|
44
|
+
navigationDelete = 42,
|
45
|
+
navigationDynTableState = 43,
|
46
|
+
navigationGetAnnotation = 44,
|
47
|
+
navigationGetDocument = 45,
|
48
|
+
navigationGetPath = 46,
|
49
|
+
navigationGetPathInfo = 47,
|
50
|
+
navigationGetTabletState = 48,
|
51
|
+
navigationIsStaticTable = 49,
|
52
|
+
navigationListNodes = 50,
|
53
|
+
navigationListTransactions = 51,
|
54
|
+
navigationLocks = 52,
|
55
|
+
navigationTransactions = 53,
|
56
|
+
navigationMove = 54,
|
57
|
+
navigationMoveToTrash = 55,
|
58
|
+
navigationMoveToTrashRestorePath = 56,
|
59
|
+
navigationResourceUsage = 57,
|
60
|
+
navigationRestorePath = 58,
|
61
|
+
navigationRTReplicas = 59,
|
62
|
+
navigationTableSortLoadColumns = 60,
|
63
|
+
navigationTabletErrors = 61,
|
64
|
+
navigationTabletErrorsCountDynTable = 62,
|
65
|
+
navigationTabletErrorsCountReplicatedTable = 63,
|
66
|
+
navigationTableMountConfig = 64,
|
67
|
+
navigationTypeDynamic = 65,
|
68
|
+
navigationUpdateView = 66,
|
69
|
+
navigationUserAttributeKeys = 67,
|
70
|
+
nodeAttributes = 68,
|
71
|
+
nodeMemoryUsage = 69,
|
72
|
+
nodeUnrecognizedOptions = 70,
|
73
|
+
schedulingData = 71,
|
74
|
+
schedulingEditPool = 72,
|
75
|
+
listOperations = 73,
|
76
|
+
operationGetJobs = 74,
|
77
|
+
operationIntermediateResourceUsage = 75,
|
78
|
+
operationIsEphemeral = 76,
|
79
|
+
operationsSchedulerInstances = 77,
|
80
|
+
listJobs100 = 78,
|
81
|
+
resourcePlannerPoolDetails = 79,
|
82
|
+
schedulingGetAttrsBeforeEdit = 80,
|
83
|
+
schedulingLoadOperations = 81,
|
84
|
+
schedulingLoadOperationsPerPool = 82,
|
85
|
+
schedulingLoadTree = 83,
|
86
|
+
schedulingTransferPoolQuota = 84,
|
87
|
+
schedulingPoolFullPath = 85,
|
88
|
+
schedulingLoadPoolsAll = 86,
|
89
|
+
schedulingLoadPoolsPerPool = 87,
|
90
|
+
schedulingLoadChildrenPerPool = 88,
|
91
|
+
schedulingLoadCypressDataPerPool = 89,
|
92
|
+
schedulingFilterAttributes = 90,
|
93
|
+
systemCAInstances = 91,
|
94
|
+
systemCAStates = 92,
|
95
|
+
systemChunks = 93,
|
96
|
+
systemMasters = 94,
|
97
|
+
systemMastersConfig = 95,
|
98
|
+
systemMastersConfigDiscoveryServer = 96,
|
99
|
+
systemNodes = 97,
|
100
|
+
systemProxies = 98,
|
101
|
+
systemResources = 99,
|
102
|
+
systemRpcProxies = 100,
|
103
|
+
systemSchedulers = 101,
|
104
|
+
systemSchedulersState = 102,
|
105
|
+
tabletAttribute = 103,
|
106
|
+
tabletCellAttributes = 104,
|
107
|
+
tabletPartitions = 105,
|
108
|
+
tabletStores = 106,
|
109
|
+
tabletStoresByIds = 107,
|
110
|
+
tabletTableAttributes = 108,
|
111
|
+
tabletCellBundles = 109,
|
112
|
+
tabletCellBundlesEditData = 110,
|
113
|
+
tabletCellBundlesInstancesDetails = 111,
|
114
|
+
tabletCellBundlesSetAttrs = 112,
|
115
|
+
tabletCellBundlesWithAbc = 113,
|
116
|
+
chaosCellBundles = 114,
|
117
|
+
chaosCellBundlesEditData = 115,
|
118
|
+
chaosCellBundlesSetAttrs = 116,
|
119
|
+
usersData = 117,
|
120
|
+
usersEditData = 118,
|
121
|
+
usersSaveData = 119,
|
122
|
+
queueStatus = 120,
|
123
|
+
queuePartitions = 121,
|
124
|
+
queueConsumerStatus = 122,
|
125
|
+
queueConsumerPartitions = 123,
|
126
|
+
bundleControllerZones = 124,
|
127
|
+
tabletBundleControllerState = 125,
|
128
|
+
tabletBundlesCheckWrite = 126,
|
129
|
+
listQueries = 127,
|
130
|
+
getQuery = 128,
|
131
|
+
startQuery = 129,
|
132
|
+
abortQuery = 130,
|
133
|
+
readQueryResults = 131,
|
134
|
+
getQueryResults = 132,
|
135
|
+
alterQuery = 133,
|
136
|
+
addMaintenance = 134,
|
137
|
+
removeMaintenance = 135,
|
138
|
+
maintenanceRequests = 136
|
139
|
+
}
|
@@ -0,0 +1,141 @@
|
|
1
|
+
export var YTApiId = /*#__PURE__*/function (YTApiId) {
|
2
|
+
YTApiId[YTApiId["ui_clusterInfo"] = 0] = "ui_clusterInfo";
|
3
|
+
YTApiId[YTApiId["ui_loadColumnPreset"] = 1] = "ui_loadColumnPreset";
|
4
|
+
YTApiId[YTApiId["clusterParams"] = 2] = "clusterParams";
|
5
|
+
YTApiId[YTApiId["clusterParamsIsDeveloper"] = 3] = "clusterParamsIsDeveloper";
|
6
|
+
YTApiId[YTApiId["checkPermissions"] = 4] = "checkPermissions";
|
7
|
+
YTApiId[YTApiId["getPoolTree"] = 5] = "getPoolTree";
|
8
|
+
YTApiId[YTApiId["getPoolTrees"] = 6] = "getPoolTrees";
|
9
|
+
YTApiId[YTApiId["getPoolDefaultPoolTreeName"] = 7] = "getPoolDefaultPoolTreeName";
|
10
|
+
YTApiId[YTApiId["getPoolTreesPath"] = 8] = "getPoolTreesPath";
|
11
|
+
YTApiId[YTApiId["listPoolNames"] = 9] = "listPoolNames";
|
12
|
+
YTApiId[YTApiId["getUsableBundles"] = 10] = "getUsableBundles";
|
13
|
+
YTApiId[YTApiId["listAccounts"] = 11] = "listAccounts";
|
14
|
+
YTApiId[YTApiId["listBundles"] = 12] = "listBundles";
|
15
|
+
YTApiId[YTApiId["listGroups"] = 13] = "listGroups";
|
16
|
+
YTApiId[YTApiId["listUsableAccounts"] = 14] = "listUsableAccounts";
|
17
|
+
YTApiId[YTApiId["listUsers"] = 15] = "listUsers";
|
18
|
+
YTApiId[YTApiId["listUsersUM"] = 16] = "listUsersUM";
|
19
|
+
YTApiId[YTApiId["openAttributesModal"] = 17] = "openAttributesModal";
|
20
|
+
YTApiId[YTApiId["pathEditorLoadSuggestions"] = 18] = "pathEditorLoadSuggestions";
|
21
|
+
YTApiId[YTApiId["updateAttributes"] = 19] = "updateAttributes";
|
22
|
+
YTApiId[YTApiId["updateNodeAttributes"] = 20] = "updateNodeAttributes";
|
23
|
+
YTApiId[YTApiId["accountsData"] = 21] = "accountsData";
|
24
|
+
YTApiId[YTApiId["accountsEditData"] = 22] = "accountsEditData";
|
25
|
+
YTApiId[YTApiId["attributesEditorGetAttrs"] = 23] = "attributesEditorGetAttrs";
|
26
|
+
YTApiId[YTApiId["attributesEditorMerge"] = 24] = "attributesEditorMerge";
|
27
|
+
YTApiId[YTApiId["attributesEditorSet"] = 25] = "attributesEditorSet";
|
28
|
+
YTApiId[YTApiId["componentsClusterNodes"] = 26] = "componentsClusterNodes";
|
29
|
+
YTApiId[YTApiId["componentGetRpcProxies"] = 27] = "componentGetRpcProxies";
|
30
|
+
YTApiId[YTApiId["componentsRpcProxies"] = 28] = "componentsRpcProxies";
|
31
|
+
YTApiId[YTApiId["componentsShards"] = 29] = "componentsShards";
|
32
|
+
YTApiId[YTApiId["componentsUpdateNodeData"] = 30] = "componentsUpdateNodeData";
|
33
|
+
YTApiId[YTApiId["groupsData"] = 31] = "groupsData";
|
34
|
+
YTApiId[YTApiId["groupsEditData"] = 32] = "groupsEditData";
|
35
|
+
YTApiId[YTApiId["groupsListAll"] = 33] = "groupsListAll";
|
36
|
+
YTApiId[YTApiId["dynTableCheckPerm"] = 34] = "dynTableCheckPerm";
|
37
|
+
YTApiId[YTApiId["dynTableSelectRows"] = 35] = "dynTableSelectRows";
|
38
|
+
YTApiId[YTApiId["dynTableSelectRowsPreload"] = 36] = "dynTableSelectRowsPreload";
|
39
|
+
YTApiId[YTApiId["tableReadPreload"] = 37] = "tableReadPreload";
|
40
|
+
YTApiId[YTApiId["tableRead"] = 38] = "tableRead";
|
41
|
+
YTApiId[YTApiId["navigationAttributes"] = 39] = "navigationAttributes";
|
42
|
+
YTApiId[YTApiId["navigationCheckPermissions"] = 40] = "navigationCheckPermissions";
|
43
|
+
YTApiId[YTApiId["navigationCopy"] = 41] = "navigationCopy";
|
44
|
+
YTApiId[YTApiId["navigationDelete"] = 42] = "navigationDelete";
|
45
|
+
YTApiId[YTApiId["navigationDynTableState"] = 43] = "navigationDynTableState";
|
46
|
+
YTApiId[YTApiId["navigationGetAnnotation"] = 44] = "navigationGetAnnotation";
|
47
|
+
YTApiId[YTApiId["navigationGetDocument"] = 45] = "navigationGetDocument";
|
48
|
+
YTApiId[YTApiId["navigationGetPath"] = 46] = "navigationGetPath";
|
49
|
+
YTApiId[YTApiId["navigationGetPathInfo"] = 47] = "navigationGetPathInfo";
|
50
|
+
YTApiId[YTApiId["navigationGetTabletState"] = 48] = "navigationGetTabletState";
|
51
|
+
YTApiId[YTApiId["navigationIsStaticTable"] = 49] = "navigationIsStaticTable";
|
52
|
+
YTApiId[YTApiId["navigationListNodes"] = 50] = "navigationListNodes";
|
53
|
+
YTApiId[YTApiId["navigationListTransactions"] = 51] = "navigationListTransactions";
|
54
|
+
YTApiId[YTApiId["navigationLocks"] = 52] = "navigationLocks";
|
55
|
+
YTApiId[YTApiId["navigationTransactions"] = 53] = "navigationTransactions";
|
56
|
+
YTApiId[YTApiId["navigationMove"] = 54] = "navigationMove";
|
57
|
+
YTApiId[YTApiId["navigationMoveToTrash"] = 55] = "navigationMoveToTrash";
|
58
|
+
YTApiId[YTApiId["navigationMoveToTrashRestorePath"] = 56] = "navigationMoveToTrashRestorePath";
|
59
|
+
YTApiId[YTApiId["navigationResourceUsage"] = 57] = "navigationResourceUsage";
|
60
|
+
YTApiId[YTApiId["navigationRestorePath"] = 58] = "navigationRestorePath";
|
61
|
+
YTApiId[YTApiId["navigationRTReplicas"] = 59] = "navigationRTReplicas";
|
62
|
+
YTApiId[YTApiId["navigationTableSortLoadColumns"] = 60] = "navigationTableSortLoadColumns";
|
63
|
+
YTApiId[YTApiId["navigationTabletErrors"] = 61] = "navigationTabletErrors";
|
64
|
+
YTApiId[YTApiId["navigationTabletErrorsCountDynTable"] = 62] = "navigationTabletErrorsCountDynTable";
|
65
|
+
YTApiId[YTApiId["navigationTabletErrorsCountReplicatedTable"] = 63] = "navigationTabletErrorsCountReplicatedTable";
|
66
|
+
YTApiId[YTApiId["navigationTableMountConfig"] = 64] = "navigationTableMountConfig";
|
67
|
+
YTApiId[YTApiId["navigationTypeDynamic"] = 65] = "navigationTypeDynamic";
|
68
|
+
YTApiId[YTApiId["navigationUpdateView"] = 66] = "navigationUpdateView";
|
69
|
+
YTApiId[YTApiId["navigationUserAttributeKeys"] = 67] = "navigationUserAttributeKeys";
|
70
|
+
YTApiId[YTApiId["nodeAttributes"] = 68] = "nodeAttributes";
|
71
|
+
YTApiId[YTApiId["nodeMemoryUsage"] = 69] = "nodeMemoryUsage";
|
72
|
+
YTApiId[YTApiId["nodeUnrecognizedOptions"] = 70] = "nodeUnrecognizedOptions";
|
73
|
+
YTApiId[YTApiId["schedulingData"] = 71] = "schedulingData";
|
74
|
+
YTApiId[YTApiId["schedulingEditPool"] = 72] = "schedulingEditPool";
|
75
|
+
YTApiId[YTApiId["listOperations"] = 73] = "listOperations";
|
76
|
+
YTApiId[YTApiId["operationGetJobs"] = 74] = "operationGetJobs";
|
77
|
+
YTApiId[YTApiId["operationIntermediateResourceUsage"] = 75] = "operationIntermediateResourceUsage";
|
78
|
+
YTApiId[YTApiId["operationIsEphemeral"] = 76] = "operationIsEphemeral";
|
79
|
+
YTApiId[YTApiId["operationsSchedulerInstances"] = 77] = "operationsSchedulerInstances";
|
80
|
+
YTApiId[YTApiId["listJobs100"] = 78] = "listJobs100";
|
81
|
+
YTApiId[YTApiId["resourcePlannerPoolDetails"] = 79] = "resourcePlannerPoolDetails";
|
82
|
+
YTApiId[YTApiId["schedulingGetAttrsBeforeEdit"] = 80] = "schedulingGetAttrsBeforeEdit";
|
83
|
+
YTApiId[YTApiId["schedulingLoadOperations"] = 81] = "schedulingLoadOperations";
|
84
|
+
YTApiId[YTApiId["schedulingLoadOperationsPerPool"] = 82] = "schedulingLoadOperationsPerPool";
|
85
|
+
YTApiId[YTApiId["schedulingLoadTree"] = 83] = "schedulingLoadTree";
|
86
|
+
YTApiId[YTApiId["schedulingTransferPoolQuota"] = 84] = "schedulingTransferPoolQuota";
|
87
|
+
YTApiId[YTApiId["schedulingPoolFullPath"] = 85] = "schedulingPoolFullPath";
|
88
|
+
YTApiId[YTApiId["schedulingLoadPoolsAll"] = 86] = "schedulingLoadPoolsAll";
|
89
|
+
YTApiId[YTApiId["schedulingLoadPoolsPerPool"] = 87] = "schedulingLoadPoolsPerPool";
|
90
|
+
YTApiId[YTApiId["schedulingLoadChildrenPerPool"] = 88] = "schedulingLoadChildrenPerPool";
|
91
|
+
YTApiId[YTApiId["schedulingLoadCypressDataPerPool"] = 89] = "schedulingLoadCypressDataPerPool";
|
92
|
+
YTApiId[YTApiId["schedulingFilterAttributes"] = 90] = "schedulingFilterAttributes";
|
93
|
+
YTApiId[YTApiId["systemCAInstances"] = 91] = "systemCAInstances";
|
94
|
+
YTApiId[YTApiId["systemCAStates"] = 92] = "systemCAStates";
|
95
|
+
YTApiId[YTApiId["systemChunks"] = 93] = "systemChunks";
|
96
|
+
YTApiId[YTApiId["systemMasters"] = 94] = "systemMasters";
|
97
|
+
YTApiId[YTApiId["systemMastersConfig"] = 95] = "systemMastersConfig";
|
98
|
+
YTApiId[YTApiId["systemMastersConfigDiscoveryServer"] = 96] = "systemMastersConfigDiscoveryServer";
|
99
|
+
YTApiId[YTApiId["systemNodes"] = 97] = "systemNodes";
|
100
|
+
YTApiId[YTApiId["systemProxies"] = 98] = "systemProxies";
|
101
|
+
YTApiId[YTApiId["systemResources"] = 99] = "systemResources";
|
102
|
+
YTApiId[YTApiId["systemRpcProxies"] = 100] = "systemRpcProxies";
|
103
|
+
YTApiId[YTApiId["systemSchedulers"] = 101] = "systemSchedulers";
|
104
|
+
YTApiId[YTApiId["systemSchedulersState"] = 102] = "systemSchedulersState";
|
105
|
+
YTApiId[YTApiId["tabletAttribute"] = 103] = "tabletAttribute";
|
106
|
+
YTApiId[YTApiId["tabletCellAttributes"] = 104] = "tabletCellAttributes";
|
107
|
+
YTApiId[YTApiId["tabletPartitions"] = 105] = "tabletPartitions";
|
108
|
+
YTApiId[YTApiId["tabletStores"] = 106] = "tabletStores";
|
109
|
+
YTApiId[YTApiId["tabletStoresByIds"] = 107] = "tabletStoresByIds";
|
110
|
+
YTApiId[YTApiId["tabletTableAttributes"] = 108] = "tabletTableAttributes";
|
111
|
+
YTApiId[YTApiId["tabletCellBundles"] = 109] = "tabletCellBundles";
|
112
|
+
YTApiId[YTApiId["tabletCellBundlesEditData"] = 110] = "tabletCellBundlesEditData";
|
113
|
+
YTApiId[YTApiId["tabletCellBundlesInstancesDetails"] = 111] = "tabletCellBundlesInstancesDetails";
|
114
|
+
YTApiId[YTApiId["tabletCellBundlesSetAttrs"] = 112] = "tabletCellBundlesSetAttrs";
|
115
|
+
YTApiId[YTApiId["tabletCellBundlesWithAbc"] = 113] = "tabletCellBundlesWithAbc";
|
116
|
+
YTApiId[YTApiId["chaosCellBundles"] = 114] = "chaosCellBundles";
|
117
|
+
YTApiId[YTApiId["chaosCellBundlesEditData"] = 115] = "chaosCellBundlesEditData";
|
118
|
+
YTApiId[YTApiId["chaosCellBundlesSetAttrs"] = 116] = "chaosCellBundlesSetAttrs";
|
119
|
+
YTApiId[YTApiId["usersData"] = 117] = "usersData";
|
120
|
+
YTApiId[YTApiId["usersEditData"] = 118] = "usersEditData";
|
121
|
+
YTApiId[YTApiId["usersSaveData"] = 119] = "usersSaveData";
|
122
|
+
YTApiId[YTApiId["queueStatus"] = 120] = "queueStatus";
|
123
|
+
YTApiId[YTApiId["queuePartitions"] = 121] = "queuePartitions";
|
124
|
+
YTApiId[YTApiId["queueConsumerStatus"] = 122] = "queueConsumerStatus";
|
125
|
+
YTApiId[YTApiId["queueConsumerPartitions"] = 123] = "queueConsumerPartitions";
|
126
|
+
YTApiId[YTApiId["bundleControllerZones"] = 124] = "bundleControllerZones";
|
127
|
+
YTApiId[YTApiId["tabletBundleControllerState"] = 125] = "tabletBundleControllerState";
|
128
|
+
YTApiId[YTApiId["tabletBundlesCheckWrite"] = 126] = "tabletBundlesCheckWrite";
|
129
|
+
YTApiId[YTApiId["listQueries"] = 127] = "listQueries";
|
130
|
+
YTApiId[YTApiId["getQuery"] = 128] = "getQuery";
|
131
|
+
YTApiId[YTApiId["startQuery"] = 129] = "startQuery";
|
132
|
+
YTApiId[YTApiId["abortQuery"] = 130] = "abortQuery";
|
133
|
+
YTApiId[YTApiId["readQueryResults"] = 131] = "readQueryResults";
|
134
|
+
YTApiId[YTApiId["getQueryResults"] = 132] = "getQueryResults";
|
135
|
+
YTApiId[YTApiId["alterQuery"] = 133] = "alterQuery";
|
136
|
+
YTApiId[YTApiId["addMaintenance"] = 134] = "addMaintenance";
|
137
|
+
YTApiId[YTApiId["removeMaintenance"] = 135] = "removeMaintenance";
|
138
|
+
YTApiId[YTApiId["maintenanceRequests"] = 136] = "maintenanceRequests";
|
139
|
+
return YTApiId;
|
140
|
+
}({});
|
141
|
+
// #sourceMappingURL=yt-api-id.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"names":["YTApiId"],"sources":["yt-api-id.ts"],"sourcesContent":["export enum YTApiId {\n // Names of ids for node-controllers should be started with 'ui_'-prefix\n ui_clusterInfo,\n ui_loadColumnPreset,\n\n // Some ids without specific page\n clusterParams,\n clusterParamsIsDeveloper,\n\n checkPermissions,\n getPoolTree,\n getPoolTrees,\n getPoolDefaultPoolTreeName,\n getPoolTreesPath,\n listPoolNames,\n getUsableBundles,\n listAccounts,\n listBundles,\n listGroups,\n listUsableAccounts,\n listUsers,\n listUsersUM,\n openAttributesModal,\n pathEditorLoadSuggestions,\n updateAttributes,\n updateNodeAttributes,\n\n // Page-specific requests\n accountsData,\n accountsEditData,\n\n attributesEditorGetAttrs,\n attributesEditorMerge,\n attributesEditorSet,\n\n componentsClusterNodes,\n componentGetRpcProxies,\n componentsRpcProxies,\n componentsShards,\n componentsUpdateNodeData,\n\n groupsData,\n groupsEditData,\n groupsListAll,\n\n // dynamic tables\n dynTableCheckPerm,\n dynTableSelectRows,\n dynTableSelectRowsPreload,\n\n // static tables\n tableReadPreload,\n tableRead,\n\n navigationAttributes,\n navigationCheckPermissions,\n navigationCopy,\n navigationDelete,\n navigationDynTableState,\n navigationGetAnnotation,\n navigationGetDocument,\n navigationGetPath,\n navigationGetPathInfo,\n navigationGetTabletState,\n navigationIsStaticTable,\n navigationListNodes,\n navigationListTransactions,\n navigationLocks,\n navigationTransactions,\n navigationMove,\n navigationMoveToTrash,\n navigationMoveToTrashRestorePath,\n navigationResourceUsage,\n navigationRestorePath,\n navigationRTReplicas,\n navigationTableSortLoadColumns,\n navigationTabletErrors,\n navigationTabletErrorsCountDynTable,\n navigationTabletErrorsCountReplicatedTable,\n navigationTableMountConfig,\n navigationTypeDynamic,\n navigationUpdateView,\n navigationUserAttributeKeys,\n\n nodeAttributes,\n nodeMemoryUsage,\n nodeUnrecognizedOptions,\n\n schedulingData,\n schedulingEditPool,\n\n listOperations,\n\n operationGetJobs,\n operationIntermediateResourceUsage,\n operationIsEphemeral,\n operationsSchedulerInstances,\n listJobs100,\n\n resourcePlannerPoolDetails,\n\n schedulingGetAttrsBeforeEdit,\n schedulingLoadOperations,\n schedulingLoadOperationsPerPool,\n schedulingLoadTree,\n schedulingTransferPoolQuota,\n schedulingPoolFullPath,\n schedulingLoadPoolsAll,\n schedulingLoadPoolsPerPool,\n schedulingLoadChildrenPerPool,\n schedulingLoadCypressDataPerPool,\n schedulingFilterAttributes,\n\n systemCAInstances,\n systemCAStates,\n systemChunks,\n systemMasters,\n systemMastersConfig,\n systemMastersConfigDiscoveryServer,\n systemNodes,\n systemProxies,\n systemResources,\n systemRpcProxies,\n systemSchedulers,\n systemSchedulersState,\n\n tabletAttribute,\n tabletCellAttributes,\n tabletPartitions,\n tabletStores,\n tabletStoresByIds,\n tabletTableAttributes,\n\n tabletCellBundles,\n tabletCellBundlesEditData,\n tabletCellBundlesInstancesDetails,\n tabletCellBundlesSetAttrs,\n tabletCellBundlesWithAbc,\n\n chaosCellBundles,\n chaosCellBundlesEditData,\n chaosCellBundlesSetAttrs,\n\n usersData,\n usersEditData,\n usersSaveData,\n\n queueStatus,\n queuePartitions,\n queueConsumerStatus,\n queueConsumerPartitions,\n\n bundleControllerZones,\n tabletBundleControllerState,\n tabletBundlesCheckWrite,\n listQueries,\n getQuery,\n startQuery,\n abortQuery,\n readQueryResults,\n getQueryResults,\n alterQuery,\n\n addMaintenance,\n removeMaintenance,\n maintenanceRequests,\n}\n"],"mappings":"AAAA,WAAYA,OAAO,0BAAPA,OAAO;EAAPA,OAAO,CAAPA,OAAO;EAAPA,OAAO,CAAPA,OAAO;EAAPA,OAAO,CAAPA,OAAO;EAAPA,OAAO,CAAPA,OAAO;EAAPA,OAAO,CAAPA,OAAO;EAAPA,OAAO,CAAPA,OAAO;EAAPA,OAAO,CAAPA,OAAO;EAAPA,OAAO,CAAPA,OAAO;EAAPA,OAAO,CAAPA,OAAO;EAAPA,OAAO,CAAPA,OAAO;EAAPA,OAAO,CAAPA,OAAO;EAAPA,OAAO,CAAPA,OAAO;EAAPA,OAAO,CAAPA,OAAO;EAAPA,OAAO,CAAPA,OAAO;EAAPA,OAAO,CAAPA,OAAO;EAAPA,OAAO,CAAPA,OAAO;EAAPA,OAAO,CAAPA,OAAO;EAAPA,OAAO,CAAPA,OAAO;EAAPA,OAAO,CAAPA,OAAO;EAAPA,OAAO,CAAPA,OAAO;EAAPA,OAAO,CAAPA,OAAO;EAAPA,OAAO,CAAPA,OAAO;EAAPA,OAAO,CAAPA,OAAO;EAAPA,OAAO,CAAPA,OAAO;EAAPA,OAAO,CAAPA,OAAO;EAAPA,OAAO,CAAPA,OAAO;EAAPA,OAAO,CAAPA,OAAO;EAAPA,OAAO,CAAPA,OAAO;EAAPA,OAAO,CAAPA,OAAO;EAAPA,OAAO,CAAPA,OAAO;EAAPA,OAAO,CAAPA,OAAO;EAAPA,OAAO,CAAPA,OAAO;EAAPA,OAAO,CAAPA,OAAO;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APA,OAAO,CAAPA,OAAO;EAAPA,OAAO,CAAPA,OAAO;EAAPA,OAAO,CAAPA,OAAO;EAAPA,OAAO,CAAPA,OAAO;EAAPA,OAAO,CAAPA,OAAO;EAAPA,OAAO,CAAPA,OAAO;EAAPA,OAAO,CAAPA,OAAO;EAAPA,OAAO,CAAPA,OAAO;EAAPA,OAAO,CAAPA,OAAO;EAAPA,OAAO,CAAPA,OAAO;EAAPA,OAAO,CAAPA,OAAO;EAAA,OAAPA,OAAO;AAAA"}
|
@@ -12,6 +12,7 @@ export interface UISettings {
|
|
12
12
|
trackerBaseUrl?: string;
|
13
13
|
trackerQuoteRequestQueue?: string;
|
14
14
|
trackerAdminRequestQueue?: string;
|
15
|
+
reportBugUrl?: string;
|
15
16
|
datalensBaseUrl?: string;
|
16
17
|
datalensAllowedCluster?: Array<string>;
|
17
18
|
announcesMailListUrl?: string;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["uiSettingFromEnv","uploadTableExcelBaseUrl","process","env","YTFRONT_UPLOAD_EXCEL_BASE_URL","exportTableBaseUrl","YTFRONT_EXPORT_EXCEL_BASE_URL","jupyterBasePath","YTFRONT_JUPYTER_BASE_URL"],"sources":["ui-settings.ts"],"sourcesContent":["export interface UISettings {\n accessLogBasePath?: string;\n accountsUsageBasePath?: string;\n docsBaseUrl?: string;\n jupyterBasePath?: string;\n\n newTableReplicasCount: number;\n\n uploadTableMaxSize: number;\n uploadTableUseLocalmode?: boolean;\n\n uploadTableExcelBaseUrl?: string;\n exportTableBaseUrl?: string;\n\n directDownload?: boolean;\n\n trackerBaseUrl?: string;\n trackerQuoteRequestQueue?: string;\n trackerAdminRequestQueue?: string;\n\n datalensBaseUrl?: string;\n datalensAllowedCluster?: Array<string>;\n\n announcesMailListUrl?: string;\n\n sslCertFixUrl?: string;\n queryTrackerStage?: string;\n queryTrackerCluster?: string;\n\n oauthTokenUrl?: string;\n\n defaultFontType?: keyof Required<UISettings>['fontTypes'];\n\n fontTypes?: Record<string, {regular: string; monospace: string}>;\n\n /**\n * schedulingMonitoring.urlTemplate supports following parameters: {ytCluster}, {ytPool}, {ytPoolTree}.\n * All the parameters are optional and they are replaced with corresponding values.\n * @example {urlTemplate: 'https://my.monitoring.service/scheduling?cluster={ytCluster}&pool={ytPool}&poolTree={ytPoolTree}'}\n */\n schedulingMonitoring?: UISettingsMonitoring;\n\n /**\n * accountsMonitoring.urlTemplate supports following parameters: {ytCluster}, {ytAccount}\n * All the parameters are optional and they are replaced with corresponding values.\n * @example {urlTemplate: 'https://my.monitoring.service/accounts?cluster={ytCluster}&account={ytAccount}'}\n */\n accountsMonitoring?: UISettingsMonitoring;\n\n /**\n * bundlesMonitoring.urlTemplate supports following parameters: {ytCluster}, {ytTabletCellBundle}\n * All the parameters are optional and they are replaced with corresponding values.\n * @example {urlTemplate: 'https://my.monitoring.service/bundles?cluster={ytCluster}&account={ytTabletCellBundle}'}\n */\n bundlesMonitoring?: UISettingsMonitoring;\n\n /**\n * operationsMonitoring.urlTemplate supports following parameters:\n * {ytCluster}, {ytOperationId}, {ytPool}, {ytPoolTree}, {ytSlotIndex}, {fromTimeMs}, {toTimeMs}\n * All the parameters are optional and they are replaced with corresponding values.\n * @example {\n * urlTemplate:\n * 'https://my.monitoring.service/operations?cluster={ytCluster}&operationId={ytOperationId}&pool={ytPool}&tree={ytPoolTree}&slot={ytSlotIndex}&from={fromTimeMs}&to={toTimeMs}'\n * }\n */\n operationsMonitoring?: UISettingsMonitoring;\n\n /**\n * chytMonitoring.urlTemplate supports following parameters:\n * - {ytCluster}\n * - {chytAlias}\n * All the parameters are optional and the are replaced with corresponding values\n * @example {\n * urlTemplate: `https://my.monitoring.service/chyt?cluster={ytCluster}&alias={chytAlias}`\n * }\n */\n chytMonitoring?: UISettingsMonitoring;\n\n /**\n * Allows to define regular expression to extract hash-part from version of node by named group 'hash'\n * @example reHashFromNodeVersion: '[^~]+(?<hash>[^+]+)'\n */\n reHashFromNodeVersion?: string;\n\n /**\n * Allows to define regular expression to extract short-name from full address of host by named group 'shortname'.\n * Also it supports optional named group 'suffix' that will pe appended to shortname as is.\n * @example reShortNameFromAddress: '(?<shortname>.*)((\\\\.msk\\\\.my-domain\\\\.ru)|(\\\\.vla\\\\.my-domain\\\\.net))'\n * @example reShortNameFromAddress: '(?<shortname>.*)((\\\\.msk\\\\.my-domain\\\\.ru)|(\\\\.vla\\\\.my-domain\\\\.net))'\n */\n reShortNameFromAddress?: string;\n\n /**\n * Allows to override behavior of `reShortNameFromAddress` for tablet/bundles/cells specific parts of UI.\n * @example reShortNameFromTabletNodeAddress: '(?<shortname>[^-]+-[^-]+).*'\n */\n reShortNameFromTabletNodeAddress?: string;\n\n /**\n * Allows to define array of regexps for allowed urls of TaggedType of unipika to display media-content (audio/video/images).\n * If there are no matched items in the array the TaggedType-item will be displayed as a json-object.\n * @expamle\n * reUnipikaAllowTaggedSources: [\n * \"https:\\\\/\\\\/image\\\\.bank\\\\.my\\\\/fruits\\\\/\",\n * \"https:\\\\/\\\\/image\\\\.bank\\\\.my\\\\/vegetables\\\\/\"\n * ]\n */\n reUnipikaAllowTaggedSources: Array<string>;\n\n /**\n * Allows to define service for removing 'Referer' header for url-s on a page.\n *\n * See `@gravity-ui/unipika v3.0.0` details in [CHANGELOG.md](https://github.com/gravity-ui/unipika/blob/main/CHANGELOG.md).\n */\n hideReferrerUrl?: string;\n}\n\nexport interface UISettingsMonitoring {\n urlTemplate: string;\n title?: string;\n}\n\nexport const uiSettingFromEnv: Partial<UISettings> = {\n uploadTableExcelBaseUrl: process.env.YTFRONT_UPLOAD_EXCEL_BASE_URL,\n exportTableBaseUrl: process.env.YTFRONT_EXPORT_EXCEL_BASE_URL,\n jupyterBasePath: process.env.YTFRONT_JUPYTER_BASE_URL,\n};\n"],"mappings":"
|
1
|
+
{"version":3,"names":["uiSettingFromEnv","uploadTableExcelBaseUrl","process","env","YTFRONT_UPLOAD_EXCEL_BASE_URL","exportTableBaseUrl","YTFRONT_EXPORT_EXCEL_BASE_URL","jupyterBasePath","YTFRONT_JUPYTER_BASE_URL"],"sources":["ui-settings.ts"],"sourcesContent":["export interface UISettings {\n accessLogBasePath?: string;\n accountsUsageBasePath?: string;\n docsBaseUrl?: string;\n jupyterBasePath?: string;\n\n newTableReplicasCount: number;\n\n uploadTableMaxSize: number;\n uploadTableUseLocalmode?: boolean;\n\n uploadTableExcelBaseUrl?: string;\n exportTableBaseUrl?: string;\n\n directDownload?: boolean;\n\n trackerBaseUrl?: string;\n trackerQuoteRequestQueue?: string;\n trackerAdminRequestQueue?: string;\n\n reportBugUrl?: string;\n\n datalensBaseUrl?: string;\n datalensAllowedCluster?: Array<string>;\n\n announcesMailListUrl?: string;\n\n sslCertFixUrl?: string;\n queryTrackerStage?: string;\n queryTrackerCluster?: string;\n\n oauthTokenUrl?: string;\n\n defaultFontType?: keyof Required<UISettings>['fontTypes'];\n\n fontTypes?: Record<string, {regular: string; monospace: string}>;\n\n /**\n * schedulingMonitoring.urlTemplate supports following parameters: {ytCluster}, {ytPool}, {ytPoolTree}.\n * All the parameters are optional and they are replaced with corresponding values.\n * @example {urlTemplate: 'https://my.monitoring.service/scheduling?cluster={ytCluster}&pool={ytPool}&poolTree={ytPoolTree}'}\n */\n schedulingMonitoring?: UISettingsMonitoring;\n\n /**\n * accountsMonitoring.urlTemplate supports following parameters: {ytCluster}, {ytAccount}\n * All the parameters are optional and they are replaced with corresponding values.\n * @example {urlTemplate: 'https://my.monitoring.service/accounts?cluster={ytCluster}&account={ytAccount}'}\n */\n accountsMonitoring?: UISettingsMonitoring;\n\n /**\n * bundlesMonitoring.urlTemplate supports following parameters: {ytCluster}, {ytTabletCellBundle}\n * All the parameters are optional and they are replaced with corresponding values.\n * @example {urlTemplate: 'https://my.monitoring.service/bundles?cluster={ytCluster}&account={ytTabletCellBundle}'}\n */\n bundlesMonitoring?: UISettingsMonitoring;\n\n /**\n * operationsMonitoring.urlTemplate supports following parameters:\n * {ytCluster}, {ytOperationId}, {ytPool}, {ytPoolTree}, {ytSlotIndex}, {fromTimeMs}, {toTimeMs}\n * All the parameters are optional and they are replaced with corresponding values.\n * @example {\n * urlTemplate:\n * 'https://my.monitoring.service/operations?cluster={ytCluster}&operationId={ytOperationId}&pool={ytPool}&tree={ytPoolTree}&slot={ytSlotIndex}&from={fromTimeMs}&to={toTimeMs}'\n * }\n */\n operationsMonitoring?: UISettingsMonitoring;\n\n /**\n * chytMonitoring.urlTemplate supports following parameters:\n * - {ytCluster}\n * - {chytAlias}\n * All the parameters are optional and the are replaced with corresponding values\n * @example {\n * urlTemplate: `https://my.monitoring.service/chyt?cluster={ytCluster}&alias={chytAlias}`\n * }\n */\n chytMonitoring?: UISettingsMonitoring;\n\n /**\n * Allows to define regular expression to extract hash-part from version of node by named group 'hash'\n * @example reHashFromNodeVersion: '[^~]+(?<hash>[^+]+)'\n */\n reHashFromNodeVersion?: string;\n\n /**\n * Allows to define regular expression to extract short-name from full address of host by named group 'shortname'.\n * Also it supports optional named group 'suffix' that will pe appended to shortname as is.\n * @example reShortNameFromAddress: '(?<shortname>.*)((\\\\.msk\\\\.my-domain\\\\.ru)|(\\\\.vla\\\\.my-domain\\\\.net))'\n * @example reShortNameFromAddress: '(?<shortname>.*)((\\\\.msk\\\\.my-domain\\\\.ru)|(\\\\.vla\\\\.my-domain\\\\.net))'\n */\n reShortNameFromAddress?: string;\n\n /**\n * Allows to override behavior of `reShortNameFromAddress` for tablet/bundles/cells specific parts of UI.\n * @example reShortNameFromTabletNodeAddress: '(?<shortname>[^-]+-[^-]+).*'\n */\n reShortNameFromTabletNodeAddress?: string;\n\n /**\n * Allows to define array of regexps for allowed urls of TaggedType of unipika to display media-content (audio/video/images).\n * If there are no matched items in the array the TaggedType-item will be displayed as a json-object.\n * @expamle\n * reUnipikaAllowTaggedSources: [\n * \"https:\\\\/\\\\/image\\\\.bank\\\\.my\\\\/fruits\\\\/\",\n * \"https:\\\\/\\\\/image\\\\.bank\\\\.my\\\\/vegetables\\\\/\"\n * ]\n */\n reUnipikaAllowTaggedSources: Array<string>;\n\n /**\n * Allows to define service for removing 'Referer' header for url-s on a page.\n *\n * See `@gravity-ui/unipika v3.0.0` details in [CHANGELOG.md](https://github.com/gravity-ui/unipika/blob/main/CHANGELOG.md).\n */\n hideReferrerUrl?: string;\n}\n\nexport interface UISettingsMonitoring {\n urlTemplate: string;\n title?: string;\n}\n\nexport const uiSettingFromEnv: Partial<UISettings> = {\n uploadTableExcelBaseUrl: process.env.YTFRONT_UPLOAD_EXCEL_BASE_URL,\n exportTableBaseUrl: process.env.YTFRONT_EXPORT_EXCEL_BASE_URL,\n jupyterBasePath: process.env.YTFRONT_JUPYTER_BASE_URL,\n};\n"],"mappings":"AA4HA,OAAO,IAAMA,gBAAqC,GAAG;EACjDC,uBAAuB,EAAEC,OAAO,CAACC,GAAG,CAACC,6BAA6B;EAClEC,kBAAkB,EAAEH,OAAO,CAACC,GAAG,CAACG,6BAA6B;EAC7DC,eAAe,EAAEL,OAAO,CAACC,GAAG,CAACK;AACjC,CAAC"}
|
@@ -1,18 +1,5 @@
|
|
1
|
-
import { FIX_MY_TYPE } from '../../@types/types';
|
2
1
|
import { BatchSubRequest, YTPermissionType } from '../yt-types';
|
3
|
-
export declare function
|
4
|
-
command: "check_permission_by_acl";
|
5
|
-
parameters: {
|
6
|
-
acl: {
|
7
|
-
permissions: YTPermissionType[];
|
8
|
-
subjects: string[];
|
9
|
-
action: "allow";
|
10
|
-
}[];
|
11
|
-
user: string;
|
12
|
-
permission: YTPermissionType;
|
13
|
-
};
|
14
|
-
}[];
|
15
|
-
export declare function checkIsDeveloper(login: string, setup?: FIX_MY_TYPE): Promise<boolean>;
|
2
|
+
export declare function checkIsDeveloper(login: string, setup: unknown, ytApiId: string): Promise<boolean>;
|
16
3
|
export type CheckPermissionItem = {
|
17
4
|
user: string;
|
18
5
|
path: string;
|