katello 4.9.2 → 4.10.0.rc1

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 (276) 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/hosts_bulk_actions_controller.rb +0 -77
  59. data/app/controllers/katello/api/v2/organizations_controller.rb +2 -1
  60. data/app/controllers/katello/api/v2/repositories_controller.rb +6 -10
  61. data/app/controllers/katello/api/v2/sync_controller.rb +0 -1
  62. data/app/controllers/katello/concerns/api/api_controller.rb +0 -10
  63. data/app/controllers/katello/concerns/hosts_controller_extensions.rb +1 -1
  64. data/app/lib/actions/katello/alternate_content_source/update.rb +1 -1
  65. data/app/lib/actions/katello/content_view/capsule_sync.rb +1 -1
  66. data/app/lib/actions/katello/content_view/incremental_updates.rb +3 -9
  67. data/app/lib/actions/katello/content_view_version/republish_repositories.rb +8 -2
  68. data/app/lib/actions/katello/repository/capsule_sync.rb +1 -1
  69. data/app/lib/actions/katello/repository/update_metadata_sync.rb +1 -1
  70. data/app/lib/katello/concerns/base_template_scope_extensions.rb +4 -9
  71. data/app/lib/katello/resources/cdn.rb +4 -0
  72. data/app/lib/katello/validators/alternate_content_source_products_validator.rb +1 -1
  73. data/app/models/katello/cdn_configuration.rb +4 -0
  74. data/app/models/katello/concerns/host_managed_extensions.rb +2 -1
  75. data/app/models/katello/content_view.rb +5 -1
  76. data/app/models/katello/content_view_component.rb +1 -1
  77. data/app/models/katello/content_view_version.rb +4 -0
  78. data/app/models/katello/host/content_facet.rb +4 -5
  79. data/app/models/katello/ping.rb +0 -19
  80. data/app/models/katello/repository.rb +5 -1
  81. data/app/models/katello/root_repository.rb +2 -8
  82. data/app/services/katello/applicability/applicable_content_helper.rb +2 -2
  83. data/app/services/katello/registration_manager.rb +2 -12
  84. data/app/views/foreman/job_templates/configure_host_for_new_content_source.erb +25 -0
  85. data/app/views/katello/api/v2/capsule_content/sync_status.json.rabl +1 -1
  86. data/app/views/katello/api/v2/content_facet/show.json.rabl +0 -12
  87. data/app/views/katello/api/v2/content_view_components/show.json.rabl +4 -1
  88. data/app/views/katello/api/v2/content_views/base.json.rabl +6 -2
  89. data/app/views/katello/api/v2/repositories/show.json.rabl +0 -1
  90. data/config/initializers/monkeys.rb +1 -0
  91. data/config/katello.yaml.example +0 -4
  92. data/config/routes/api/v2.rb +3 -0
  93. data/config/routes/overrides.rb +0 -11
  94. data/db/migrate/20230609155411_add_custom_cdn_auth_enabled_to_katello_cdn_configurations.rb +5 -0
  95. data/db/migrate/20230710190626_remove_relative_path_limit.rb +5 -0
  96. data/db/migrate/20230717150442_change_change_content_source_job_template_name.rb +20 -0
  97. data/db/migrate/20230828143236_remove_katello_agent_dispatch_history.rb +15 -0
  98. data/db/seeds.d/111-upgrade_tasks.rb +1 -2
  99. data/engines/bastion/app/views/bastion/layouts/assets.html.erb +1 -1
  100. data/engines/bastion_katello/README.md +2 -1
  101. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/activation-keys.controller.js +4 -2
  102. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/views/activation-key-associations-content-hosts.html +2 -2
  103. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/views/activation-keys.html +8 -3
  104. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/bulk/content-hosts-bulk-errata-modal.controller.js +3 -44
  105. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/bulk/content-hosts-bulk-module-streams-modal.controller.js +0 -1
  106. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/bulk/content-hosts-bulk-packages-modal.controller.js +1 -65
  107. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/bulk/views/content-hosts-bulk-errata-modal.html +1 -3
  108. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/bulk/views/content-hosts-bulk-packages-modal.html +1 -6
  109. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/content-host-debs-applicable.controller.js +1 -1
  110. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/content-host-errata.controller.js +1 -16
  111. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/content-host-module-streams.controller.js +0 -1
  112. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/content-host-packages-actions.controller.js +0 -1
  113. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/content-host-packages-applicable.controller.js +2 -11
  114. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/content-host-packages-installed.controller.js +0 -2
  115. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/content-host-packages.controller.js +1 -39
  116. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/views/content-host-debs-applicable.html +2 -2
  117. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/views/content-host-errata.html +1 -2
  118. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/views/content-host-packages-actions.html +2 -3
  119. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/views/content-host-packages-applicable.html +4 -5
  120. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/views/content-host-packages-installed.html +1 -1
  121. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content-hosts.controller.js +2 -4
  122. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/content-host-details.controller.js +2 -4
  123. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/views/content-host-details.html +0 -1
  124. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/views/content-host-info.html +0 -14
  125. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/views/content-hosts.html +0 -4
  126. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/errata/apply-errata.controller.js +1 -2
  127. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/files/details/file-content-views.controller.js +2 -1
  128. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/files/details/views/file-content-views.html +1 -1
  129. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/bastion_katello.pot +235 -521
  130. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/details/views/repository-manage-packages.html +13 -2
  131. data/engines/bastion_katello/lib/bastion_katello/engine.rb +1 -3
  132. data/lib/katello/engine.rb +0 -18
  133. data/lib/katello/permission_creator.rb +1 -1
  134. data/lib/katello/plugin.rb +0 -25
  135. data/lib/katello/version.rb +1 -1
  136. data/lib/monkeys/remove_hidden_distribution.rb +383 -0
  137. data/locale/action_names.rb +3 -1
  138. data/locale/bn/katello.po +130 -39
  139. data/locale/bn_IN/katello.po +130 -39
  140. data/locale/ca/katello.po +130 -39
  141. data/locale/cs/katello.po +130 -39
  142. data/locale/cs_CZ/katello.po +130 -39
  143. data/locale/de/LC_MESSAGES/katello.mo +0 -0
  144. data/locale/de/katello.po +134 -43
  145. data/locale/de_AT/katello.po +130 -39
  146. data/locale/de_DE/katello.po +130 -39
  147. data/locale/el/katello.po +130 -39
  148. data/locale/en/katello.po +130 -39
  149. data/locale/en_GB/katello.po +130 -39
  150. data/locale/en_US/katello.po +130 -39
  151. data/locale/es/LC_MESSAGES/katello.mo +0 -0
  152. data/locale/es/katello.po +133 -42
  153. data/locale/et_EE/katello.po +130 -39
  154. data/locale/fr/LC_MESSAGES/katello.mo +0 -0
  155. data/locale/fr/katello.po +138 -47
  156. data/locale/gl/katello.po +130 -39
  157. data/locale/gu/katello.po +130 -39
  158. data/locale/he_IL/katello.po +130 -39
  159. data/locale/hi/katello.po +130 -39
  160. data/locale/id/katello.po +130 -39
  161. data/locale/it/LC_MESSAGES/katello.mo +0 -0
  162. data/locale/it/katello.po +131 -40
  163. data/locale/ja/LC_MESSAGES/katello.mo +0 -0
  164. data/locale/ja/katello.po +138 -47
  165. data/locale/ka/LC_MESSAGES/katello.mo +0 -0
  166. data/locale/ka/katello.po +131 -40
  167. data/locale/katello.pot +805 -642
  168. data/locale/kn/katello.po +130 -39
  169. data/locale/ko/LC_MESSAGES/katello.mo +0 -0
  170. data/locale/ko/katello.po +131 -40
  171. data/locale/ml_IN/katello.po +130 -39
  172. data/locale/mr/katello.po +130 -39
  173. data/locale/nl_NL/katello.po +130 -39
  174. data/locale/or/katello.po +130 -39
  175. data/locale/pa/katello.po +130 -39
  176. data/locale/pl/katello.po +130 -39
  177. data/locale/pl_PL/katello.po +130 -39
  178. data/locale/pt/katello.po +130 -39
  179. data/locale/pt_BR/LC_MESSAGES/katello.mo +0 -0
  180. data/locale/pt_BR/katello.po +133 -42
  181. data/locale/ro/katello.po +130 -39
  182. data/locale/ro_RO/katello.po +130 -39
  183. data/locale/ru/LC_MESSAGES/katello.mo +0 -0
  184. data/locale/ru/katello.po +131 -40
  185. data/locale/sl/katello.po +130 -39
  186. data/locale/sv_SE/katello.po +130 -39
  187. data/locale/ta/katello.po +130 -39
  188. data/locale/ta_IN/katello.po +130 -39
  189. data/locale/te/katello.po +130 -39
  190. data/locale/tr/katello.po +130 -39
  191. data/locale/vi/katello.po +130 -39
  192. data/locale/vi_VN/katello.po +130 -39
  193. data/locale/zh/katello.po +130 -39
  194. data/locale/zh_CN/LC_MESSAGES/katello.mo +0 -0
  195. data/locale/zh_CN/katello.po +138 -47
  196. data/locale/zh_TW/LC_MESSAGES/katello.mo +0 -0
  197. data/locale/zh_TW/katello.po +131 -40
  198. data/webpack/components/extensions/HostDetails/Cards/HostCollectionsCard/HostCollectionsModal.js +0 -5
  199. data/webpack/components/extensions/HostDetails/Tabs/ContentTab/index.js +9 -3
  200. data/webpack/components/extensions/HostDetails/Tabs/ErrataTab/ErrataTab.js +7 -58
  201. data/webpack/components/extensions/HostDetails/Tabs/ErrataTab/HostErrataActions.js +2 -11
  202. data/webpack/components/extensions/HostDetails/Tabs/PackagesTab/HostPackagesActions.js +1 -40
  203. data/webpack/components/extensions/HostDetails/Tabs/PackagesTab/HostPackagesConstants.js +0 -3
  204. data/webpack/components/extensions/HostDetails/Tabs/PackagesTab/PackageInstallModal.js +5 -40
  205. data/webpack/components/extensions/HostDetails/Tabs/PackagesTab/PackagesTab.js +6 -65
  206. data/webpack/components/extensions/HostDetails/Tabs/RepositorySetsTab/RepositorySetsTab.js +5 -4
  207. data/webpack/components/extensions/HostDetails/Tabs/__tests__/errataTab.test.js +0 -212
  208. data/webpack/components/extensions/HostDetails/Tabs/__tests__/packageInstallModal.test.js +2 -157
  209. data/webpack/components/extensions/HostDetails/hostDetailsHelpers.js +0 -20
  210. data/webpack/containers/Application/config.js +5 -0
  211. data/webpack/scenes/ActivationKeys/Details/ActivationKeyActions.js +31 -0
  212. data/webpack/scenes/ActivationKeys/Details/ActivationKeyConstants.js +3 -0
  213. data/webpack/scenes/ActivationKeys/Details/ActivationKeyDetails.js +127 -0
  214. data/webpack/scenes/ActivationKeys/Details/ActivationKeyDetails.scss +37 -0
  215. data/webpack/scenes/ActivationKeys/Details/ActivationKeyDetailsSelectors.js +16 -0
  216. data/webpack/scenes/ActivationKeys/Details/__tests__/activationKeyDetails.test.js +117 -0
  217. data/webpack/scenes/ActivationKeys/Details/components/DeleteMenu.js +77 -0
  218. data/webpack/scenes/ActivationKeys/Details/components/DeleteModal.js +63 -0
  219. data/webpack/scenes/ActivationKeys/Details/components/EditModal.js +199 -0
  220. data/webpack/scenes/ActivationKeys/Details/index.js +3 -0
  221. data/webpack/scenes/AlternateContentSources/Details/EditModals/ACSEditCredentials.js +10 -5
  222. data/webpack/scenes/AlternateContentSources/Details/EditModals/ACSEditProducts.js +8 -3
  223. data/webpack/scenes/AlternateContentSources/Details/EditModals/ACSEditSmartProxies.js +8 -3
  224. data/webpack/scenes/AlternateContentSources/Details/__tests__/ACSEdits.test.js +2 -2
  225. data/webpack/scenes/AlternateContentSources/MainTable/ACSTable.js +1 -1
  226. data/webpack/scenes/ContentViews/Details/ComponentContentViews/ComponentContentViewAddModal.js +37 -29
  227. data/webpack/scenes/ContentViews/Details/ComponentContentViews/ComponentContentViewBulkAddModal.js +53 -37
  228. data/webpack/scenes/ContentViews/Details/ComponentContentViews/ContentViewComponents.js +7 -0
  229. data/webpack/scenes/ContentViews/Details/ComponentContentViews/__tests__/contentViewComponents.fixtures.json +15 -6
  230. data/webpack/scenes/ContentViews/Details/ComponentContentViews/__tests__/contentViewComponents.test.js +6 -5
  231. data/webpack/scenes/ContentViews/Details/ComponentContentViews/__tests__/publishedContentViewDetails.fixtures.json +43 -197
  232. data/webpack/scenes/ContentViews/Details/Filters/CVErrataDateFilterContent.js +1 -1
  233. data/webpack/scenes/ContentViews/Details/Filters/Rules/Package/AddEditPackageRuleModal.js +1 -1
  234. data/webpack/scenes/ContentViews/Details/Promote/ContentViewVersionPromote.js +2 -2
  235. data/webpack/scenes/ContentViews/Details/Versions/__tests__/contentViewVersions.fixtures.json +0 -98
  236. data/webpack/scenes/ContentViews/Details/Versions/__tests__/contentViewVersions.test.js +103 -1
  237. data/webpack/scenes/ContentViews/Details/Versions/__tests__/contentViewVersionsLatestEnvironment.fixtures.json +634 -0
  238. data/webpack/scenes/ContentViews/components/ContentViewSelect/helpers.js +1 -1
  239. data/webpack/scenes/Hosts/ChangeContentSource/actions.js +14 -12
  240. data/webpack/scenes/Hosts/ChangeContentSource/components/ContentSourceForm.js +45 -6
  241. data/webpack/scenes/Hosts/ChangeContentSource/components/ContentSourceTemplate.js +42 -7
  242. data/webpack/scenes/Hosts/ChangeContentSource/index.js +37 -10
  243. data/webpack/scenes/Hosts/ChangeContentSource/styles.scss +5 -0
  244. data/webpack/scenes/RedHatRepositories/index.scss +1 -1
  245. data/webpack/scenes/Subscriptions/Manifest/ManageManifestModal.js +2 -2
  246. metadata +85 -81
  247. data/app/lib/actions/katello/agent/dispatch_history_presenter.rb +0 -64
  248. data/app/lib/actions/katello/agent_action.rb +0 -120
  249. data/app/lib/actions/katello/bulk_agent_action.rb +0 -37
  250. data/app/lib/actions/katello/host/erratum/applicable_errata_install.rb +0 -44
  251. data/app/lib/actions/katello/host/erratum/install.rb +0 -38
  252. data/app/lib/actions/katello/host/package/install.rb +0 -34
  253. data/app/lib/actions/katello/host/package/remove.rb +0 -48
  254. data/app/lib/actions/katello/host/package/update.rb +0 -42
  255. data/app/lib/actions/katello/host/package_group/install.rb +0 -30
  256. data/app/lib/actions/katello/host/package_group/remove.rb +0 -30
  257. data/app/lib/katello/agent/base_message.rb +0 -41
  258. data/app/lib/katello/agent/client_message_handler.rb +0 -69
  259. data/app/lib/katello/agent/connection.rb +0 -38
  260. data/app/lib/katello/agent/install_errata_message.rb +0 -25
  261. data/app/lib/katello/agent/install_package_group_message.rb +0 -25
  262. data/app/lib/katello/agent/install_package_message.rb +0 -28
  263. data/app/lib/katello/agent/remove_package_group_message.rb +0 -25
  264. data/app/lib/katello/agent/remove_package_message.rb +0 -28
  265. data/app/lib/katello/agent/update_package_message.rb +0 -33
  266. data/app/lib/katello/event_daemon/services/agent_event_receiver.rb +0 -59
  267. data/app/lib/katello/qpid/connection.rb +0 -149
  268. data/app/lib/katello/util/default_enablement_migrator.rb +0 -183
  269. data/app/models/katello/agent/dispatch_history.rb +0 -19
  270. data/app/models/katello/events/delete_host_agent_queue.rb +0 -19
  271. data/app/services/katello/agent/dispatcher.rb +0 -60
  272. data/app/views/foreman/job_templates/change_content_source.erb +0 -18
  273. data/app/views/katello/api/v2/sync/index.json.rabl +0 -1
  274. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/common/views/katello-agent-notice.html +0 -8
  275. data/lib/katello/tasks/upgrades/4.9/update_custom_products_enablement.rake +0 -13
  276. data/webpack/components/extensions/HostDetails/common/KatelloAgentDeprecationAlert.js +0 -23
