katello 3.17.0.rc1 → 3.17.0.rc2

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

Potentially problematic release.


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

Files changed (293) hide show
  1. checksums.yaml +4 -4
  2. data/app/controllers/katello/api/registry/registry_proxies_controller.rb +5 -3
  3. data/app/controllers/katello/api/rhsm/candlepin_dynflow_proxy_controller.rb +1 -1
  4. data/app/controllers/katello/api/rhsm/candlepin_proxies_controller.rb +2 -2
  5. data/app/controllers/katello/api/v2/api_controller.rb +1 -1
  6. data/app/controllers/katello/api/v2/content_credentials_controller.rb +1 -1
  7. data/app/controllers/katello/api/v2/content_uploads_controller.rb +5 -5
  8. data/app/controllers/katello/api/v2/content_view_repositories_controller.rb +47 -0
  9. data/app/controllers/katello/api/v2/content_view_versions_controller.rb +50 -19
  10. data/app/controllers/katello/api/v2/gpg_keys_controller.rb +1 -1
  11. data/app/controllers/katello/api/v2/host_tracer_controller.rb +0 -5
  12. data/app/controllers/katello/api/v2/products_bulk_actions_controller.rb +15 -0
  13. data/app/controllers/katello/api/v2/repositories_controller.rb +24 -14
  14. data/app/controllers/katello/api/v2/subscriptions_controller.rb +1 -1
  15. data/app/controllers/katello/concerns/api/v2/{associations_permission_check.rb → authorization.rb} +20 -2
  16. data/app/controllers/katello/concerns/hosts_controller_extensions.rb +11 -5
  17. data/app/helpers/katello/content_view_helper.rb +1 -1
  18. data/app/lib/actions/candlepin/product/content_add.rb +1 -2
  19. data/app/lib/actions/katello/capsule_content/refresh_repos.rb +1 -1
  20. data/app/lib/actions/katello/capsule_content/sync.rb +2 -2
  21. data/app/lib/actions/katello/capsule_content/sync_capsule.rb +17 -3
  22. data/app/lib/actions/katello/content_view/capsule_sync.rb +1 -1
  23. data/app/lib/actions/katello/content_view/destroy.rb +2 -2
  24. data/app/lib/actions/katello/content_view/incremental_updates.rb +1 -1
  25. data/app/lib/actions/katello/content_view/promote_to_environment.rb +1 -0
  26. data/app/lib/actions/katello/content_view/publish.rb +12 -7
  27. data/app/lib/actions/katello/content_view_puppet_environment/clone.rb +1 -1
  28. data/app/lib/actions/katello/content_view_puppet_environment/create.rb +2 -2
  29. data/app/lib/actions/katello/content_view_version/incremental_update.rb +4 -4
  30. data/app/lib/actions/katello/organization/manifest_delete.rb +1 -0
  31. data/app/lib/actions/katello/organization/manifest_import.rb +1 -0
  32. data/app/lib/actions/katello/organization/manifest_refresh.rb +1 -0
  33. data/app/lib/actions/katello/product/content_create.rb +3 -3
  34. data/app/lib/actions/katello/product/destroy.rb +25 -4
  35. data/app/lib/actions/katello/repository/clone_contents.rb +3 -3
  36. data/app/lib/actions/katello/repository/clone_to_environment.rb +2 -2
  37. data/app/lib/actions/katello/repository/clone_to_version.rb +1 -1
  38. data/app/lib/actions/katello/repository/create.rb +1 -1
  39. data/app/lib/actions/katello/repository/destroy.rb +10 -4
  40. data/app/lib/actions/katello/repository/export.rb +3 -3
  41. data/app/lib/actions/katello/repository/finish_upload.rb +2 -2
  42. data/app/lib/actions/katello/repository/import_upload.rb +3 -3
  43. data/app/lib/actions/katello/repository/metadata_generate.rb +1 -1
  44. data/app/lib/actions/katello/repository/multi_clone_contents.rb +6 -10
  45. data/app/lib/actions/katello/repository/purge_empty_content.rb +1 -1
  46. data/app/lib/actions/katello/repository/remove_content.rb +1 -1
  47. data/app/lib/actions/katello/repository/sync.rb +35 -25
  48. data/app/lib/actions/katello/repository/update.rb +30 -19
  49. data/app/lib/actions/katello/repository/update_http_proxy_details.rb +1 -1
  50. data/app/lib/actions/katello/repository/update_metadata_sync.rb +1 -1
  51. data/app/lib/actions/katello/repository/upload_files.rb +2 -2
  52. data/app/lib/actions/katello/repository/verify_checksum.rb +28 -0
  53. data/app/lib/actions/pulp/content_view_puppet_environment/copy_contents.rb +1 -1
  54. data/app/lib/actions/pulp/orchestration/orphan_cleanup/remove_orphans.rb +1 -1
  55. data/app/lib/actions/pulp/orchestration/repository/sync.rb +2 -1
  56. data/app/lib/actions/pulp/repository/copy_all_units.rb +1 -1
  57. data/app/lib/actions/pulp/repository/copy_units.rb +1 -1
  58. data/app/lib/actions/pulp/repository/create.rb +1 -1
  59. data/app/lib/actions/pulp/repository/destroy.rb +1 -1
  60. data/app/lib/actions/pulp/repository/remove_units.rb +2 -2
  61. data/app/lib/actions/pulp/repository/sync.rb +3 -2
  62. data/app/lib/actions/pulp3/capsule_content/sync.rb +3 -1
  63. data/app/lib/actions/pulp3/content_guard/refresh_all_distributions.rb +19 -0
  64. data/app/lib/actions/pulp3/content_migration.rb +3 -3
  65. data/app/lib/actions/pulp3/content_view_version/create_exporter.rb +20 -0
  66. data/app/lib/actions/pulp3/content_view_version/destroy_exporter.rb +16 -0
  67. data/app/lib/actions/pulp3/content_view_version/export.rb +19 -0
  68. data/app/lib/actions/pulp3/import_migration.rb +3 -3
  69. data/app/lib/actions/pulp3/orchestration/content_view_version/export.rb +69 -0
  70. data/app/lib/actions/pulp3/orchestration/repository/copy_all_units.rb +1 -2
  71. data/app/lib/actions/pulp3/orchestration/repository/create.rb +1 -1
  72. data/app/lib/actions/pulp3/orchestration/repository/sync.rb +3 -1
  73. data/app/lib/actions/pulp3/orchestration/repository/trigger_update_repo_cert_guard.rb +22 -0
  74. data/app/lib/actions/pulp3/orchestration/repository/upload_content.rb +1 -1
  75. data/app/lib/actions/pulp3/repository/copy_content.rb +0 -1
  76. data/app/lib/actions/pulp3/repository/multi_copy_units.rb +2 -2
  77. data/app/lib/actions/pulp3/repository/presenters/repair_presenter.rb +85 -0
  78. data/app/lib/actions/pulp3/repository/refresh_distribution.rb +11 -5
  79. data/app/lib/actions/pulp3/repository/repair.rb +29 -0
  80. data/app/lib/actions/pulp3/repository/save_artifact.rb +1 -1
  81. data/app/lib/actions/pulp3/repository/save_distribution_references.rb +2 -2
  82. data/app/lib/actions/pulp3/repository/save_version.rb +20 -16
  83. data/app/lib/actions/pulp3/repository/save_versions.rb +1 -1
  84. data/app/lib/actions/pulp3/repository/sync.rb +1 -1
  85. data/app/lib/actions/pulp3/repository/update_cv_repository_cert_guard.rb +6 -2
  86. data/app/lib/actions/pulp3/repository/upload_file.rb +2 -2
  87. data/app/lib/katello/concerns/base_template_scope_extensions.rb +5 -3
  88. data/app/lib/katello/concerns/permission_extensions.rb +14 -0
  89. data/app/lib/katello/foreman.rb +1 -1
  90. data/app/lib/katello/resources/candlepin/product.rb +0 -11
  91. data/app/lib/katello/resources/registry.rb +3 -3
  92. data/app/models/katello/authorization/content_view_version_export_history.rb +11 -0
  93. data/app/models/katello/authorization/product.rb +4 -0
  94. data/app/models/katello/authorization/repository.rb +8 -0
  95. data/app/models/katello/concerns/content_facet_host_extensions.rb +2 -1
  96. data/app/models/katello/concerns/organization_extensions.rb +6 -1
  97. data/app/models/katello/concerns/pulp_database_unit.rb +2 -2
  98. data/app/models/katello/concerns/redhat_extensions.rb +4 -2
  99. data/app/models/katello/concerns/smart_proxy_extensions.rb +33 -16
  100. data/app/models/katello/concerns/subscription_facet_host_extensions.rb +1 -1
  101. data/app/models/katello/content_view.rb +1 -1
  102. data/app/models/katello/content_view_package_filter.rb +1 -1
  103. data/app/models/katello/content_view_puppet_environment.rb +1 -1
  104. data/app/models/katello/content_view_version.rb +3 -1
  105. data/app/models/katello/content_view_version_export_history.rb +22 -0
  106. data/app/models/katello/docker_meta_tag.rb +1 -1
  107. data/app/models/katello/errata_status.rb +21 -12
  108. data/app/models/katello/erratum.rb +1 -1
  109. data/app/models/katello/glue/candlepin/owner.rb +4 -2
  110. data/app/models/katello/glue/pulp/repo.rb +3 -1
  111. data/app/models/katello/host/content_facet.rb +8 -0
  112. data/app/models/katello/kt_environment.rb +1 -1
  113. data/app/models/katello/package_group.rb +1 -1
  114. data/app/models/katello/ping.rb +8 -3
  115. data/app/models/katello/pulp3/content_guard.rb +1 -1
  116. data/app/models/katello/purpose_status.rb +2 -2
  117. data/app/models/katello/repository.rb +23 -15
  118. data/app/models/katello/rhsm_fact_parser.rb +1 -1
  119. data/app/models/katello/root_repository.rb +2 -15
  120. data/app/models/katello/sync_plan.rb +8 -0
  121. data/app/models/setting/content.rb +3 -1
  122. data/app/services/cert/certs.rb +10 -2
  123. data/app/services/katello/candlepin/event_handler.rb +1 -0
  124. data/app/services/katello/host_status_manager.rb +7 -0
  125. data/app/services/katello/pulp/content.rb +1 -1
  126. data/app/services/katello/pulp/repository.rb +7 -7
  127. data/app/services/katello/pulp/repository/deb.rb +2 -2
  128. data/app/services/katello/pulp/repository/docker.rb +5 -5
  129. data/app/services/katello/pulp/repository/file.rb +2 -2
  130. data/app/services/katello/pulp/repository/ostree.rb +2 -2
  131. data/app/services/katello/pulp/repository/puppet.rb +2 -2
  132. data/app/services/katello/pulp/repository/yum.rb +5 -6
  133. data/app/services/katello/pulp/smart_proxy_repository.rb +1 -1
  134. data/app/services/katello/pulp3/ansible_collection.rb +2 -2
  135. data/app/services/katello/pulp3/api/core.rb +16 -0
  136. data/app/services/katello/pulp3/content.rb +3 -3
  137. data/app/services/katello/pulp3/content_view_version/export.rb +71 -0
  138. data/app/services/katello/pulp3/distribution.rb +2 -2
  139. data/app/services/katello/pulp3/docker_blob.rb +2 -2
  140. data/app/services/katello/pulp3/docker_manifest.rb +2 -2
  141. data/app/services/katello/pulp3/docker_manifest_list.rb +2 -2
  142. data/app/services/katello/pulp3/docker_tag.rb +2 -2
  143. data/app/services/katello/pulp3/erratum.rb +2 -2
  144. data/app/services/katello/pulp3/file_unit.rb +2 -2
  145. data/app/services/katello/pulp3/migration.rb +139 -34
  146. data/app/services/katello/pulp3/migration_plan.rb +50 -14
  147. data/app/services/katello/pulp3/migration_switchover.rb +41 -9
  148. data/app/services/katello/pulp3/module_stream.rb +2 -2
  149. data/app/services/katello/pulp3/package_group.rb +2 -2
  150. data/app/services/katello/pulp3/repository.rb +9 -9
  151. data/app/services/katello/pulp3/repository/docker.rb +18 -10
  152. data/app/services/katello/pulp3/repository/yum.rb +25 -13
  153. data/app/services/katello/pulp3/repository_mirror.rb +2 -1
  154. data/app/services/katello/pulp3/rpm.rb +2 -2
  155. data/app/services/katello/pulp3/smart_proxy_mirror_repository.rb +2 -2
  156. data/app/services/katello/pulp3/smart_proxy_repository.rb +1 -1
  157. data/app/services/katello/pulp3/srpm.rb +2 -2
  158. data/app/services/katello/pulp3/task_group.rb +1 -1
  159. data/app/services/katello/pulp3/yum_metadata_file.rb +2 -2
  160. data/app/services/katello/registration_manager.rb +9 -3
  161. data/app/services/katello/repository_type.rb +1 -1
  162. data/app/services/katello/smart_proxy_helper.rb +14 -17
  163. data/app/views/foreman/job_templates/install_errata_-_katello_ansible_default.erb +10 -2
  164. data/app/views/katello/api/v2/content_view_repositories/show_all.json.rabl +8 -0
  165. data/app/views/katello/api/v2/content_view_version_export_histories/index.json.rabl +7 -0
  166. data/app/views/katello/api/v2/content_view_version_export_histories/show.json.rabl +13 -0
  167. data/app/views/katello/api/v2/package_groups/show.json.rabl +1 -1
  168. data/app/views/katello/api/v2/packages/show.json.rabl +1 -1
  169. data/app/views/katello/api/v2/repositories/base.json.rabl +2 -1
  170. data/app/views/katello/api/v2/srpms/show.json.rabl +1 -1
  171. data/app/views/katello/api/v2/sync_plans/show.json.rabl +2 -1
  172. data/config/routes/api/rhsm.rb +1 -0
  173. data/config/routes/api/v2.rb +8 -1
  174. data/db/migrate/20200818040551_add_content_view_version_export_history.rb +13 -0
  175. data/db/migrate/20200818192230_update_system_purpose_status.rb +12 -0
  176. data/db/migrate/20200820145217_add_download_concurrency_to_katello_root_repositories.rb +5 -0
  177. data/db/migrate/20200910140340_remove_distribution_uuid.rb +5 -0
  178. data/db/migrate/20200914200906_remove_auto_enabled.rb +5 -0
  179. data/engines/bastion/app/assets/javascripts/bastion/bastion.js +1 -0
  180. data/engines/bastion/app/assets/javascripts/bastion/routing.module.js +1 -1
  181. data/engines/bastion/vendor/assets/javascripts/bastion/angular-ui-router/stateEvents.js +300 -0
  182. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/activation-keys.controller.js +1 -1
  183. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/activation-key-add-subscriptions.controller.js +1 -1
  184. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/activation-key-associations.controller.js +1 -1
  185. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/activation-key-subscriptions.controller.js +1 -1
  186. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-credentials/details/content-credential-products.controller.js +1 -1
  187. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-credentials/details/content-credential-repositories.controller.js +1 -1
  188. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/bulk/content-hosts-bulk-errata-modal.controller.js +1 -1
  189. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/bulk/content-hosts-bulk-host-collections-modal.controller.js +1 -1
  190. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/bulk/content-hosts-bulk-module-streams-modal.controller.js +1 -1
  191. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/bulk/content-hosts-bulk-repository-sets-modal.controller.js +1 -1
  192. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/bulk/content-hosts-bulk-subscriptions-modal.controller.js +1 -1
  193. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/bulk/content-hosts-bulk-traces-modal.controller.js +1 -1
  194. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content-hosts-helper.service.js +1 -1
  195. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content-hosts.controller.js +1 -1
  196. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/content-host-debs-installed.controller.js +1 -1
  197. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/content-host-errata.controller.js +1 -1
  198. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/content-host-module-streams.controller.js +1 -1
  199. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/content-host-packages-applicable.controller.js +1 -1
  200. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/content-host-packages-installed.controller.js +1 -1
  201. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/content-host-traces.controller.js +1 -1
  202. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/content-host-add-host-collections.controller.js +1 -1
  203. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/content-host-add-subscriptions.controller.js +1 -1
  204. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/content-host-details-info.controller.js +4 -2
  205. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/content-host-host-collections.controller.js +1 -1
  206. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/content-host-subscriptions.controller.js +1 -1
  207. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/views/content-host-info.html +2 -2
  208. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/content-views.controller.js +1 -1
  209. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/components/content-view-composite-available-content-views.controller.js +1 -1
  210. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/components/content-view-composite-content-views-list.controller.js +1 -1
  211. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/content-view-available-docker-repositories.controller.js +1 -1
  212. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/content-view-available-ostree-repositories.controller.js +1 -1
  213. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/content-view-docker-repositories-list.controller.js +1 -1
  214. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/content-view-ostree-repositories-list.controller.js +1 -1
  215. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/content-view-versions.controller.js +1 -1
  216. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/available-errata-filter.controller.js +1 -1
  217. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/available-package-group-filter.controller.js +1 -1
  218. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/puppet-modules/content-view-puppet-module-names.controller.js +1 -1
  219. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/puppet-modules/content-view-puppet-module-versions.controller.js +1 -1
  220. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/puppet-modules/content-view-puppet-modules.controller.js +1 -1
  221. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/versions/content-view-version-content.controller.js +1 -1
  222. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/debs/debs.controller.js +1 -1
  223. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/debs/details/deb-content-views.controller.js +1 -1
  224. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/debs/details/deb-repositories.controller.js +1 -1
  225. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/environments/details/environment-content.controller.js +1 -1
  226. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/errata/details/erratum-repositories.controller.js +1 -1
  227. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/files/details/file-content-views.controller.js +1 -1
  228. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/files/details/file-repositories.controller.js +1 -1
  229. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/files/files.controller.js +1 -1
  230. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/host-collections.controller.js +1 -1
  231. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/de.po +57 -12
  232. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/es.po +45 -8
  233. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/fr.po +42 -5
  234. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/it.po +36 -0
  235. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/ja.po +36 -0
  236. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/ko.po +36 -0
  237. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/pt_BR.po +45 -8
  238. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/ru.po +36 -0
  239. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/zh_CN.po +36 -0
  240. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/zh_TW.po +36 -0
  241. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/translations.js +4 -4
  242. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/organizations/fenced-pages.service.js +11 -2
  243. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/organizations/organization-selector.controller.js +5 -14
  244. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/ostree-branches/details/ostree-branch-repositories.controller.js +1 -1
  245. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/packages/details/package-repositories.controller.js +1 -1
  246. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/packages/packages.controller.js +1 -1
  247. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/bulk/product-bulk-action.factory.js +1 -0
  248. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/bulk/products-bulk-sync-plan-modal.controller.js +1 -1
  249. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/product-repositories.controller.js +1 -1
  250. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/details/repository-details-manage-content.controller.js +1 -1
  251. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/details/repository-details.controller.js +6 -0
  252. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/details/views/repository-details.html +7 -1
  253. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/details/views/repository-info.html +0 -9
  254. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/new/new-repository.controller.js +1 -1
  255. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/new/views/new-repository.html +0 -11
  256. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/repository.factory.js +1 -0
  257. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/products.controller.js +16 -1
  258. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/views/products.html +6 -0
  259. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/puppet-modules/details/puppet-module-content-views.controller.js +1 -1
  260. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/puppet-modules/details/puppet-module-repositories.controller.js +1 -1
  261. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/puppet-modules/puppet-modules.controller.js +1 -1
  262. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/details/sync-plan-details-info.controller.js +4 -3
  263. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/details/views/sync-plan-info.html +1 -1
  264. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/sync-plans.controller.js +1 -1
  265. data/lib/katello/engine.rb +2 -0
  266. data/lib/katello/permission_creator.rb +14 -9
  267. data/lib/katello/tasks/clean_published_repo_directories.rake +3 -3
  268. data/lib/katello/tasks/pulp3_content_switchover.rake +24 -6
  269. data/lib/katello/tasks/pulp3_migration.rake +4 -2
  270. data/lib/katello/tasks/pulp3_post_migration_check.rake +2 -2
  271. data/lib/katello/tasks/reimport.rake +1 -1
  272. data/lib/katello/tasks/repository.rake +15 -2
  273. data/lib/katello/tasks/unify_hosts.rake +1 -0
  274. data/lib/katello/tasks/upgrades/3.11/update_puppet_repos.rake +3 -3
  275. data/lib/katello/tasks/upgrades/3.12/remove_pulp2_notifier.rake +2 -2
  276. data/lib/katello/tasks/upgrades/3.8/clear_checksum_type.rake +2 -2
  277. data/lib/katello/version.rb +1 -1
  278. data/locale/action_names.rb +47 -47
  279. data/locale/katello.pot +160 -160
  280. data/webpack/containers/Application/config.js +4 -4
  281. data/webpack/redux/actions/RedHatRepositories/helpers.js +1 -1
  282. data/webpack/scenes/Subscriptions/Manifest/ManageManifestModal.js +22 -32
  283. data/webpack/scenes/Subscriptions/Manifest/__tests__/SimpleContentAccess.test.js +0 -14
  284. data/webpack/scenes/Subscriptions/Manifest/index.js +2 -5
  285. data/webpack/scenes/Subscriptions/SubscriptionReducer.js +15 -6
  286. data/webpack/scenes/Subscriptions/SubscriptionsPage.js +0 -1
  287. data/webpack/scenes/Subscriptions/SubscriptionsSelectors.js +3 -0
  288. data/webpack/scenes/Subscriptions/__tests__/SubscriptionsReducer.test.js +24 -0
  289. data/webpack/scenes/Subscriptions/__tests__/__snapshots__/SubscriptionsReducer.test.js.snap +114 -26
  290. metadata +67 -33
  291. data/app/lib/actions/candlepin/product/content_update_enablement.rb +0 -18
  292. data/app/lib/actions/katello/repository/content_update.rb +0 -41
  293. data/app/lib/actions/katello/repository/update_cv_repo_cert_guard.rb +0 -17
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: katello
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.17.0.rc1
4
+ version: 3.17.0.rc2
5
5
  platform: ruby
