katello 3.2.1.1 → 3.3.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 (486) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/katello/common/katello.global.js +1 -1
  3. data/app/assets/javascripts/katello/common/vendor.js +0 -1
  4. data/app/controllers/katello/api/rhsm/candlepin_proxies_controller.rb +20 -12
  5. data/app/controllers/katello/api/v2/activation_keys_controller.rb +2 -2
  6. data/app/controllers/katello/api/v2/api_controller.rb +4 -2
  7. data/app/controllers/katello/api/v2/capsule_content_controller.rb +14 -14
  8. data/app/controllers/katello/api/v2/capsules_controller.rb +3 -3
  9. data/app/controllers/katello/api/v2/content_view_components_controller.rb +100 -0
  10. data/app/controllers/katello/api/v2/content_view_filter_rules_controller.rb +3 -2
  11. data/app/controllers/katello/api/v2/content_view_puppet_modules_controller.rb +1 -1
  12. data/app/controllers/katello/api/v2/content_view_versions_controller.rb +19 -6
  13. data/app/controllers/katello/api/v2/content_views_controller.rb +3 -4
  14. data/app/controllers/katello/api/v2/environments_controller.rb +1 -1
  15. data/app/controllers/katello/api/v2/gpg_keys_controller.rb +1 -1
  16. data/app/controllers/katello/api/v2/host_collections_controller.rb +2 -2
  17. data/app/controllers/katello/api/v2/host_tracer_controller.rb +31 -0
  18. data/app/controllers/katello/api/v2/packages_controller.rb +53 -1
  19. data/app/controllers/katello/api/v2/products_controller.rb +1 -1
  20. data/app/controllers/katello/api/v2/puppet_modules_controller.rb +8 -0
  21. data/app/controllers/katello/api/v2/repositories_controller.rb +9 -4
  22. data/app/controllers/katello/api/v2/subscriptions_controller.rb +3 -6
  23. data/app/controllers/katello/api/v2/sync_plans_controller.rb +1 -1
  24. data/app/controllers/katello/application_controller.rb +0 -4
  25. data/app/controllers/katello/concerns/api/v2/repository_content_controller.rb +11 -3
  26. data/app/controllers/katello/concerns/api/v2/smart_proxies_controller_extensions.rb +35 -0
  27. data/app/controllers/katello/providers_controller.rb +2 -2
  28. data/app/controllers/katello/remote_execution_controller.rb +2 -0
  29. data/app/helpers/katello/concerns/foreman_docker/container_steps_helper_extensions.rb +2 -2
  30. data/app/helpers/katello/concerns/smart_proxy_helper_extensions.rb +23 -0
  31. data/app/lib/actions/candlepin/candlepin_listening_service.rb +8 -2
  32. data/app/lib/actions/candlepin/owner/destroy_imports.rb +17 -0
  33. data/app/lib/actions/candlepin/owner/import.rb +19 -0
  34. data/app/lib/actions/candlepin/owner/import_products.rb +16 -0
  35. data/app/lib/actions/candlepin/owner/upstream_export.rb +18 -0
  36. data/app/lib/actions/candlepin/owner/upstream_update.rb +17 -0
  37. data/app/lib/actions/katello/activation_key/update.rb +4 -0
  38. data/app/lib/actions/katello/capsule_content/configure_capsule.rb +2 -2
  39. data/app/lib/actions/katello/capsule_content/create_repos.rb +17 -6
  40. data/app/lib/actions/katello/capsule_content/sync.rb +12 -8
  41. data/app/lib/actions/katello/content_view/capsule_generate_and_sync.rb +1 -1
  42. data/app/lib/actions/katello/content_view/promote.rb +5 -62
  43. data/app/lib/actions/katello/content_view/promote_to_environment.rb +75 -0
  44. data/app/lib/actions/katello/content_view/publish.rb +11 -6
  45. data/app/lib/actions/katello/content_view/remove.rb +2 -0
  46. data/app/lib/actions/katello/content_view/remove_from_environment.rb +1 -0
  47. data/app/lib/actions/katello/content_view/remove_version.rb +1 -0
  48. data/app/lib/actions/katello/content_view_version/export.rb +1 -0
  49. data/app/lib/actions/katello/content_view_version/incremental_update.rb +82 -22
  50. data/app/lib/actions/katello/event_queue/monitor.rb +1 -1
  51. data/app/lib/actions/katello/host/attach_subscriptions.rb +2 -2
  52. data/app/lib/actions/katello/host/generate_applicability.rb +1 -1
  53. data/app/lib/actions/katello/host/package/install.rb +4 -0
  54. data/app/lib/actions/katello/host/package/remove.rb +4 -0
  55. data/app/lib/actions/katello/host/package/update.rb +4 -0
  56. data/app/lib/actions/katello/host/package_group/install.rb +4 -0
  57. data/app/lib/actions/katello/host/package_group/remove.rb +4 -0
  58. data/app/lib/actions/katello/host/recalculate_errata_status.rb +20 -0
  59. data/app/lib/actions/katello/host/remove_subscriptions.rb +5 -3
  60. data/app/lib/actions/katello/organization/create.rb +5 -1
  61. data/app/lib/actions/katello/organization/destroy.rb +1 -1
  62. data/app/lib/actions/katello/organization/manifest_delete.rb +27 -0
  63. data/app/lib/actions/katello/organization/manifest_import.rb +32 -0
  64. data/app/lib/actions/katello/organization/manifest_refresh.rb +41 -0
  65. data/app/lib/actions/katello/product/content_create.rb +15 -10
  66. data/app/lib/actions/katello/repository/capsule_generate_and_sync.rb +1 -1
  67. data/app/lib/actions/katello/repository/clone_to_environment.rb +1 -1
  68. data/app/lib/actions/katello/repository/clone_to_version.rb +17 -13
  69. data/app/lib/actions/katello/repository/create.rb +3 -1
  70. data/app/lib/actions/katello/repository/filtered_index_content.rb +4 -4
  71. data/app/lib/actions/katello/repository/import_applicability.rb +1 -1
  72. data/app/lib/actions/katello/repository/index_errata.rb +1 -1
  73. data/app/lib/actions/katello/repository/index_package_groups.rb +1 -1
  74. data/app/lib/actions/katello/repository/refresh_repository.rb +2 -1
  75. data/app/lib/actions/katello/sync_plan/add_products.rb +4 -0
  76. data/app/lib/actions/pulp/consumer.rb +19 -1
  77. data/app/lib/actions/pulp/repository/create.rb +10 -0
  78. data/app/lib/actions/pulp/repository/destroy.rb +3 -0
  79. data/app/lib/actions/pulp/repository/refresh.rb +1 -1
  80. data/app/lib/katello/http_resource.rb +6 -1
  81. data/app/lib/katello/resources/candlepin.rb +17 -5
  82. data/app/lib/katello/util/cdn_var_substitutor.rb +3 -3
  83. data/app/lib/katello/validators/content_view_erratum_filter_rule_validator.rb +2 -2
  84. data/app/models/katello/concerns/content_facet_host_extensions.rb +27 -3
  85. data/app/models/katello/concerns/environment_extensions.rb +1 -1
  86. data/app/models/katello/concerns/host_managed_extensions.rb +11 -14
  87. data/app/models/katello/concerns/location_extensions.rb +5 -0
  88. data/app/models/katello/concerns/pulp_database_unit.rb +31 -7
  89. data/app/models/katello/concerns/redhat_extensions.rb +1 -1
  90. data/app/models/katello/concerns/setting_extensions.rb +6 -0
  91. data/app/models/katello/concerns/smart_proxy_extensions.rb +18 -0
  92. data/app/models/katello/concerns/subscription_facet_host_extensions.rb +0 -2
  93. data/app/models/katello/content_facet_applicable_rpm.rb +8 -0
  94. data/app/models/katello/content_view.rb +103 -30
  95. data/app/models/katello/content_view_component.rb +64 -7
  96. data/app/models/katello/content_view_erratum_filter_rule.rb +8 -0
  97. data/app/models/katello/content_view_history.rb +14 -5
  98. data/app/models/katello/content_view_package_filter.rb +4 -0
  99. data/app/models/katello/content_view_version.rb +15 -3
  100. data/app/models/katello/docker_manifest.rb +1 -1
  101. data/app/models/katello/docker_tag.rb +16 -10
  102. data/app/models/katello/errata_status.rb +9 -3
  103. data/app/models/katello/erratum.rb +2 -1
  104. data/app/models/katello/events/{import_host_errata.rb → import_host_applicability.rb} +2 -2
  105. data/app/models/katello/glue.rb +0 -169
  106. data/app/models/katello/glue/candlepin/content.rb +2 -0
  107. data/app/models/katello/glue/candlepin/pool.rb +8 -5
  108. data/app/models/katello/glue/candlepin/product.rb +14 -3
  109. data/app/models/katello/glue/provider.rb +1 -170
  110. data/app/models/katello/glue/pulp/repo.rb +41 -233
  111. data/app/models/katello/glue/pulp/repos.rb +0 -21
  112. data/app/models/katello/host/content_facet.rb +96 -27
  113. data/app/models/katello/host/subscription_facet.rb +9 -6
  114. data/app/models/katello/host_tracer.rb +14 -0
  115. data/app/models/katello/input_template_renderer.rb +7 -0
  116. data/app/models/katello/kt_environment.rb +0 -16
  117. data/app/models/katello/ping.rb +62 -51
  118. data/app/models/katello/pool.rb +1 -1
  119. data/app/models/katello/repository.rb +12 -6
  120. data/app/models/katello/rhsm_fact_name.rb +4 -0
  121. data/app/models/katello/rpm.rb +41 -4
  122. data/app/models/setting/content.rb +12 -4
  123. data/app/overrides/add_smart_proxy_form.rb +5 -0
  124. data/app/services/katello/pulp/consumer.rb +6 -0
  125. data/app/services/katello/pulp/docker_tag.rb +7 -0
  126. data/app/services/katello/pulp/pulp_content_unit.rb +35 -8
  127. data/app/services/katello/pulp/server.rb +4 -0
  128. data/app/views/dashboard/_subscription_widget.html.erb +7 -6
  129. data/app/views/foreman/job_templates/restart_services.erb +17 -0
  130. data/app/views/foreman_docker/containers/steps/_katello_container.html.erb +2 -2
  131. data/app/views/katello/api/v2/content_facet/base.json.rabl +8 -0
  132. data/app/views/katello/api/v2/content_view_components/index.json.rabl +7 -0
  133. data/app/views/katello/api/v2/content_view_components/show.json.rabl +29 -0
  134. data/app/views/katello/api/v2/content_view_filter_rules/show.json.rabl +1 -0
  135. data/app/views/katello/api/v2/content_view_histories/show.json.rabl +1 -5
  136. data/app/views/katello/api/v2/content_views/base.json.rabl +12 -2
  137. data/app/views/katello/api/v2/docker_manifests/show.json.rabl +3 -5
  138. data/app/views/katello/api/v2/docker_tags/_base.json.rabl +2 -2
  139. data/app/views/katello/api/v2/host_tracer/base.json.rabl +6 -0
  140. data/app/views/katello/api/v2/host_tracer/index.json.rabl +7 -0
  141. data/app/views/katello/api/v2/packages/base.json.rabl +3 -0
  142. data/app/views/katello/api/v2/products/show.json.rabl +2 -6
  143. data/app/views/katello/api/v2/repositories/show.json.rabl +1 -0
  144. data/app/views/overrides/smart_proxies/_download_policy.erb +3 -0
  145. data/app/views/overrides/smart_proxies/_environment_tab_pane.html.erb +1 -1
  146. data/config/locales/compare_upstream.sh +0 -0
  147. data/config/locales/update.sh +0 -0
  148. data/config/routes.rb +1 -33
  149. data/config/routes/api/rhsm.rb +1 -1
  150. data/config/routes/api/v2.rb +13 -61
  151. data/config/routes/overrides.rb +3 -0
  152. data/db/migrate/20160520175340_add_host_applicable_package.rb +11 -0
  153. data/db/migrate/20160728005028_add_latest_version_to_content_view_component.rb +9 -0
  154. data/db/migrate/20160907231049_add_username_password_to_repository.rb +6 -0
  155. data/db/migrate/20160908234510_add_rpm_nvra.rb +10 -0
  156. data/db/migrate/20160923143611_add_action_to_content_view_histories.rb +34 -0
  157. data/db/migrate/20160930121245_content_view_force_puppet_env.rb +5 -0
  158. data/db/migrate/20160930150810_add_smart_proxy_download_policy.rb +14 -0
  159. data/db/migrate/20161003130853_add_architecture_to_katello_content_view_package_filter_rule.rb +5 -0
  160. data/db/migrate/20161014133811_move_content_view_version_description_to_histories.rb +41 -0
  161. data/db/migrate/20161031204903_add_tracer_support.rb +13 -0
  162. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/activation-keys.controller.js +1 -6
  163. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/activation-keys.module.js +0 -108
  164. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/activation-keys.routes.js +127 -0
  165. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/activation-key-add-host-collections.controller.js +7 -7
  166. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/activation-key-add-subscriptions.controller.js +4 -4
  167. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/activation-key-associations.controller.js +3 -3
  168. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/activation-key-copy.controller.js +30 -0
  169. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/activation-key-details.controller.js +1 -15
  170. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/activation-key-host-collections.controller.js +7 -7
  171. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/activation-key-product-details.controller.js +1 -1
  172. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/activation-key-subscriptions.controller.js +4 -4
  173. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/views/activation-key-add-subscriptions.html +11 -14
  174. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/views/activation-key-associations-content-hosts.html +5 -10
  175. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/views/activation-key-copy.html +17 -0
  176. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/views/activation-key-details.html +77 -107
  177. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/views/activation-key-host-collections-table.html +30 -48
  178. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/views/activation-key-host-collections.html +4 -5
  179. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/views/activation-key-info.html +96 -107
  180. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/views/activation-key-products.html +1 -1
  181. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/views/activation-key-subscriptions-list.html +17 -32
  182. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/views/activation-key-subscriptions.html +4 -4
  183. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/new/new-activation-key.controller.js +2 -3
  184. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/new/views/activation-key-new.html +65 -82
  185. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/views/activation-keys.html +34 -7
  186. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/bastion_katello.js +3 -3
  187. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/capsule-content/capsule-content.controller.js +4 -4
  188. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/capsule-content/sync-state.service.js +1 -1
  189. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/bulk/content-hosts-bulk-action-errata.controller.js +2 -2
  190. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/bulk/views/bulk-actions-errata.html +5 -5
  191. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/bulk/views/bulk-actions-host-collections.html +3 -3
  192. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/bulk/views/bulk-actions-packages.html +16 -16
  193. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/bulk/views/bulk-actions-subscriptions.html +1 -1
  194. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content-host-register.controller.js +2 -2
  195. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content-hosts.module.js +37 -7
  196. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/content-host-errata.controller.js +2 -0
  197. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/content-host-packages-actions.controller.js +14 -0
  198. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/content-host-packages-applicable.controller.js +51 -0
  199. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/content-host-packages-installed.controller.js +37 -0
  200. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/content-host-packages.controller.js +18 -44
  201. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/content-host-traces.controller.js +69 -0
  202. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/views/content-host-errata.html +14 -13
  203. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/views/content-host-packages-actions.html +67 -0
  204. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/views/content-host-packages-applicable.html +65 -0
  205. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/views/content-host-packages-installed.html +52 -0
  206. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/views/content-host-packages.html +9 -119
  207. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/views/content-host-traces.html +76 -0
  208. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/content-host-add-host-collections.controller.js +2 -2
  209. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/content-host-host-collections.controller.js +2 -2
  210. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/views/content-host-add-subscriptions.html +1 -1
  211. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/views/content-host-details.html +32 -8
  212. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/views/content-host-info.html +3 -3
  213. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/views/content-host-products.html +1 -1
  214. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/views/content-host-subscriptions-list.html +2 -2
  215. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/views/host-collections-table.html +1 -1
  216. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/views/content-hosts-table-full.html +15 -1
  217. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/views/content-hosts.html +4 -5
  218. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/content-view.factory.js +3 -3
  219. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/content-views.controller.js +0 -1
  220. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/content-views.routes.js +11 -6
  221. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/deletion/content-view-deletion.controller.js +1 -1
  222. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/deletion/content-view-version-deletion-activation-keys.controller.js +2 -2
  223. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/deletion/content-view-version-deletion-content-hosts.controller.js +1 -1
  224. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/deletion/content-view-version-deletion-environments.controller.js +3 -3
  225. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/deletion/content-view-version-deletion.controller.js +2 -2
  226. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/deletion/views/version-deletion-activation-keys.html +1 -1
  227. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/components/content-view-component.factory.js +32 -0
  228. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/{content-view-composite-available-content-views.controller.js → components/content-view-composite-available-content-views.controller.js} +21 -22
  229. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/components/content-view-composite-content-views-list.controller.js +66 -0
  230. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/{views → components/views}/content-view-composite-available-content-views.html +18 -18
  231. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/components/views/content-view-composite-content-views-list.html +86 -0
  232. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/{views → components/views}/content-view-composite.html +4 -4
  233. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/content-view-details.controller.js +30 -8
  234. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/content-view-promotion.controller.js +7 -4
  235. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/content-view-repositories.service.js +2 -2
  236. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/filter-repositories.controller.js +2 -2
  237. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/package-filter.controller.js +12 -1
  238. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/views/date-type-errata-filter.html +1 -2
  239. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/views/date-type-errata.html +2 -2
  240. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/views/errata-filter-details.html +6 -4
  241. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/views/filter-repositories.html +3 -3
  242. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/views/filters.html +1 -1
  243. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/views/new-filter.html +1 -1
  244. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/views/package-filter-details.html +16 -1
  245. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/histories/content-view-history.controller.js +2 -0
  246. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/histories/views/content-view-history.html +1 -1
  247. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/puppet-modules/views/content-view-puppet-module-names.html +2 -3
  248. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/puppet-modules/views/content-view-puppet-modules.html +1 -1
  249. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/views/content-view-details.html +5 -5
  250. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/views/content-view-docker-repositories.html +7 -4
  251. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/views/content-view-file-repositories.html +3 -0
  252. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/views/content-view-info.html +14 -0
  253. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/views/content-view-ostree-repositories.html +5 -2
  254. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/views/content-view-promotion.html +11 -0
  255. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/views/content-view-publish.html +1 -1
  256. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/views/content-view-repositories.html +8 -5
  257. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/views/content-view-versions.html +3 -7
  258. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/new/content-view-new.controller.js +1 -1
  259. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/new/views/content-view-new.html +1 -1
  260. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/views/content-views.html +1 -1
  261. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/docker-tags/details/{docker-tags-details.controller.js → docker-tag-details.controller.js} +5 -3
  262. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/docker-tags/details/views/docker-tag-details.html +32 -0
  263. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/docker-tags/details/views/docker-tag-environments.html +50 -0
  264. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/docker-tags/details/views/docker-tag-info.html +42 -0
  265. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/docker-tags/docker-tags.controller.js +1 -1
  266. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/docker-tags/docker-tags.routes.js +33 -18
  267. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/docker-tags/views/docker-tags.html +31 -6
  268. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/environments/details/environment.controller.js +12 -4
  269. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/environments/details/views/environment-content-views.html +1 -1
  270. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/environments/details/views/environment-docker.html +1 -1
  271. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/environments/details/views/environment-errata.html +1 -1
  272. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/environments/details/views/environment-ostree.html +1 -1
  273. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/environments/details/views/environment-packages.html +1 -1
  274. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/environments/details/views/environment-puppet-modules.html +1 -1
  275. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/environments/details/views/environment-repositories.html +1 -1
  276. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/environments/details/views/environment.html +53 -49
  277. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/environments/views/new-environment.html +1 -1
  278. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/errata/apply-errata.controller.js +2 -2
  279. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/errata/details/errata-content-hosts.controller.js +1 -1
  280. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/errata/details/errata-details-repositories.controller.js +3 -3
  281. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/errata/details/views/errata-details-content-hosts.html +1 -1
  282. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/errata/details/views/errata-details-repositories.html +3 -3
  283. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/errata/views/apply-errata-confirm.html +6 -2
  284. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/errata/views/apply-errata.html +4 -4
  285. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/errata/views/errata.html +4 -4
  286. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/gpg-keys/details/gpg-key-details.controller.js +1 -5
  287. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/gpg-keys/details/gpg-key-products.controller.js +35 -0
  288. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/gpg-keys/details/gpg-key-repositories.controller.js +35 -0
  289. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/gpg-keys/details/views/gpg-key-details.html +40 -48
  290. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/gpg-keys/details/views/gpg-key-info.html +34 -22
  291. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/gpg-keys/details/views/gpg-key-products.html +30 -29
  292. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/gpg-keys/details/views/gpg-key-repositories.html +30 -34
  293. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/gpg-keys/gpg-key.factory.js +21 -1
  294. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/gpg-keys/gpg-keys.controller.js +0 -19
  295. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/gpg-keys/gpg-keys.module.js +0 -76
  296. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/gpg-keys/gpg-keys.routes.js +76 -0
  297. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/gpg-keys/new/new-gpg-key.controller.js +10 -11
  298. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/gpg-keys/new/views/new-gpg-key.html +44 -0
  299. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/gpg-keys/views/gpg-keys.html +36 -10
  300. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/details/host-collection-add-hosts.controller.js +4 -4
  301. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/details/host-collection-copy.controller.js +30 -0
  302. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/details/host-collection-details.controller.js +10 -17
  303. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/details/host-collection-hosts.controller.js +3 -3
  304. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/details/views/host-collection-add-hosts.html +7 -9
  305. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/details/views/host-collection-copy.html +17 -0
  306. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/details/views/host-collection-details.html +55 -94
  307. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/details/views/host-collection-hosts-list.html +8 -10
  308. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/details/views/host-collection-hosts.html +4 -4
  309. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/details/views/host-collection-info.html +91 -58
  310. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/host-collections.controller.js +4 -12
  311. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/host-collections.module.js +0 -85
  312. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/host-collections.routes.js +80 -0
  313. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/new/host-collection-form.controller.js +1 -1
  314. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/new/new-host-collection.controller.js +22 -2
  315. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/new/views/new-host-collection.html +53 -0
  316. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/views/host-collections.html +36 -7
  317. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/hosts/host-package.factory.js +2 -1
  318. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/hosts/host-traces.factory.js +18 -0
  319. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/katello-features.run.js +4 -4
  320. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/organizations/fenced-pages.service.js +1 -0
  321. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/organizations/views/organization-selector.html +1 -1
  322. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/ostree-branches/details/ostree-branches-details-repositories.controller.js +3 -3
  323. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/ostree-branches/details/views/ostree-branches-details-repositories.html +1 -1
  324. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/packages/details/{package-details-repositories.controller.js → package-repositories.controller.js} +10 -10
  325. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/packages/details/{package-details.controller.js → package.controller.js} +9 -7
  326. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/packages/details/views/{packages-details-dependencies.html → package-dependencies.html} +0 -0
  327. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/packages/details/views/package-files.html +11 -0
  328. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/packages/details/views/package-info.html +81 -0
  329. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/packages/details/views/{packages-details-repositories.html → package-repositories.html} +10 -12
  330. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/packages/details/views/package.html +44 -0
  331. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/packages/package.factory.js +6 -0
  332. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/packages/packages.controller.js +18 -4
  333. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/packages/packages.routes.js +37 -35
  334. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/packages/views/packages.html +53 -8
  335. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/partials/sync-status.html +17 -19
  336. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/product-details-info.controller.js +3 -12
  337. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/product-details.controller.js +14 -8
  338. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/product-repositories.controller.js +30 -24
  339. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/{repositories → products/details/repositories}/details/repository-details-info.controller.js +4 -82
  340. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/{repositories → products/details/repositories}/details/repository-details-manage-content.controller.js +17 -9
  341. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/details/repository-details.controller.js +98 -0
  342. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/details/views/repository-details.html +78 -0
  343. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/details/views/repository-info.html +299 -0
  344. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/details/views/repository-manage-docker-manifests.html +71 -0
  345. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/details/views/repository-manage-ostree-branches.html +46 -0
  346. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/details/views/repository-manage-package-groups.html +18 -0
  347. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/details/views/repository-manage-packages.html +60 -0
  348. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/details/views/repository-manage-puppet-modules.html +68 -0
  349. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/details/views/repository-tasks.html +4 -0
  350. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/{repositories → products/details/repositories}/download-policy.service.js +0 -0
  351. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/{repositories → products/details/repositories}/new/new-repository.controller.js +27 -14
  352. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/{repositories/new/views/repository-new.html → products/details/repositories/new/views/new-repository.html} +31 -14
  353. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/{repositories → products/details/repositories}/repositories.module.js +1 -0
  354. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/repositories.routes.js +138 -0
  355. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/{repositories → products/details/repositories}/repository.factory.js +0 -0
  356. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/views/product-repositories.html +182 -0
  357. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/views/product-details.html +71 -57
  358. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/views/product-info.html +66 -85
  359. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/views/product-new-sync-plan.html +2 -0
  360. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/views/product-tasks.html +1 -1
  361. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/discovery/discovery-form.controller.js +3 -6
  362. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/discovery/discovery.controller.js +5 -3
  363. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/discovery/views/discovery-base.html +8 -13
  364. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/discovery/views/discovery-create.html +135 -144
  365. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/discovery/views/discovery.html +19 -20
  366. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/new/new-product.controller.js +1 -1
  367. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/new/product-form.controller.js +3 -4
  368. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/new/views/product-new-form.html +4 -8
  369. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/new/views/product-new.html +5 -19
  370. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/product-bulk-action.factory.js +19 -0
  371. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/product.factory.js +1 -21
  372. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/products-bulk-action.controller.js +93 -0
  373. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/products.controller.js +8 -12
  374. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/products.module.js +4 -240
  375. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/products.routes.js +132 -0
  376. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/views/products.html +97 -15
  377. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/puppet-modules/details/views/puppet-modules-details-repositories.html +1 -1
  378. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/puppet-modules/views/puppet-modules.html +1 -1
  379. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/details/{subscription-associations-activation-keys.controller.js → subscription-activation-keys.controller.js} +5 -3
  380. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/details/{subscription-associations-content-hosts.controller.js → subscription-content-hosts.controller.js} +5 -3
  381. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/details/views/{subscription-associations-activation-keys.html → subscription-activation-keys.html} +1 -1
  382. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/details/views/{subscription-associations-content-hosts.html → subscription-content-hosts.html} +0 -0
  383. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/details/views/subscription-details.html +40 -52
  384. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/details/views/subscription-info.html +72 -98
  385. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/details/views/subscription-products.html +1 -1
  386. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/manifest/manifest-details.controller.js +1 -1
  387. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/manifest/views/manifest-import.html +2 -2
  388. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/manifest/views/manifest.html +26 -41
  389. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/subscriptions.controller.js +7 -6
  390. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/subscriptions.module.js +0 -107
  391. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/subscriptions.routes.js +110 -0
  392. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/views/subscriptions.html +49 -8
  393. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/details/sync-plan-add-products.controller.js +15 -11
  394. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/details/sync-plan-details-info.controller.js +2 -2
  395. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/details/sync-plan-details.controller.js +32 -29
  396. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/details/sync-plan-products.controller.js +17 -12
  397. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/details/views/sync-plan-details.html +61 -54
  398. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/details/views/sync-plan-info.html +62 -65
  399. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/details/views/sync-plan-products.html +63 -7
  400. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/new/new-sync-plan.controller.js +3 -6
  401. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/new/views/new-sync-plan-form.html +19 -10
  402. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/new/views/new-sync-plan.html +7 -14
  403. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/sync-plan.factory.js +1 -3
  404. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/sync-plans.controller.js +4 -15
  405. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/sync-plans.module.js +2 -91
  406. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/sync-plans.routes.js +84 -0
  407. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/views/sync-plans.html +40 -8
  408. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/tasks/task-input-reduce.filter.js +1 -1
  409. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/tasks/task.factory.js +9 -2
  410. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/tasks/tasks-nutupane.factory.js +1 -1
  411. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/tasks/tasks-table.directive.js +1 -1
  412. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/tasks/views/task-details.html +1 -1
  413. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/tasks/views/tasks-table.html +1 -1
  414. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/tasks/views/user-tasks-table.html +1 -1
  415. data/engines/bastion_katello/app/assets/stylesheets/bastion_katello/bastion_katello.scss +3 -2
  416. data/engines/bastion_katello/app/assets/stylesheets/bastion_katello/errata.scss +1 -1
  417. data/engines/bastion_katello/bastion_katello.gemspec +1 -1
  418. data/engines/bastion_katello/lib/bastion_katello/engine.rb +4 -1
  419. data/lib/katello/engine.rb +4 -13
  420. data/lib/katello/permissions/activation_key_permissions.rb +3 -2
  421. data/lib/katello/permissions/capsule_content_permissions.rb +2 -1
  422. data/lib/katello/permissions/content_view_permissions.rb +8 -6
  423. data/lib/katello/permissions/gpg_key_permissions.rb +1 -2
  424. data/lib/katello/permissions/host_collections_permissions.rb +2 -3
  425. data/lib/katello/permissions/host_permissions.rb +9 -2
  426. data/lib/katello/permissions/lifecycle_environment_permissions.rb +2 -3
  427. data/lib/katello/permissions/product_permissions.rb +10 -7
  428. data/lib/katello/permissions/roles_permissions.rb +5 -0
  429. data/lib/katello/permissions/sync_plan_permissions.rb +1 -2
  430. data/lib/katello/plugin.rb +28 -3
  431. data/lib/katello/tasks/import_applicability.rake +12 -0
  432. data/lib/katello/tasks/reimport.rake +7 -9
  433. data/lib/katello/tasks/repository.rake +105 -0
  434. data/lib/katello/tasks/unify_hosts.rake +73 -25
  435. data/lib/katello/version.rb +1 -1
  436. metadata +119 -81
  437. data/app/controllers/katello/api/v2/uebercerts_controller.rb +0 -17
  438. data/app/controllers/katello/organizations_controller.rb +0 -32
  439. data/app/lib/actions/katello/provider/manifest_delete.rb +0 -29
  440. data/app/lib/actions/katello/provider/manifest_import.rb +0 -34
  441. data/app/lib/actions/katello/provider/manifest_refresh.rb +0 -30
  442. data/app/lib/katello/glue/queue.rb +0 -69
  443. data/app/lib/katello/glue/task.rb +0 -44
  444. data/db/seeds.d/108-ensure_sync_notification.rb +0 -11
  445. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/views/activation-keys-table-collapsed.html +0 -19
  446. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/views/activation-keys-table-full.html +0 -24
  447. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/content-view-composite-content-views-list.controller.js +0 -63
  448. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/views/content-view-composite-content-views-list.html +0 -80
  449. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/docker-tags/details/views/docker-tags-details.html +0 -72
  450. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/docker-tags/views/docker-tags-table-collapsed.html +0 -19
  451. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/docker-tags/views/docker-tags-table-full.html +0 -25
  452. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/gpg-keys/new/views/gpg-key-new.html +0 -72
  453. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/gpg-keys/views/gpg-keys-table-collapsed.html +0 -17
  454. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/gpg-keys/views/gpg-keys-table-full.html +0 -24
  455. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/details/views/host-collection-actions.html +0 -36
  456. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/new/views/host-collection-new-form.html +0 -45
  457. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/new/views/host-collection-new.html +0 -21
  458. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/views/host-collections-table-collapsed.html +0 -19
  459. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/views/host-collections-table-full.html +0 -28
  460. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/packages/details/views/packages-details-files.html +0 -11
  461. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/packages/details/views/packages-details-info.html +0 -85
  462. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/packages/details/views/packages-details.html +0 -59
  463. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/packages/views/packages-table-collapsed.html +0 -19
  464. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/packages/views/packages-table-full.html +0 -22
  465. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/bulk/products-bulk-action-sync-plan.controller.js +0 -53
  466. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/bulk/products-bulk-action-sync.controller.js +0 -26
  467. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/bulk/products-bulk-action.controller.js +0 -64
  468. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/bulk/views/bulk-actions-sync-plan.html +0 -65
  469. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/bulk/views/bulk-actions-sync.html +0 -38
  470. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/bulk/views/bulk-actions.html +0 -78
  471. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/views/product-repositories.html +0 -190
  472. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/views/products-table-collapsed.html +0 -20
  473. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/views/products-table-full.html +0 -34
  474. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/repositories/details/views/repository-info.html +0 -390
  475. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/repositories/details/views/repository-manage-docker-manifests.html +0 -77
  476. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/repositories/details/views/repository-manage-ostree-branches.html +0 -60
  477. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/repositories/details/views/repository-manage-package-groups.html +0 -25
  478. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/repositories/details/views/repository-manage-packages.html +0 -72
  479. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/repositories/details/views/repository-manage-puppet-modules.html +0 -82
  480. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/views/subscriptions-table-collapsed.html +0 -26
  481. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/views/subscriptions-table-full.html +0 -34
  482. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/details/views/sync-plan-products-table.html +0 -80
  483. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/views/sync-plans-table-collapsed.html +0 -21
  484. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/views/sync-plans-table-full.html +0 -36
  485. data/engines/bastion_katello/app/assets/stylesheets/bastion_katello/gpg-keys.scss +0 -34
  486. data/lib/katello/tasks/regenerate_repo_metadata.rake +0 -18
