katello 4.10.0 → 4.11.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 (498) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/katello/locale/bn/katello.js +254 -215
  3. data/app/assets/javascripts/katello/locale/bn_IN/katello.js +254 -215
  4. data/app/assets/javascripts/katello/locale/ca/katello.js +254 -215
  5. data/app/assets/javascripts/katello/locale/cs/katello.js +254 -215
  6. data/app/assets/javascripts/katello/locale/cs_CZ/katello.js +254 -215
  7. data/app/assets/javascripts/katello/locale/de/katello.js +260 -245
  8. data/app/assets/javascripts/katello/locale/de_AT/katello.js +254 -215
  9. data/app/assets/javascripts/katello/locale/de_DE/katello.js +254 -215
  10. data/app/assets/javascripts/katello/locale/el/katello.js +254 -215
  11. data/app/assets/javascripts/katello/locale/en/katello.js +254 -215
  12. data/app/assets/javascripts/katello/locale/en_GB/katello.js +254 -215
  13. data/app/assets/javascripts/katello/locale/en_US/katello.js +254 -215
  14. data/app/assets/javascripts/katello/locale/es/katello.js +257 -233
  15. data/app/assets/javascripts/katello/locale/et_EE/katello.js +254 -215
  16. data/app/assets/javascripts/katello/locale/fr/katello.js +268 -268
  17. data/app/assets/javascripts/katello/locale/gl/katello.js +254 -215
  18. data/app/assets/javascripts/katello/locale/gu/katello.js +254 -215
  19. data/app/assets/javascripts/katello/locale/he_IL/katello.js +254 -215
  20. data/app/assets/javascripts/katello/locale/hi/katello.js +254 -215
  21. data/app/assets/javascripts/katello/locale/id/katello.js +254 -215
  22. data/app/assets/javascripts/katello/locale/it/katello.js +254 -221
  23. data/app/assets/javascripts/katello/locale/ja/katello.js +268 -268
  24. data/app/assets/javascripts/katello/locale/ka/katello.js +261 -231
  25. data/app/assets/javascripts/katello/locale/kn/katello.js +254 -215
  26. data/app/assets/javascripts/katello/locale/ko/katello.js +255 -222
  27. data/app/assets/javascripts/katello/locale/locale/katello.js +1049 -1012
  28. data/app/assets/javascripts/katello/locale/ml_IN/katello.js +254 -215
  29. data/app/assets/javascripts/katello/locale/mr/katello.js +254 -215
  30. data/app/assets/javascripts/katello/locale/nl_NL/katello.js +254 -215
  31. data/app/assets/javascripts/katello/locale/or/katello.js +254 -215
  32. data/app/assets/javascripts/katello/locale/pa/katello.js +254 -215
  33. data/app/assets/javascripts/katello/locale/pl/katello.js +254 -215
  34. data/app/assets/javascripts/katello/locale/pl_PL/katello.js +254 -215
  35. data/app/assets/javascripts/katello/locale/pt/katello.js +254 -215
  36. data/app/assets/javascripts/katello/locale/pt_BR/katello.js +257 -233
  37. data/app/assets/javascripts/katello/locale/ro/katello.js +254 -215
  38. data/app/assets/javascripts/katello/locale/ro_RO/katello.js +254 -215
  39. data/app/assets/javascripts/katello/locale/ru/katello.js +255 -222
  40. data/app/assets/javascripts/katello/locale/sl/katello.js +254 -215
  41. data/app/assets/javascripts/katello/locale/sv_SE/katello.js +254 -215
  42. data/app/assets/javascripts/katello/locale/ta/katello.js +254 -215
  43. data/app/assets/javascripts/katello/locale/ta_IN/katello.js +254 -215
  44. data/app/assets/javascripts/katello/locale/te/katello.js +254 -215
  45. data/app/assets/javascripts/katello/locale/tr/katello.js +254 -215
  46. data/app/assets/javascripts/katello/locale/vi/katello.js +254 -215
  47. data/app/assets/javascripts/katello/locale/vi_VN/katello.js +254 -215
  48. data/app/assets/javascripts/katello/locale/zh/katello.js +254 -215
  49. data/app/assets/javascripts/katello/locale/zh_CN/katello.js +268 -268
  50. data/app/assets/javascripts/katello/locale/zh_TW/katello.js +255 -222
  51. data/app/controllers/katello/api/registry/registry_proxies_controller.rb +15 -2
  52. data/app/controllers/katello/api/v2/capsule_content_controller.rb +21 -4
  53. data/app/controllers/katello/api/v2/capsules_controller.rb +11 -1
  54. data/app/controllers/katello/api/v2/content_view_versions_controller.rb +1 -1
  55. data/app/controllers/katello/api/v2/docker_tags_controller.rb +2 -0
  56. data/app/controllers/katello/api/v2/hosts_bulk_actions_controller.rb +2 -1
  57. data/app/controllers/katello/api/v2/organizations_controller.rb +2 -2
  58. data/app/controllers/katello/api/v2/repositories_controller.rb +1 -0
  59. data/app/controllers/katello/api/v2/simple_content_access_controller.rb +5 -5
  60. data/app/controllers/katello/api/v2/sync_plans_controller.rb +11 -3
  61. data/app/controllers/katello/concerns/api/api_controller.rb +6 -0
  62. data/app/controllers/katello/concerns/api/v2/hosts_bulk_actions_controller_extensions.rb +23 -0
  63. data/app/controllers/katello/concerns/filtered_auto_complete_search.rb +1 -1
  64. data/app/controllers/katello/concerns/organizations_controller_extensions.rb +2 -0
  65. data/app/controllers/katello/remote_execution_controller.rb +1 -1
  66. data/app/jobs/create_host_lifecycle_expire_soon_notifications.rb +11 -0
  67. data/app/lib/actions/katello/applicability/hosts/bulk_generate.rb +10 -0
  68. data/app/lib/actions/katello/capsule_content/refresh_repos.rb +8 -2
  69. data/app/lib/actions/katello/capsule_content/sync.rb +30 -10
  70. data/app/lib/actions/katello/capsule_content/sync_capsule.rb +13 -0
  71. data/app/lib/actions/katello/capsule_content/update_content_counts.rb +24 -0
  72. data/app/lib/actions/katello/content_view/promote.rb +9 -0
  73. data/app/lib/actions/katello/content_view/publish.rb +9 -0
  74. data/app/lib/actions/katello/orphan_cleanup/remove_orphans.rb +8 -0
  75. data/app/lib/actions/katello/repository/sync.rb +11 -0
  76. data/app/lib/actions/pulp3/capsule_content/reclaim_space.rb +5 -0
  77. data/app/lib/actions/pulp3/content_view_version/create_export_history.rb +6 -1
  78. data/app/lib/actions/pulp3/content_view_version/export.rb +8 -0
  79. data/app/lib/actions/pulp3/orchestration/content_view_version/export_repository.rb +1 -1
  80. data/app/lib/katello/concerns/base_template_scope_extensions.rb +14 -1
  81. data/app/lib/katello/errors.rb +1 -0
  82. data/app/lib/katello/repo_discovery.rb +2 -2
  83. data/app/lib/katello/validators/content_view_environment_coherent_default_validator.rb +22 -0
  84. data/app/lib/katello/validators/content_view_environment_validator.rb +1 -0
  85. data/app/mailers/katello/task_mailer.rb +54 -0
  86. data/app/models/katello/concerns/host_managed_extensions.rb +41 -1
  87. data/app/models/katello/concerns/organization_extensions.rb +1 -1
  88. data/app/models/katello/concerns/smart_proxy_extensions.rb +75 -3
  89. data/app/models/katello/concerns/subscription_facet_host_extensions.rb +6 -0
  90. data/app/models/katello/content_view.rb +21 -0
  91. data/app/models/katello/content_view_environment.rb +6 -1
  92. data/app/models/katello/docker_meta_tag.rb +1 -1
  93. data/app/models/katello/docker_tag.rb +1 -1
  94. data/app/models/katello/erratum.rb +1 -1
  95. data/app/models/katello/host/content_facet.rb +10 -7
  96. data/app/models/katello/product.rb +8 -0
  97. data/app/models/katello/repository.rb +31 -6
  98. data/app/models/katello/rhel_lifecycle_status.rb +214 -0
  99. data/app/models/katello/sync_plan.rb +19 -1
  100. data/app/models/katello/yum_metadata_file.rb +1 -1
  101. data/app/services/katello/applicability/applicable_content_helper.rb +1 -1
  102. data/app/services/katello/event_queue.rb +10 -2
  103. data/app/services/katello/host_status_manager.rb +1 -0
  104. data/app/services/katello/product_content_importer.rb +45 -3
  105. data/app/services/katello/pulp3/ansible_collection.rb +1 -0
  106. data/app/services/katello/pulp3/api/core.rb +1 -1
  107. data/app/services/katello/pulp3/deb.rb +1 -0
  108. data/app/services/katello/pulp3/docker_manifest.rb +1 -0
  109. data/app/services/katello/pulp3/docker_manifest_list.rb +9 -4
  110. data/app/services/katello/pulp3/docker_tag.rb +1 -0
  111. data/app/services/katello/pulp3/erratum.rb +1 -0
  112. data/app/services/katello/pulp3/file_unit.rb +1 -0
  113. data/app/services/katello/pulp3/module_stream.rb +1 -0
  114. data/app/services/katello/pulp3/package_group.rb +1 -0
  115. data/app/services/katello/pulp3/pulp_content_unit.rb +39 -0
  116. data/app/services/katello/pulp3/repository_mirror.rb +21 -2
  117. data/app/services/katello/pulp3/rpm.rb +1 -0
  118. data/app/services/katello/pulp3/smart_proxy_mirror_repository.rb +1 -1
  119. data/app/services/katello/pulp3/srpm.rb +3 -2
  120. data/app/services/katello/registration_manager.rb +6 -3
  121. data/app/services/katello/repository_type.rb +2 -1
  122. data/app/services/katello/ui_notifications/hosts/lifecycle_expire_soon.rb +58 -0
  123. data/app/views/foreman/job_templates/resolve_traces.erb +1 -1
  124. data/app/views/foreman/smart_proxies/_content_tab.html.erb +1 -3
  125. data/app/views/katello/api/v2/capsule_content/sync_status.json.rabl +39 -1
  126. data/app/views/katello/api/v2/content_export_incrementals/repository.json.rabl +13 -0
  127. data/app/views/katello/api/v2/content_facet/show.json.rabl +4 -0
  128. data/app/views/katello/api/v2/content_views/base.json.rabl +1 -1
  129. data/app/views/katello/api/v2/docker_tags/_base.json.rabl +28 -6
  130. data/app/views/katello/hosts/_errata_counts.html.erb +2 -2
  131. data/app/views/katello/task_mailer/cv_promote_failure.html.erb +31 -0
  132. data/app/views/katello/task_mailer/cv_promote_failure.text.erb +13 -0
  133. data/app/views/katello/task_mailer/cv_publish_failure.html.erb +31 -0
  134. data/app/views/katello/task_mailer/cv_publish_failure.text.erb +13 -0
  135. data/app/views/katello/task_mailer/proxy_sync_failure.html.erb +45 -0
  136. data/app/views/katello/task_mailer/proxy_sync_failure.text.erb +25 -0
  137. data/app/views/katello/task_mailer/repo_sync_failure.html.erb +35 -0
  138. data/app/views/katello/task_mailer/repo_sync_failure.text.erb +15 -0
  139. data/app/views/overrides/organizations/_edit_override.html.erb +4 -0
  140. data/config/routes/api/v2.rb +2 -0
  141. data/db/migrate/20230825180856_add_content_counts_to_smart_proxy.rb +7 -0
  142. data/db/migrate/20231020153017_create_indexes_for_nvra_and_epoch.rb +6 -0
  143. data/db/seeds.d/106-mail_notifications.rb +32 -0
  144. data/db/seeds.d/109-katello-notification-blueprints.rb +6 -0
  145. data/engines/bastion/app/assets/javascripts/bastion/components/views/bst-alert.html +1 -1
  146. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/activation-keys.controller.js +4 -0
  147. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/activation-key-add-host-collections.controller.js +3 -0
  148. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/activation-key-add-subscriptions.controller.js +3 -0
  149. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/activation-key-associations.controller.js +4 -0
  150. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/activation-key-copy.controller.js +7 -2
  151. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/activation-key-host-collections.controller.js +3 -0
  152. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/activation-key-repository-sets.controller.js +3 -0
  153. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/activation-key-subscriptions.controller.js +3 -0
  154. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/new/new-activation-key.controller.js +6 -2
  155. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/capsule-content/capsule-content.controller.js +16 -1
  156. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/common/views/rhel-lifecycle-notice.html +5 -0
  157. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-credentials/content-credentials.controller.js +7 -2
  158. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-credentials/details/content-credential-acs.controller.js +7 -2
  159. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-credentials/details/content-credential-products.controller.js +7 -2
  160. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-credentials/details/content-credential-repositories.controller.js +7 -2
  161. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-credentials/new/new-content-credential.controller.js +3 -0
  162. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/bulk/content-hosts-bulk-errata-modal.controller.js +5 -1
  163. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/content-host-debs-actions.controller.js +5 -1
  164. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/content-host-debs-applicable.controller.js +3 -0
  165. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/content-host-debs-installed.controller.js +3 -0
  166. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/content-host-errata.controller.js +4 -0
  167. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/content-host-module-streams.controller.js +3 -0
  168. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/content-host-packages-applicable.controller.js +3 -0
  169. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/content-host-packages-installed.controller.js +3 -0
  170. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/content-host-packages.controller.js +3 -0
  171. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/content-host-traces.controller.js +4 -0
  172. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/views/content-host-debs-actions.html +1 -1
  173. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/views/content-host-debs-applicable.html +1 -1
  174. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/views/content-host-debs-installed.html +1 -1
  175. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/views/content-host-errata.html +3 -3
  176. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/views/content-host-module-streams.html +1 -1
  177. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/views/content-host-packages-actions.html +1 -1
  178. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/views/content-host-packages-applicable.html +1 -1
  179. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/views/content-host-packages-installed.html +1 -1
  180. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/views/content-host-traces.html +3 -3
  181. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content-hosts.controller.js +5 -0
  182. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content-hosts.routes.js +1 -1
  183. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/content-host-add-host-collections.controller.js +4 -1
  184. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/content-host-add-subscriptions.controller.js +3 -0
  185. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/content-host-host-collections.controller.js +4 -1
  186. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/content-host-repository-sets.controller.js +3 -0
  187. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/content-host-subscriptions.controller.js +3 -0
  188. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/views/content-host-add-subscriptions.html +1 -1
  189. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/views/content-host-details.html +4 -3
  190. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/views/content-host-host-collections.html +1 -1
  191. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/views/content-host-info.html +3 -3
  192. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/views/content-host-provisioning-info.html +2 -2
  193. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/views/content-host-subscriptions-list.html +1 -1
  194. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/views/content-host-subscriptions.html +1 -1
  195. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/views/content-hosts.html +3 -3
  196. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/debs/debs.controller.js +7 -0
  197. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/debs/details/deb-content-views.controller.js +8 -1
  198. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/debs/details/deb-repositories.controller.js +10 -2
  199. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/docker-tags/details/docker-tag-environments.controller.js +5 -2
  200. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/docker-tags/details/docker-tag-repositories.controller.js +6 -2
  201. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/docker-tags/docker-tags.controller.js +6 -3
  202. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/environments/details/environment-content.controller.js +13 -0
  203. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/environments/details/environment.controller.js +6 -0
  204. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/environments/new-environment.controller.js +8 -2
  205. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/errata/apply-errata.controller.js +4 -0
  206. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/errata/details/erratum-content-hosts.controller.js +7 -2
  207. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/errata/details/erratum-repositories.controller.js +7 -2
  208. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/errata/details/erratum.controller.js +6 -2
  209. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/errata/details/views/erratum-info.html +2 -2
  210. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/errata/errata.controller.js +5 -0
  211. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/errata/views/errata.html +1 -1
  212. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/files/details/file-content-views.controller.js +10 -2
  213. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/files/details/file-repositories.controller.js +8 -1
  214. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/files/files.controller.js +9 -2
  215. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/details/host-collection-add-hosts.controller.js +3 -0
  216. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/details/host-collection-copy.controller.js +7 -2
  217. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/details/host-collection-hosts.controller.js +3 -0
  218. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/host-collections.controller.js +4 -0
  219. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/new/new-host-collection.controller.js +6 -2
  220. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/hosts/host.factory.js +4 -0
  221. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/bastion_katello.pot +166 -43
  222. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/fr.po +4 -0
  223. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/translations.js +1 -1
  224. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/packages/packages.controller.js +7 -0
  225. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/product-repositories.controller.js +5 -0
  226. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/details/repository-details-advanced-sync.controller.js +6 -2
  227. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/details/repository-details-manage-content.controller.js +11 -0
  228. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/new/new-repository.controller.js +3 -0
  229. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/views/product-repositories.html +2 -2
  230. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/discovery/discovery-create.controller.js +3 -0
  231. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/discovery/discovery.controller.js +3 -0
  232. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/new/product-form.controller.js +6 -2
  233. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/products.controller.js +4 -0
  234. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/views/content-access-mode-banner.html +1 -1
  235. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/details/sync-plan-add-products.controller.js +5 -1
  236. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/details/sync-plan-products.controller.js +4 -0
  237. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/new/new-sync-plan.controller.js +3 -0
  238. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/sync-plans.controller.js +4 -0
  239. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/tasks/task-details.controller.js +6 -2
  240. data/lib/katello/engine.rb +2 -3
  241. data/lib/katello/permission_creator.rb +2 -2
  242. data/lib/katello/plugin.rb +4 -0
  243. data/lib/katello/repository_types/ostree.rb +1 -0
  244. data/lib/katello/repository_types/python.rb +1 -0
  245. data/lib/katello/scheduled_jobs.rb +1 -1
  246. data/lib/katello/version.rb +1 -1
  247. data/locale/action_names.rb +1 -3
  248. data/locale/bn/LC_MESSAGES/katello.mo +0 -0
  249. data/locale/bn/katello.po +236 -197
  250. data/locale/bn/katello.po.time_stamp +0 -0
  251. data/locale/bn_IN/LC_MESSAGES/katello.mo +0 -0
  252. data/locale/bn_IN/katello.po +236 -197
  253. data/locale/bn_IN/katello.po.time_stamp +0 -0
  254. data/locale/ca/LC_MESSAGES/katello.mo +0 -0
  255. data/locale/ca/katello.po +236 -197
  256. data/locale/ca/katello.po.time_stamp +0 -0
  257. data/locale/cs/LC_MESSAGES/katello.mo +0 -0
  258. data/locale/cs/katello.po +236 -206
  259. data/locale/cs/katello.po.time_stamp +0 -0
  260. data/locale/cs_CZ/LC_MESSAGES/katello.mo +0 -0
  261. data/locale/cs_CZ/katello.po +236 -197
  262. data/locale/cs_CZ/katello.po.time_stamp +0 -0
  263. data/locale/de/LC_MESSAGES/katello.mo +0 -0
  264. data/locale/de/katello.po +241 -202
  265. data/locale/de/katello.po.time_stamp +0 -0
  266. data/locale/de_AT/LC_MESSAGES/katello.mo +0 -0
  267. data/locale/de_AT/katello.po +236 -197
  268. data/locale/de_AT/katello.po.time_stamp +0 -0
  269. data/locale/de_DE/LC_MESSAGES/katello.mo +0 -0
  270. data/locale/de_DE/katello.po +236 -197
  271. data/locale/de_DE/katello.po.time_stamp +0 -0
  272. data/locale/el/LC_MESSAGES/katello.mo +0 -0
  273. data/locale/el/katello.po +236 -197
  274. data/locale/el/katello.po.time_stamp +0 -0
  275. data/locale/en/LC_MESSAGES/katello.mo +0 -0
  276. data/locale/en/katello.po +236 -197
  277. data/locale/en/katello.po.time_stamp +0 -0
  278. data/locale/en_GB/LC_MESSAGES/katello.mo +0 -0
  279. data/locale/en_GB/katello.po +236 -197
  280. data/locale/en_GB/katello.po.time_stamp +0 -0
  281. data/locale/en_US/LC_MESSAGES/katello.mo +0 -0
  282. data/locale/en_US/katello.po +236 -197
  283. data/locale/en_US/katello.po.time_stamp +0 -0
  284. data/locale/es/LC_MESSAGES/katello.mo +0 -0
  285. data/locale/es/katello.po +238 -199
  286. data/locale/es/katello.po.time_stamp +0 -0
  287. data/locale/et_EE/LC_MESSAGES/katello.mo +0 -0
  288. data/locale/et_EE/katello.po +236 -197
  289. data/locale/et_EE/katello.po.time_stamp +0 -0
  290. data/locale/fr/LC_MESSAGES/katello.mo +0 -0
  291. data/locale/fr/katello.po +247 -208
  292. data/locale/fr/katello.po.time_stamp +0 -0
  293. data/locale/gl/LC_MESSAGES/katello.mo +0 -0
  294. data/locale/gl/katello.po +236 -197
  295. data/locale/gl/katello.po.time_stamp +0 -0
  296. data/locale/gu/LC_MESSAGES/katello.mo +0 -0
  297. data/locale/gu/katello.po +236 -197
  298. data/locale/gu/katello.po.time_stamp +0 -0
  299. data/locale/he_IL/LC_MESSAGES/katello.mo +0 -0
  300. data/locale/he_IL/katello.po +236 -197
  301. data/locale/he_IL/katello.po.time_stamp +0 -0
  302. data/locale/hi/LC_MESSAGES/katello.mo +0 -0
  303. data/locale/hi/katello.po +236 -197
  304. data/locale/hi/katello.po.time_stamp +0 -0
  305. data/locale/id/LC_MESSAGES/katello.mo +0 -0
  306. data/locale/id/katello.po +236 -197
  307. data/locale/id/katello.po.time_stamp +0 -0
  308. data/locale/it/LC_MESSAGES/katello.mo +0 -0
  309. data/locale/it/katello.po +236 -197
  310. data/locale/it/katello.po.time_stamp +0 -0
  311. data/locale/ja/LC_MESSAGES/katello.mo +0 -0
  312. data/locale/ja/katello.po +247 -208
  313. data/locale/ja/katello.po.time_stamp +0 -0
  314. data/locale/ka/LC_MESSAGES/katello.mo +0 -0
  315. data/locale/ka/katello.po +241 -202
  316. data/locale/ka/katello.po.time_stamp +0 -0
  317. data/locale/katello.pot +1427 -1296
  318. data/locale/kn/LC_MESSAGES/katello.mo +0 -0
  319. data/locale/kn/katello.po +236 -197
  320. data/locale/kn/katello.po.time_stamp +0 -0
  321. data/locale/ko/LC_MESSAGES/katello.mo +0 -0
  322. data/locale/ko/katello.po +236 -197
  323. data/locale/ko/katello.po.time_stamp +0 -0
  324. data/locale/ml_IN/LC_MESSAGES/katello.mo +0 -0
  325. data/locale/ml_IN/katello.po +236 -197
  326. data/locale/ml_IN/katello.po.time_stamp +0 -0
  327. data/locale/mr/LC_MESSAGES/katello.mo +0 -0
  328. data/locale/mr/katello.po +236 -197
  329. data/locale/mr/katello.po.time_stamp +0 -0
  330. data/locale/nl_NL/LC_MESSAGES/katello.mo +0 -0
  331. data/locale/nl_NL/katello.po +236 -197
  332. data/locale/nl_NL/katello.po.time_stamp +0 -0
  333. data/locale/or/LC_MESSAGES/katello.mo +0 -0
  334. data/locale/or/katello.po +236 -197
  335. data/locale/or/katello.po.time_stamp +0 -0
  336. data/locale/pa/LC_MESSAGES/katello.mo +0 -0
  337. data/locale/pa/katello.po +236 -197
  338. data/locale/pa/katello.po.time_stamp +0 -0
  339. data/locale/pl/LC_MESSAGES/katello.mo +0 -0
  340. data/locale/pl/katello.po +236 -197
  341. data/locale/pl/katello.po.time_stamp +0 -0
  342. data/locale/pl_PL/LC_MESSAGES/katello.mo +0 -0
  343. data/locale/pl_PL/katello.po +236 -197
  344. data/locale/pl_PL/katello.po.time_stamp +0 -0
  345. data/locale/pt/LC_MESSAGES/katello.mo +0 -0
  346. data/locale/pt/katello.po +236 -197
  347. data/locale/pt/katello.po.time_stamp +0 -0
  348. data/locale/pt_BR/LC_MESSAGES/katello.mo +0 -0
  349. data/locale/pt_BR/katello.po +238 -199
  350. data/locale/pt_BR/katello.po.time_stamp +0 -0
  351. data/locale/ro/LC_MESSAGES/katello.mo +0 -0
  352. data/locale/ro/katello.po +236 -197
  353. data/locale/ro/katello.po.time_stamp +0 -0
  354. data/locale/ro_RO/LC_MESSAGES/katello.mo +0 -0
  355. data/locale/ro_RO/katello.po +236 -197
  356. data/locale/ro_RO/katello.po.time_stamp +0 -0
  357. data/locale/ru/LC_MESSAGES/katello.mo +0 -0
  358. data/locale/ru/katello.po +236 -197
  359. data/locale/ru/katello.po.time_stamp +0 -0
  360. data/locale/sl/LC_MESSAGES/katello.mo +0 -0
  361. data/locale/sl/katello.po +236 -197
  362. data/locale/sl/katello.po.time_stamp +0 -0
  363. data/locale/sv_SE/LC_MESSAGES/katello.mo +0 -0
  364. data/locale/sv_SE/katello.po +236 -197
  365. data/locale/sv_SE/katello.po.time_stamp +0 -0
  366. data/locale/ta/LC_MESSAGES/katello.mo +0 -0
  367. data/locale/ta/katello.po +236 -197
  368. data/locale/ta/katello.po.time_stamp +0 -0
  369. data/locale/ta_IN/LC_MESSAGES/katello.mo +0 -0
  370. data/locale/ta_IN/katello.po +236 -197
  371. data/locale/ta_IN/katello.po.time_stamp +0 -0
  372. data/locale/te/LC_MESSAGES/katello.mo +0 -0
  373. data/locale/te/katello.po +236 -197
  374. data/locale/te/katello.po.time_stamp +0 -0
  375. data/locale/tr/LC_MESSAGES/katello.mo +0 -0
  376. data/locale/tr/katello.po +236 -197
  377. data/locale/tr/katello.po.time_stamp +0 -0
  378. data/locale/vi/LC_MESSAGES/katello.mo +0 -0
  379. data/locale/vi/katello.po +236 -197
  380. data/locale/vi/katello.po.time_stamp +0 -0
  381. data/locale/vi_VN/LC_MESSAGES/katello.mo +0 -0
  382. data/locale/vi_VN/katello.po +236 -197
  383. data/locale/vi_VN/katello.po.time_stamp +0 -0
  384. data/locale/zh/LC_MESSAGES/katello.mo +0 -0
  385. data/locale/zh/katello.po +236 -197
  386. data/locale/zh/katello.po.time_stamp +0 -0
  387. data/locale/zh_CN/LC_MESSAGES/katello.mo +0 -0
  388. data/locale/zh_CN/katello.po +247 -208
  389. data/locale/zh_CN/katello.po.time_stamp +0 -0
  390. data/locale/zh_TW/LC_MESSAGES/katello.mo +0 -0
  391. data/locale/zh_TW/katello.po +236 -197
  392. data/locale/zh_TW/katello.po.time_stamp +0 -0
  393. data/webpack/components/Table/EmptyStateMessage.js +7 -4
  394. data/webpack/components/Table/MainTable.scss +18 -17
  395. data/webpack/components/Table/TableWrapper.js +4 -1
  396. data/webpack/components/extensions/HostDetails/ActionsBar/index.js +45 -4
  397. data/webpack/components/extensions/HostDetails/Cards/ErrataOverviewCard.scss +9 -7
  398. data/webpack/components/extensions/HostDetails/Cards/HostCollectionsCard/HostCollectionsCard.js +1 -1
  399. data/webpack/components/extensions/HostDetails/Cards/HostCollectionsCard/HostCollectionsModal.js +1 -1
  400. data/webpack/components/extensions/HostDetails/Cards/SystemPurposeCard/SystemPurposeActions.js +29 -7
  401. data/webpack/components/extensions/HostDetails/Cards/SystemPurposeCard/SystemPurposeCard.js +106 -66
  402. data/webpack/components/extensions/HostDetails/Cards/SystemPurposeCard/SystemPurposeCard.scss +6 -0
  403. data/webpack/components/extensions/HostDetails/Cards/SystemPurposeCard/SystemPurposeConstants.js +2 -0
  404. data/webpack/components/extensions/HostDetails/Cards/SystemPurposeCard/SystemPurposeEditModal.js +53 -29
  405. data/webpack/components/extensions/HostDetails/Cards/SystemPurposeCard/SystemPurposeSelectors.js +7 -6
  406. data/webpack/components/extensions/HostDetails/Cards/SystemPurposeCard/__tests__/SystemPurposeCard.test.js +24 -5
  407. data/webpack/components/extensions/HostDetails/Cards/SystemPurposeCard/__tests__/SystemPurposeEditModal.test.js +137 -7
  408. data/webpack/components/extensions/HostDetails/DetailsTabCards/HwPropertiesCard.js +11 -10
  409. data/webpack/components/extensions/HostDetails/DetailsTabCards/RegistrationCard.js +8 -2
  410. data/webpack/components/extensions/HostDetails/Tabs/ErrataTab/ErrataTab.js +27 -10
  411. data/webpack/components/extensions/HostDetails/Tabs/ErrataTab/HostErrataActions.js +3 -22
  412. data/webpack/components/extensions/HostDetails/Tabs/ErrataTab/HostErrataConstants.js +0 -1
  413. data/webpack/components/extensions/HostDetails/Tabs/ModuleStreamsTab/ModuleStreamsTab.js +3 -2
  414. data/webpack/components/extensions/HostDetails/Tabs/PackagesTab/PackageInstallModal.js +2 -2
  415. data/webpack/components/extensions/HostDetails/Tabs/PackagesTab/PackagesTab.js +48 -12
  416. data/webpack/components/extensions/HostDetails/Tabs/RemoteExecutionActions.js +22 -10
  417. data/webpack/components/extensions/HostDetails/Tabs/RemoteExecutionHooks.js +1 -1
  418. data/webpack/components/extensions/HostDetails/Tabs/RepositorySetsTab/RepositorySetsTab.js +2 -2
  419. data/webpack/components/extensions/HostDetails/Tabs/TracesTab/EnableTracerModal.js +71 -5
  420. data/webpack/components/extensions/HostDetails/Tabs/TracesTab/EnableTracerModal.scss +16 -0
  421. data/webpack/components/extensions/HostDetails/Tabs/TracesTab/TracesEnabler.js +4 -1
  422. data/webpack/components/extensions/HostDetails/Tabs/TracesTab/TracesTab.js +6 -2
  423. data/webpack/components/extensions/HostDetails/Tabs/__tests__/packagesTab.test.js +2 -1
  424. data/webpack/components/extensions/HostDetails/Tabs/__tests__/tracesTab.test.js +25 -0
  425. data/webpack/components/extensions/Hosts/ActionsBar/index.js +36 -0
  426. data/webpack/components/extensions/Hosts/constants.js +2 -0
  427. data/webpack/components/extensions/RegistrationCommands/RegistrationCommandsPageHelpers.js +13 -7
  428. data/webpack/components/extensions/RegistrationCommands/__tests__/__snapshots__/ActivationKeys.test.js.snap +9 -1
  429. data/webpack/components/extensions/RegistrationCommands/fields/ActivationKeys.js +87 -22
  430. data/webpack/components/extensions/RegistrationCommands/index.js +17 -41
  431. data/webpack/global_index.js +11 -2
  432. data/webpack/redux/reducers/RedHatRepositories/enabled.fixtures.js +4 -0
  433. data/webpack/redux/reducers/RedHatRepositories/enabled.js +1 -0
  434. data/webpack/scenes/ActivationKeys/Details/ActivationKeyDetails.js +10 -1
  435. data/webpack/scenes/ActivationKeys/Details/ActivationKeyDetails.scss +33 -31
  436. data/webpack/scenes/AlternateContentSources/MainTable/ACSTable.js +3 -1
  437. data/webpack/scenes/Content/ContentConfig.js +3 -0
  438. data/webpack/scenes/ContentViews/Create/CreateContentViewForm.js +6 -4
  439. data/webpack/scenes/ContentViews/Create/CreateContentViewForm.scss +8 -6
  440. data/webpack/scenes/ContentViews/Delete/ContentViewDeleteWizard.js +1 -0
  441. data/webpack/scenes/ContentViews/Delete/Steps/CVEnvironmentSelectionForm.scss +4 -2
  442. data/webpack/scenes/ContentViews/Details/ComponentContentViews/ComponentContentViewAddModal.js +3 -4
  443. data/webpack/scenes/ContentViews/Details/ComponentContentViews/ComponentContentViewBulkAddModal.js +2 -2
  444. data/webpack/scenes/ContentViews/Details/ComponentContentViews/ContentViewComponents.js +5 -5
  445. data/webpack/scenes/ContentViews/Details/ComponentContentViews/__tests__/compositeCVDetails.fixtures.json +393 -0
  446. data/webpack/scenes/ContentViews/Details/ComponentContentViews/__tests__/contentViewComponents.test.js +30 -4
  447. data/webpack/scenes/ContentViews/Details/Filters/CVErrataDateFilterContent.js +3 -1
  448. data/webpack/scenes/ContentViews/Details/Repositories/ContentViewRepositories.js +3 -3
  449. data/webpack/scenes/ContentViews/Details/Repositories/RepoIcon.js +2 -1
  450. data/webpack/scenes/ContentViews/Details/Versions/Compare/CVVersionCompareTable.js +1 -1
  451. data/webpack/scenes/ContentViews/Details/Versions/ContentViewVersions.js +1 -1
  452. data/webpack/scenes/ContentViews/Details/Versions/Delete/RemoveCVVersionWizard.js +1 -1
  453. data/webpack/scenes/ContentViews/Details/Versions/VersionDetails/ContentViewVersionDetailsTable.js +1 -1
  454. data/webpack/scenes/ContentViews/Publish/CVPublishForm.js +24 -1
  455. data/webpack/scenes/ContentViews/Publish/PublishContentViewWizard.js +1 -0
  456. data/webpack/scenes/ContentViews/Publish/__tests__/publishContentView.test.js +42 -0
  457. data/webpack/scenes/ContentViews/Publish/cvPublishForm.scss +13 -11
  458. data/webpack/scenes/ContentViews/Table/ContentViewsTable.js +2 -1
  459. data/webpack/scenes/ContentViews/__tests__/mockDetails.fixtures.json +2 -1
  460. data/webpack/scenes/Hosts/ChangeContentSource/index.js +4 -3
  461. data/webpack/scenes/ModuleStreams/Details/ModuleStreamDetails.js +1 -2
  462. data/webpack/scenes/ModuleStreams/Details/__tests__/__snapshots__/ModuleStreamDetails.test.js.snap +1 -1
  463. data/webpack/scenes/RedHatRepositories/RedHatRepositoriesPage.js +2 -1
  464. data/webpack/scenes/RedHatRepositories/__tests__/__snapshots__/RedHatRepositoriesPage.test.js.snap +6 -0
  465. data/webpack/scenes/RedHatRepositories/components/EnabledRepository/EnabledRepository.js +4 -1
  466. data/webpack/scenes/RedHatRepositories/components/EnabledRepository/EnabledRepositoryContent.js +13 -4
  467. data/webpack/scenes/RedHatRepositories/components/EnabledRepository/__tests__/EnabledRepositoryContent.test.js +1 -0
  468. data/webpack/scenes/RedHatRepositories/components/EnabledRepository/__tests__/__snapshots__/EnabledRepository.test.js.snap +1 -0
  469. data/webpack/scenes/RedHatRepositories/components/EnabledRepository/__tests__/__snapshots__/EnabledRepositoryContent.test.js.snap +3 -2
  470. data/webpack/scenes/SmartProxy/AdditionalCapsuleContent.js +93 -0
  471. data/webpack/scenes/SmartProxy/Content.js +12 -4
  472. data/webpack/scenes/SmartProxy/ExpandableCvDetails.js +107 -0
  473. data/webpack/scenes/SmartProxy/ExpandedSmartProxyRepositories.js +139 -0
  474. data/webpack/scenes/SmartProxy/SmartProxyContentActions.js +17 -4
  475. data/webpack/scenes/SmartProxy/SmartProxyContentConstants.js +1 -0
  476. data/webpack/scenes/SmartProxy/SmartProxyExpandableTable.js +150 -0
  477. data/webpack/scenes/SmartProxy/__tests__/SmartProxyContentTest.fixtures.json +799 -0
  478. data/webpack/scenes/SmartProxy/__tests__/SmartProxyContentTest.js +29 -17
  479. data/webpack/scenes/Subscriptions/Details/SubscriptionDetails.js +16 -19
  480. data/webpack/scenes/Subscriptions/Details/SubscriptionDetails.scss +12 -8
  481. data/webpack/scenes/Subscriptions/Details/__tests__/__snapshots__/SubscriptionDetails.test.js.snap +21 -18
  482. data/webpack/scenes/Subscriptions/Manifest/CdnConfigurationTab/CdnConfigurationForm.scss +4 -2
  483. data/webpack/scenes/Subscriptions/Manifest/ManageManifestModal.scss +38 -19
  484. data/webpack/scenes/Subscriptions/Manifest/index.js +0 -2
  485. data/webpack/scenes/Subscriptions/SubscriptionsPage.js +38 -12
  486. data/webpack/scenes/Subscriptions/SubscriptionsPage.scss +38 -36
  487. data/webpack/scenes/Subscriptions/__tests__/__snapshots__/SubscriptionsPage.test.js.snap +16 -13
  488. data/webpack/utils/helpers.js +0 -1
  489. metadata +148 -33
  490. data/app/controllers/katello/concerns/api/v2/bulk_hosts_extensions.rb +0 -47
  491. data/webpack/components/Table/TableHooks.js +0 -315
  492. data/webpack/components/Table/__test__/useBulkSelect.test.js +0 -99
  493. data/webpack/components/extensions/RegistrationCommands/__tests__/LifeCycleEnvironment.test.js +0 -11
  494. data/webpack/components/extensions/RegistrationCommands/__tests__/__snapshots__/LifeCycleEnvironment.test.js.snap +0 -29
  495. data/webpack/components/extensions/RegistrationCommands/fields/LifecycleEnvironment.js +0 -57
  496. data/webpack/scenes/SmartProxy/SmartProxyContentTable.js +0 -164
  497. data/webpack/scenes/SmartProxy/__tests__/SmartProxyContentResult.fixtures.json +0 -140
  498. data/webpack/scenes/Subscriptions/Manifest/Manifest.scss +0 -16