6
6
  authors:
7
7
  - N/A
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-08-17 00:00:00.000000000 Z
11
+ date: 2020-09-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -150,6 +150,20 @@ dependencies:
150
150
  - - ">="
151
151
  - !ruby/object:Gem::Version
152
152
  version: '0'
153
+ - !ruby/object:Gem::Dependency
154
+ name: scoped_search
155
+ requirement: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - ">="
158
+ - !ruby/object:Gem::Version
159
+ version: 4.1.9
160
+ type: :runtime
161
+ prerelease: false
162
+ version_requirements: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - ">="
165
+ - !ruby/object:Gem::Version
166
+ version: 4.1.9
153
167
  - !ruby/object:Gem::Dependency
154
168
  name: gettext_i18n_rails
155
169
  requirement: !ruby/object:Gem::Requirement
@@ -246,120 +260,120 @@ dependencies:
246
260
  requirements:
247
261
  - - ">="
248
262
  - !ruby/object:Gem::Version
249
- version: 3.4.0
263
+ version: 3.6.0
250
264
  - - "<"
251
265
  - !ruby/object:Gem::Version
252
- version: 3.5.0
266
+ version: 3.7.0
253
267
  type: :runtime
254
268
  prerelease: false
255
269
  version_requirements: !ruby/object:Gem::Requirement