@@ -17,7 +17,7 @@ angular.module('Bastion.tasks')
17
17
  }
18
18
  return _.reject(humanizedTaskInput, function (part) {
19
19
  if (part.length === 2) {
20
- return _.contains(skippedParts, part[0]);
20
+ return _.includes(skippedParts, part[0]);
21
21
  }
22
22
 
23
23
  return false;
@@ -22,7 +22,7 @@ angular.module('Bastion.tasks').factory('Task',
22
22
  ['BastionResource', '$timeout', '$log', '$q', 'CurrentOrganization',
23
23
  function (BastionResource, $timeout, $log, $q, CurrentOrganization) {
24
24
  var bulkSearchRunning = false, searchIdGenerator = 0,
25
- searchParamsById = {}, callbackById = {};
25
+ searchParamsById = {}, callbackById = {}, pollCount = 0, maxPollInterval = 10000;
26
26
 
27
27
  var resource = BastionResource('/katello/api/v2/tasks/:id/:action',
28
28
  {id: '@id', 'organization_id': CurrentOrganization}, {});
@@ -101,9 +101,16 @@ angular.module('Bastion.tasks').factory('Task',
101
101
 
102
102
  /*eslint no-use-before-define:0*/
103
103
  function schedulePoll() {
104
+ var pollTime;
105
+ pollCount = pollCount + 1;
106
+ pollTime = 1000 * pollCount;
107
+ if (pollTime > maxPollInterval) {
108
+ pollTime = maxPollInterval;
109
+ }
110
+
104
111
  $timeout(function () {
105
112
  updateProgress(true);
106
- }, 1500);
113
+ }, pollTime);
107
114
  }
108
115
 
109
116
  function ensureBulkSearchRunning() {
@@ -81,7 +81,7 @@ angular.module('Bastion.tasks').factory('TasksNutupane',
81
81
  });
82
82
 
83
83
  _.each(self.table.rows, function (row, i) {
84
- if (_.contains(taskIdsToDelete, row.id)) {
84
+ if (_.includes(taskIdsToDelete, row.id)) {
85
85
  rowsToDelete.push(i);
86
86
  }
87
87
  });
@@ -23,7 +23,7 @@
23
23
  * can be skipped because are obvious from the context the table is in
24
24
  * @example
25
25
  * <pre>
26
- <div tasks-table details-state="products.details.tasks.details"
26
+ <div tasks-table details-state="product.tasks.details"
27
27
  known-context="product,organization"
28
28
  resource-type="Katello::Product"
29
29
  resource-id="{{ product.id }}"/>
@@ -53,7 +53,7 @@
53
53
  </div>
54
54
 
55
55
  <div ng-class="{ active: (task.state === 'pending' || task.state === 'running') }" class="progress progress-striped">
56
- <span progressbar animate="false" value="task.progressbar.value" type="{{task.progressbar.type}}"></span>
56
+ <span uib-progressbar animate="false" value="task.progressbar.value" type="{{task.progressbar.type}}"></span>
57
57
  </div>
58
58
 
59
59
  <div class="detail" ng-show="task.humanized.output.length > 0">
@@ -16,7 +16,7 @@
16
16
  <tr bst-table-row ng-repeat="task in tasksTable.rows">
17
17
  <td bst-table-cell>
18
18
  <div ng-class="{ active: (task.state === 'pending' || task.state === 'running') }" class="progress progress-striped">
19
- <span progressbar animate="false" value="task.progressbar.value" type="{{task.progressbar.type}}"></span>
19
+ <span uib-progressbar animate="false" value="task.progressbar.value" type="{{task.progressbar.type}}"></span>
20
20
  </div>
21
21
  </td>
22
22
  <td bst-table-cell>
@@ -13,7 +13,7 @@
13
13
  <tr bst-table-row ng-repeat="task in tasksTable.rows">
14
14
  <td bst-table-cell>
15
15
  <div ng-class="{ active: (task.state === 'pending' || task.state === 'running') }" class="progress progress-striped">
16
- <span progressbar value="task.progressbar.value" type="{{task.progressbar.type}}"></span>
16
+ <span uib-progressbar value="task.progressbar.value" type="{{task.progressbar.type}}"></span>
17
17
  </div>
18
18
  </td>
19
19
  <td bst-table-cell>
@@ -1,6 +1,5 @@
1
1
  .bastion {
2
2
  @import "colors";
3
- @import "gpg-keys";
4
3
  @import "systems";
5
4
  @import "tasks";
6
5
  @import "environments";
@@ -25,5 +24,7 @@
25
24
  overflow: hidden;
26
25
  text-overflow: ellipsis;
27
26
  }
28
-
27
+ .preserve-newlines {
28
+ white-space: pre-line;
29
+ }
29
30
  }
@@ -1,7 +1,7 @@
1
1
  .aligned-errata-count .errata-count {
2
2
  display: inline-block;
3
3
  text-align: right;
4
- width: 55px;
4
+ width: 45px;
5
5
  }
6
6
 
7
7
  .footer-actions {
@@ -16,5 +16,5 @@ Gem::Specification.new do |s|
16
16
  s.files = Dir["{app,config,lib}/**/*"] + ["README"]
17
17
  s.test_files = Dir["test/**/*"]
18
18
 
19
- s.add_dependency "bastion", ">= 3.2.0", "< 4.0.0"
19
+ s.add_dependency "bastion", ">= 4.0.0", "< 5.0.0"
20
20
  end
@@ -10,6 +10,8 @@ module BastionKatello
10
10
  consumer_cert_rpm = 'katello-ca-consumer-latest.noarch.rpm'
11
11
  consumer_cert_rpm = SETTINGS[:katello][:consumer_cert_rpm] if SETTINGS.key?(:katello)
12
12
 
13
+ db_migrated = ActiveRecord::Base.connection.table_exists?(Setting.table_name)
14
+
13
15
  Bastion.register_plugin(
14
16
  :name => 'bastion_katello',
15
17
  :javascript => 'bastion_katello/bastion_katello',
@@ -34,9 +36,10 @@ module BastionKatello
34
36
  ),
35
37
  :config => {
36
38
  'consumerCertRPM' => consumer_cert_rpm,
39
+ 'defaultDownloadPolicy' => !Foreman.in_rake? && db_migrated && Setting['default_download_policy'],
37
40
  'remoteExecutionPresent' => ::Katello.with_remote_execution?,
38
41
  'remoteExecutionByDefault' => ::Katello.with_remote_execution? && !Foreman.in_rake?('db:migrate') &&
39
- Setting['remote_execution_by_default']
42
+ db_migrated && Setting['remote_execution_by_default']
40
43
  }
41
44
  )
42
45
  end
@@ -223,28 +223,18 @@ module Katello
223
223
 
224
224
  #facet extensions
225
225
  ::Host::Managed.send :include, ::Katello::Concerns::ContentFacetHostExtensions
226
- Facets.register(Katello::Host::ContentFacet, :content_facet) do
227
- api_view :list => 'katello/api/v2/content_facet/base_with_root', :single => 'katello/api/v2/content_facet/show'
228
- api_docs :content_facet_attributes, ::Katello::Api::V2::HostContentsController
229
- end
230
-
231
- Facets.register(Katello::Host::SubscriptionFacet, :subscription_facet) do
232
- api_view :list => 'katello/api/v2/subscription_facet/base_with_root', :single => 'katello/api/v2/subscription_facet/show'
233
- api_docs :subscription_facet_attributes, ::Katello::Api::V2::HostSubscriptionsController
234
- end
235
-
236
226
  ::Host::Managed.send :include, ::Katello::Concerns::SubscriptionFacetHostExtensions
237
- ::Host::Managed.send :include, ::Katello::Concerns::ContentFacetHostExtensions
238
227
 
239
228
  #Api controller extensions
240
229
  ::Api::V2::HostsController.send :include, Katello::Concerns::Api::V2::HostsControllerExtensions
241
230
  ::Api::V2::HostgroupsController.send :include, Katello::Concerns::Api::V2::HostgroupsControllerExtensions
231
+ ::Api::V2::SmartProxiesController.send :include, Katello::Concerns::Api::V2::SmartProxiesControllerExtensions
242
232
 
243
233
  ::SettingsController.class_eval do
244
234
  helper Katello::Concerns::SettingsHelperExtensions
245
235
  end
246
236
 
247
- Katello::EventQueue.register_event(Katello::Events::ImportHostErrata::EVENT_TYPE, Katello::Events::ImportHostErrata)
237
+ Katello::EventQueue.register_event(Katello::Events::ImportHostApplicability::EVENT_TYPE, Katello::Events::ImportHostApplicability)
248
238
 
249
239
  ::HostsController.class_eval do
250
240
  helper Katello::Concerns::HostsAndHostgroupsHelperExtensions
@@ -262,12 +252,13 @@ module Katello
262
252
  load "#{Katello::Engine.root}/lib/katello/tasks/jenkins.rake"
263
253
  load "#{Katello::Engine.root}/lib/katello/tasks/setup.rake"
264
254
  load "#{Katello::Engine.root}/lib/katello/tasks/delete_orphaned_content.rake"
265
- load "#{Katello::Engine.root}/lib/katello/tasks/regenerate_repo_metadata.rake"
255
+ load "#{Katello::Engine.root}/lib/katello/tasks/repository.rake"
266
256
  load "#{Katello::Engine.root}/lib/katello/tasks/reimport.rake"
267
257
  load "#{Katello::Engine.root}/lib/katello/tasks/rubocop.rake"
268
258
  load "#{Katello::Engine.root}/lib/katello/tasks/clean_backend_objects.rake"
269
259
  load "#{Katello::Engine.root}/lib/katello/tasks/unify_hosts.rake"
270
260
  load "#{Katello::Engine.root}/lib/katello/tasks/upgrade_check.rake"
261
+ load "#{Katello::Engine.root}/lib/katello/tasks/import_applicability.rake"
271
262
 
272
263
  load "#{Katello::Engine.root}/lib/katello/tasks/upgrades/2.4/import_package_groups.rake"
273
264
  load "#{Katello::Engine.root}/lib/katello/tasks/upgrades/2.4/import_rpms.rake"
@@ -3,8 +3,9 @@ require 'katello/plugin.rb'
3
3
  Foreman::Plugin.find(:katello).security_block :activation_keys do
4
4
  permission :view_activation_keys,
5
5
  {
6
- 'katello/activation_keys' => [:all, :index, :auto_complete_search],
7
- 'katello/api/v2/activation_keys' => [:index, :show, :available_host_collections, :available_releases, :product_content]
6
+ 'katello/activation_keys' => [:all, :index],
7
+ 'katello/api/v2/activation_keys' => [:index, :show, :available_host_collections, :available_releases,
8
+ :product_content, :auto_complete_search]
8
9
  },
9
10
  :resource_type => 'Katello::ActivationKey'
10
11
  permission :create_activation_keys,
@@ -4,7 +4,8 @@ Foreman::Plugin.find(:katello).security_block :capsule_content do
4
4
  permission :manage_capsule_content,
5
5
  {
6
6
  'katello/api/v2/capsule_content' => [:lifecycle_environments, :available_lifecycle_environments, :add_lifecycle_environment, :remove_lifecycle_environment,
7
- :sync, :sync_status, :cancel_sync]
7
+ :sync, :sync_status, :cancel_sync],
8
+ 'katello/api/v2/capsules' => [:index, :show]
8
9
  },
9
10
  :resource_type => 'SmartProxy'
10
11
 
@@ -3,13 +3,14 @@ require 'katello/plugin.rb'
3
3
  Foreman::Plugin.find(:katello).security_block :content_views do
4
4
  permission :view_content_views,
5
5
  {
6
- 'katello/api/v2/content_views' => [:index, :show, :available_puppet_modules,
6
+ 'katello/api/v2/content_views' => [:index, :show, :available_puppet_modules, :auto_complete_search,
7
7
  :available_puppet_module_names],
8
- 'katello/api/v2/content_view_filters' => [:index, :show],
8
+ 'katello/api/v2/content_view_filters' => [:index, :show, :auto_complete_search],
9
9
  'katello/api/v2/content_view_filter_rules' => [:index, :show],
10
- 'katello/api/v2/content_view_histories' => [:index],
11
- 'katello/api/v2/content_view_puppet_modules' => [:index, :show],
12
- 'katello/api/v2/content_view_versions' => [:index, :show],
10
+ 'katello/api/v2/content_view_histories' => [:index, :auto_complete_search],
11
+ 'katello/api/v2/content_view_puppet_modules' => [:index, :show, :auto_complete_search],
12
+ 'katello/api/v2/content_view_versions' => [:index, :show, :auto_complete_search],
13
+ 'katello/api/v2/content_view_components' => [:index, :show],
13
14
  'katello/api/v2/package_groups' => [:index, :show],
14
15
  'katello/api/v2/errata' => [:index, :show],
15
16
  'katello/api/v2/puppet_modules' => [:index, :show],
@@ -51,7 +52,8 @@ Foreman::Plugin.find(:katello).security_block :content_views do
51
52
  'katello/api/v2/content_views' => [:update],
52
53
  'katello/api/v2/content_view_filters' => [:create, :update, :destroy],
53
54
  'katello/api/v2/content_view_filter_rules' => [:create, :update, :destroy],
54
- 'katello/api/v2/content_view_puppet_modules' => [:create, :update, :destroy]
55
+ 'katello/api/v2/content_view_puppet_modules' => [:create, :update, :destroy],
56
+ 'katello/api/v2/content_view_components' => [:add_components, :remove_components, :update]
55
57
  },
56
58
  :resource_type => 'Katello::ContentView'
57
59
  permission :destroy_content_views,
@@ -3,8 +3,7 @@ require 'katello/plugin.rb'
3
3
  Foreman::Plugin.find(:katello).security_block :gpg_keys do
4
4
  permission :view_gpg_keys,
5
5
  {
6
- 'katello/gpg_keys' => [:all, :index, :auto_complete_search],
7
- 'katello/api/v2/gpg_keys' => [:index, :show]
6
+ 'katello/api/v2/gpg_keys' => [:index, :show, :auto_complete_search]
8
7
  },
9
8
  :resource_type => 'Katello::GpgKey'
10
9
  permission :create_gpg_keys,
@@ -3,8 +3,7 @@ require 'katello/plugin.rb'
3
3
  Foreman::Plugin.find(:katello).security_block :host_collections do
4
4
  permission :view_host_collections,
5
5
  {
6
- 'katello/api/v2/host_collections' => [:index, :show],
7
- 'katello/host_collections' => [:auto_complete_search]
6
+ 'katello/api/v2/host_collections' => [:index, :show, :auto_complete_search]
8
7
  },
9
8
  :resource_type => 'Katello::HostCollection'
10
9
  permission :create_host_collections,
@@ -14,7 +13,7 @@ Foreman::Plugin.find(:katello).security_block :host_collections do
14
13
  :resource_type => 'Katello::HostCollection'
15
14
  permission :edit_host_collections,
16
15
  {
17
- 'katello/api/v2/host_collections' => [:update, :add_systems, :remove_systems]
16
+ 'katello/api/v2/host_collections' => [:update, :add_hosts, :remove_hosts]
18
17
  },
19
18
  :resource_type => 'Katello::HostCollection'
20
19
  permission :destroy_host_collections,
@@ -8,19 +8,25 @@ Foreman::AccessControl.permission(:edit_hosts).actions.concat [
8
8
  'katello/api/v2/host_packages/upgrade',
9
9
  'katello/api/v2/host_packages/upgrade_all',
10
10
  'katello/api/v2/host_packages/remove',
11
+ 'katello/api/v2/host_packages/auto_complete_search',
11
12
  'katello/api/v2/host_subscriptions/auto_attach',
12
13
  'katello/api/v2/host_subscriptions/add_subscriptions',
13
14
  'katello/api/v2/host_subscriptions/remove_subscriptions',
15
+ 'katello/api/v2/host_subscriptions/available_release_versions',
14
16
  'katello/api/v2/host_subscriptions/content_override',
15
17
  'katello/api/v2/hosts_bulk_actions/bulk_add_host_collections',
16
18
  'katello/api/v2/hosts_bulk_actions/bulk_remove_host_collections',
17
19
  'katello/api/v2/hosts_bulk_actions/install_content',
18
20
  'katello/api/v2/hosts_bulk_actions/update_content',
19
21
  'katello/api/v2/hosts_bulk_actions/remove_content',
22
+ 'katello/api/v2/hosts_bulk_actions/add_subscriptions',
23
+ 'katello/api/v2/hosts_bulk_actions/remove_subscriptions',
24
+ 'katello/api/v2/hosts_bulk_actions/auto_attach',
20
25
  'katello/api/v2/hosts_bulk_actions/environment_content_view',
21
26
  'katello/api/rhsm/candlepin_proxies/upload_package_profile',
22
27
  'katello/api/rhsm/candlepin_proxies/regenerate_identity_certificates',
23
- 'katello/api/rhsm/candlepin_proxies/hypervisors_update'
28
+ 'katello/api/rhsm/candlepin_proxies/hypervisors_update',
29
+ 'katello/api/rhsm/candlepin_proxies/upload_tracer_profile'
24
30
  ]
25
31
 
26
32
  Foreman::AccessControl.permission(:view_hosts).actions.concat [
@@ -34,7 +40,8 @@ Foreman::AccessControl.permission(:view_hosts).actions.concat [
34
40
  'katello/api/v2/host_subscriptions/product_content',
35
41
  'katello/api/v2/hosts_bulk_actions/installable_errata',
36
42
  'katello/api/v2/hosts_bulk_actions/available_incremental_updates',
37
- 'katello/api/v2/host_packages/index'
43
+ 'katello/api/v2/host_packages/index',
44
+ 'katello/api/v2/host_tracer/index'
38
45
  ]
39
46
 
40
47
  Foreman::AccessControl.permission(:destroy_hosts).actions.concat [
@@ -3,9 +3,8 @@ require 'katello/plugin.rb'
3
3
  Foreman::Plugin.find(:katello).security_block :lifecycle_environments do
4
4
  permission :view_lifecycle_environments,
5
5
  {
6
- 'katello/api/v2/environments' => [:index, :show, :paths, :repositories],
7
- 'katello/api/rhsm/candlepin_proxies' => [:rhsm_index],
8
- 'katello/environments' => [:auto_complete_search]
6
+ 'katello/api/v2/environments' => [:index, :show, :paths, :repositories, :auto_complete_search],
7
+ 'katello/api/rhsm/candlepin_proxies' => [:rhsm_index]
9
8
  },
10
9
  :resource_type => 'Katello::KTEnvironment'
11
10
  permission :create_lifecycle_environments,
@@ -4,13 +4,16 @@ Foreman::Plugin.find(:katello).security_block :products do
4
4
  permission :view_products,
5
5
  {
6
6
  'katello/products' => [:auto_complete, :auto_complete_search],
7
- 'katello/api/v2/products' => [:index, :show],
8
- 'katello/api/v2/repositories' => [:index, :show],
9
- 'katello/api/v2/packages' => [:index, :show],
10
- 'katello/api/v2/distributions' => [:index, :show],
11
- 'katello/api/v2/package_groups' => [:index, :show],
12
- 'katello/api/v2/errata' => [:index, :show],
13
- 'katello/api/v2/puppet_modules' => [:index, :show],
7
+ 'katello/api/v2/products' => [:index, :show, :auto_complete_search],
8
+ 'katello/api/v2/repositories' => [:index, :show, :repository_types, :auto_complete_search, :cancel],
9
+ 'katello/api/v2/packages' => [:index, :show, :auto_complete_search, :auto_complete_name, :auto_complete_arch],
10
+ 'katello/api/v2/package_groups' => [:index, :show, :auto_complete_search],
11
+ 'katello/api/v2/docker_manifests' => [:index, :show, :auto_complete_search],
12
+ 'katello/api/v2/docker_tags' => [:index, :show, :auto_complete_search],
13
+ 'katello/api/v2/file_units' => [:index, :show, :auto_complete_search],
14
+ 'katello/api/v2/ostree_branches' => [:index, :show, :auto_complete_search],
15
+ 'katello/api/v2/errata' => [:index, :show, :auto_complete_search, :compare],
16
+ 'katello/api/v2/puppet_modules' => [:index, :show, :auto_complete_search],
14
17
  'katello/errata' => [:short_details, :auto_complete],
15
18
  'katello/packages' => [:details, :auto_complete],
16
19
  'katello/puppet_modules' => [:show],
@@ -0,0 +1,5 @@
1
+ require 'katello/plugin.rb'
2
+
3
+ Foreman::AccessControl.permission(:edit_roles).actions.concat [
4
+ 'katello/auto_complete_search/auto_complete_search'
5
+ ]
@@ -3,8 +3,7 @@ require 'katello/plugin.rb'
3
3
  Foreman::Plugin.find(:katello).security_block :sync_plans do
4
4
  permission :view_sync_plans,
5
5
  {
6
- 'katello/sync_plans' => [:all, :index, :auto_complete_search],
7
- 'katello/api/v2/sync_plans' => [:index, :show, :add_products, :remove_products, :available_products],
6
+ 'katello/api/v2/sync_plans' => [:index, :show, :add_products, :remove_products, :available_products, :auto_complete_search],
8
7
  'katello/api/v2/products' => [:index]
9
8
  },
10
9
  :resource_type => 'Katello::SyncPlan'
@@ -1,5 +1,5 @@
1
1
  Foreman::Plugin.register :katello do
2
- requires_foreman '>= 1.13'
2
+ requires_foreman '>= 1.14'
3
3
 
4
4
  sub_menu :top_menu, :content_menu, :caption => N_('Content'), :after => :monitor_menu do
5
5
  menu :top_menu,
@@ -20,6 +20,7 @@ Foreman::Plugin.register :katello do
20
20
  :turbolinks => false
21
21
  menu :top_menu,
22
22
  :activation_keys,
23
+ :caption => N_('Activation Keys'),
23
24
  :url => '/activation_keys',
24
25
  :url_hash => {:controller => 'katello/api/v2/activation_keys',
25
26
  :action => 'index'},
@@ -46,7 +47,7 @@ Foreman::Plugin.register :katello do
46
47
 
47
48
  menu :top_menu,
48
49
  :gpg_keys,
49
- :caption => N_('GPG keys'),
50
+ :caption => N_('GPG Keys'),
50
51
  :url => '/gpg_keys',
51
52
  :url_hash => {:controller => 'katello/api/v2/gpg_keys',
52
53
  :action => 'index'},
@@ -165,7 +166,7 @@ Foreman::Plugin.register :katello do
165
166
  parameter_filter Hostgroup, :content_view_id, :lifecycle_environment_id, :content_source_id,
166
167
  :kickstart_repository_id
167
168
  parameter_filter Organization, :label, :service_level
168
- parameter_filter SmartProxy, :lifecycle_environment_ids => []
169
+ parameter_filter SmartProxy, :download_policy, :lifecycle_environment_ids => []
169
170
 
170
171
  logger :glue, :enabled => true
171
172
  logger :pulp_rest, :enabled => true
@@ -202,6 +203,16 @@ Foreman::Plugin.register :katello do
202
203
  :onlyif => proc { |proxy| proxy.has_feature?(SmartProxy::PULP_FEATURE) || proxy.has_feature?(SmartProxy::PULP_NODE_FEATURE) }
203
204
  end
204
205
 
206
+ register_facet Katello::Host::ContentFacet, :content_facet do
207
+ api_view :list => 'katello/api/v2/content_facet/base_with_root', :single => 'katello/api/v2/content_facet/show'
208
+ api_docs :content_facet_attributes, ::Katello::Api::V2::HostContentsController
209
+ end
210
+
211
+ register_facet Katello::Host::SubscriptionFacet, :subscription_facet do
212
+ api_view :list => 'katello/api/v2/subscription_facet/base_with_root', :single => 'katello/api/v2/subscription_facet/show'
213
+ api_docs :subscription_facet_attributes, ::Katello::Api::V2::HostSubscriptionsController
214
+ end
215
+
205
216
  if Katello.with_remote_execution?
206
217
  RemoteExecutionFeature.register(:katello_package_install, N_("Katello: Install Package"), :description => N_("Install package via Katello interface"), :provided_inputs => ['package'])
207
218
  RemoteExecutionFeature.register(:katello_package_update, N_("Katello: Update Package"), :description => N_("Update package via Katello interface"), :provided_inputs => ['package'])
@@ -210,5 +221,19 @@ Foreman::Plugin.register :katello do
210
221
  RemoteExecutionFeature.register(:katello_group_update, N_("Katello: Update Package Group"), :description => N_("Update package group via Katello interface"), :provided_inputs => ['package'])
211
222
  RemoteExecutionFeature.register(:katello_group_remove, N_("Katello: Remove Package Group"), :description => N_("Remove package group via Katello interface"), :provided_inputs => ['package'])
212
223
  RemoteExecutionFeature.register(:katello_errata_install, N_("Katello: Install Errata"), :description => N_("Install errata via Katello interface"), :provided_inputs => ['errata'])
224
+ RemoteExecutionFeature.register(:katello_service_restart, N_("Katello: Service Restart"), :description => N_("Restart Services via Katello interface"), :provided_inputs => ['helpers'])
225
+ allowed_template_helpers :errata
226
+ end
227
+
228
+ tests_to_skip("AccessPermissionsTest" => [
229
+ 'foreman_tasks/api/tasks/callback should have a permission that grants access',
230
+ 'bastion/bastion/index should have a permission that grants access',
231
+ 'bastion/bastion/index_ie should have a permission that grants access'
232
+ ])
233
+
234
+ add_controller_action_scope(HostsController, :index) do |base_scope|
235
+ base_scope
236
+ .includes(:content_view, :lifecycle_environment, :subscription_facet, :applicable_errata)
237
+ .includes(content_facet: [:bound_repositories, :applicable_errata, :content_view, :lifecycle_environment])
213
238
  end
214
239
  end
@@ -0,0 +1,12 @@
1
+ namespace :katello do
2
+ task :import_applicability => ["environment"] do
3
+ Katello::Host::ContentFacet.find_each do |facet|
4
+ begin
5
+ facet.import_applicability
6
+ rescue StandardError => exception
7
+ puts _('Error importing applicability for %{name} - %{id}: %{message}') %
8
+ {:name => facet.host.name, :id => facet.host.id, :message => exception.message}
9
+ end
10
+ end
11
+ end
12
+ end