@@ -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>
@@ -24,7 +24,7 @@
24
24
  <div bst-feature-flag="remote_actions">
25
25
  <p bst-alert="warning" ng-hide="hostToolingEnabled">
26
26
  <span translate>
27
- 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.
28
28
  </span>
29
29
  </p>
30
30
  </div>
@@ -78,7 +78,6 @@
78
78
  <span class="caret"></span>
79
79
  </button>
80
80
  <ul uib-dropdown-menu role="menu" aria-labelledby="use-remote-execution">
81
- <li ng-show="katelloAgentPresent" role="presentation"><a ng-click="performViaKatelloAgent()" role="menuitem" tabindex="-1" href="#" translate>via Katello agent</a></li>
82
81
  <li role="presentation"><a ng-click="performViaRemoteExecution(false)" role="menuitem" tabindex="-1" href="#" translate>via remote execution</a></li>
83
82
  <li role="presentation"><a ng-click="performViaRemoteExecution(true)" role="menuitem" tabindex="-1" href="#" translate>via remote execution - customize first</a></li>
84
83
  </ul>
@@ -4,7 +4,7 @@
4
4
  <h4 translate>Package Actions</h4>
5
5
  <p bst-alert="warning" ng-hide="hostToolingEnabled">
6
6
  <span translate>