@@ -30,7 +30,7 @@ import AddedStatusLabel from '../../../../components/AddedStatusLabel';
30
30
  import ComponentVersion from './ComponentVersion';
31
31
  import ComponentEnvironments from './ComponentEnvironments';
32
32
  import ContentViewIcon from '../../components/ContentViewIcon';
33
- import { ADDED, ALL_STATUSES, CONTENT_VIEW_NEEDS_PUBLISH, NOT_ADDED } from '../../ContentViewsConstants';
33
+ import { ADDED, ALL_STATUSES, NOT_ADDED } from '../../ContentViewsConstants';
34
34
  import SelectableDropdown from '../../../../components/SelectableDropdown/SelectableDropdown';
35
35
  import '../../../../components/EditableTextInput/editableTextInput.scss';
36
36
  import ComponentContentViewAddModal from './ComponentContentViewAddModal';
@@ -98,7 +98,7 @@ const ContentViewComponents = ({ cvId, details }) => {
98
98
  dispatch(addComponent({
99
99
  compositeContentViewId: cvId,
100
100
  components: [{ latest: true, content_view_id: componentCvId }],
101
- }, () => dispatch({ type: CONTENT_VIEW_NEEDS_PUBLISH })));
101
+ }, () => dispatch(getContentViewDetails(cvId))));
102
102
  }
