katello 4.9.1 → 4.10.0.rc2

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of katello might be problematic. Click here for more details.

Files changed (308) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +4 -7
  3. data/app/assets/javascripts/katello/locale/bn/katello.js +8967 -1
  4. data/app/assets/javascripts/katello/locale/bn_IN/katello.js +8967 -0
  5. data/app/assets/javascripts/katello/locale/ca/katello.js +8967 -0
  6. data/app/assets/javascripts/katello/locale/cs/katello.js +8967 -1
  7. data/app/assets/javascripts/katello/locale/cs_CZ/katello.js +8969 -0
  8. data/app/assets/javascripts/katello/locale/de/katello.js +8991 -1
  9. data/app/assets/javascripts/katello/locale/de_AT/katello.js +8966 -0
  10. data/app/assets/javascripts/katello/locale/de_DE/katello.js +8967 -0
  11. data/app/assets/javascripts/katello/locale/el/katello.js +8967 -0
  12. data/app/assets/javascripts/katello/locale/en/katello.js +8967 -1
  13. data/app/assets/javascripts/katello/locale/en_GB/katello.js +8967 -0
  14. data/app/assets/javascripts/katello/locale/en_US/katello.js +8966 -0
  15. data/app/assets/javascripts/katello/locale/es/katello.js +8984 -1
  16. data/app/assets/javascripts/katello/locale/et_EE/katello.js +8966 -0
  17. data/app/assets/javascripts/katello/locale/fr/katello.js +9008 -1
  18. data/app/assets/javascripts/katello/locale/gl/katello.js +8967 -0
  19. data/app/assets/javascripts/katello/locale/gu/katello.js +8967 -1
  20. data/app/assets/javascripts/katello/locale/he_IL/katello.js +8967 -0
  21. data/app/assets/javascripts/katello/locale/hi/katello.js +8967 -1
  22. data/app/assets/javascripts/katello/locale/id/katello.js +8966 -0
  23. data/app/assets/javascripts/katello/locale/it/katello.js +8974 -1
  24. data/app/assets/javascripts/katello/locale/ja/katello.js +9004 -1
  25. data/app/assets/javascripts/katello/locale/ka/katello.js +8976 -1
  26. data/app/assets/javascripts/katello/locale/kn/katello.js +8967 -1
  27. data/app/assets/javascripts/katello/locale/ko/katello.js +8972 -1
  28. data/app/assets/javascripts/katello/locale/locale/katello.js +3070 -1
  29. data/app/assets/javascripts/katello/locale/ml_IN/katello.js +8966 -0
  30. data/app/assets/javascripts/katello/locale/mr/katello.js +8967 -1
  31. data/app/assets/javascripts/katello/locale/nl_NL/katello.js +8967 -0
  32. data/app/assets/javascripts/katello/locale/or/katello.js +8967 -1
  33. data/app/assets/javascripts/katello/locale/pa/katello.js +8967 -1
  34. data/app/assets/javascripts/katello/locale/pl/katello.js +8967 -0
  35. data/app/assets/javascripts/katello/locale/pl_PL/katello.js +8966 -0
  36. data/app/assets/javascripts/katello/locale/pt/katello.js +8967 -1
  37. data/app/assets/javascripts/katello/locale/pt_BR/katello.js +8984 -1
  38. data/app/assets/javascripts/katello/locale/ro/katello.js +8966 -0
  39. data/app/assets/javascripts/katello/locale/ro_RO/katello.js +8966 -0
  40. data/app/assets/javascripts/katello/locale/ru/katello.js +8973 -1
  41. data/app/assets/javascripts/katello/locale/sl/katello.js +8967 -0
  42. data/app/assets/javascripts/katello/locale/sv_SE/katello.js +8967 -0
  43. data/app/assets/javascripts/katello/locale/ta/katello.js +8967 -1
  44. data/app/assets/javascripts/katello/locale/ta_IN/katello.js +8967 -0
  45. data/app/assets/javascripts/katello/locale/te/katello.js +8967 -1
  46. data/app/assets/javascripts/katello/locale/tr/katello.js +8967 -0
  47. data/app/assets/javascripts/katello/locale/vi/katello.js +8966 -0
  48. data/app/assets/javascripts/katello/locale/vi_VN/katello.js +8966 -0
  49. data/app/assets/javascripts/katello/locale/zh/katello.js +8966 -0
  50. data/app/assets/javascripts/katello/locale/zh_CN/katello.js +9004 -1
  51. data/app/assets/javascripts/katello/locale/zh_TW/katello.js +8972 -1
  52. data/app/controllers/katello/api/rhsm/candlepin_proxies_controller.rb +1 -1
  53. data/app/controllers/katello/api/v2/alternate_content_sources_bulk_actions_controller.rb +22 -1
  54. data/app/controllers/katello/api/v2/api_controller.rb +0 -15
  55. data/app/controllers/katello/api/v2/content_view_versions_controller.rb +13 -4
  56. data/app/controllers/katello/api/v2/host_errata_controller.rb +0 -12
  57. data/app/controllers/katello/api/v2/host_packages_controller.rb +0 -55
  58. data/app/controllers/katello/api/v2/host_subscriptions_controller.rb +1 -1
  59. data/app/controllers/katello/api/v2/hosts_bulk_actions_controller.rb +0 -77
  60. data/app/controllers/katello/api/v2/organizations_controller.rb +2 -1
  61. data/app/controllers/katello/api/v2/products_controller.rb +4 -4
  62. data/app/controllers/katello/api/v2/repositories_bulk_actions_controller.rb +12 -5
  63. data/app/controllers/katello/api/v2/repositories_controller.rb +16 -17
  64. data/app/controllers/katello/api/v2/sync_controller.rb +0 -1
  65. data/app/controllers/katello/concerns/api/api_controller.rb +0 -10
  66. data/app/controllers/katello/concerns/content_facet_hosts_controller_extensions.rb +7 -9
  67. data/app/controllers/katello/concerns/hosts_controller_extensions.rb +1 -1
  68. data/app/helpers/katello/hosts_and_hostgroups_helper.rb +14 -2
  69. data/app/lib/actions/katello/alternate_content_source/update.rb +1 -1
  70. data/app/lib/actions/katello/content_view/capsule_sync.rb +1 -1
  71. data/app/lib/actions/katello/content_view/incremental_updates.rb +3 -9
  72. data/app/lib/actions/katello/content_view_environment/destroy.rb +5 -3
  73. data/app/lib/actions/katello/content_view_version/destroy.rb +5 -1
  74. data/app/lib/actions/katello/content_view_version/republish_repositories.rb +8 -2
  75. data/app/lib/actions/katello/host/update_content_view.rb +4 -2
  76. data/app/lib/actions/katello/product/destroy.rb +15 -11
  77. data/app/lib/actions/katello/repository/capsule_sync.rb +1 -1
  78. data/app/lib/actions/katello/repository/destroy.rb +10 -2
  79. data/app/lib/actions/katello/repository/index_content.rb +0 -1
  80. data/app/lib/actions/katello/repository/sync.rb +1 -3
  81. data/app/lib/actions/katello/repository/update_metadata_sync.rb +1 -1
  82. data/app/lib/actions/katello/repository/verify_checksum.rb +2 -10
  83. data/app/lib/actions/pulp3/orchestration/repository/generate_metadata.rb +12 -5
  84. data/app/lib/katello/concerns/base_template_scope_extensions.rb +4 -9
  85. data/app/lib/katello/resources/cdn.rb +4 -0
  86. data/app/lib/katello/validators/alternate_content_source_products_validator.rb +1 -1
  87. data/app/models/katello/candlepin/repository_mapper.rb +1 -0
  88. data/app/models/katello/cdn_configuration.rb +4 -0
  89. data/app/models/katello/concerns/host_managed_extensions.rb +57 -4
  90. data/app/models/katello/content_view.rb +21 -3
  91. data/app/models/katello/content_view_component.rb +1 -1
  92. data/app/models/katello/content_view_version.rb +4 -0
  93. data/app/models/katello/docker_meta_tag.rb +3 -1
  94. data/app/models/katello/host/content_facet.rb +10 -8
  95. data/app/models/katello/kt_environment.rb +1 -1
  96. data/app/models/katello/ping.rb +1 -12
  97. data/app/models/katello/product_content.rb +14 -1
  98. data/app/models/katello/repository.rb +6 -1
  99. data/app/models/katello/root_repository.rb +2 -8
  100. data/app/services/katello/applicability/applicable_content_helper.rb +2 -2
  101. data/app/services/katello/registration_manager.rb +2 -12
  102. data/app/views/foreman/job_templates/configure_host_for_new_content_source.erb +25 -0
  103. data/app/views/katello/api/v2/capsule_content/sync_status.json.rabl +1 -1
  104. data/app/views/katello/api/v2/content_facet/show.json.rabl +0 -12
  105. data/app/views/katello/api/v2/content_view_components/show.json.rabl +4 -1
  106. data/app/views/katello/api/v2/content_views/base.json.rabl +6 -2
  107. data/app/views/katello/api/v2/products/show.json.rabl +3 -0
  108. data/app/views/katello/api/v2/repositories/base.json.rabl +18 -0
  109. data/app/views/katello/api/v2/repositories/show.json.rabl +0 -1
  110. data/app/views/katello/api/v2/repository_sets/show.json.rabl +2 -2
  111. data/app/views/overrides/activation_keys/_host_environment_select.html.erb +4 -5
  112. data/app/views/overrides/activation_keys/_host_media_type_select.html.erb +11 -3
  113. data/app/views/overrides/activation_keys/_host_synced_content_select.html.erb +15 -7
  114. data/config/initializers/monkeys.rb +1 -0
  115. data/config/katello.yaml.example +0 -4
  116. data/config/routes/api/v2.rb +3 -0
  117. data/config/routes/overrides.rb +0 -11
  118. data/db/migrate/20220228173251_remove_drpm_from_ignorable_content.rb +1 -0
  119. data/db/migrate/20230609155411_add_custom_cdn_auth_enabled_to_katello_cdn_configurations.rb +5 -0
  120. data/db/migrate/20230710190626_remove_relative_path_limit.rb +5 -0
  121. data/db/migrate/20230717150442_change_change_content_source_job_template_name.rb +20 -0
  122. data/db/migrate/20230828143236_remove_katello_agent_dispatch_history.rb +15 -0
  123. data/db/seeds.d/111-upgrade_tasks.rb +1 -2
  124. data/engines/bastion/app/views/bastion/layouts/assets.html.erb +1 -1
  125. data/engines/bastion_katello/README.md +2 -1
  126. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/activation-keys.controller.js +4 -2
  127. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/views/activation-key-associations-content-hosts.html +2 -2
  128. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/views/activation-keys.html +8 -3
  129. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/bulk/content-hosts-bulk-errata-modal.controller.js +3 -44
  130. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/bulk/content-hosts-bulk-module-streams-modal.controller.js +0 -1
  131. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/bulk/content-hosts-bulk-packages-modal.controller.js +1 -65
  132. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/bulk/views/content-hosts-bulk-errata-modal.html +1 -3
  133. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/bulk/views/content-hosts-bulk-packages-modal.html +1 -6
  134. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/content-host-debs-applicable.controller.js +1 -1
  135. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/content-host-errata.controller.js +1 -16
  136. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/content-host-module-streams.controller.js +0 -1
  137. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/content-host-packages-actions.controller.js +0 -1
  138. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/content-host-packages-applicable.controller.js +2 -11
  139. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/content-host-packages-installed.controller.js +0 -2
  140. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/content-host-packages.controller.js +1 -39
  141. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/views/content-host-debs-applicable.html +2 -2
  142. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/views/content-host-errata.html +1 -4
  143. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/views/content-host-packages-actions.html +2 -4
  144. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/views/content-host-packages-applicable.html +4 -6
  145. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/views/content-host-packages-installed.html +1 -3
  146. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/views/content-host-info.html +0 -14
  147. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/errata/apply-errata.controller.js +1 -2
  148. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/files/details/file-content-views.controller.js +2 -1
  149. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/files/details/views/file-content-views.html +1 -1
  150. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/bastion_katello.pot +235 -521
  151. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/product-details.controller.js +2 -0
  152. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/details/repository-details.controller.js +17 -4
  153. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/details/views/repository-details.html +55 -6
  154. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/details/views/repository-info.html +2 -2
  155. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/details/views/repository-manage-packages.html +13 -2
  156. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/new/views/new-repository.html +2 -2
  157. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/views/product-repositories.html +4 -1
  158. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/views/product-details.html +5 -0
  159. data/engines/bastion_katello/lib/bastion_katello/engine.rb +1 -3
  160. data/lib/katello/engine.rb +0 -18
  161. data/lib/katello/permission_creator.rb +1 -1
  162. data/lib/katello/plugin.rb +0 -25
  163. data/lib/katello/version.rb +1 -1
  164. data/lib/monkeys/remove_hidden_distribution.rb +383 -0
  165. data/locale/action_names.rb +3 -1
  166. data/locale/bn/katello.po +130 -39
  167. data/locale/bn_IN/katello.po +130 -39
  168. data/locale/ca/katello.po +130 -39
  169. data/locale/cs/katello.po +130 -39
  170. data/locale/cs_CZ/katello.po +130 -39
  171. data/locale/de/LC_MESSAGES/katello.mo +0 -0
  172. data/locale/de/katello.po +134 -43
  173. data/locale/de_AT/katello.po +130 -39
  174. data/locale/de_DE/katello.po +130 -39
  175. data/locale/el/katello.po +130 -39
  176. data/locale/en/katello.po +130 -39
  177. data/locale/en_GB/katello.po +130 -39
  178. data/locale/en_US/katello.po +130 -39
  179. data/locale/es/LC_MESSAGES/katello.mo +0 -0
  180. data/locale/es/katello.po +133 -42
  181. data/locale/et_EE/katello.po +130 -39
  182. data/locale/fr/LC_MESSAGES/katello.mo +0 -0
  183. data/locale/fr/katello.po +138 -47
  184. data/locale/gl/katello.po +130 -39
  185. data/locale/gu/katello.po +130 -39
  186. data/locale/he_IL/katello.po +130 -39
  187. data/locale/hi/katello.po +130 -39
  188. data/locale/id/katello.po +130 -39
  189. data/locale/it/LC_MESSAGES/katello.mo +0 -0
  190. data/locale/it/katello.po +131 -40
  191. data/locale/ja/LC_MESSAGES/katello.mo +0 -0
  192. data/locale/ja/katello.po +138 -47
  193. data/locale/ka/LC_MESSAGES/katello.mo +0 -0
  194. data/locale/ka/katello.po +131 -40
  195. data/locale/katello.pot +805 -642
  196. data/locale/kn/katello.po +130 -39
  197. data/locale/ko/LC_MESSAGES/katello.mo +0 -0
  198. data/locale/ko/katello.po +131 -40
  199. data/locale/ml_IN/katello.po +130 -39
  200. data/locale/mr/katello.po +130 -39
  201. data/locale/nl_NL/katello.po +130 -39
  202. data/locale/or/katello.po +130 -39
  203. data/locale/pa/katello.po +130 -39
  204. data/locale/pl/katello.po +130 -39
  205. data/locale/pl_PL/katello.po +130 -39
  206. data/locale/pt/katello.po +130 -39
  207. data/locale/pt_BR/LC_MESSAGES/katello.mo +0 -0
  208. data/locale/pt_BR/katello.po +133 -42
  209. data/locale/ro/katello.po +130 -39
  210. data/locale/ro_RO/katello.po +130 -39
  211. data/locale/ru/LC_MESSAGES/katello.mo +0 -0
  212. data/locale/ru/katello.po +131 -40
  213. data/locale/sl/katello.po +130 -39
  214. data/locale/sv_SE/katello.po +130 -39
  215. data/locale/ta/katello.po +130 -39
  216. data/locale/ta_IN/katello.po +130 -39
  217. data/locale/te/katello.po +130 -39
  218. data/locale/tr/katello.po +130 -39
  219. data/locale/vi/katello.po +130 -39
  220. data/locale/vi_VN/katello.po +130 -39
  221. data/locale/zh/katello.po +130 -39
  222. data/locale/zh_CN/LC_MESSAGES/katello.mo +0 -0
  223. data/locale/zh_CN/katello.po +138 -47
  224. data/locale/zh_TW/LC_MESSAGES/katello.mo +0 -0
  225. data/locale/zh_TW/katello.po +131 -40
  226. data/webpack/components/extensions/HostDetails/Cards/HostCollectionsCard/HostCollectionsModal.js +0 -5
  227. data/webpack/components/extensions/HostDetails/Tabs/ContentTab/index.js +9 -3
  228. data/webpack/components/extensions/HostDetails/Tabs/ErrataTab/ErrataTab.js +7 -54
  229. data/webpack/components/extensions/HostDetails/Tabs/ErrataTab/HostErrataActions.js +2 -11
  230. data/webpack/components/extensions/HostDetails/Tabs/PackagesTab/HostPackagesActions.js +1 -40
  231. data/webpack/components/extensions/HostDetails/Tabs/PackagesTab/HostPackagesConstants.js +0 -3
  232. data/webpack/components/extensions/HostDetails/Tabs/PackagesTab/PackageInstallModal.js +5 -40
  233. data/webpack/components/extensions/HostDetails/Tabs/PackagesTab/PackagesTab.js +6 -61
  234. data/webpack/components/extensions/HostDetails/Tabs/RepositorySetsTab/RepositorySetsTab.js +5 -4
  235. data/webpack/components/extensions/HostDetails/Tabs/__tests__/errataTab.test.js +0 -212
  236. data/webpack/components/extensions/HostDetails/Tabs/__tests__/packageInstallModal.test.js +2 -157
  237. data/webpack/components/extensions/HostDetails/hostDetailsHelpers.js +0 -20
  238. data/webpack/containers/Application/config.js +5 -0
  239. data/webpack/scenes/ActivationKeys/Details/ActivationKeyActions.js +31 -0
  240. data/webpack/scenes/ActivationKeys/Details/ActivationKeyConstants.js +3 -0
  241. data/webpack/scenes/ActivationKeys/Details/ActivationKeyDetails.js +127 -0
  242. data/webpack/scenes/ActivationKeys/Details/ActivationKeyDetails.scss +37 -0
  243. data/webpack/scenes/ActivationKeys/Details/ActivationKeyDetailsSelectors.js +16 -0
  244. data/webpack/scenes/ActivationKeys/Details/__tests__/activationKeyDetails.test.js +117 -0
  245. data/webpack/scenes/ActivationKeys/Details/components/DeleteMenu.js +77 -0
  246. data/webpack/scenes/ActivationKeys/Details/components/DeleteModal.js +63 -0
  247. data/webpack/scenes/ActivationKeys/Details/components/EditModal.js +199 -0
  248. data/webpack/scenes/ActivationKeys/Details/index.js +3 -0
  249. data/webpack/scenes/AlternateContentSources/Create/Steps/AcsUrlPaths.js +1 -1
  250. data/webpack/scenes/AlternateContentSources/Details/EditModals/ACSEditCredentials.js +10 -5
  251. data/webpack/scenes/AlternateContentSources/Details/EditModals/ACSEditProducts.js +8 -3
  252. data/webpack/scenes/AlternateContentSources/Details/EditModals/ACSEditSmartProxies.js +8 -3
  253. data/webpack/scenes/AlternateContentSources/Details/EditModals/ACSEditURLPaths.js +1 -1
  254. data/webpack/scenes/AlternateContentSources/Details/__tests__/ACSEdits.test.js +2 -2
  255. data/webpack/scenes/AlternateContentSources/MainTable/ACSTable.js +1 -1
  256. data/webpack/scenes/ContentViews/Details/ComponentContentViews/ComponentContentViewAddModal.js +37 -29
  257. data/webpack/scenes/ContentViews/Details/ComponentContentViews/ComponentContentViewBulkAddModal.js +53 -37
  258. data/webpack/scenes/ContentViews/Details/ComponentContentViews/ContentViewComponents.js +7 -0
  259. data/webpack/scenes/ContentViews/Details/ComponentContentViews/__tests__/contentViewComponents.fixtures.json +15 -6
  260. data/webpack/scenes/ContentViews/Details/ComponentContentViews/__tests__/contentViewComponents.test.js +6 -5
  261. data/webpack/scenes/ContentViews/Details/ComponentContentViews/__tests__/publishedContentViewDetails.fixtures.json +43 -197
  262. data/webpack/scenes/ContentViews/Details/Filters/CVErrataDateFilterContent.js +1 -1
  263. data/webpack/scenes/ContentViews/Details/Filters/Rules/Package/AddEditPackageRuleModal.js +1 -1
  264. data/webpack/scenes/ContentViews/Details/Promote/ContentViewVersionPromote.js +2 -2
  265. data/webpack/scenes/ContentViews/Details/Versions/Compare/CVVersionCompareConfig.js +1 -1
  266. data/webpack/scenes/ContentViews/Details/Versions/__tests__/contentViewVersions.fixtures.json +0 -98
  267. data/webpack/scenes/ContentViews/Details/Versions/__tests__/contentViewVersions.test.js +103 -1
  268. data/webpack/scenes/ContentViews/Details/Versions/__tests__/contentViewVersionsLatestEnvironment.fixtures.json +634 -0
  269. data/webpack/scenes/ContentViews/components/ContentViewSelect/helpers.js +1 -1
  270. data/webpack/scenes/Hosts/ChangeContentSource/actions.js +14 -12
  271. data/webpack/scenes/Hosts/ChangeContentSource/components/ContentSourceForm.js +45 -6
  272. data/webpack/scenes/Hosts/ChangeContentSource/components/ContentSourceTemplate.js +42 -7
  273. data/webpack/scenes/Hosts/ChangeContentSource/index.js +37 -10
  274. data/webpack/scenes/Hosts/ChangeContentSource/styles.scss +5 -0
  275. data/webpack/scenes/RedHatRepositories/__tests__/__snapshots__/RedHatRepositoriesPage.test.js.snap +0 -8
  276. data/webpack/scenes/RedHatRepositories/index.scss +1 -1
  277. data/webpack/scenes/Subscriptions/Manifest/ManageManifestModal.js +2 -2
  278. data/webpack/scenes/Subscriptions/__tests__/__snapshots__/SubscriptionsPage.test.js.snap +0 -8
  279. metadata +85 -80
  280. data/app/lib/actions/katello/agent/dispatch_history_presenter.rb +0 -64
  281. data/app/lib/actions/katello/agent_action.rb +0 -119
  282. data/app/lib/actions/katello/bulk_agent_action.rb +0 -34
  283. data/app/lib/actions/katello/host/erratum/applicable_errata_install.rb +0 -44
  284. data/app/lib/actions/katello/host/erratum/install.rb +0 -38
  285. data/app/lib/actions/katello/host/package/install.rb +0 -34
  286. data/app/lib/actions/katello/host/package/remove.rb +0 -48
  287. data/app/lib/actions/katello/host/package/update.rb +0 -42
  288. data/app/lib/actions/katello/host/package_group/install.rb +0 -30
  289. data/app/lib/actions/katello/host/package_group/remove.rb +0 -30
  290. data/app/lib/katello/agent/base_message.rb +0 -41
  291. data/app/lib/katello/agent/client_message_handler.rb +0 -69
  292. data/app/lib/katello/agent/connection.rb +0 -38
  293. data/app/lib/katello/agent/install_errata_message.rb +0 -25
  294. data/app/lib/katello/agent/install_package_group_message.rb +0 -25
  295. data/app/lib/katello/agent/install_package_message.rb +0 -28
  296. data/app/lib/katello/agent/remove_package_group_message.rb +0 -25
  297. data/app/lib/katello/agent/remove_package_message.rb +0 -28
  298. data/app/lib/katello/agent/update_package_message.rb +0 -33
  299. data/app/lib/katello/event_daemon/services/agent_event_receiver.rb +0 -59
  300. data/app/lib/katello/qpid/connection.rb +0 -149
  301. data/app/lib/katello/util/default_enablement_migrator.rb +0 -183
  302. data/app/models/katello/agent/dispatch_history.rb +0 -19
  303. data/app/models/katello/events/delete_host_agent_queue.rb +0 -19
  304. data/app/services/katello/agent/dispatcher.rb +0 -60
  305. data/app/views/foreman/job_templates/change_content_source.erb +0 -18
  306. data/app/views/katello/api/v2/sync/index.json.rabl +0 -1
  307. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/common/views/katello-agent-notice.html +0 -8
  308. data/lib/katello/tasks/upgrades/4.9/update_custom_products_enablement.rake +0 -13