256
270
  requirements:
257
271
  - - ">="
258
272
  - !ruby/object:Gem::Version
259
- version: 3.4.0
273
+ version: 3.6.0
260
274
  - - "<"
261
275
  - !ruby/object:Gem::Version
262
- version: 3.5.0
276
+ version: 3.7.0
263
277
  - !ruby/object:Gem::Dependency
264
278
  name: pulp_file_client
265
279
  requirement: !ruby/object:Gem::Requirement
266
280
  requirements:
267
281
  - - ">="
268
282
  - !ruby/object:Gem::Version
269
- version: 1.0.0
283
+ version: 1.2.0
270
284
  - - "<"
271
285
  - !ruby/object:Gem::Version
272
- version: 1.1.0
286
+ version: 1.3.0
273
287
  type: :runtime
274
288
  prerelease: false
275
289
  version_requirements: !ruby/object:Gem::Requirement
276
290
  requirements:
277
291
  - - ">="
278
292
  - !ruby/object:Gem::Version
279
- version: 1.0.0
293
+ version: 1.2.0
280
294
  - - "<"
281
295
  - !ruby/object:Gem::Version
282
- version: 1.1.0
296
+ version: 1.3.0
283
297
  - !ruby/object:Gem::Dependency
284
298
  name: pulp_ansible_client