7
- 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.
8
8
  </span>
9
9
  </p>
10
10
  <p bst-alert="warning">
@@ -48,7 +48,6 @@
48
48
  <span class="caret"></span>
49
49
  </button>
50
50
  <ul uib-dropdown-menu role="menu" aria-labelledby="use-remote-execution">
51
- <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>
52
51
  <li role="presentation"><a ng-click="performViaRemoteExecution(packageAction.actionType, packageAction.term, false)" role="menuitem" tabindex="-1" href="#" translate>via remote execution</a></li>
53
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>
54
53
  </ul>
@@ -59,7 +58,7 @@
59
58
  <div class="form-group">
60
59
  <button class="btn btn-default" type="button"
61
60
  translate
62
- ng-disabled="working || (!remoteExecutionPresent && !katelloAgentPresent)"
61
+ ng-disabled="working || !remoteExecutionPresent"
63
62
  ng-click="updateAll()">
64
63
  Update All Packages
65
64
  </button>
@@ -5,7 +5,7 @@
5
5
  <section ng-hide="denied('edit_hosts', host)" bst-feature-flag="remote_actions">
6
6
  <p bst-alert="warning" ng-hide="hostToolingEnabled">
7
7
  <span translate>
8
- 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.
9
9
  </span>
10
10
  </p>
