katello 4.10.0 → 4.11.0.rc1

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

Potentially problematic release.


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

Files changed (449) 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_facet/show.json.rabl +4 -0
  127. data/app/views/katello/api/v2/content_views/base.json.rabl +1 -1
  128. data/app/views/katello/api/v2/docker_tags/_base.json.rabl +28 -6
  129. data/app/views/katello/hosts/_errata_counts.html.erb +2 -2
  130. data/app/views/katello/task_mailer/cv_promote_failure.html.erb +31 -0
  131. data/app/views/katello/task_mailer/cv_promote_failure.text.erb +13 -0
  132. data/app/views/katello/task_mailer/cv_publish_failure.html.erb +31 -0
  133. data/app/views/katello/task_mailer/cv_publish_failure.text.erb +13 -0
  134. data/app/views/katello/task_mailer/proxy_sync_failure.html.erb +45 -0
  135. data/app/views/katello/task_mailer/proxy_sync_failure.text.erb +25 -0
  136. data/app/views/katello/task_mailer/repo_sync_failure.html.erb +35 -0
  137. data/app/views/katello/task_mailer/repo_sync_failure.text.erb +15 -0
  138. data/app/views/overrides/organizations/_edit_override.html.erb +4 -0
  139. data/config/routes/api/v2.rb +2 -0
  140. data/db/migrate/20230825180856_add_content_counts_to_smart_proxy.rb +7 -0
  141. data/db/migrate/20231020153017_create_indexes_for_nvra_and_epoch.rb +6 -0
  142. data/db/seeds.d/106-mail_notifications.rb +32 -0
  143. data/db/seeds.d/109-katello-notification-blueprints.rb +6 -0
  144. data/engines/bastion/app/assets/javascripts/bastion/components/views/bst-alert.html +1 -1
  145. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/activation-keys.controller.js +4 -0
  146. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/activation-key-add-host-collections.controller.js +3 -0
  147. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/activation-key-add-subscriptions.controller.js +3 -0
  148. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/activation-key-associations.controller.js +4 -0
  149. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/activation-key-copy.controller.js +7 -2
  150. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/activation-key-host-collections.controller.js +3 -0
  151. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/activation-key-repository-sets.controller.js +3 -0
  152. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/activation-key-subscriptions.controller.js +3 -0
  153. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/new/new-activation-key.controller.js +6 -2
  154. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/capsule-content/capsule-content.controller.js +16 -1
  155. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/common/views/rhel-lifecycle-notice.html +5 -0
  156. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-credentials/content-credentials.controller.js +7 -2
  157. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-credentials/details/content-credential-acs.controller.js +7 -2
  158. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-credentials/details/content-credential-products.controller.js +7 -2
  159. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-credentials/details/content-credential-repositories.controller.js +7 -2
  160. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-credentials/new/new-content-credential.controller.js +3 -0
  161. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/bulk/content-hosts-bulk-errata-modal.controller.js +5 -1
  162. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/content-host-debs-actions.controller.js +5 -1
  163. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/content-host-debs-applicable.controller.js +3 -0
  164. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/content-host-debs-installed.controller.js +3 -0
  165. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/content-host-errata.controller.js +4 -0
  166. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/content-host-module-streams.controller.js +3 -0
  167. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/content-host-packages-applicable.controller.js +3 -0
  168. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/content-host-packages-installed.controller.js +3 -0
  169. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/content-host-packages.controller.js +3 -0
  170. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/content-host-traces.controller.js +4 -0
  171. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/views/content-host-debs-actions.html +1 -1
  172. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/views/content-host-debs-applicable.html +1 -1
  173. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/views/content-host-debs-installed.html +1 -1
  174. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/views/content-host-errata.html +3 -3
  175. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/views/content-host-module-streams.html +1 -1
  176. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/views/content-host-packages-actions.html +1 -1
  177. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/views/content-host-packages-applicable.html +1 -1
  178. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/views/content-host-packages-installed.html +1 -1
  179. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/views/content-host-traces.html +3 -3
  180. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content-hosts.controller.js +5 -0
  181. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content-hosts.routes.js +1 -1
  182. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/content-host-add-host-collections.controller.js +4 -1
  183. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/content-host-add-subscriptions.controller.js +3 -0
  184. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/content-host-host-collections.controller.js +4 -1
  185. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/content-host-repository-sets.controller.js +3 -0
  186. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/content-host-subscriptions.controller.js +3 -0
  187. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/views/content-host-add-subscriptions.html +1 -1
  188. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/views/content-host-details.html +4 -3
  189. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/views/content-host-host-collections.html +1 -1
  190. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/views/content-host-info.html +3 -3
  191. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/views/content-host-provisioning-info.html +2 -2
  192. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/views/content-host-subscriptions-list.html +1 -1
  193. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/views/content-host-subscriptions.html +1 -1
  194. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/views/content-hosts.html +3 -3
  195. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/debs/debs.controller.js +7 -0
  196. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/debs/details/deb-content-views.controller.js +8 -1
  197. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/debs/details/deb-repositories.controller.js +10 -2
  198. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/docker-tags/details/docker-tag-environments.controller.js +5 -2
  199. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/docker-tags/details/docker-tag-repositories.controller.js +6 -2
  200. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/docker-tags/docker-tags.controller.js +6 -3
  201. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/environments/details/environment-content.controller.js +13 -0
  202. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/environments/details/environment.controller.js +6 -0
  203. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/environments/new-environment.controller.js +8 -2
  204. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/errata/apply-errata.controller.js +4 -0
  205. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/errata/details/erratum-content-hosts.controller.js +7 -2
  206. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/errata/details/erratum-repositories.controller.js +7 -2
  207. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/errata/details/erratum.controller.js +6 -2
  208. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/errata/details/views/erratum-info.html +2 -2
  209. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/errata/errata.controller.js +5 -0
  210. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/errata/views/errata.html +1 -1
  211. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/files/details/file-content-views.controller.js +10 -2
  212. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/files/details/file-repositories.controller.js +8 -1
  213. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/files/files.controller.js +9 -2
  214. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/details/host-collection-add-hosts.controller.js +3 -0
  215. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/details/host-collection-copy.controller.js +7 -2
  216. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/details/host-collection-hosts.controller.js +3 -0
  217. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/host-collections.controller.js +4 -0
  218. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/new/new-host-collection.controller.js +6 -2
  219. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/hosts/host.factory.js +4 -0
  220. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/bastion_katello.pot +166 -43
  221. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/fr.po +4 -0
  222. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/translations.js +1 -1
  223. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/packages/packages.controller.js +7 -0
  224. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/product-repositories.controller.js +5 -0
  225. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/details/repository-details-advanced-sync.controller.js +6 -2
  226. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/details/repository-details-manage-content.controller.js +11 -0
  227. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/new/new-repository.controller.js +3 -0
  228. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/views/product-repositories.html +2 -2
  229. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/discovery/discovery-create.controller.js +3 -0
  230. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/discovery/discovery.controller.js +3 -0
  231. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/new/product-form.controller.js +6 -2
  232. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/products.controller.js +4 -0
  233. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/views/content-access-mode-banner.html +1 -1
  234. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/details/sync-plan-add-products.controller.js +5 -1
  235. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/details/sync-plan-products.controller.js +4 -0
  236. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/new/new-sync-plan.controller.js +3 -0
  237. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/sync-plans.controller.js +4 -0
  238. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/tasks/task-details.controller.js +6 -2
  239. data/lib/katello/engine.rb +2 -3
  240. data/lib/katello/permission_creator.rb +2 -2
  241. data/lib/katello/plugin.rb +4 -0
  242. data/lib/katello/repository_types/ostree.rb +1 -0
  243. data/lib/katello/repository_types/python.rb +1 -0
  244. data/lib/katello/scheduled_jobs.rb +1 -1
  245. data/lib/katello/version.rb +1 -1
  246. data/locale/action_names.rb +1 -3
  247. data/locale/bn/LC_MESSAGES/katello.mo +0 -0
  248. data/locale/bn/katello.po +236 -197
  249. data/locale/bn_IN/LC_MESSAGES/katello.mo +0 -0
  250. data/locale/bn_IN/katello.po +236 -197
  251. data/locale/ca/LC_MESSAGES/katello.mo +0 -0
  252. data/locale/ca/katello.po +236 -197
  253. data/locale/cs/LC_MESSAGES/katello.mo +0 -0
  254. data/locale/cs/katello.po +236 -206
  255. data/locale/cs_CZ/LC_MESSAGES/katello.mo +0 -0
  256. data/locale/cs_CZ/katello.po +236 -197
  257. data/locale/de/LC_MESSAGES/katello.mo +0 -0
  258. data/locale/de/katello.po +241 -202
  259. data/locale/de_AT/LC_MESSAGES/katello.mo +0 -0
  260. data/locale/de_AT/katello.po +236 -197
  261. data/locale/de_DE/LC_MESSAGES/katello.mo +0 -0
  262. data/locale/de_DE/katello.po +236 -197
  263. data/locale/el/LC_MESSAGES/katello.mo +0 -0
  264. data/locale/el/katello.po +236 -197
  265. data/locale/en/LC_MESSAGES/katello.mo +0 -0
  266. data/locale/en/katello.po +236 -197
  267. data/locale/en_GB/LC_MESSAGES/katello.mo +0 -0
  268. data/locale/en_GB/katello.po +236 -197
  269. data/locale/en_US/LC_MESSAGES/katello.mo +0 -0
  270. data/locale/en_US/katello.po +236 -197
  271. data/locale/es/LC_MESSAGES/katello.mo +0 -0
  272. data/locale/es/katello.po +238 -199
  273. data/locale/et_EE/LC_MESSAGES/katello.mo +0 -0
  274. data/locale/et_EE/katello.po +236 -197
  275. data/locale/fr/LC_MESSAGES/katello.mo +0 -0
  276. data/locale/fr/katello.po +247 -208
  277. data/locale/gl/LC_MESSAGES/katello.mo +0 -0
  278. data/locale/gl/katello.po +236 -197
  279. data/locale/gu/LC_MESSAGES/katello.mo +0 -0
  280. data/locale/gu/katello.po +236 -197
  281. data/locale/he_IL/LC_MESSAGES/katello.mo +0 -0
  282. data/locale/he_IL/katello.po +236 -197
  283. data/locale/hi/LC_MESSAGES/katello.mo +0 -0
  284. data/locale/hi/katello.po +236 -197
  285. data/locale/id/LC_MESSAGES/katello.mo +0 -0
  286. data/locale/id/katello.po +236 -197
  287. data/locale/it/LC_MESSAGES/katello.mo +0 -0
  288. data/locale/it/katello.po +236 -197
  289. data/locale/ja/LC_MESSAGES/katello.mo +0 -0
  290. data/locale/ja/katello.po +247 -208
  291. data/locale/ka/LC_MESSAGES/katello.mo +0 -0
  292. data/locale/ka/katello.po +241 -202
  293. data/locale/katello.pot +1427 -1296
  294. data/locale/kn/LC_MESSAGES/katello.mo +0 -0
  295. data/locale/kn/katello.po +236 -197
  296. data/locale/ko/LC_MESSAGES/katello.mo +0 -0
  297. data/locale/ko/katello.po +236 -197
  298. data/locale/ml_IN/LC_MESSAGES/katello.mo +0 -0
  299. data/locale/ml_IN/katello.po +236 -197
  300. data/locale/mr/LC_MESSAGES/katello.mo +0 -0
  301. data/locale/mr/katello.po +236 -197
  302. data/locale/nl_NL/LC_MESSAGES/katello.mo +0 -0
  303. data/locale/nl_NL/katello.po +236 -197
  304. data/locale/or/LC_MESSAGES/katello.mo +0 -0
  305. data/locale/or/katello.po +236 -197
  306. data/locale/pa/LC_MESSAGES/katello.mo +0 -0
  307. data/locale/pa/katello.po +236 -197
  308. data/locale/pl/LC_MESSAGES/katello.mo +0 -0
  309. data/locale/pl/katello.po +236 -197
  310. data/locale/pl_PL/LC_MESSAGES/katello.mo +0 -0
  311. data/locale/pl_PL/katello.po +236 -197
  312. data/locale/pt/LC_MESSAGES/katello.mo +0 -0
  313. data/locale/pt/katello.po +236 -197
  314. data/locale/pt_BR/LC_MESSAGES/katello.mo +0 -0
  315. data/locale/pt_BR/katello.po +238 -199
  316. data/locale/ro/LC_MESSAGES/katello.mo +0 -0
  317. data/locale/ro/katello.po +236 -197
  318. data/locale/ro_RO/LC_MESSAGES/katello.mo +0 -0
  319. data/locale/ro_RO/katello.po +236 -197
  320. data/locale/ru/LC_MESSAGES/katello.mo +0 -0
  321. data/locale/ru/katello.po +236 -197
  322. data/locale/sl/LC_MESSAGES/katello.mo +0 -0
  323. data/locale/sl/katello.po +236 -197
  324. data/locale/sv_SE/LC_MESSAGES/katello.mo +0 -0
  325. data/locale/sv_SE/katello.po +236 -197
  326. data/locale/ta/LC_MESSAGES/katello.mo +0 -0
  327. data/locale/ta/katello.po +236 -197
  328. data/locale/ta_IN/LC_MESSAGES/katello.mo +0 -0
  329. data/locale/ta_IN/katello.po +236 -197
  330. data/locale/te/LC_MESSAGES/katello.mo +0 -0
  331. data/locale/te/katello.po +236 -197
  332. data/locale/tr/LC_MESSAGES/katello.mo +0 -0
  333. data/locale/tr/katello.po +236 -197
  334. data/locale/vi/LC_MESSAGES/katello.mo +0 -0
  335. data/locale/vi/katello.po +236 -197
  336. data/locale/vi_VN/LC_MESSAGES/katello.mo +0 -0
  337. data/locale/vi_VN/katello.po +236 -197
  338. data/locale/zh/LC_MESSAGES/katello.mo +0 -0
  339. data/locale/zh/katello.po +236 -197
  340. data/locale/zh_CN/LC_MESSAGES/katello.mo +0 -0
  341. data/locale/zh_CN/katello.po +247 -208
  342. data/locale/zh_TW/LC_MESSAGES/katello.mo +0 -0
  343. data/locale/zh_TW/katello.po +236 -197
  344. data/webpack/components/Table/EmptyStateMessage.js +7 -4
  345. data/webpack/components/Table/MainTable.scss +18 -17
  346. data/webpack/components/Table/TableWrapper.js +4 -1
  347. data/webpack/components/extensions/HostDetails/ActionsBar/index.js +45 -4
  348. data/webpack/components/extensions/HostDetails/Cards/ErrataOverviewCard.scss +9 -7
  349. data/webpack/components/extensions/HostDetails/Cards/HostCollectionsCard/HostCollectionsCard.js +1 -1
  350. data/webpack/components/extensions/HostDetails/Cards/HostCollectionsCard/HostCollectionsModal.js +1 -1
  351. data/webpack/components/extensions/HostDetails/Cards/SystemPurposeCard/SystemPurposeActions.js +29 -7
  352. data/webpack/components/extensions/HostDetails/Cards/SystemPurposeCard/SystemPurposeCard.js +106 -66
  353. data/webpack/components/extensions/HostDetails/Cards/SystemPurposeCard/SystemPurposeCard.scss +6 -0
  354. data/webpack/components/extensions/HostDetails/Cards/SystemPurposeCard/SystemPurposeConstants.js +2 -0
  355. data/webpack/components/extensions/HostDetails/Cards/SystemPurposeCard/SystemPurposeEditModal.js +53 -29
  356. data/webpack/components/extensions/HostDetails/Cards/SystemPurposeCard/SystemPurposeSelectors.js +7 -6
  357. data/webpack/components/extensions/HostDetails/Cards/SystemPurposeCard/__tests__/SystemPurposeCard.test.js +24 -5
  358. data/webpack/components/extensions/HostDetails/Cards/SystemPurposeCard/__tests__/SystemPurposeEditModal.test.js +137 -7
  359. data/webpack/components/extensions/HostDetails/DetailsTabCards/HwPropertiesCard.js +11 -10
  360. data/webpack/components/extensions/HostDetails/DetailsTabCards/RegistrationCard.js +8 -2
  361. data/webpack/components/extensions/HostDetails/Tabs/ErrataTab/ErrataTab.js +27 -10
  362. data/webpack/components/extensions/HostDetails/Tabs/ErrataTab/HostErrataActions.js +3 -22
  363. data/webpack/components/extensions/HostDetails/Tabs/ErrataTab/HostErrataConstants.js +0 -1
  364. data/webpack/components/extensions/HostDetails/Tabs/ModuleStreamsTab/ModuleStreamsTab.js +3 -2
  365. data/webpack/components/extensions/HostDetails/Tabs/PackagesTab/PackageInstallModal.js +2 -2
  366. data/webpack/components/extensions/HostDetails/Tabs/PackagesTab/PackagesTab.js +48 -12
  367. data/webpack/components/extensions/HostDetails/Tabs/RemoteExecutionActions.js +22 -10
  368. data/webpack/components/extensions/HostDetails/Tabs/RemoteExecutionHooks.js +1 -1
  369. data/webpack/components/extensions/HostDetails/Tabs/RepositorySetsTab/RepositorySetsTab.js +2 -2
  370. data/webpack/components/extensions/HostDetails/Tabs/TracesTab/EnableTracerModal.js +71 -5
  371. data/webpack/components/extensions/HostDetails/Tabs/TracesTab/EnableTracerModal.scss +16 -0
  372. data/webpack/components/extensions/HostDetails/Tabs/TracesTab/TracesEnabler.js +4 -1
  373. data/webpack/components/extensions/HostDetails/Tabs/TracesTab/TracesTab.js +6 -2
  374. data/webpack/components/extensions/HostDetails/Tabs/__tests__/packagesTab.test.js +2 -1
  375. data/webpack/components/extensions/HostDetails/Tabs/__tests__/tracesTab.test.js +25 -0
  376. data/webpack/components/extensions/Hosts/ActionsBar/index.js +36 -0
  377. data/webpack/components/extensions/Hosts/constants.js +2 -0
  378. data/webpack/components/extensions/RegistrationCommands/RegistrationCommandsPageHelpers.js +13 -7
  379. data/webpack/components/extensions/RegistrationCommands/__tests__/__snapshots__/ActivationKeys.test.js.snap +9 -1
  380. data/webpack/components/extensions/RegistrationCommands/fields/ActivationKeys.js +87 -22
  381. data/webpack/components/extensions/RegistrationCommands/index.js +17 -41
  382. data/webpack/global_index.js +11 -2
  383. data/webpack/redux/reducers/RedHatRepositories/enabled.fixtures.js +4 -0
  384. data/webpack/redux/reducers/RedHatRepositories/enabled.js +1 -0
  385. data/webpack/scenes/ActivationKeys/Details/ActivationKeyDetails.js +10 -1
  386. data/webpack/scenes/ActivationKeys/Details/ActivationKeyDetails.scss +33 -31
  387. data/webpack/scenes/AlternateContentSources/MainTable/ACSTable.js +3 -1
  388. data/webpack/scenes/Content/ContentConfig.js +3 -0
  389. data/webpack/scenes/ContentViews/Create/CreateContentViewForm.js +6 -4
  390. data/webpack/scenes/ContentViews/Create/CreateContentViewForm.scss +8 -6
  391. data/webpack/scenes/ContentViews/Delete/ContentViewDeleteWizard.js +1 -0
  392. data/webpack/scenes/ContentViews/Delete/Steps/CVEnvironmentSelectionForm.scss +4 -2
  393. data/webpack/scenes/ContentViews/Details/ComponentContentViews/ComponentContentViewAddModal.js +3 -4
  394. data/webpack/scenes/ContentViews/Details/ComponentContentViews/ComponentContentViewBulkAddModal.js +2 -2
  395. data/webpack/scenes/ContentViews/Details/ComponentContentViews/ContentViewComponents.js +5 -5
  396. data/webpack/scenes/ContentViews/Details/ComponentContentViews/__tests__/compositeCVDetails.fixtures.json +393 -0
  397. data/webpack/scenes/ContentViews/Details/ComponentContentViews/__tests__/contentViewComponents.test.js +30 -4
  398. data/webpack/scenes/ContentViews/Details/Filters/CVErrataDateFilterContent.js +3 -1
  399. data/webpack/scenes/ContentViews/Details/Repositories/ContentViewRepositories.js +3 -3
  400. data/webpack/scenes/ContentViews/Details/Repositories/RepoIcon.js +2 -1
  401. data/webpack/scenes/ContentViews/Details/Versions/Compare/CVVersionCompareTable.js +1 -1
  402. data/webpack/scenes/ContentViews/Details/Versions/ContentViewVersions.js +1 -1
  403. data/webpack/scenes/ContentViews/Details/Versions/Delete/RemoveCVVersionWizard.js +1 -1
  404. data/webpack/scenes/ContentViews/Details/Versions/VersionDetails/ContentViewVersionDetailsTable.js +1 -1
  405. data/webpack/scenes/ContentViews/Publish/CVPublishForm.js +24 -1
  406. data/webpack/scenes/ContentViews/Publish/PublishContentViewWizard.js +1 -0
  407. data/webpack/scenes/ContentViews/Publish/__tests__/publishContentView.test.js +42 -0
  408. data/webpack/scenes/ContentViews/Publish/cvPublishForm.scss +13 -11
  409. data/webpack/scenes/ContentViews/Table/ContentViewsTable.js +2 -1
  410. data/webpack/scenes/ContentViews/__tests__/mockDetails.fixtures.json +2 -1
  411. data/webpack/scenes/Hosts/ChangeContentSource/index.js +4 -3
  412. data/webpack/scenes/ModuleStreams/Details/ModuleStreamDetails.js +1 -2
  413. data/webpack/scenes/ModuleStreams/Details/__tests__/__snapshots__/ModuleStreamDetails.test.js.snap +1 -1
  414. data/webpack/scenes/RedHatRepositories/RedHatRepositoriesPage.js +2 -1
  415. data/webpack/scenes/RedHatRepositories/__tests__/__snapshots__/RedHatRepositoriesPage.test.js.snap +6 -0
  416. data/webpack/scenes/RedHatRepositories/components/EnabledRepository/EnabledRepository.js +4 -1
  417. data/webpack/scenes/RedHatRepositories/components/EnabledRepository/EnabledRepositoryContent.js +13 -4
  418. data/webpack/scenes/RedHatRepositories/components/EnabledRepository/__tests__/EnabledRepositoryContent.test.js +1 -0
  419. data/webpack/scenes/RedHatRepositories/components/EnabledRepository/__tests__/__snapshots__/EnabledRepository.test.js.snap +1 -0
  420. data/webpack/scenes/RedHatRepositories/components/EnabledRepository/__tests__/__snapshots__/EnabledRepositoryContent.test.js.snap +3 -2
  421. data/webpack/scenes/SmartProxy/AdditionalCapsuleContent.js +93 -0
  422. data/webpack/scenes/SmartProxy/Content.js +12 -4
  423. data/webpack/scenes/SmartProxy/ExpandableCvDetails.js +107 -0
  424. data/webpack/scenes/SmartProxy/ExpandedSmartProxyRepositories.js +139 -0
  425. data/webpack/scenes/SmartProxy/SmartProxyContentActions.js +17 -4
  426. data/webpack/scenes/SmartProxy/SmartProxyContentConstants.js +1 -0
  427. data/webpack/scenes/SmartProxy/SmartProxyExpandableTable.js +150 -0
  428. data/webpack/scenes/SmartProxy/__tests__/SmartProxyContentTest.fixtures.json +799 -0
  429. data/webpack/scenes/SmartProxy/__tests__/SmartProxyContentTest.js +29 -17
  430. data/webpack/scenes/Subscriptions/Details/SubscriptionDetails.js +16 -19
  431. data/webpack/scenes/Subscriptions/Details/SubscriptionDetails.scss +12 -8
  432. data/webpack/scenes/Subscriptions/Details/__tests__/__snapshots__/SubscriptionDetails.test.js.snap +21 -18
  433. data/webpack/scenes/Subscriptions/Manifest/CdnConfigurationTab/CdnConfigurationForm.scss +4 -2
  434. data/webpack/scenes/Subscriptions/Manifest/ManageManifestModal.scss +38 -19
  435. data/webpack/scenes/Subscriptions/Manifest/index.js +0 -2
  436. data/webpack/scenes/Subscriptions/SubscriptionsPage.js +38 -12
  437. data/webpack/scenes/Subscriptions/SubscriptionsPage.scss +38 -36
  438. data/webpack/scenes/Subscriptions/__tests__/__snapshots__/SubscriptionsPage.test.js.snap +16 -13
  439. data/webpack/utils/helpers.js +0 -1
  440. metadata +99 -33
  441. data/app/controllers/katello/concerns/api/v2/bulk_hosts_extensions.rb +0 -47
  442. data/webpack/components/Table/TableHooks.js +0 -315
  443. data/webpack/components/Table/__test__/useBulkSelect.test.js +0 -99
  444. data/webpack/components/extensions/RegistrationCommands/__tests__/LifeCycleEnvironment.test.js +0 -11
  445. data/webpack/components/extensions/RegistrationCommands/__tests__/__snapshots__/LifeCycleEnvironment.test.js.snap +0 -29
  446. data/webpack/components/extensions/RegistrationCommands/fields/LifecycleEnvironment.js +0 -57
  447. data/webpack/scenes/SmartProxy/SmartProxyContentTable.js +0 -164
  448. data/webpack/scenes/SmartProxy/__tests__/SmartProxyContentResult.fixtures.json +0 -140
  449. data/webpack/scenes/Subscriptions/Manifest/Manifest.scss +0 -16