285
299
  requirement: !ruby/object:Gem::Requirement
286
300
  requirements:
287
- - - ">"
301
+ - - ">="
288
302
  - !ruby/object:Gem::Version
289
- version: '0.1'
303
+ version: '0.2'
290
304
  - - "<"
291
305
  - !ruby/object:Gem::Version
292
- version: 0.2.0b15
306
+ version: '0.4'
293
307
  type: :runtime
294
308
  prerelease: false
295
309
  version_requirements: !ruby/object:Gem::Requirement
296
310
  requirements:
297
- - - ">"
311
+ - - ">="
298
312
  - !ruby/object:Gem::Version
299
- version: '0.1'
313
+ version: '0.2'
300
314
  - - "<"
301
315
  - !ruby/object:Gem::Version
302
- version: 0.2.0b15
316
+ version: '0.4'
303
317
  - !ruby/object:Gem::Dependency
304
318
  name: pulp_container_client
305
319
  requirement: !ruby/object:Gem::Requirement
306
320
  requirements:
307
321
  - - ">="
308
322
  - !ruby/object:Gem::Version
309
- version: 1.4.0
323
+ version: 2.0.0
310
324
  - - "<"
311
325
  - !ruby/object:Gem::Version
312
- version: 1.5.0
326
+ version: 2.1.0
313
327
  type: :runtime