11
11
  </section>
@@ -22,11 +22,11 @@
22
22
 
23
23
  <div data-block="list-actions" bst-feature-flag="remote_actions">
24
24
  <div ng-hide="denied('edit_hosts', host)" class="nutupane-actions fr">
25
- <form ng-submit="performDefaultUpdateAction()" role="form">
25
+ <form ng-submit="performRexUpdate()" role="form">
26
26
 
27
27
  <span uib-dropdown class="btn-group">
28
28
  <button class="btn btn-primary" type="button"
29
- ng-click="performDefaultUpdateAction()"
29
+ ng-click="performRexUpdate()"
30
30
  ng-hide="denied('edit_hosts', host)"
31
31
  ng-disabled="working || table.numSelected === 0 || !hostToolingEnabled"
32
32
  translate>
@@ -39,7 +39,6 @@
39
39
  <span class="caret"></span>
40
40
  </button>
41
41
  <ul uib-dropdown-menu role="menu" aria-labelledby="use-remote-execution">
42
- <li ng-show="katelloAgentPresent" role="presentation"><a ng-click="performViaKatelloAgent('packageUpdate', getKatelloAgentCommand())" role="menuitem" tabindex="-1" href="#" translate>via Katello agent</a></li>
43
42
  <li role="presentation"><a ng-click="performViaRemoteExecution('packageUpdate', getRemoteExecutionCommand(), false)" role="menuitem" tabindex="-1" href="#" translate>via remote execution</a></li>