@@ -1,21 +1,27 @@
1
1
  // Activation Keys helpers
2
2
 
3
- export const validateAKField = (hostGroupId, userKeys, hgKeys) => {
3
+ export const validateAKField = (
4
+ hasInteraction,
5
+ hostGroupId,
6
+ activationKeys,
7
+ userKeys,
8
+ hgKeys,
9
+ ) => {
4
10
  if (hostGroupId === '') {
5
- return (userKeys?.length > 0 ? 'success' : 'error');
11
+ return userKeys?.length > 0 ? 'success' : 'error';
6
12
  }
7
13
 
8
- if (userKeys === undefined && hgKeys === undefined) {
9
- return ('default');
14
+ if (!hasInteraction && activationKeys?.length > 0) {
15
+ return 'default';
10
16
  }
11
17
 
12
- return ((userKeys?.length > 0 || hgKeys?.length > 0) ? 'success' : 'error');
18
+ return userKeys?.length > 0 || hgKeys?.length > 0 ? 'success' : 'error';
13
19
  };
14
20
 
15
21
  export const akHasValidValue = (hostGroupId, userKeys, hgKeys) => {
16
22
  if (hostGroupId === '') {
17
- return (userKeys?.length > 0);
23
+ return userKeys?.length > 0;
18
24
  }
19
25
 
20
- return (hgKeys?.length > 0 || userKeys?.length > 0);
26
+ return hgKeys?.length > 0 || userKeys?.length > 0;
21
27
  };
@@ -11,13 +11,21 @@ exports[`ActivationKeys renders 1`] = `
11
11
  Create new activation key
12
12
  </a>
13
13
  }
14
+ helperTextInvalidIcon={
15
+ <ExclamationCircleIcon
16
+ color="currentColor"
17
+ noVerticalAlign={false}
18
+ size="sm"
19
+ />
20
+ }
14
21
  isRequired={true}
15
22
  label="Activation Keys"
16
23
  labelIcon={
17
24
  <LabelIcon
18
- text="Activation key(s) for Subscription Manager."
25
+ text="Activation key(s) to use during registration"
19
26
  />
20
27
  }
28
+ onFocus={[Function]}
21
29
  validated="error"
22
30
  >
23
31
  <Select
@@ -1,16 +1,21 @@
1
-
2
1
  /* eslint-disable max-len, react/forbid-prop-types */
3
2
  import React, { useState, useEffect } from 'react';
4
3
  import PropTypes from 'prop-types';
5
4
  import {
6
5
  FormGroup,
7
- Select, SelectOption, SelectVariant,
6
+ Select,
7
+ SelectOption,
8
+ SelectVariant,
8
9
  } from '@patternfly/react-core';
9
10
 
10
11
  import LabelIcon from 'foremanReact/components/common/LabelIcon';
12
+ import { ExclamationCircleIcon } from '@patternfly/react-icons';
11
13
  import { sprintf, translate as __ } from 'foremanReact/common/I18n';
12
14
 
13
- import { validateAKField, akHasValidValue } from '../RegistrationCommandsPageHelpers';
15
+ import {
16
+ validateAKField,
17
+ akHasValidValue,
18
+ } from '../RegistrationCommandsPageHelpers';
14
19
 
15
20
  const ActivationKeys = ({
16
21
  activationKeys,
@@ -23,14 +28,22 @@ const ActivationKeys = ({
23
28
  handleInvalidField,
24
29
  }) => {
25
30
  const [isOpen, setIsOpen] = useState(false);
31
+ const [hasInteraction, setHasInteraction] = useState(false);
26
32
 
27
33
  const updatePluginValues = (keys) => {
28
34
  onChange({ activationKeys: keys });
29
- handleInvalidField('Activation Keys', akHasValidValue(hostGroupId, pluginValues?.activationKeys, hostGroupActivationKeys));
35
+ handleInvalidField(
36
+ 'Activation Keys',
37
+ akHasValidValue(
38
+ hostGroupId,
39
+ pluginValues?.activationKeys,
40
+ hostGroupActivationKeys,
41
+ ),
42
+ );
30
43
  };
31
44
 
32
45
  const onSelect = (_e, value) => {
33
- if (selectedKeys.find((key => key === value))) {
46
+ if (selectedKeys.find(key => key === value)) {
34
47
  updatePluginValues(selectedKeys.filter(sk => sk !== value));
35
48
  } else {
36
49
  updatePluginValues([...selectedKeys, value]);
@@ -39,48 +52,100 @@ const ActivationKeys = ({
39
52
 
40
53
  // Validate field when hostgroup is changed (host group may have some keys)
41
54
  useEffect(() => {
42
- handleInvalidField('Activation Keys', akHasValidValue(hostGroupId, pluginValues?.activationKeys, hostGroupActivationKeys));
55
+ handleInvalidField(
56
+ 'Activation Keys',
57
+ akHasValidValue(
58
+ hostGroupId,
59
+ pluginValues?.activationKeys,
60
+ hostGroupActivationKeys,
61
+ ),
62
+ );
43
63
  }, [handleInvalidField, hostGroupId, hostGroupActivationKeys, pluginValues]);
44
64
 
65
+ useEffect(() => {
66
+ if (activationKeys?.length === 1) {
67
+ onChange({ activationKeys: [activationKeys[0].name] });
68
+ }
69
+ }, [activationKeys, onChange]);
70
+
45
71
  return (
46
72
  <FormGroup
73
+ onFocus={() => setHasInteraction(true)}
47
74
  label={__('Activation Keys')}
48
75
  fieldId="activation_keys_field"
49
- helperText={hostGroupActivationKeys && sprintf('From host group: %s', hostGroupActivationKeys)}
50
- helperTextInvalid={activationKeys?.length === 0 ? <a href="/activation_keys/new">{__('Create new activation key')}</a> : __('No Activation Keys selected')}
51
- validated={validateAKField(hostGroupId, pluginValues?.activationKeys, hostGroupActivationKeys)}
52
- labelIcon={<LabelIcon text={__('Activation key(s) for Subscription Manager.')} />}
76
+ helperText={
77
+ hostGroupActivationKeys &&
78
+ sprintf('From host group: %s', hostGroupActivationKeys)
79
+ }
80
+ helperTextInvalid={
81
+ activationKeys?.length === 0 ? (
82
+ <a href="/activation_keys/new">{__('Create new activation key')}</a>
83
+ ) : (
84
+ __('No Activation Keys selected')
85
+ )
86
+ }
87
+ helperTextInvalidIcon={<ExclamationCircleIcon />}
88
+ labelIcon={
89
+ <LabelIcon text={__('Activation key(s) to use during registration')} />
90
+ }
91
+ validated={validateAKField(
92
+ hasInteraction,
93
+ hostGroupId,
94
+ activationKeys,
95
+ pluginValues?.activationKeys,
96
+ hostGroupActivationKeys,
97
+ )}
53
98
  isRequired
54
99
  >
55
100
  <Select
56
101
  ouiaId="activation-keys-field"
57
102
  selections={selectedKeys}
58
103
  variant={SelectVariant.typeaheadMulti}
59
- onToggle={() => setIsOpen(!isOpen)}
104
+ onToggle={() => {
105
+ setHasInteraction(true);
106
+ setIsOpen(!isOpen);
107
+ }}
60
108
  onSelect={onSelect}
61
109
  onClear={() => updatePluginValues([])}
62
110
  isOpen={isOpen}
111
+ validated={
112
+ activationKeys?.length > 0
113
+ ? validateAKField(
114
+ hasInteraction,
115
+ hostGroupId,
116
+ activationKeys,
117
+ pluginValues?.activationKeys,
118
+ hostGroupActivationKeys,
119
+ )
120
+ : 'default'
121
+ }
63
122
  id="activation_keys_field"
64
123
  className="without_select2"
65
124
  isDisabled={isLoading || activationKeys?.length === 0}
66
- placeholderText={activationKeys?.length === 0 ? __('No Activation keys to select') : ''}
125
+ placeholderText={
126
+ activationKeys?.length === 0 ? __('No Activation keys to select') : ''
127
+ }
67
128
  >
68
- {activationKeys && activationKeys.map(ack => (
69
- <SelectOption
70
- key={ack.name}
71
- value={ack.name}
72
- description={(ack?.lce ? ack.lce : __('No environment'))}
73
- />
74
- ))}
129
+ {activationKeys &&
130
+ activationKeys.map(ack => (
131
+ <SelectOption
132
+ key={ack.name}
133
+ value={ack.name}
134
+ description={ack?.lce ? ack.lce : __('No environment')}
135
+ />
136
+ ))}
75
137
  </Select>
76
- </FormGroup>);
138
+ </FormGroup>
139
+ );
77
140
  };
78
141
 
79
-
80
142
  ActivationKeys.propTypes = {
81
143
  activationKeys: PropTypes.array,
82
144
  selectedKeys: PropTypes.array,
83
- hostGroupActivationKeys: PropTypes.oneOfType([PropTypes.string, PropTypes.array]),
145
+ hostGroupActivationKeys: PropTypes.oneOfType([
146
+ PropTypes.string,
147
+ PropTypes.array,
148
+ ]),
84
149
  hostGroupId: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
85
150
  pluginValues: PropTypes.objectOf(PropTypes.shape({})),
86
151
  onChange: PropTypes.func.isRequired,
@@ -3,62 +3,38 @@ import PropTypes from 'prop-types';
3
3
  import { noop } from 'foremanReact/common/helpers';
4
4
 
5
5
  import ActivationKeys from './fields/ActivationKeys';
6
- import LifecycleEnvironment from './fields/LifecycleEnvironment';
7
6
  import IgnoreSubmanErrors from './fields/IgnoreSubmanErrors';
8
7
  import Force from './fields/Force';
9
8
 
10
9
  export const RegistrationCommands = ({
11
- organizationId,
12
- hostGroupId,
13
10
  pluginValues,
14
- pluginData,
15
11
  onChange,
16
12
  isLoading,
17
- }) => {
18
- useEffect(() => {
19
- onChange({ lifecycleEnvironmentId: '' });
20
- }, [onChange, organizationId, hostGroupId]);
21
-
22
- return (
23
- <>
24
- <LifecycleEnvironment
25
- pluginValues={pluginValues}
26
- lifecycleEnvironments={pluginData?.lifecycleEnvironments}
27
- hostGroupEnvironment={pluginData?.hostGroupEnvironment}
28
- organizationId={organizationId}
29
- onChange={onChange}
30
- isLoading={isLoading}
31
- />
32
- <IgnoreSubmanErrors
33
- value={pluginValues?.ignoreSubmanErrors}
34
- pluginValues={pluginValues}
35
- onChange={onChange}
36
- isLoading={isLoading}
37
- />
38
- <Force
39
- value={pluginValues?.force}
40
- pluginValues={pluginValues}
41
- onChange={onChange}
42
- isLoading={isLoading}
43
- />
44
- </>
45
- );
46
- };
13
+ }) => (
14
+ <>
15
+ <IgnoreSubmanErrors
16
+ value={pluginValues?.ignoreSubmanErrors}
17
+ pluginValues={pluginValues}
18
+ onChange={onChange}
19
+ isLoading={isLoading}
20
+ />
21
+ <Force
22
+ value={pluginValues?.force}
23
+ pluginValues={pluginValues}
24
+ onChange={onChange}
25
+ isLoading={isLoading}
26
+ />
27
+ </>
28
+ );
47
29
 
48
30
  RegistrationCommands.propTypes = {
49
- organizationId: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
50
- hostGroupId: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
51
31
  pluginValues: PropTypes.object, // eslint-disable-line react/forbid-prop-types
52
- pluginData: PropTypes.object, // eslint-disable-line react/forbid-prop-types
53
32
  onChange: PropTypes.func,
54
33
  isLoading: PropTypes.bool,
55
34
  };
56
35
 
57
36
  RegistrationCommands.defaultProps = {
58
- organizationId: undefined,
59
- hostGroupId: undefined,
60
37
  pluginValues: {},
61
- pluginData: {},
62
38
  isLoading: false,
63
39
  onChange: noop,
64
40
  };
@@ -80,7 +56,7 @@ export const RegistrationActivationKeys = ({
80
56
  <ActivationKeys
81
57
  activationKeys={pluginData?.activationKeys}
82
58
  organizationId={organizationId}
83
- selectedKeys={(pluginValues?.activationKeys || [])}
59
+ selectedKeys={pluginValues?.activationKeys || []}
84
60
  hostGroupActivationKeys={pluginData?.hostGroupActivationKeys}
85
61
  hostGroupId={hostGroupId}
86
62
  pluginValues={pluginValues}
@@ -25,7 +25,8 @@ import {
25
25
  SystemPropertiesCardVirtualization,
26
26
  SystemPropertiesCardTracer,
27
27
  } from './components/extensions/HostDetails/DetailsTabCards/SystemPropertiesCardExtensions';
28
- import HostActionsBar from './components/extensions/HostDetails/ActionsBar';
28
+ import HostDetailsActionsBar from './components/extensions/HostDetails/ActionsBar';
29
+ import HostsIndexActionsBar from './components/extensions/Hosts/ActionsBar';
29
30
  import RecentCommunicationCardExtensions from './components/extensions/HostDetails/DetailsTabCards/RecentCommunicationCardExtensions';
30
31
  import SystemPurposeCard from './components/extensions/HostDetails/Cards/SystemPurposeCard/SystemPurposeCard';
31
32
 
@@ -67,7 +68,15 @@ addGlobalFill('host-details-tab-properties-3', 'Virtualization', <SystemProperti
67
68
  addGlobalFill(
68
69
  'host-details-kebab',
69
70
  'katello-host-details-kebab',
70
- <HostActionsBar key="katello-host-details-kebab" />,
71
+ <HostDetailsActionsBar key="katello-host-details-kebab" />,
71
72
  100,
72
73
  );
74
+
75
+ addGlobalFill(
76
+ 'hosts-index-kebab',
77
+ 'katello-hosts-index-kebab',
78
+ <HostsIndexActionsBar key="katello-hosts-index-kebab" />,
79
+ 100,
80
+ );
81
+
73
82
  addGlobalFill('host-tab-details-cards', 'HW properties', <HwPropertiesCard key="hw-properties" />, 200);
@@ -55,6 +55,7 @@ export const requestSuccessResponse = Immutable({
55
55
  ],
56
56
  },
57
57
  last_sync: null,
58
+ content_view_versions: [],
58
59
  content_counts: {
59
60
  docker_manifest: 0,
60
61
  docker_manifest_list: 0,
@@ -95,6 +96,7 @@ export const requestSuccessResponse = Immutable({
95
96
  ],
96
97
  },
97
98
  last_sync: null,
99
+ content_view_versions: [1],
98
100
  content_counts: {
99
101
  docker_manifest: 0,
100
102
  docker_manifest_list: 0,
@@ -128,6 +130,7 @@ export const successState = Immutable({
128
130
  productId: 20,
129
131
  releasever: '7.0',
130
132
  type: 'yum',
133
+ canDisable: true,
131
134
  },
132
135
  {
133
136
  arch: 'x86_64',
@@ -139,6 +142,7 @@ export const successState = Immutable({
139
142
  productId: 20,
140
143
  releasever: '7.1',
141
144
  type: 'yum',
145
+ canDisable: false,
142
146
  },
143
147
  ],
144
148
  searchIsActive: false,
@@ -31,6 +31,7 @@ const mapRepo = (repo) => {
31
31
  orphaned: repo.product.orphaned,
32
32
  contentId: parseInt(repo.content_id, 10),
33
33
  productId: parseInt(repo.product.id, 10),
34
+ canDisable: repo.content_view_versions.length === 0,
34
35
  });
35
36
  };
36
37
 
@@ -25,6 +25,7 @@ import {
25
25
  Flex,
26
26
  FlexItem,
27
27
  Panel,
28
+ PageSection,
28
29
  } from '@patternfly/react-core';
29
30
  import './ActivationKeyDetails.scss';
30
31
  import EditModal from './components/EditModal';
@@ -32,6 +33,7 @@ import DeleteMenu from './components/DeleteMenu';
32
33
  import { getActivationKey } from './ActivationKeyActions';
33
34
  import DeleteModal from './components/DeleteModal';
34
35
  import InactiveText from '../../ContentViews/components/InactiveText';
36
+ import SystemPurposeCard from '../../../components/extensions/HostDetails/Cards/SystemPurposeCard/SystemPurposeCard';
35
37
 
36
38
  const ActivationKeyDetails = ({ match }) => {
37
39
  const dispatch = useDispatch();
@@ -51,7 +53,7 @@ const ActivationKeyDetails = ({ match }) => {
51
53
  };
52
54
 
53
55
  return (
54
- <div >
56
+ <div id="ak-details-katello" >
55
57
  <Panel className="ak-details-header">
56
58
  <div className="breadcrumb-bar-pf4">
57
59
  <Breadcrumb ouiaId="ak-breadcrumbs" className="breadcrumb-display">
@@ -106,6 +108,13 @@ const ActivationKeyDetails = ({ match }) => {
106
108
  }
107
109
  </div>
108
110
  </Panel>
111
+ <PageSection className="ak-details-tab-page">
112
+ <Grid className="ak-details-tab-page" hasGutter>
113
+ <GridItem span={6}>
114
+ <SystemPurposeCard akDetails={akDetails} />
115
+ </GridItem>
116
+ </Grid>
117
+ </PageSection>
109
118
  <DeleteModal isModalOpen={isModalOpen} handleModalToggle={handleModalToggle} akId={akId} />
110
119
  </div>
111
120
  );
@@ -1,37 +1,39 @@
1
- .ak-details-header {
2
- margin: 0 24px 16px;
3
- padding-top: 16px;
4
- }
1
+ #ak-details-katello {
2
+ .ak-details-header {
3
+ margin: 0 24px 16px;
4
+ padding-top: 16px;
5
+ }
5
6
 
6
- .ak-details-description {
7
- padding-top: 16px;
8
- }
7
+ .ak-details-description {
8
+ padding-top: 16px;
9
+ }
9
10
 
10
- .breadcrumb-bar-pf4 {
11
- margin: 0 0 16px;
12
- }
11
+ .breadcrumb-bar-pf4 {
12
+ margin: 0 0 16px;
13
+ }
13
14
 
14
- .breadcrumb-display {
15
- display: block;
16
- }
15
+ .breadcrumb-display {
16
+ display: block;
17
+ }
17
18
 
18
- .breadcrumb-list {
19
- display: flex;
20
- flex-wrap: wrap;
21
- align-items: center;
22
- }
19
+ .breadcrumb-list {
20
+ display: flex;
21
+ flex-wrap: wrap;
22
+ align-items: center;
23
+ }
23
24
 
24
- .ak-name-truncate {
25
- text-overflow: ellipsis;
26
- max-width: 100%;
27
- white-space: nowrap;
28
- overflow: hidden;
29
- display: inline-block;
30
- margin-right: 16px
31
- }
25
+ .ak-name-truncate {
26
+ text-overflow: ellipsis;
27
+ max-width: 100%;
28
+ white-space: nowrap;
29
+ overflow: hidden;
30
+ display: inline-block;
31
+ margin-right: 16px;
32
+ }
32
33
 
33
- .ak-name-wrapper {
34
- display: inline-flex;
35
- max-width: 60%;
36
- margin-right: 8px;
37
- }
34
+ .ak-name-wrapper {
35
+ display: inline-flex;
36
+ max-width: 60%;
37
+ margin-right: 8px;
38
+ }
39
+ }
@@ -27,13 +27,15 @@ import {
27
27
  TextVariants,
28
28
  } from '@patternfly/react-core';
29
29
  import { TableVariant, Tbody, Td, Th, Thead, Tr, ActionsColumn } from '@patternfly/react-table';
30
+ import { useSelectionSet } from 'foremanReact/components/PF4/TableIndexPage/Table/TableHooks';
31
+ import { useTableSort } from 'foremanReact/components/PF4/Helpers/useTableSort';
32
+
30
33
  import TableWrapper from '../../../components/Table/TableWrapper';
31
34
  import {
32
35
  selectAlternateContentSources,
33
36
  selectAlternateContentSourcesError,
34
37
  selectAlternateContentSourcesStatus,
35
38
  } from '../ACSSelectors';
36
- import { useSelectionSet, useTableSort } from '../../../components/Table/TableHooks';
37
39
  import getAlternateContentSources, { deleteACS, bulkDeleteACS, getACSDetails, refreshACS, bulkRefreshACS } from '../ACSActions';
38
40
  import ACSCreateWizard from '../Create/ACSCreateWizard';
39
41
  import LastSync from '../../ContentViews/Details/Repositories/LastSync';
@@ -16,6 +16,7 @@ export default [
16
16
  singularLowercase: __('Python package'),
17
17
  pluralLabel: 'python_packages',
18
18
  singularLabel: 'python_package',
19
+ capsuleCountLabel: 'python_package',
19
20
  },
20
21
  columnHeaders: [
21
22
  { title: __('Name'), getProperty: unit => (<a href={urlBuilder(`content/python_packages/${unit?.id}`, '')}>{unit?.name}</a>) },
@@ -81,6 +82,7 @@ export default [
81
82
  singularLowercase: __('OSTree ref'),
82
83
  pluralLabel: 'ostree_refs',
83
84
  singularLabel: 'ostree_ref',
85
+ capsuleCountLabel: 'ostree_ref',
84
86
  },
85
87
  columnHeaders: [
86
88
  { title: __('Name'), getProperty: unit => (<a href={urlBuilder(`content/ostree_refs/${unit?.id}`, '')}>{unit?.name}</a>) },
@@ -142,6 +144,7 @@ export default [
142
144
  singularLowercase: __('Ansible collection'),
143
145
  pluralLabel: 'ansible_collections',
144
146
  singularLabel: 'ansible_collection',
147
+ capsuleCountLabel: 'ansible_collection',
145
148
  },
146
149
  columnHeaders: [
147
150
  { title: __('Name'), getProperty: unit => (<a href={urlBuilder(`content/ansible_collections/${unit?.id}`, '')}>{unit?.name}</a>) },
@@ -76,10 +76,12 @@ const CreateContentViewForm = ({ setModalOpen }) => {
76
76
  const submitDisabled = !name?.length || !label?.length || saving || redirect || labelValidated === 'error';
77
77
 
78
78
  return (
79
- <Form onSubmit={(e) => {
80
- e.preventDefault();
81
- onSave();
82
- }}
79
+ <Form
80
+ onSubmit={(e) => {
81
+ e.preventDefault();
82
+ onSave();
83
+ }}
84
+ id="create-content-view-form"
83
85
  >
84
86
  <FormGroup label={__('Name')} isRequired fieldId="name">
85
87
  <TextInput
@@ -1,7 +1,9 @@
1
- .pf-c-tile__title {
2
- font-size: 16px;
3
- }
1
+ #create-content-view-form {
2
+ .pf-c-tile__title {
3
+ font-size: 16px;
4
+ }
4
5
 
5
- .pf-c-tile__icon {
6
- min-height: 38px;
7
- }
6
+ .pf-c-tile__icon {
7
+ min-height: 38px;
8
+ }
9
+ }
@@ -151,6 +151,7 @@ const ContentViewDeleteWizard =
151
151
  setIsOpen(false);
152
152
  }}
153
153
  isOpen={show}
154
+ id="content-view-delete-wizard"
154
155
  />
155
156
  </CVDeleteContext.Provider>
156
157
  );
@@ -1,4 +1,6 @@
1
- .pf-c-expandable-section__content {
1
+ #content-view-delete-wizard {
2
+ .pf-c-expandable-section__content {
2
3
  margin-bottom: 1em;
3
4
  margin-top: 1em;
4
- }
5
+ }
6
+ }
@@ -13,8 +13,7 @@ import {
13
13
  selectCVDetails,
14
14
  selectCVDetailStatus,
15
15
  } from '../../Details/ContentViewDetailSelectors';
16
- import { addComponent } from '../ContentViewDetailActions';
17
- import { CONTENT_VIEW_NEEDS_PUBLISH } from '../../ContentViewsConstants';
16
+ import getContentViewDetails, { addComponent } from '../ContentViewDetailActions';
18
17
 
19
18
  const ComponentContentViewAddModal = ({
20
19
  cvId, componentCvId, componentId, latest, componentVersionId, show, setIsOpen,
@@ -67,12 +66,12 @@ const ComponentContentViewAddModal = ({
67
66
  dispatch(addComponent({
68
67
  compositeContentViewId: cvId,
69
68
  components: getUpdateParams(),
70
- }, () => dispatch({ type: CONTENT_VIEW_NEEDS_PUBLISH })));
69
+ }, () => dispatch(getContentViewDetails(cvId))));
71
70
  } else {
72
71
  dispatch(addComponent({
73
72
  compositeContentViewId: cvId,
74
73
  components: getAddParams(),
75
- }, () => dispatch({ type: CONTENT_VIEW_NEEDS_PUBLISH })));
74
+ }, () => dispatch(getContentViewDetails(cvId))));
76
75
  }
77
76
  setIsOpen(false);
78
77
  };
@@ -8,7 +8,7 @@ import {
8
8
  import { OutlinedQuestionCircleIcon } from '@patternfly/react-icons';
9
9
  import { useDispatch } from 'react-redux';
10
10
  import { translate as __ } from 'foremanReact/common/I18n';
11
- import { addComponent } from '../ContentViewDetailActions';
11
+ import getContentViewDetails, { addComponent } from '../ContentViewDetailActions';
12
12
 
13
13
  const ComponentContentViewBulkAddModal = ({ cvId, rowsToAdd, onClose }) => {
14
14
  const dispatch = useDispatch();
@@ -37,7 +37,7 @@ const ComponentContentViewBulkAddModal = ({ cvId, rowsToAdd, onClose }) => {
37
37
  dispatch(addComponent({
38
38
  compositeContentViewId: cvId,
39
39
  components: bulkAddParams(),
40
- }));
40
+ }, () => dispatch(getContentViewDetails(cvId))));
41
41
  onClose();
42
42
  };
43
43