314
328
  prerelease: false
315
329
  version_requirements: !ruby/object:Gem::Requirement
316
330
  requirements:
317
331
  - - ">="
318
332
  - !ruby/object:Gem::Version
319
- version: 1.4.0
333
+ version: 2.0.0
320
334
  - - "<"
321
335
  - !ruby/object:Gem::Version
322
- version: 1.5.0
336
+ version: 2.1.0
323
337
  - !ruby/object:Gem::Dependency
324
338
  name: pulp_rpm_client
325
339
  requirement: !ruby/object:Gem::Requirement
326
340
  requirements:
327
341
  - - ">="
328
342
  - !ruby/object:Gem::Version
329
- version: 3.5.0
343
+ version: 3.6.2
330
344
  - - "<"
331
345
  - !ruby/object:Gem::Version
332
- version: 3.6.0
346
+ version: 3.7.0
333
347
  type: :runtime
334
348
  prerelease: false
335
349
  version_requirements: !ruby/object:Gem::Requirement
336
350
  requirements:
337
351
  - - ">="
338
352
  - !ruby/object:Gem::Version
339
- version: 3.5.0
353
+ version: 3.6.2
340
354
  - - "<"
341
355
  - !ruby/object:Gem::Version
342
- version: 3.6.0
356
+ version: 3.7.0
343
357
  - !ruby/object:Gem::Dependency