44
43
  <li role="presentation"><a ng-click="performViaRemoteExecution('packageUpdate', getRemoteExecutionCommand(), true)" role="menuitem" tabindex="-1" href="#" translate>via remote execution - customize first</a></li>
45
44
  </ul>
@@ -48,7 +47,7 @@
48
47
  <button class="btn btn-default"
49
48
  type="button"
50
49
  translate
51
- ng-disabled="working || (!remoteExecutionPresent && !katelloAgentPresent)"
50
+ ng-disabled="working || !remoteExecutionPresent"
52
51
  ng-click="updateAll()">
53
52
  Update All Packages
54
53
  </button>
@@ -5,7 +5,7 @@
5
5
  <section ng-hide="denied('edit_hosts', host)" bst-feature-flag="remote_actions">
6
6
  <p bst-alert="warning" ng-hide="hostToolingEnabled">
7
7
  <span translate>
8
- 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.
9
9
  </span>
10
10
  </p>
11
11
  </section>
@@ -15,7 +15,6 @@
15
15
  * @requires ContentHostsHelper
16
16
  * @requires simpleContentAccessEnabled
17
17
  * @requires newHostDetailsUI
18
- * @requires BastionConfig
19
18
  *
20
19
  * @description
21
20
  * Provides the functionality specific to Content Hosts for use with the Nutupane UI pattern.