@@ -35,9 +35,14 @@
35
35
  <tbody>
36
36
  <tr bst-table-row ng-repeat="activationKey in table.rows">
37
37
  <td bst-table-cell>
38
- <a ui-sref="activation-key.info({activationKeyId: activationKey.id})">
39
- {{ activationKey.name }}
40
- </a>
38
+ <span ng-switch="experimentalLabsSetting">
39
+ <a ng-switch-when="true" ng-href="/labs/activation_keys/{{activationKey.id}}">
40
+ {{ activationKey.name }}
41
+ </a>
42
+ <a ng-switch-when="false" ui-sref="activation-key.info({activationKeyId: activationKey.id})">
43
+ {{ activationKey.name }}
44
+ </a>
45
+ </span>
41
46
  <i class="fa fa-chevron-right selected-icon" ng-show="activationKey.selected"></i>
42
47
  </td>
43
48
  <td bst-table-cell>{{ activationKey | activationKeyConsumedFilter }}</td>
@@ -24,21 +24,6 @@
24
24
  angular.module('Bastion.content-hosts').controller('ContentHostsBulkErrataModalController',
25
25
  ['$scope', '$http', '$location', '$window', '$timeout', '$uibModalInstance', 'HostBulkAction', 'HostCollection', 'Nutupane', 'CurrentOrganization', 'Erratum', 'Notification', 'BastionConfig', 'hostIds', 'newHostDetailsUI',
26
26
  function ($scope, $http, $location, $window, $timeout, $uibModalInstance, HostBulkAction, HostCollection, Nutupane, CurrentOrganization, Erratum, Notification, BastionConfig, hostIds, newHostDetailsUI) {
27
- function installParams() {
28
- var params = hostIds;
29
- params['content_type'] = 'errata';
30
- params.content = _.map($scope.table.getSelected(), 'errata_id');
31
-
32
- if ($scope.nutupane.table.allResultsSelected) {
33
- params['install_all'] = true;
34
- } else {
35
- params['install_all'] = false;
36
- }
37
-
38
- params['organization_id'] = CurrentOrganization;
39
- return params;
40
- }
41
-
42
27
  function fetchErratum(errataId) {
43
28
  $scope.erratum = Erratum.get({id: errataId, 'organization_id': CurrentOrganization});
44
29
  }
@@ -55,8 +40,6 @@ angular.module('Bastion.content-hosts').controller('ContentHostsBulkErrataModalC
55
40
  $scope.table.initialLoad = false;
56
41
  $scope.initialLoad = true;
57
42
  $scope.remoteExecutionPresent = BastionConfig.remoteExecutionPresent;
58
- $scope.remoteExecutionByDefault = BastionConfig.remoteExecutionByDefault;
59
- $scope.katelloAgentPresent = BastionConfig.katelloAgentPresent;
60
43
  $scope.allHostsSelected = hostIds.allResultsSelected;
61
44
  $scope.hostToolingEnabled = BastionConfig.hostToolingEnabled;
62
45
  $scope.newHostDetailsUI = newHostDetailsUI;
@@ -92,43 +75,19 @@ angular.module('Bastion.content-hosts').controller('ContentHostsBulkErrataModalC
92
75
  };
93
76
 
94
77
  $scope.installErrata = function () {
95
- if ($scope.remoteExecutionByDefault) {
96
- $scope.installErrataViaRemoteExecution();
97
-
98
- } else {
99
- $scope.installErrataViaKatelloAgent(false);
100
- }
101
- };
102
-
103
- $scope.installErrataViaKatelloAgent = function () {
104
- var params = installParams();
105
- HostBulkAction.installContent(params,
106
- function (data) {
107
- $scope.nutupane.invalidate();
108
- $scope.ok();
109
- $scope.transitionTo('content-hosts.bulk-task', {taskId: data.id});
110
- },
111
- function (response) {
112
- angular.forEach(response.data.errors, function (error) {
113
- Notification.setErrorMessage(error);
114
- });
115
- });
78
+ $scope.installErrataViaRemoteExecution();
116
79
  };
117
80
 
118
81
  $scope.selectedErrataIds = function () {
119
- return $scope.nutupane.getAllSelectedResults('errata_id');
82
+ return $scope.table.getSelected();
120
83
  };
121
84
 
122
85
  $scope.installErrataViaRemoteExecution = function(customize) {
123
86
  var errataIds = $scope.selectedErrataIds();
124
- $scope.errataActionFormValues.bulkErrataIds = angular.toJson(errataIds);
125
87
 
126
88
  $scope.errataActionFormValues.remoteAction = 'errata_install';
89
+ $scope.errataActionFormValues.bulkErrataIds = angular.toJson(errataIds);
127
90
  $scope.errataActionFormValues.customize = customize;
128
-
129
- $timeout(function () {
130
- angular.element('#errataActionForm').submit();
131
- }, 0);
132
91
  };
133
92
 
134
93
  $scope.ok = function () {
@@ -34,7 +34,6 @@ angular.module('Bastion.content-hosts').controller('ContentHostsBulkModuleStream
34
34
  $scope.moduleStreamsNutupane.primaryOnly = true;
35
35
  $scope.table = $scope.moduleStreamsNutupane.table;
36
36
  $scope.remoteExecutionPresent = BastionConfig.remoteExecutionPresent;
37
- $scope.remoteExecutionByDefault = BastionConfig.remoteExecutionByDefault;
38
37
 
39
38
  $scope.moduleStreamActionFormValues = {
40
39
  authenticityToken: $window.AUTH_TOKEN.replace(/&quot;/g, ''),
@@ -21,32 +21,7 @@ angular.module('Bastion.content-hosts').controller('ContentHostsBulkPackagesModa
21
21
  ['$scope', '$location', '$timeout', '$window', '$uibModalInstance', 'HostBulkAction', 'CurrentOrganization', 'translate', 'Notification', 'BastionConfig', 'hostIds',
22
22
  function ($scope, $location, $timeout, $window, $uibModalInstance, HostBulkAction, CurrentOrganization, translate, Notification, BastionConfig, hostIds) {
23
23
 
24
- function successMessage(type) {
25
- var messages = {
26
- install: translate("Successfully scheduled package installation"),
27
- update: translate("Successfully scheduled package update"),
28
- remove: translate("Successfully scheduled package removal"),
29
- "update all": translate("Successfully scheduled an update of all packages")
30
- };
31
- return messages[type];
32
- }
33
-
34
- function installParams() {
35
- var params = hostIds;
36
- params['content_type'] = $scope.content.contentType;
37
- if ($scope.content.action === "update all") {
38
- params['update_all'] = true;
39
- params.content = null;
40
- } else {
41
- params.content = $scope.content.content.split(/ *, */);
42
- }
43
- params['organization_id'] = CurrentOrganization;
44
- return params;
45
- }
46
-
47
24
  $scope.remoteExecutionPresent = BastionConfig.remoteExecutionPresent;
48
- $scope.remoteExecutionByDefault = BastionConfig.remoteExecutionByDefault;
49
- $scope.katelloAgentPresent = BastionConfig.katelloAgentPresent;
50
25
  $scope.hostToolingEnabled = BastionConfig.hostToolingEnabled;
51
26
 
52
27
  $scope.packageActionFormValues = {
@@ -74,46 +49,7 @@ angular.module('Bastion.content-hosts').controller('ContentHostsBulkPackagesModa
74
49
  };
75
50
 
76
51
  $scope.performContentAction = function () {
77
- if ($scope.remoteExecutionByDefault) {
78
- $scope.performViaRemoteExecution();
79
- } else {
80
- $scope.performViaKatelloAgent();
81
- }
82
- };
83
-
84
- $scope.performViaKatelloAgent = function (action, actionInput) {
85
- var success, error, params;
86
-
87
- if (action) {
88
- $scope.content.action = action;
89
- }
90
-
91
- if (actionInput) {
92
- $scope.content.actionInput = actionInput;
93
- }
94
-
95
- $scope.content.confirm = false;
96
-
97
- success = function () {
98
- Notification.setSuccessMessage(successMessage($scope.content.action));
99
- };
100
-
101
- error = function (response) {
102
- angular.forEach(response.data.errors, function (responseError) {
103
- Notification.setErrorMessage(responseError);
104
- });
105
- };
106
-
107
- params = installParams();
108
- if ($scope.content.action === "install") {
109
- HostBulkAction.installContent(params, success, error);
110
- } else if ($scope.content.action === "update") {
111
- HostBulkAction.updateContent(params, success, error);
112
- } else if ($scope.content.action === "remove") {
113
- HostBulkAction.removeContent(params, success, error);
114
- } else if ($scope.content.action === "update all") {
115
- HostBulkAction.updateContent(params, success, error);
116
- }
52
+ $scope.performViaRemoteExecution();
117
53
  };
118
54
 
119
55
  $scope.performViaRemoteExecution = function(action, customize) {
@@ -27,11 +27,10 @@
27
27
  </div>
28
28
  </div>
29
29
 
30
- <div ng-show="katelloAgentPresent" data-extend-template="common/views/katello-agent-notice.html"></div>
31
30
  <div bst-feature-flag="remote_actions">
32
31
  <p bst-alert="warning" ng-hide="hostToolingEnabled">
33
32
  <span translate>
34
- Performing host package actions is disabled because Katello is not configured for Remote Execution or Katello Agent.
33
+ Performing host package actions is disabled because Katello is not configured for Remote Execution.
35
34
  </span>
36
35
  </p>
37
36
  </div>
@@ -58,7 +57,6 @@
58
57
  </button>
59
58
 
60
59
  <ul uib-dropdown-menu class="dropdown-menu-right" role="menu" aria-labelledby="use-remote-execution">
61
- <li ng-show="katelloAgentPresent" role="presentation"><a ng-click="installErrataViaKatelloAgent()" role="menuitem" translate>via Katello agent</a></li>
62
60
  <li role="presentation"><a ng-click="installErrataViaRemoteExecution(false)" role="menuitem" translate>via remote execution</a></li>
63
61
  <li role="presentation"><a ng-click="installErrataViaRemoteExecution(true)" role="menuitem" translate>via remote execution - customize first</a></li>
64
62
  </ul>
@@ -8,11 +8,10 @@
8
8
  </div>
9
9
  </div>
10
10
 
11
- <div ng-show="katelloAgentPresent" data-extend-template="common/views/katello-agent-notice.html"></div>
12
11
  <div bst-feature-flag="remote_actions">
13
12
  <p bst-alert="warning" ng-hide="hostToolingEnabled">
14
13
  <span translate>
15
- Performing host package actions is disabled because Katello is not configured for Remote Execution or Katello Agent.
14
+ Performing host package actions is disabled because Katello is not configured for Remote Execution.
16
15
  </span>
17
16
  </p>
18
17
  <p bst-alert="warning">
@@ -38,7 +37,6 @@
38
37
  <span class="caret"></span>
39
38
  </button>
40
39
  <ul uib-dropdown-menu role="menu" aria-labelledby="install-use-remote-execution">
41
- <li ng-show="katelloAgentPresent" role="presentation"><a ng-click="performViaKatelloAgent('update all', content)" role="menuitem" tabindex="-1" href="#" translate>via Katello Agent</a></li>
42
40
  <li role="presentation"><a ng-click="performViaRemoteExecution('update all', false)" role="menuitem" tabindex="-1" href="#" translate>via remote execution</a></li>
43
41
  <li role="presentation"><a ng-click="performViaRemoteExecution('update all', true)" role="menuitem" tabindex="-1" href="#" translate>via remote execution - customize first</a></li>
44
42
  </ul>
@@ -99,7 +97,6 @@
99
97
  <span class="caret"></span>
100
98
  </button>
101
99
  <ul uib-dropdown-menu role="menu" aria-labelledby="install-use-remote-execution">
102
- <li ng-show="katelloAgentPresent" role="presentation"><a ng-click="performViaKatelloAgent('install', content)" role="menuitem" tabindex="-1" href="#" translate>via Katello Agent</a></li>
103
100
  <li role="presentation"><a ng-click="performViaRemoteExecution('install', false)" role="menuitem" tabindex="-1" href="#" translate>via remote execution</a></li>
104
101
  <li role="presentation"><a ng-click="performViaRemoteExecution('install', true)" role="menuitem" tabindex="-1" href="#" translate>via remote execution - customize first</a></li>
105
102
  </ul>
@@ -121,7 +118,6 @@
121
118
  <span class="caret"></span>
122
119
  </button>
123
120
  <ul uib-dropdown-menu role="menu" aria-labelledby="update-use-remote-execution">
124
- <li ng-show="katelloAgentPresent" role="presentation"><a ng-click="performViaKatelloAgent('update', content)" role="menuitem" tabindex="-1" href="#" translate>via Katello Agent</a></li>
125
121
  <li role="presentation"><a ng-click="performViaRemoteExecution('update', false)" role="menuitem" tabindex="-1" href="#" translate>via remote execution</a></li>
126
122
  <li role="presentation"><a ng-click="performViaRemoteExecution('update', true)" role="menuitem" tabindex="-1" href="#" translate>via remote execution - customize first</a></li>
127
123
  </ul>
@@ -142,7 +138,6 @@
142
138
  <span class="caret"></span>
143
139
  </button>
144
140
  <ul uib-dropdown-menu role="menu" aria-labelledby="remove-use-remote-execution">
145
- <li ng-show="katelloAgentPresent" role="presentation"><a ng-click="performViaKatelloAgent('remove', content)" role="menuitem" tabindex="-1" href="#" translate>via Katello Agent</a></li>
146
141
  <li role="presentation"><a ng-click="performViaRemoteExecution('remove', false)" role="menuitem" tabindex="-1" href="#" translate>via remote execution</a></li>
147
142
  <li role="presentation"><a ng-click="performViaRemoteExecution('remove', true)" role="menuitem" tabindex="-1" href="#" translate>via remote execution - customize first</a></li>
148
143
  </ul>
@@ -30,7 +30,7 @@ angular.module('Bastion.content-hosts').controller('ContentHostDebsApplicableCon
30
30
  return $scope.getSelectedDebs().join(' ');
31
31
  };
32
32
 
33
- $scope.performDefaultUpdateAction = function () {
33
+ $scope.performRexUpdate = function () {
34
34
  $scope.performViaRemoteExecution('packageUpdate', $scope.getRemoteExecutionCommand(), false);
35
35
  };
36
36
 
@@ -42,8 +42,6 @@ angular.module('Bastion.content-hosts').controller('ContentHostErrataController'
42
42
  };
43
43
 
44
44
  $scope.remoteExecutionPresent = BastionConfig.remoteExecutionPresent;
45
- $scope.remoteExecutionByDefault = BastionConfig.remoteExecutionByDefault;
46
- $scope.katelloAgentPresent = BastionConfig.katelloAgentPresent;
47
45
  $scope.hostToolingEnabled = BastionConfig.hostToolingEnabled;
48
46
  $scope.errataActionFormValues = {
49
47
  authenticityToken: $window.AUTH_TOKEN.replace(/&quot;/g, '')
@@ -124,15 +122,6 @@ angular.module('Bastion.content-hosts').controller('ContentHostErrataController'
124
122
  return $scope.nutupane.getAllSelectedResults('errata_id');
125
123
  };
126
124
 
127
- $scope.performViaKatelloAgent = function () {
128
- var errataIds = $scope.selectedErrataIds();
129
- HostErratum.apply({id: $scope.host.id, 'bulk_errata_ids': angular.toJson(errataIds)},
130
- function (task) {
131
- $scope.table.selectAll(false);
132
- $scope.transitionTo('content-host.tasks.details', {taskId: task.id});
133
- });
134
- };
135
-
136
125
  $scope.performViaRemoteExecution = function(customize) {
137
126
  var errataIds = $scope.selectedErrataIds();
138
127
 
@@ -148,11 +137,7 @@ angular.module('Bastion.content-hosts').controller('ContentHostErrataController'
148
137
  };
149
138
 
150
139
  $scope.applySelected = function () {
151
- if ($scope.remoteExecutionByDefault) {
152
- $scope.performViaRemoteExecution(false);
153
- } else {
154
- $scope.performViaKatelloAgent();
155
- }
140
+ $scope.performViaRemoteExecution(false);
156
141
  };
157
142
 
158
143
  $scope.nutupane.enableSelectAllResults();
@@ -29,7 +29,6 @@ angular.module('Bastion.content-hosts').controller('ContentHostModuleStreamsCont
29
29
  $scope.table = $scope.moduleStreamsNutupane.table;
30
30
 
31
31
  $scope.remoteExecutionPresent = BastionConfig.remoteExecutionPresent;
32
- $scope.remoteExecutionByDefault = BastionConfig.remoteExecutionByDefault;
33
32
  $scope.moduleStreamActionFormValues = {
34
33
  authenticityToken: $window.AUTH_TOKEN.replace(/&quot;/g, ''),
35
34
  remoteAction: 'module_stream_action'
@@ -12,7 +12,6 @@
12
12
  angular.module('Bastion.content-hosts').controller('ContentHostPackagesActionsController',
13
13
  ['$scope', '$location', 'BastionConfig', function ($scope, $location, BastionConfig) {
14
14
  var packageName = $location.search().package_name;
15
- $scope.katelloAgentPresent = BastionConfig.katelloAgentPresent;
16
15
  $scope.remoteExecutionPresent = BastionConfig.remoteExecutionPresent;
17
16
  $scope.hostToolingEnabled = BastionConfig.hostToolingEnabled;
18
17
 
@@ -19,7 +19,6 @@ angular.module('Bastion.content-hosts').controller('ContentHostPackagesApplicabl
19
19
  function ($scope, $timeout, $window, Package, HostPackage, translate, Nutupane, BastionConfig) {
20
20
  var packagesNutupane, openEventInfo;
21
21
 
22
- $scope.katelloAgentPresent = BastionConfig.katelloAgentPresent;
23
22
  $scope.remoteExecutionPresent = BastionConfig.remoteExecutionPresent;
24
23
  $scope.hostToolingEnabled = BastionConfig.hostToolingEnabled;
25
24
 
@@ -35,16 +34,8 @@ angular.module('Bastion.content-hosts').controller('ContentHostPackagesApplicabl
35
34
  return $scope.getSelectedPackages().join(' ');
36
35
  };
37
36
 
38
- $scope.getKatelloAgentCommand = function () {
39
- return $scope.getSelectedPackages().join(',');
40
- };
41
-
42
- $scope.performDefaultUpdateAction = function () {
43
- if ($scope.remoteExecutionByDefault) {
44
- $scope.performViaRemoteExecution('packageUpdate', $scope.getRemoteExecutionCommand(), false);
45
- } else {
46
- $scope.performViaKatelloAgent('packageUpdate', $scope.getKatelloAgentCommand());
47
- }
37
+ $scope.performRexUpdate = function () {
38
+ $scope.performViaRemoteExecution('packageUpdate', $scope.getRemoteExecutionCommand(), false);
48
39
  };
49
40
 
50
41
  packagesNutupane = new Nutupane(Package, {'host_id': $scope.$stateParams.hostId, 'packages_restrict_upgradable': true});
@@ -18,8 +18,6 @@ angular.module('Bastion.content-hosts').controller('ContentHostPackagesInstalled
18
18
  function ($scope, $timeout, $window, HostPackage, translate, Nutupane, BastionConfig) {
19
19
  var packagesNutupane;
20
20
  $scope.controllerName = 'katello_host_installed_packages';
21
-
22
- $scope.katelloAgentPresent = BastionConfig.katelloAgentPresent;
23
21
  $scope.remoteExecutionPresent = BastionConfig.remoteExecutionPresent;
24
22
  $scope.hostToolingEnabled = BastionConfig.hostToolingEnabled;
25
23
 
@@ -16,8 +16,6 @@
16
16
  angular.module('Bastion.content-hosts').controller('ContentHostPackagesController',
17
17
  ['$scope', '$timeout', '$window', 'HostPackage', 'translate', 'Nutupane', 'BastionConfig', 'Notification',
18
18
  function ($scope, $timeout, $window, HostPackage, translate, Nutupane, BastionConfig, Notification) {
19
- var packageActions;
20
-
21
19
  $scope.openEventInfo = function (event) {
22
20
  // when the event has label defined, it means it comes
23
21
  // from foreman-tasks
@@ -38,7 +36,6 @@ angular.module('Bastion.content-hosts').controller('ContentHostPackagesControlle
38
36
 
39
37
  $scope.working = false;
40
38
  $scope.remoteExecutionPresent = BastionConfig.remoteExecutionPresent;
41
- $scope.remoteExecutionByDefault = BastionConfig.remoteExecutionByDefault;
42
39
  $scope.packageActionFormValues = {
43
40
  authenticityToken: $window.AUTH_TOKEN.replace(/&quot;/g, '')
44
41
  };
@@ -49,22 +46,7 @@ angular.module('Bastion.content-hosts').controller('ContentHostPackagesControlle
49
46
  };
50
47
 
51
48
  $scope.performPackageAction = function (actionType, term) {
52
- if ($scope.remoteExecutionByDefault) {
53
- $scope.performViaRemoteExecution(actionType, term, false);
54
- } else {
55
- $scope.performViaKatelloAgent(actionType, term);
56
- }
57
- };
58
-
59
- $scope.performViaKatelloAgent = function (actionType, term) {
60
- var terms = [];
61
- if (term === '') {
62
- packageActions.updateAll();
63
- } else {
64
- terms = term.split(/ *, */);
65
- packageActions[actionType](terms);
66
- }
67
- $scope.working = true;
49
+ $scope.performViaRemoteExecution(actionType, term, false);
68
50
  };
69
51
 
70
52
  $scope.performViaRemoteExecution = function(actionType, term, customize) {
@@ -80,25 +62,5 @@ angular.module('Bastion.content-hosts').controller('ContentHostPackagesControlle
80
62
  }, 0);
81
63
  };
82
64
 
83
- packageActions = {
84
- updateAll: function () {
85
- HostPackage.updateAll({id: $scope.host.id}, $scope.openEventInfo, $scope.errorHandler);
86
- },
87
- packageInstall: function (termList) {
88
- HostPackage.install({id: $scope.host.id, packages: termList}, $scope.openEventInfo, $scope.errorHandler);
89
- },
90
- packageUpdate: function (termList) {
91
- HostPackage.update({id: $scope.host.id, packages: termList}, $scope.openEventInfo, $scope.errorHandler);
92
- },
93
- packageRemove: function (termList) {
94
- HostPackage.remove({id: $scope.host.id, packages: termList}, $scope.openEventInfo, $scope.errorHandler);
95
- },
96
- groupInstall: function (termList) {
97
- HostPackage.install({id: $scope.host.id, groups: termList}, $scope.openEventInfo, $scope.errorHandler);
98
- },
99
- groupRemove: function (termList) {
100
- HostPackage.remove({id: $scope.host.id, groups: termList}, $scope.openEventInfo, $scope.errorHandler);
101
- }
102
- };
103
65
  }
104
66
  ]);
@@ -14,11 +14,11 @@
14
14
 
15
15
  <div data-block="list-actions" bst-feature-flag="remote_actions">
16
16
  <div ng-hide="denied('edit_hosts', host)" class="nutupane-actions fr">
17
- <form ng-submit="performDefaultUpdateAction()" role="form">
17
+ <form ng-submit="performRexUpdate()" role="form">
18
18
 
19
19
  <span uib-dropdown class="btn-group">
20
20
  <button class="btn btn-primary" type="button"
21
- ng-click="performDefaultUpdateAction()"
21
+ ng-click="performRexUpdate()"
22
22
  ng-hide="denied('edit_hosts', host)"
23
23
  ng-disabled="working || table.numSelected === 0"
24
24
  translate>
@@ -5,8 +5,6 @@
5
5
  <h3 translate ng-show="selectedErrataOption === 'current'">Installable Errata</h3>
6
6
  </div>
7
7
 
8
- <div ng-show="katelloAgentPresent" data-extend-template="common/views/katello-agent-notice.html"></div>
9
-
10
8
  <div ng-hide="host.hasContent()">
11
9
  <div data-extend-template="common/views/registration.html"></div>
12
10
  </div>
@@ -26,7 +24,7 @@
26
24
  <div bst-feature-flag="remote_actions">
27
25
  <p bst-alert="warning" ng-hide="hostToolingEnabled">
28
26
  <span translate>
29
- Performing host package actions is disabled because Katello is not configured for Remote Execution or Katello Agent.
27
+ Performing host package actions is disabled because Katello is not configured for remote execution.
30
28
  </span>
31
29
  </p>
32
30
  </div>
@@ -80,7 +78,6 @@
80
78
  <span class="caret"></span>
81
79
  </button>
82
80
  <ul uib-dropdown-menu role="menu" aria-labelledby="use-remote-execution">
83
- <li ng-show="katelloAgentPresent" role="presentation"><a ng-click="performViaKatelloAgent()" role="menuitem" tabindex="-1" href="#" translate>via Katello agent</a></li>
84
81
  <li role="presentation"><a ng-click="performViaRemoteExecution(false)" role="menuitem" tabindex="-1" href="#" translate>via remote execution</a></li>
85
82
  <li role="presentation"><a ng-click="performViaRemoteExecution(true)" role="menuitem" tabindex="-1" href="#" translate>via remote execution - customize first</a></li>
86
83
  </ul>
@@ -2,10 +2,9 @@
2
2
 
3
3
  <section ng-hide="denied('edit_hosts', host)" bst-feature-flag="remote_actions">
4
4
  <h4 translate>Package Actions</h4>
5
- <div ng-show="katelloAgentPresent" data-extend-template="common/views/katello-agent-notice.html"></div>
6
5
  <p bst-alert="warning" ng-hide="hostToolingEnabled">
7
6
  <span translate>
8
- Performing host package actions is disabled because Katello is not configured for Remote Execution or Katello Agent.
7
+ Performing host package actions is disabled because Katello is not configured for remote execution.
9
8
  </span>
10
9
  </p>
11
10
  <p bst-alert="warning">
@@ -49,7 +48,6 @@
49
48
  <span class="caret"></span>
50
49
  </button>
51
50
  <ul uib-dropdown-menu role="menu" aria-labelledby="use-remote-execution">
52
- <li ng-show="katelloAgentPresent" role="presentation"><a ng-click="performViaKatelloAgent(packageAction.actionType, packageAction.term)" role="menuitem" tabindex="-1" href="#" translate>via Katello agent</a></li>
53
51
  <li role="presentation"><a ng-click="performViaRemoteExecution(packageAction.actionType, packageAction.term, false)" role="menuitem" tabindex="-1" href="#" translate>via remote execution</a></li>
54
52
  <li role="presentation"><a ng-click="performViaRemoteExecution(packageAction.actionType, packageAction.term, true)" role="menuitem" tabindex="-1" href="#" translate>via remote execution - customize first</a></li>
55
53
  </ul>
@@ -60,7 +58,7 @@
60
58
  <div class="form-group">
61
59
  <button class="btn btn-default" type="button"
62
60
  translate
63
- ng-disabled="working || (!remoteExecutionPresent && !katelloAgentPresent)"
61
+ ng-disabled="working || !remoteExecutionPresent"
64
62
  ng-click="updateAll()">
65
63
  Update All Packages
66
64
  </button>
@@ -1,12 +1,11 @@
1
1
  <span page-title ng-model="host">{{ 'Packages for: ' | translate }} {{ host.name }}</span>
2
2
 
3
3
  <h3 translate>Applicable Packages</h3>
4
- <div ng-show="katelloAgentPresent" data-extend-template="common/views/katello-agent-notice.html"></div>
5
4
 
6
5
  <section ng-hide="denied('edit_hosts', host)" bst-feature-flag="remote_actions">
7
6
  <p bst-alert="warning" ng-hide="hostToolingEnabled">
8
7
  <span translate>
9
- Performing host package actions is disabled because Katello is not configured for Remote Execution or Katello Agent.
8
+ Performing host package actions is disabled because Katello is not configured for remote execution.
10
9
  </span>
11
10
  </p>
12
11
  </section>
@@ -23,11 +22,11 @@
23
22
 
24
23
  <div data-block="list-actions" bst-feature-flag="remote_actions">
25
24
  <div ng-hide="denied('edit_hosts', host)" class="nutupane-actions fr">
26
- <form ng-submit="performDefaultUpdateAction()" role="form">
25
+ <form ng-submit="performRexUpdate()" role="form">
27
26
 
28
27
  <span uib-dropdown class="btn-group">
29
28
  <button class="btn btn-primary" type="button"
30
- ng-click="performDefaultUpdateAction()"
29
+ ng-click="performRexUpdate()"
31
30
  ng-hide="denied('edit_hosts', host)"
32
31
  ng-disabled="working || table.numSelected === 0 || !hostToolingEnabled"
33
32
  translate>
@@ -40,7 +39,6 @@
40
39
  <span class="caret"></span>
41
40
  </button>
42
41
  <ul uib-dropdown-menu role="menu" aria-labelledby="use-remote-execution">
43
- <li ng-show="katelloAgentPresent" role="presentation"><a ng-click="performViaKatelloAgent('packageUpdate', getKatelloAgentCommand())" role="menuitem" tabindex="-1" href="#" translate>via Katello agent</a></li>
44
42
  <li role="presentation"><a ng-click="performViaRemoteExecution('packageUpdate', getRemoteExecutionCommand(), false)" role="menuitem" tabindex="-1" href="#" translate>via remote execution</a></li>
45
43
  <li role="presentation"><a ng-click="performViaRemoteExecution('packageUpdate', getRemoteExecutionCommand(), true)" role="menuitem" tabindex="-1" href="#" translate>via remote execution - customize first</a></li>
46
44
  </ul>
@@ -49,7 +47,7 @@
49
47
  <button class="btn btn-default"
50
48
  type="button"
51
49
  translate
52
- ng-disabled="working || (!remoteExecutionPresent && !katelloAgentPresent)"
50
+ ng-disabled="working || !remoteExecutionPresent"
53
51
  ng-click="updateAll()">
54
52
  Update All Packages
55
53
  </button>
@@ -2,12 +2,10 @@
2
2
 
3
3
  <h3 translate>Installed Packages</h3>
4
4
 
5
- <div ng-show="katelloAgentPresent" data-extend-template="common/views/katello-agent-notice.html"></div>
6
-
7
5
  <section ng-hide="denied('edit_hosts', host)" bst-feature-flag="remote_actions">
8
6
  <p bst-alert="warning" ng-hide="hostToolingEnabled">
9
7
  <span translate>
10
- Performing host package actions is disabled because Katello is not configured for Remote Execution or Katello Agent.
8
+ Performing host package actions is disabled because Katello is not configured for remote execution.
11
9
  </span>
12
10
  </p>
13
11
  </section>
@@ -51,20 +51,6 @@
51
51
  </button>
52
52
  </dd>
53
53
 
54
- <dt bst-feature-flag="remote_actions" ng-show="katelloAgentPresent">
55
- <span translate>Katello Agent</span>
56
- </dt>
57
- <dd bst-feature-flag="remote_actions" ng-show="katelloAgentPresent">
58
- <span ng-show="host.content_facet_attributes.katello_agent_installed">
59
- <span class="{{ getHostStatusIcon(0) }}"></span>
60
- <span translate>Installed</span>
61
- </span>
62
- <span ng-hide="host.content_facet_attributes.katello_agent_installed">
63
- <span class="{{ getHostStatusIcon(1) }}"></span>
64
- <span translate>Not installed</span>
65
- </span>
66
- </dd>
67
-
68
54
  <dt ng-show="host.subscription_facet_attributes.virtual_guests" translate>Virtual Guests</dt>
69
55
  <dd ng-show="host.subscription_facet_attributes.virtual_guests">
70
56
  <a ng-href="/content_hosts?search={{virtualGuestIds(host)}}"
@@ -43,7 +43,6 @@ angular.module('Bastion.errata').controller('ApplyErrataController',
43
43
  $scope.applyingErrata = false;
44
44
 
45
45
  $scope.remoteExecutionPresent = BastionConfig.remoteExecutionPresent;
46
- $scope.remoteExecutionByDefault = BastionConfig.remoteExecutionByDefault;
47
46
  $scope.errataActionFormValues = {
48
47
  authenticityToken: $window.AUTH_TOKEN.replace(/&quot;/g, ''),
49
48
  errata: IncrementalUpdate.getErrataIds().join(','),
@@ -144,7 +143,7 @@ angular.module('Bastion.errata').controller('ApplyErrataController',
144
143
  $scope.confirmApply = function() {
145
144
  $scope.applyingErrata = true;
146
145
  if ($scope.updates.length === 0) {
147
- if ($scope.remoteExecutionPresent && $scope.remoteExecutionByDefault) {
146
+ if ($scope.remoteExecutionPresent) {
148
147
  angular.element('#errataActionForm').submit();
149
148
  } else {
150
149
  applyErrata();
@@ -11,7 +11,8 @@
11
11
  var contentViewsNutupane,
12
12
  params = {
13
13
  'file_id': $scope.$stateParams.fileId,
14
- 'organization_id': CurrentOrganization
14
+ 'organization_id': CurrentOrganization,
15
+ 'nondefault': true
15
16
  };
16
17
 
17
18
  contentViewsNutupane = new Nutupane(ContentViewVersion, params);
@@ -24,7 +24,7 @@
24
24
  <tbody>
25
25
  <tr bst-table-row ng-repeat="version in table.rows">
26
26
  <td bst-table-cell>
27
- <a ui-sref="content-view.info({contentViewId: version.content_view.id})">
27
+ <a href="/content_views/{{version.content_view.id}}">
28
28
  {{ version.content_view.name }}
29
29
  </a>
30
30
  </td>