344
358
  name: pulp_2to3_migration_client
345
359
  requirement: !ruby/object:Gem::Requirement
346
360
  requirements:
347
361
  - - ">="
348
362
  - !ruby/object:Gem::Version
349
- version: 0.2.0b6
363
+ version: 0.3.0
350
364
  - - "<"
351
365
  - !ruby/object:Gem::Version
352
- version: 0.3.0
366
+ version: 0.4.0
353
367
  type: :runtime
354
368
  prerelease: false
355
369
  version_requirements: !ruby/object:Gem::Requirement
356
370
  requirements:
357
371
  - - ">="
358
372
  - !ruby/object:Gem::Version
359
- version: 0.2.0b6
373
+ version: 0.3.0
360
374
  - - "<"
361
375
  - !ruby/object:Gem::Version
362
- version: 0.3.0
376
+ version: 0.4.0
363
377
  - !ruby/object:Gem::Dependency
364
378
  name: pulp_certguard_client
365
379
  requirement: !ruby/object:Gem::Requirement
@@ -686,6 +700,7 @@ files:
686
700
  - app/controllers/katello/api/v2/content_view_filters_controller.rb
687
701
  - app/controllers/katello/api/v2/content_view_histories_controller.rb
688
702
  - app/controllers/katello/api/v2/content_view_puppet_modules_controller.rb
703
+ - app/controllers/katello/api/v2/content_view_repositories_controller.rb
689
704
  - app/controllers/katello/api/v2/content_view_versions_controller.rb
690
705
  - app/controllers/katello/api/v2/content_views_controller.rb
691
706
  - app/controllers/katello/api/v2/debs_controller.rb
@@ -727,7 +742,7 @@ files:
727
742
  - app/controllers/katello/application_controller.rb
728
743
  - app/controllers/katello/auto_complete_search_controller.rb
729
744
  - app/controllers/katello/concerns/api/api_controller.rb
730
- - app/controllers/katello/concerns/api/v2/associations_permission_check.rb
745
+ - app/controllers/katello/concerns/api/v2/authorization.rb
731
746
  - app/controllers/katello/concerns/api/v2/bulk_hosts_extensions.rb
732
747
  - app/controllers/katello/concerns/api/v2/content_overrides_controller.rb
733
748
  - app/controllers/katello/concerns/api/v2/hostgroups_controller_extensions.rb
@@ -790,7 +805,6 @@ files:
790
805
  - app/lib/actions/candlepin/product/content_destroy.rb
791
806
  - app/lib/actions/candlepin/product/content_remove.rb
792
807
  - app/lib/actions/candlepin/product/content_update.rb
793
- - app/lib/actions/candlepin/product/content_update_enablement.rb
794
808
  - app/lib/actions/candlepin/product/create.rb
795
809
  - app/lib/actions/candlepin/product/create_unlimited_subscription.rb
796
810
  - app/lib/actions/candlepin/product/delete_pools.rb
@@ -896,7 +910,6 @@ files:
896
910
  - app/lib/actions/katello/repository/clone_contents.rb
897
911
  - app/lib/actions/katello/repository/clone_to_environment.rb
898
912
  - app/lib/actions/katello/repository/clone_to_version.rb
899
- - app/lib/actions/katello/repository/content_update.rb
900
913
  - app/lib/actions/katello/repository/correct_checksum.rb
901
914
  - app/lib/actions/katello/repository/create.rb
902
915
  - app/lib/actions/katello/repository/create_root.rb
@@ -925,13 +938,13 @@ files:
925
938
  - app/lib/actions/katello/repository/sync_hook.rb
926
939
  - app/lib/actions/katello/repository/update.rb
927
940
  - app/lib/actions/katello/repository/update_content_urls.rb
928
- - app/lib/actions/katello/repository/update_cv_repo_cert_guard.rb
929
941
  - app/lib/actions/katello/repository/update_http_proxy_details.rb
930
942
  - app/lib/actions/katello/repository/update_metadata_sync.rb
931
943
  - app/lib/actions/katello/repository/update_redhat_repository.rb
932
944
  - app/lib/actions/katello/repository/upload_errata.rb
933
945
  - app/lib/actions/katello/repository/upload_files.rb
934
946
  - app/lib/actions/katello/repository/upload_package_group.rb
947
+ - app/lib/actions/katello/repository/verify_checksum.rb
935
948
  - app/lib/actions/katello/repository_set/disable_repository.rb
936
949
  - app/lib/actions/katello/repository_set/enable_repository.rb