@@ -23,8 +22,8 @@
23
22
  * within the table.
24
23
  */
25
24
  angular.module('Bastion.content-hosts').controller('ContentHostsController',
26
- ['$scope', '$q', '$state', '$location', '$uibModal', 'translate', 'Nutupane', 'Host', 'HostBulkAction', 'Notification', 'CurrentOrganization', 'ContentHostsHelper', 'ContentHostsModalHelper', '$httpParamSerializer', 'simpleContentAccessEnabled', 'newHostDetailsUI', 'BastionConfig',
27
- function ($scope, $q, $state, $location, $uibModal, translate, Nutupane, Host, HostBulkAction, Notification, CurrentOrganization, ContentHostsHelper, ContentHostsModalHelper, $httpParamSerializer, simpleContentAccessEnabled, newHostDetailsUI, BastionConfig) {
25
+ ['$scope', '$q', '$state', '$location', '$uibModal', 'translate', 'Nutupane', 'Host', 'HostBulkAction', 'Notification', 'CurrentOrganization', 'ContentHostsHelper', 'ContentHostsModalHelper', '$httpParamSerializer', 'simpleContentAccessEnabled', 'newHostDetailsUI',
26
+ function ($scope, $q, $state, $location, $uibModal, translate, Nutupane, Host, HostBulkAction, Notification, CurrentOrganization, ContentHostsHelper, ContentHostsModalHelper, $httpParamSerializer, simpleContentAccessEnabled, newHostDetailsUI) {
28
27
  var nutupane, params, query;
29
28
 
30
29
  if ($location.search().search) {
@@ -52,7 +51,6 @@ angular.module('Bastion.content-hosts').controller('ContentHostsController',
52
51
  $scope.nutupane = nutupane;
53
52
  $scope.simpleContentAccessEnabled = simpleContentAccessEnabled;
54
53
  $scope.newHostDetailsUI = newHostDetailsUI;
55
- $scope.katelloAgentPresent = BastionConfig.katelloAgentPresent;
56
54
 
57
55
  // @TODO begin hack necessary because of foreman API bug http://projects.theforeman.org/issues/13877
58
56
  $scope.table.sortBy = function (column) {
@@ -14,14 +14,13 @@
14
14
  * @requires deleteHostOnUnregister
15
15
  * @requires ContentHostsHelper
16
16
  * @requires simpleContentAccessEnabled
17
- * @requires BastionConfig
18
17
  *
19
18
  * @description
20
19
  * Provides the functionality for the content host details action pane.
21
20
  */
22
21
  angular.module('Bastion.content-hosts').controller('ContentHostDetailsController',
23
- ['$scope', '$state', '$q', '$location', 'translate', 'Host', 'HostSubscription', 'Organization', 'CurrentOrganization', 'Notification', 'MenuExpander', 'ApiErrorHandler', 'deleteHostOnUnregister', 'ContentHostsHelper', 'simpleContentAccessEnabled', 'BastionConfig',
24
- function ($scope, $state, $q, $location, translate, Host, HostSubscription, Organization, CurrentOrganization, Notification, MenuExpander, ApiErrorHandler, deleteHostOnUnregister, ContentHostsHelper, simpleContentAccessEnabled, BastionConfig) {
22
+ ['$scope', '$state', '$q', '$location', 'translate', 'Host', 'HostSubscription', 'Organization', 'CurrentOrganization', 'Notification', 'MenuExpander', 'ApiErrorHandler', 'deleteHostOnUnregister', 'ContentHostsHelper', 'simpleContentAccessEnabled',
23
+ function ($scope, $state, $q, $location, translate, Host, HostSubscription, Organization, CurrentOrganization, Notification, MenuExpander, ApiErrorHandler, deleteHostOnUnregister, ContentHostsHelper, simpleContentAccessEnabled) {
25
24
  $scope.menuExpander = MenuExpander;
26
25
 
27
26
  $scope.getHostStatusIcon = ContentHostsHelper.getHostStatusIcon;
@@ -37,7 +36,6 @@ angular.module('Bastion.content-hosts').controller('ContentHostDetailsController
37
36
 
38
37
  $scope.purposeAddonsCount = 0;
39
38
  $scope.simpleContentAccessEnabled = simpleContentAccessEnabled;
40
- $scope.katelloAgentPresent = BastionConfig.katelloAgentPresent;
41
39
 
42
40
  $scope.panel = {
43
41
  error: false,
@@ -54,7 +54,6 @@
54
54
 
55
55
  <nav data-block="navigation">
56
56
  <div content-access-mode-banner></div>
57
- <div ng-show="katelloAgentPresent" data-extend-template="common/views/katello-agent-notice.html"></div>
58
57
  <ul class="nav nav-tabs">
59
58
  <li ng-class="{active: isState('content-host.info')}">
60
59
  <a translate
@@ -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)}}"
@@ -66,10 +66,6 @@
66
66
  </span>
67
67
  </div>
68
68
 
69
- <span data-block="messages">
70
- <div ng-show="katelloAgentPresent" data-extend-template="common/views/katello-agent-notice.html"></div>
71
- </span>
72
-
73
69
  <span data-block="no-rows-message" translate>
74
70
  You currently don't have any Content Hosts, you can register one by clicking the button on the right and following the instructions.
75
71
  </span>
@@ -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>