103
103
  }, [cvId, dispatch]);
104
104
 
@@ -108,7 +108,7 @@ const ContentViewComponents = ({ cvId, details }) => {
108
108
  dispatch(removeComponent({
109
109
  compositeContentViewId: cvId,
110
110
  component_ids: componentIds,
111
- }, () => dispatch({ type: CONTENT_VIEW_NEEDS_PUBLISH })));
111
+ }, () => dispatch(getContentViewDetails(cvId))));
112
112
  };
113
113
 
114
114
  const addBulk = () => {
@@ -122,7 +122,7 @@ const ContentViewComponents = ({ cvId, details }) => {
122
122
  dispatch(removeComponent({
123
123
  compositeContentViewId: cvId,
124
124
  component_ids: [componentIdToRemove],
125
- }, () => dispatch({ type: CONTENT_VIEW_NEEDS_PUBLISH })));
125
+ }, () => dispatch(getContentViewDetails(cvId))));
126
126
  };
127
127
 
128
128
  const toggleBulkAction = () => {
@@ -156,7 +156,7 @@ const ContentViewComponents = ({ cvId, details }) => {
156
156
  <SplitItem>
157
157
  <Button
158
158
  ouiaId={`edit-component-version-${componentCvId}`}
159
- className="foreman-edit-icon"
159
+ className="katello-edit-icon foreman-edit-icon"
160
160
  aria-label="edit_version"
161
161
  variant="plain"
162
162
  onClick={() => {
@@ -0,0 +1,393 @@
1
+ {
2
+ "content_host_count": 0,
3
+ "composite": true,
4
+ "component_ids": [
5
+ 5,
6
+ 7
7
+ ],
8
+ "duplicate_repositories_to_publish": [
9
+ {
10
+ "id": 1,
11
+ "name": "repo1",
12
+ "components": [
13
+ {
14
+ "content_view_name": "test",
15
+ "content_view_version": "2.0"
16
+ },
17
+ {
18
+ "content_view_name": "dev",
19
+ "content_view_version": "3.0"
20
+ }
21
+ ]
22
+ }
23
+ ],
24
+ "default": false,
25
+ "version_count": 1,
26
+ "latest_version": "1.0",
27
+ "latest_version_id": 10,
28
+ "auto_publish": false,
29
+ "solve_dependencies": false,
30
+ "import_only": false,
31
+ "generated_for": "none",
32
+ "related_cv_count": 2,
33
+ "related_composite_cvs": [],
34
+ "needs_publish": false,
35
+ "filtered": false,
36
+ "repository_ids": [
37
+ 39,
38
+ 50,
39
+ 51,
40
+ 52,
41
+ 49
42
+ ],
43
+ "id": 4,
44
+ "name": "dup_container",
45
+ "label": "dup_container",
46
+ "description": "",
47
+ "organization_id": 1,
48
+ "organization": {
49
+ "name": "Default Organization",
50
+ "label": "Default_Organization",
51
+ "id": 1
52
+ },
53
+ "created_at": "2023-09-15 13:19:51 -0400",
54
+ "updated_at": "2023-09-15 14:34:29 -0400",
55
+ "last_task": {
56
+ "id": "14bb82d0-fdea-4316-a4dc-0e3f914acf8e",
57
+ "started_at": "2023-09-15 14:34:28 -0400",
58
+ "result": "success",
59
+ "last_sync_words": "3 days"
60
+ },
61
+ "latest_version_environments": [
62
+ {
63
+ "id": 1,
64
+ "name": "Library",
65
+ "label": "Library"
66
+ }
67
+ ],
68
+ "repositories": [
69
+ {
70
+ "id": 39,
71
+ "name": "repo1",
72
+ "label": "repo1",
73
+ "content_type": "yum"
74
+ },
75
+ {
76
+ "id": 50,
77
+ "name": "repo1",
78
+ "label": "repo1",
79
+ "content_type": "yum"
80
+ },
81
+ {
82
+ "id": 51,
83
+ "name": "docker_repo",
84
+ "label": "docker_repo",
85
+ "content_type": "docker"
86
+ },
87
+ {
88
+ "id": 52,
89
+ "name": "python-pulp",
90
+ "label": "python-pulp",
91
+ "content_type": "python"
92
+ },
93
+ {
94
+ "id": 49,
95
+ "name": "test_ansible",
96
+ "label": "test_ansible",
97
+ "content_type": "ansible_collection"
98
+ }
99
+ ],
100
+ "versions": [
101
+ {
102
+ "id": 10,
103
+ "version": "1.0",
104
+ "published": "2023-09-15 14:34:29 -0400",
105
+ "description": "",
106
+ "environment_ids": [
107
+ 1
108
+ ],
109
+ "filters_applied": false,
110
+ "published_at_words": "3 days"
111
+ }
112
+ ],
113
+ "components": [
114
+ {
115
+ "id": 5,
116
+ "name": "test 2.0",
117
+ "content_view_id": 2,
118
+ "version": "2.0",
119
+ "environments": [
120
+ {
121
+ "id": 2,
122
+ "name": "dev",
123
+ "label": "dev"
124
+ },
125
+ {
126
+ "id": 3,
127
+ "name": "test",
128
+ "label": "test"
129
+ }
130
+ ],
131
+ "content_view": {
132
+ "id": 2,
133
+ "name": "test",
134
+ "label": "test",
135
+ "description": "",
136
+ "next_version": 4,
137
+ "latest_version": "3.0"
138
+ },
139
+ "repositories": [
140
+ {
141
+ "id": 39,
142
+ "name": "repo1",
143
+ "label": "repo1",
144
+ "description": null
145
+ }
146
+ ]
147
+ },
148
+ {
149
+ "id": 7,
150
+ "name": "dev 3.0",
151
+ "content_view_id": 3,
152
+ "version": "3.0",
153
+ "environments": [
154
+ {
155
+ "id": 2,
156
+ "name": "dev",
157
+ "label": "dev"
158
+ }
159
+ ],
160
+ "content_view": {
161
+ "id": 3,
162
+ "name": "dev",
163
+ "label": "dev",
164
+ "description": "",
165
+ "next_version": 5,
166
+ "latest_version": "4.0"
167
+ },
168
+ "repositories": [
169
+ {
170
+ "id": 50,
171
+ "name": "repo1",
172
+ "label": "repo1",
173
+ "description": null
174
+ },
175
+ {
176
+ "id": 51,
177
+ "name": "docker_repo",
178
+ "label": "docker_repo",
179
+ "description": null
180
+ },
181
+ {
182
+ "id": 52,
183
+ "name": "python-pulp",
184
+ "label": "python-pulp",
185
+ "description": null
186
+ },
187
+ {
188
+ "id": 49,
189
+ "name": "test_ansible",
190
+ "label": "test_ansible",
191
+ "description": null
192
+ }
193
+ ]
194
+ }
195
+ ],
196
+ "content_view_components": [
197
+ {
198
+ "latest": false,
199
+ "id": 2,
200
+ "created_at": "2023-09-15 13:28:32 -0400",
201
+ "updated_at": "2023-09-15 13:28:32 -0400",
202
+ "composite_content_view": {
203
+ "id": 6,
204
+ "name": "dup_container",
205
+ "label": "dup_container",
206
+ "description": "",
207
+ "next_version": 2,
208
+ "latest_version": "1.0",
209
+ "version_count": 1
210
+ },
211
+ "content_view": {
212
+ "id": 2,
213
+ "name": "test",
214
+ "label": "test",
215
+ "description": "",
216
+ "next_version": 4,
217
+ "latest_version": "3.0",
218
+ "version_count": 3
219
+ },
220
+ "content_view_version": {
221
+ "id": 5,
222
+ "name": "test 2.0",
223
+ "content_view_id": 2,
224
+ "version": "2.0",
225
+ "content_view": {
226
+ "id": 2,
227
+ "name": "test",
228
+ "label": "test",
229
+ "description": ""
230
+ },
231
+ "environments": [
232
+ {
233
+ "id": 2,
234
+ "name": "dev",
235
+ "label": "dev"
236
+ },
237
+ {
238
+ "id": 3,
239
+ "name": "test",
240
+ "label": "test"
241
+ }
242
+ ],
243
+ "repositories": [
244
+ {
245
+ "id": 39,
246
+ "name": "repo1",
247
+ "label": "repo1",
248
+ "description": null
249
+ }
250
+ ]
251
+ },
252
+ "component_content_view_versions": [
253
+ {
254
+ "id": 8,
255
+ "version": "3.0",
256
+ "description": "",
257
+ "published_at_words": "3 days"
258
+ },
259
+ {
260
+ "id": 5,
261
+ "version": "2.0",
262
+ "description": "",
263
+ "published_at_words": "4 days"
264
+ },
265
+ {
266
+ "id": 3,
267
+ "version": "1.0",
268
+ "description": "",
269
+ "published_at_words": "18 days"
270
+ }
271
+ ]
272
+ },
273
+ {
274
+ "latest": false,
275
+ "id": 1,
276
+ "created_at": "2023-09-15 13:28:32 -0400",
277
+ "updated_at": "2023-09-15 13:58:39 -0400",
278
+ "composite_content_view": {
279
+ "id": 6,
280
+ "name": "dup_container",
281
+ "label": "dup_container",
282
+ "description": "",
283
+ "next_version": 2,
284
+ "latest_version": "1.0",
285
+ "version_count": 1
286
+ },
287
+ "content_view": {
288
+ "id": 3,
289
+ "name": "dev",
290
+ "label": "dev",
291
+ "description": "",
292
+ "next_version": 5,
293
+ "latest_version": "4.0",
294
+ "version_count": 4
295
+ },
296
+ "content_view_version": {
297
+ "id": 7,
298
+ "name": "dev 3.0",
299
+ "content_view_id": 3,
300
+ "version": "3.0",
301
+ "content_view": {
302
+ "id": 3,
303
+ "name": "dev",
304
+ "label": "dev",
305
+ "description": ""
306
+ },
307
+ "environments": [
308
+ {
309
+ "id": 2,
310
+ "name": "dev",
311
+ "label": "dev"
312
+ }
313
+ ],
314
+ "repositories": [
315
+ {
316
+ "id": 50,
317
+ "name": "repo1",
318
+ "label": "repo1",
319
+ "description": null
320
+ },
321
+ {
322
+ "id": 51,
323
+ "name": "docker_repo",
324
+ "label": "docker_repo",
325
+ "description": null
326
+ },
327
+ {
328
+ "id": 52,
329
+ "name": "python-pulp",
330
+ "label": "python-pulp",
331
+ "description": null
332
+ },
333
+ {
334
+ "id": 49,
335
+ "name": "test_ansible",
336
+ "label": "test_ansible",
337
+ "description": null
338
+ }
339
+ ]
340
+ },
341
+ "component_content_view_versions": [
342
+ {
343
+ "id": 9,
344
+ "version": "4.0",
345
+ "description": "",
346
+ "published_at_words": "3 days"
347
+ },
348
+ {
349
+ "id": 7,
350
+ "version": "3.0",
351
+ "description": "",
352
+ "published_at_words": "4 days"
353
+ },
354
+ {
355
+ "id": 6,
356
+ "version": "2.0",
357
+ "description": "",
358
+ "published_at_words": "4 days"
359
+ },
360
+ {
361
+ "id": 2,
362
+ "version": "1.0",
363
+ "description": "",
364
+ "published_at_words": "18 days"
365
+ }
366
+ ]
367
+ }
368
+ ],
369
+ "activation_keys": [],
370
+ "hosts": [],
371
+ "next_version": "2.0",
372
+ "last_published": "2023-09-15 14:34:29 -0400",
373
+ "environments": [
374
+ {
375
+ "id": 1,
376
+ "label": "Library",
377
+ "name": "Library",
378
+ "activation_keys": [],
379
+ "hosts": [],
380
+ "permissions": {
381
+ "readable": true
382
+ }
383
+ }
384
+ ],
385
+ "permissions": {
386
+ "view_content_views": true,
387
+ "edit_content_views": true,
388
+ "destroy_content_views": true,
389
+ "publish_content_views": true,
390
+ "promote_or_remove_content_views": true
391
+ },
392
+ "errors": null
393
+ }
@@ -8,12 +8,14 @@ import cvComponentData from './contentViewComponents.fixtures.json';
8
8
  import cvUnpublishedComponentData from './unpublishedCVComponents.fixtures.json';
9
9
  import cvPublishedComponentData from './publishedContentViewDetails.fixtures.json';
10
10
  import cvDetails from '../../__tests__/contentViewDetails.fixtures.json';
11
+ import compositeCvDetails from './compositeCVDetails.fixtures.json';
11
12
 
12
13
  const renderOptions = { apiNamespace: `${CONTENT_VIEWS_KEY}_1` };
13
14
  const cvComponentsWithoutSearch = api.getApiUrl('/content_views/4/content_view_components/show_all?per_page=20&page=1&status=All');
14
15
  const cvComponents = api.getApiUrl('/content_views/4/content_view_components/show_all?per_page=20&page=1&search=&status=All');
15
16
  const addComponentURL = api.getApiUrl('/content_views/4/content_view_components/add');
16
17
  const publishedComponentDetailsURL = api.getApiUrl('/content_views/13');
18
+ const cvDetailsPath = api.getApiUrl('/content_views/4');
17
19
  const removeComponentURL = api.getApiUrl('/content_views/4/content_view_components/remove');
18
20
  const autocompleteUrl = '/content_views/auto_complete_search';
19
21
  const autocompleteQuery = {
@@ -208,6 +210,11 @@ test('Can add published component views to content view with modal', async (done
208
210
  .put(addComponentURL, addComponentParams)
209
211
  .reply(200, {});
210
212
 
213
+ const cvDetailsScope = nockInstance
214
+ .get(cvDetailsPath)
215
+ .query(true)
216
+ .reply(200, compositeCvDetails);
217
+
211
218
  const {
212
219
  getByText, getByLabelText, queryByLabelText, getAllByLabelText,
213
220
  } = renderWithRedux(
@@ -234,7 +241,8 @@ test('Can add published component views to content view with modal', async (done
234
241
  assertNockRequest(scope);
235
242
  assertNockRequest(publishedComponentVersionsScope);
236
243
  assertNockRequest(addComponentScope);
237
- assertNockRequest(returnScope, done);
244
+ assertNockRequest(returnScope);
245
+ assertNockRequest(cvDetailsScope, done);
238
246
  });
239
247
 
240
248
  test('Can add unpublished component views to content view', async (done) => {
@@ -256,6 +264,11 @@ test('Can add unpublished component views to content view', async (done) => {
256
264
  .put(addComponentURL, addComponentParams)
257
265
  .reply(200, {});
258
266
 
267
+ const cvDetailsScope = nockInstance
268
+ .get(cvDetailsPath)
269
+ .query(true)
270
+ .reply(200, compositeCvDetails);
271
+
259
272
  const { getByText, getAllByLabelText } = renderWithRedux(
260
273
  <ContentViewComponents cvId={4} details={cvDetails} />,
261
274
  renderOptions,
@@ -270,7 +283,8 @@ test('Can add unpublished component views to content view', async (done) => {
270
283
  assertNockRequest(autocompleteScope);
271
284
  assertNockRequest(scope);
272
285
  assertNockRequest(addComponentScope);
273
- assertNockRequest(returnScope, done);
286
+ assertNockRequest(returnScope);
287
+ assertNockRequest(cvDetailsScope, done);
274
288
  });
275
289
 
276
290
  test('Can remove component views from content view', async (done) => {
@@ -292,6 +306,11 @@ test('Can remove component views from content view', async (done) => {
292
306
  .put(removeComponentURL, removeComponentParams)
293
307
  .reply(200, {});
294
308
 
309
+ const cvDetailsScope = nockInstance
310
+ .get(cvDetailsPath)
311
+ .query(true)
312
+ .reply(200, compositeCvDetails);
313
+
295
314
  const { getByText, getAllByLabelText } = renderWithRedux(
296
315
  <ContentViewComponents cvId={4} details={cvDetails} />,
297
316
  renderOptions,
@@ -306,7 +325,8 @@ test('Can remove component views from content view', async (done) => {
306
325
  assertNockRequest(autocompleteScope);
307
326
  assertNockRequest(scope);
308
327
  assertNockRequest(removeComponentScope);
309
- assertNockRequest(returnScope, done);
328
+ assertNockRequest(returnScope);
329
+ assertNockRequest(cvDetailsScope, done);
310
330
  });
311
331
 
312
332
  test('Can bulk add component views to content view with modal', async (done) => {
@@ -328,6 +348,11 @@ test('Can bulk add component views to content view with modal', async (done) =>
328
348
  .put(addComponentURL, addComponentParams)
329
349
  .reply(200, {});
330
350
 
351
+ const cvDetailsScope = nockInstance
352
+ .get(cvDetailsPath)
353
+ .query(true)
354
+ .reply(200, compositeCvDetails);
355
+
331
356
  const {
332
357
  getAllByText, getByLabelText, queryByText, getAllByRole,
333
358
  } = renderWithRedux(
@@ -360,5 +385,6 @@ test('Can bulk add component views to content view with modal', async (done) =>
360
385
  assertNockRequest(autocompleteScope);
361
386
  assertNockRequest(scope);
362
387
  assertNockRequest(addComponentScope);
363
- assertNockRequest(returnScope, done);
388
+ assertNockRequest(returnScope);
389
+ assertNockRequest(cvDetailsScope, done);
364
390
  });
@@ -21,7 +21,9 @@ export const dateFormat = date => `${(date.getMonth() + 1).toString().padStart(2
21
21
 
22
22
  export const convertAPIDateToUIFormat = (dateString) => {
23
23
  if (!dateString || dateString === '') return '';
24
- return dateFormat(new Date(dateString));
24
+ const dateTZ = new Date(dateString);
25
+ dateTZ.setMinutes(dateTZ.getMinutes() + dateTZ.getTimezoneOffset());
26
+ return dateFormat(dateTZ);
25
27
  };
26
28
 
27
29
  export const dateParse = (date) => {
@@ -39,6 +39,7 @@ import {
39
39
  Th,
40
40
  Td,
41
41
  } from '@patternfly/react-table';
42
+ import { useSelectionSet } from 'foremanReact/components/PF4/TableIndexPage/Table/TableHooks';
42
43
  import { useKatelloDocUrl } from '../../../../utils/useKatelloDocUrl';
43
44
  import AddedStatusLabel from '../../../../components/AddedStatusLabel';
44
45
  import SelectableDropdown from '../../../../components/SelectableDropdown';
@@ -64,7 +65,6 @@ import {
64
65
  import ContentCounts from './ContentCounts';
65
66
  import LastSync from './LastSync';
66
67
  import RepoIcon from './RepoIcon';
67
- import { useSelectionSet } from '../../../../components/Table/TableHooks';
68
68
 
69
69
  const allRepositories = 'All repositories';
70
70
 
@@ -227,7 +227,7 @@ const ContentViewRepositories = ({ cvId, details }) => {
227
227
 
228
228
  const rowDropdownItems = ({ id }) => [
229
229
  {
230
- title: 'Add',
230
+ title: __('Add'),
231
231
  ouiaId: `add-repository-${id}`,
232
232
  isDisabled: importOnly || generatedContentView || repositoryIds.includes(id),
233
233
  onClick: () => {
@@ -235,7 +235,7 @@ const ContentViewRepositories = ({ cvId, details }) => {
235
235
  },
236
236
  },
237
237
  {
238
- title: 'Remove',
238
+ title: __('Remove'),
239
239
  ouiaId: `remove-repository-${id}`,
240
240
  isDisabled: importOnly || generatedContentView || !repositoryIds.includes(id),
241
241
  onClick: () => {
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { Tooltip } from '@patternfly/react-core';
3
- import { BundleIcon, MiddlewareIcon, BoxIcon, CodeBranchIcon, FanIcon, TenantIcon } from '@patternfly/react-icons';
3
+ import { BundleIcon, MiddlewareIcon, BoxIcon, CodeBranchIcon, FanIcon, TenantIcon, AnsibleTowerIcon } from '@patternfly/react-icons';
4
4
  import PropTypes from 'prop-types';
5
5
 
6
6
  const RepoIcon = ({ type }) => {
@@ -10,6 +10,7 @@ const RepoIcon = ({ type }) => {
10
10
  ostree: CodeBranchIcon,
11
11
  file: TenantIcon,
12
12
  deb: FanIcon,
13
+ ansible_collection: AnsibleTowerIcon,
13
14
  };
14
15
  const Icon = iconMap[type] || BoxIcon;
15
16
 
@@ -4,10 +4,10 @@ import {
4
4
  } from 'react-redux';
5
5
  import PropTypes from 'prop-types';
6
6
  import { translate as __ } from 'foremanReact/common/I18n';
7
+ import { useTableSort } from 'foremanReact/components/PF4/Helpers/useTableSort';
7
8
  import { TableVariant, Tr, Th, Tbody, Td, Thead } from '@patternfly/react-table';
8
9
  import { TableType } from './CVVersionCompareConfig';
9
10
  import TableWrapper from '../../../../../components/Table/TableWrapper';
10
- import { useTableSort } from '../../../../../components/Table/TableHooks';
11
11
  import './CVVersionCompare.scss';
12
12
 
13
13
  const CVVersionCompareTable = ({
@@ -8,7 +8,7 @@ import { STATUS } from 'foremanReact/constants';
8
8
  import { Link } from 'react-router-dom';
9
9
  import PropTypes from 'prop-types';
10
10
  import { first } from 'lodash';
11
- import { useSelectionSet } from '../../../../components/Table/TableHooks';
11
+ import { useSelectionSet } from 'foremanReact/components/PF4/TableIndexPage/Table/TableHooks';
12
12
  import TableWrapper from '../../../../components/Table/TableWrapper';
13
13
  import InactiveText from '../../components/InactiveText';
14
14
  import ContentViewVersionEnvironments from './ContentViewVersionEnvironments';
@@ -3,6 +3,7 @@ import { useDispatch } from 'react-redux';
3
3
  import PropTypes from 'prop-types';
4
4
  import { Wizard } from '@patternfly/react-core';
5
5
  import { translate as __ } from 'foremanReact/common/I18n';
6
+ import { useSet } from 'foremanReact/components/PF4/TableIndexPage/Table/TableHooks';
6
7
  import getEnvironmentPaths from '../../../components/EnvironmentPaths/EnvironmentPathActions';
7
8
  import CVEnvironmentSelectionForm from './RemoveSteps/CVEnvironmentSelectionForm';
8
9
  import CVReassignActivationKeysForm from './RemoveSteps/CVReassignActivationKeysForm';
@@ -12,7 +13,6 @@ import CVVersionDeleteFinish from './RemoveSteps/CVVersionDeleteFinish';
12
13
  import getContentViewDetails from '../../ContentViewDetailActions';
13
14
  import getContentViews from '../../../ContentViewsActions';
14
15
  import DeleteContext from './DeleteContext';
15
- import { useSet } from '../../../../../components/Table/TableHooks';
16
16
 
17
17
  const RemoveCVVersionWizard = ({
18
18
  cvId, versionIdToRemove, versionNameToRemove,
@@ -21,7 +21,7 @@ import {
21
21
  Thead,
22
22
  Tr,
23
23
  } from '@patternfly/react-table';
24
- import { useUrlParams } from '../../../../../components/Table/TableHooks';
24
+ import { useUrlParams } from 'foremanReact/components/PF4/TableIndexPage/Table/TableHooks';
25
25
  import TableWrapper from '../../../../../components/Table/TableWrapper';
26
26
  import { TableType } from './ContentViewVersionDetailConfig';
27
27