937
950
  - app/lib/actions/katello/repository_set/scan_cdn.rb
@@ -1020,9 +1033,14 @@ files:
1020
1033
  - app/lib/actions/pulp3/capsule_content/refresh_distribution.rb
1021
1034
  - app/lib/actions/pulp3/capsule_content/sync.rb
1022
1035
  - app/lib/actions/pulp3/content_guard/refresh.rb
1036
+ - app/lib/actions/pulp3/content_guard/refresh_all_distributions.rb
1023
1037
  - app/lib/actions/pulp3/content_migration.rb
1024
1038
  - app/lib/actions/pulp3/content_view/delete_repository_references.rb
1039
+ - app/lib/actions/pulp3/content_view_version/create_exporter.rb
1040
+ - app/lib/actions/pulp3/content_view_version/destroy_exporter.rb
1041
+ - app/lib/actions/pulp3/content_view_version/export.rb
1025
1042
  - app/lib/actions/pulp3/import_migration.rb
1043
+ - app/lib/actions/pulp3/orchestration/content_view_version/export.rb
1026
1044
  - app/lib/actions/pulp3/orchestration/orphan_cleanup/remove_orphans.rb
1027
1045
  - app/lib/actions/pulp3/orchestration/repository/copy_all_units.rb
1028
1046
  - app/lib/actions/pulp3/orchestration/repository/create.rb
@@ -1034,6 +1052,7 @@ files:
1034
1052
  - app/lib/actions/pulp3/orchestration/repository/refresh_repos.rb
1035
1053
  - app/lib/actions/pulp3/orchestration/repository/remove_units.rb
1036
1054
  - app/lib/actions/pulp3/orchestration/repository/sync.rb
1055
+ - app/lib/actions/pulp3/orchestration/repository/trigger_update_repo_cert_guard.rb
1037
1056
  - app/lib/actions/pulp3/orchestration/repository/update.rb
1038
1057
  - app/lib/actions/pulp3/orchestration/repository/upload_content.rb
1039
1058
  - app/lib/actions/pulp3/orphan_cleanup/delete_orphan_distributions.rb
@@ -1057,8 +1076,10 @@ files:
1057
1076
  - app/lib/actions/pulp3/repository/multi_copy_units.rb
1058
1077
  - app/lib/actions/pulp3/repository/presenters/abstract_sync_presenter.rb
1059
1078
  - app/lib/actions/pulp3/repository/presenters/content_unit_presenter.rb
1079
+ - app/lib/actions/pulp3/repository/presenters/repair_presenter.rb
1060
1080
  - app/lib/actions/pulp3/repository/refresh_distribution.rb
1061
1081
  - app/lib/actions/pulp3/repository/remove_units.rb
1082
+ - app/lib/actions/pulp3/repository/repair.rb
1062
1083
  - app/lib/actions/pulp3/repository/save_artifact.rb
1063
1084
  - app/lib/actions/pulp3/repository/save_distribution_references.rb
1064
1085
  - app/lib/actions/pulp3/repository/save_publication.rb
@@ -1078,6 +1099,7 @@ files:
1078
1099
  - app/lib/katello/api/version2.rb
1079
1100
  - app/lib/katello/concerns/base_template_scope_extensions.rb
1080
1101
  - app/lib/katello/concerns/filter_sensitive_data.rb
1102
+ - app/lib/katello/concerns/permission_extensions.rb
1081
1103
  - app/lib/katello/concerns/renderer_extensions.rb
1082
1104
  - app/lib/katello/errors.rb
1083
1105
  - app/lib/katello/foreman.rb
@@ -1166,6 +1188,7 @@ files:
1166
1188
  - app/models/katello/authorization/content_view_environment.rb
1167
1189
  - app/models/katello/authorization/content_view_history.rb
1168
1190
  - app/models/katello/authorization/content_view_version.rb
1191
+ - app/models/katello/authorization/content_view_version_export_history.rb
1169
1192
  - app/models/katello/authorization/gpg_key.rb
1170
1193
  - app/models/katello/authorization/host_collection.rb
1171
1194
  - app/models/katello/authorization/host_tracer.rb
@@ -1226,6 +1249,7 @@ files:
1226
1249
  - app/models/katello/content_view_repository.rb
1227
1250
  - app/models/katello/content_view_version.rb
1228
1251
  - app/models/katello/content_view_version_component.rb
1252
+ - app/models/katello/content_view_version_export_history.rb
1229
1253
  - app/models/katello/cp_consumer_user.rb
1230
1254
  - app/models/katello/deb.rb
1231
1255
  - app/models/katello/distribution.rb
@@ -1421,6 +1445,7 @@ files:
1421
1445
  - app/services/katello/pulp3/api/file.rb
1422
1446
  - app/services/katello/pulp3/api/yum.rb
1423
1447
  - app/services/katello/pulp3/content.rb
1448
+ - app/services/katello/pulp3/content_view_version/export.rb
1424
1449
  - app/services/katello/pulp3/distribution.rb
1425
1450
  - app/services/katello/pulp3/docker_blob.rb
1426
1451
  - app/services/katello/pulp3/docker_manifest.rb
@@ -1537,6 +1562,9 @@ files:
1537
1562
  - app/views/katello/api/v2/content_view_puppet_modules/create.json.rabl
1538
1563
  - app/views/katello/api/v2/content_view_puppet_modules/index.json.rabl
1539
1564
  - app/views/katello/api/v2/content_view_puppet_modules/show.json.rabl
1565
+ - app/views/katello/api/v2/content_view_repositories/show_all.json.rabl
1566
+ - app/views/katello/api/v2/content_view_version_export_histories/index.json.rabl
1567
+ - app/views/katello/api/v2/content_view_version_export_histories/show.json.rabl
1540
1568
  - app/views/katello/api/v2/content_view_versions/base.json.rabl
1541
1569
  - app/views/katello/api/v2/content_view_versions/index.json.rabl
1542
1570
  - app/views/katello/api/v2/content_view_versions/show.json.rabl
@@ -2038,6 +2066,11 @@ files:
2038
2066
  - db/migrate/20200701150946_add_auto_enabled_to_root_repository.rb
2039
2067
  - db/migrate/20200709021250_add_original_modules_to_content_view_module_stream_filter.rb
2040
2068
  - db/migrate/20200721142707_remove_duplicate_katello_pools_index.rb
2069
+ - db/migrate/20200818040551_add_content_view_version_export_history.rb
2070
+ - db/migrate/20200818192230_update_system_purpose_status.rb
2071
+ - db/migrate/20200820145217_add_download_concurrency_to_katello_root_repositories.rb
2072
+ - db/migrate/20200910140340_remove_distribution_uuid.rb
2073
+ - db/migrate/20200914200906_remove_auto_enabled.rb
2041
2074
  - db/seeds.d/101-locations.rb
2042
2075
  - db/seeds.d/102-organizations.rb
2043
2076
  - db/seeds.d/104-proxy.rb
@@ -3794,6 +3827,7 @@ files:
3794
3827
  - engines/bastion/vendor/assets/javascripts/bastion/angular-ui-bootstrap/datepicker.js
3795
3828
  - engines/bastion/vendor/assets/javascripts/bastion/angular-ui-bootstrap/timepicker.js
3796
3829
  - engines/bastion/vendor/assets/javascripts/bastion/angular-ui-router/angular-ui-router.js
3830
+ - engines/bastion/vendor/assets/javascripts/bastion/angular-ui-router/stateEvents.js
3797
3831
  - engines/bastion/vendor/assets/javascripts/bastion/angular-uuid4/angular-uuid4.js
3798
3832
  - engines/bastion/vendor/assets/javascripts/bastion/angular/angular.js
3799
3833
  - engines/bastion/vendor/assets/javascripts/bastion/json3/json3.js
@@ -4959,7 +4993,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
4959
4993
  - !ruby/object:Gem::Version
4960
4994
  version: 1.3.1
4961
4995
  requirements: []
4962
- rubygems_version: 3.0.3
4996
+ rubygems_version: 3.0.8
4963
4997
  signing_key:
4964
4998
  specification_version: 4
4965
4999
  summary: Content and Subscription Management plugin for Foreman
@@ -1,18 +0,0 @@
1
- module Actions
2
- module Candlepin
3
- module Product
4
- class ContentUpdateEnablement < Candlepin::Abstract
5
- input_format do
6
- param :content_enablements
7
- param :owner
8
- param :product_id
9
- end
10
-
11
- def run
12
- output[:response] = ::Katello::Resources::Candlepin::Product.
13
- update_enabled(input[:owner], input[:product_id], input[:content_enablements])
14
- end
15
- end
16
- end
17
- end
18
- end
@@ -1,41 +0,0 @@
1
- module Actions
2
- module Katello
3
- module Repository
4
- class ContentUpdate < Actions::Base
5
- def plan(repository, update_auto_enabled: false)
6
- root = repository.root
7
- content = root.content
8
- plan_action(::Actions::Candlepin::Product::ContentUpdate,
9
- :owner => repository.organization.label,
10
- :content_id => root.content_id,
11
- :name => root.name,
12
- :content_url => root.custom_content_path,
13
- :gpg_key_url => repository.yum_gpg_key_url,
14
- :label => content.label,
15
- :type => root.content_type,
16
- :arches => root.format_arches)
17
-
18
- if update_auto_enabled
19
- plan_action(::Actions::Candlepin::Product::ContentUpdateEnablement,
20
- :owner => repository.organization.label,
21
- :product_id => root.product.cp_id,
22
- :content_enablements => root.content_enablements)
23
- plan_self(:repository_id => repository.id)
24
- end
25
-
26
- content.update!(name: root.name,
27
- content_url: root.custom_content_path,
28
- content_type: repository.content_type,
29
- label: content.label,
30
- gpg_url: repository.yum_gpg_key_url)
31
- end
32
-
33
- def run
34
- repository = ::Katello::Repository.find(input[:repository_id])
35
- ::Katello::ProductContent.where(:product => repository.product, :content => repository.content)
36
- .update(:enabled => repository.root.auto_enabled?)
37
- end
38
- end
39
- end
40
- end
41
- end
@@ -1,17 +0,0 @@
1
- module Actions
2
- module Katello
3
- module Repository
4
- class UpdateCVRepoCertGuard < Actions::Base
5
- include Actions::Katello::PulpSelector
6
-
7
- def plan(repository, smart_proxy)
8
- plan_optional_pulp_action([::Actions::Pulp3::Repository::UpdateCVRepositoryCertGuard], repository, smart_proxy)
9
- end
10
-
11
- def humanized_name
12
- _("Updating repository authentication configuration")
13
- end
14
- end
15
- end
16
- end
17
- end