katello 4.7.4 → 4.8.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 (334) hide show
  1. checksums.yaml +4 -4
  2. data/app/controllers/katello/api/registry/registry_proxies_controller.rb +6 -4
  3. data/app/controllers/katello/api/rhsm/candlepin_proxies_controller.rb +15 -12
  4. data/app/controllers/katello/api/v2/capsule_content_controller.rb +0 -4
  5. data/app/controllers/katello/api/v2/content_export_incrementals_controller.rb +22 -81
  6. data/app/controllers/katello/api/v2/content_exports_controller.rb +11 -80
  7. data/app/controllers/katello/api/v2/content_imports_controller.rb +1 -0
  8. data/app/controllers/katello/api/v2/exports_controller.rb +130 -0
  9. data/app/controllers/katello/api/v2/host_subscriptions_controller.rb +7 -8
  10. data/app/controllers/katello/api/v2/hosts_bulk_actions_controller.rb +8 -4
  11. data/app/controllers/katello/api/v2/organizations_controller.rb +3 -0
  12. data/app/controllers/katello/api/v2/package_groups_controller.rb +0 -52
  13. data/app/controllers/katello/concerns/api/v2/bulk_hosts_extensions.rb +4 -6
  14. data/app/controllers/katello/concerns/api/v2/registration_controller_extensions.rb +1 -2
  15. data/app/controllers/katello/concerns/authorization/api/v2/content_views_controller.rb +4 -1
  16. data/app/controllers/katello/concerns/content_facet_hosts_controller_extensions.rb +24 -0
  17. data/app/controllers/katello/concerns/hosts_controller_extensions.rb +3 -3
  18. data/app/helpers/katello/hosts_and_hostgroups_helper.rb +55 -24
  19. data/app/helpers/katello/katello_urls_helper.rb +0 -15
  20. data/app/helpers/katello/sync_management_helper.rb +0 -4
  21. data/app/lib/actions/candlepin/owner/destroy_imports.rb +1 -1
  22. data/app/lib/actions/katello/capsule_content/sync.rb +0 -4
  23. data/app/lib/actions/katello/capsule_content/sync_capsule.rb +1 -2
  24. data/app/lib/actions/katello/content_view/publish.rb +6 -2
  25. data/app/lib/actions/katello/content_view/remove.rb +8 -2
  26. data/app/lib/actions/katello/content_view_version/destroy.rb +1 -1
  27. data/app/lib/actions/katello/environment/destroy.rb +8 -2
  28. data/app/lib/actions/katello/host/reassign.rb +4 -2
  29. data/app/lib/actions/katello/orphan_cleanup/remove_orphans.rb +0 -1
  30. data/app/lib/actions/katello/product/destroy.rb +2 -1
  31. data/app/lib/actions/katello/repository/filtered_index_content.rb +2 -10
  32. data/app/lib/actions/katello/repository/import_upload.rb +0 -1
  33. data/app/lib/actions/katello/repository/sync.rb +0 -1
  34. data/app/lib/actions/katello/repository/update.rb +5 -3
  35. data/app/lib/actions/katello/repository/upload_files.rb +0 -1
  36. data/app/lib/actions/pulp3/abstract.rb +0 -6
  37. data/app/lib/actions/pulp3/content_view/delete_repository_references.rb +1 -2
  38. data/app/lib/actions/pulp3/content_view_version/create_syncable_export_history.rb +4 -0
  39. data/app/lib/actions/pulp3/orchestration/content_view_version/export.rb +1 -0
  40. data/app/lib/actions/pulp3/orchestration/content_view_version/export_repository.rb +7 -2
  41. data/app/lib/actions/pulp3/orchestration/content_view_version/syncable_export.rb +7 -2
  42. data/app/lib/actions/pulp3/repository/refresh_distribution.rb +1 -2
  43. data/app/lib/actions/pulp3/repository/save_distribution_references.rb +2 -2
  44. data/app/lib/katello/concerns/renderer_extensions.rb +1 -1
  45. data/app/lib/katello/event_daemon/runner.rb +12 -9
  46. data/app/lib/katello/resources/candlepin/consumer.rb +6 -6
  47. data/app/lib/katello/resources/candlepin/owner.rb +1 -1
  48. data/app/lib/katello/resources/candlepin/upstream_consumer.rb +3 -4
  49. data/app/lib/katello/resources/candlepin.rb +4 -4
  50. data/app/lib/katello/util/errata.rb +12 -10
  51. data/app/lib/katello/util/search.rb +0 -1
  52. data/app/lib/katello/validators/content_view_environment_org_validator.rb +5 -2
  53. data/app/lib/katello/validators/content_view_environment_validator.rb +1 -2
  54. data/app/lib/katello/validators/generated_content_view_validator.rb +16 -0
  55. data/app/mailers/katello/errata_mailer.rb +4 -2
  56. data/app/models/katello/alternate_content_source.rb +5 -1
  57. data/app/models/katello/concerns/content_facet_host_extensions.rb +25 -14
  58. data/app/models/katello/concerns/host_managed_extensions.rb +17 -8
  59. data/app/models/katello/concerns/redhat_extensions.rb +16 -6
  60. data/app/models/katello/concerns/smart_proxy_extensions.rb +0 -12
  61. data/app/models/katello/concerns/subscription_facet_host_extensions.rb +1 -0
  62. data/app/models/katello/content_view.rb +22 -5
  63. data/app/models/katello/content_view_environment.rb +11 -2
  64. data/app/models/katello/content_view_environment_content_facet.rb +9 -0
  65. data/app/models/katello/content_view_version.rb +10 -5
  66. data/app/models/katello/erratum.rb +6 -1
  67. data/app/models/katello/glue/candlepin/pool.rb +6 -0
  68. data/app/models/katello/glue/candlepin/product.rb +7 -1
  69. data/app/models/katello/glue/candlepin/subscription.rb +5 -0
  70. data/app/models/katello/glue/provider.rb +26 -26
  71. data/app/models/katello/host/content_facet.rb +106 -18
  72. data/app/models/katello/host/info_provider.rb +25 -21
  73. data/app/models/katello/host/subscription_facet.rb +18 -14
  74. data/app/models/katello/kt_environment.rb +12 -7
  75. data/app/models/katello/package_group.rb +0 -12
  76. data/app/models/katello/pool.rb +4 -1
  77. data/app/models/katello/product.rb +11 -1
  78. data/app/models/katello/repository.rb +11 -11
  79. data/app/models/katello/root_repository.rb +5 -4
  80. data/app/models/katello/task_status.rb +0 -18
  81. data/app/services/katello/candlepin/consumer.rb +2 -2
  82. data/app/services/katello/host/package_profile_uploader.rb +1 -1
  83. data/app/services/katello/product_content_finder.rb +11 -8
  84. data/app/services/katello/pulp3/content_view_version/export.rb +8 -65
  85. data/app/services/katello/pulp3/content_view_version/export_validation_error.rb +7 -0
  86. data/app/services/katello/pulp3/content_view_version/export_validator.rb +105 -0
  87. data/app/services/katello/pulp3/content_view_version/importable_products.rb +1 -1
  88. data/app/services/katello/pulp3/content_view_version/syncable_format_export.rb +7 -1
  89. data/app/services/katello/pulp3/erratum.rb +1 -0
  90. data/app/services/katello/pulp3/module_stream.rb +26 -11
  91. data/app/services/katello/pulp3/repository/yum.rb +2 -1
  92. data/app/services/katello/pulp3/smart_proxy_mirror_repository.rb +2 -1
  93. data/app/services/katello/registration_manager.rb +46 -26
  94. data/app/services/katello/repository_type.rb +3 -9
  95. data/app/services/katello/simple_package.rb +22 -0
  96. data/app/views/foreman/smart_proxies/_content_sync.html.erb +1 -0
  97. data/app/views/foreman/smart_proxies/_reclaim_space.html.erb +1 -0
  98. data/app/views/katello/api/v2/content_facet/base.json.rabl +23 -2
  99. data/app/views/katello/api/v2/content_facet/show.json.rabl +11 -8
  100. data/app/views/katello/api/v2/content_views/base.json.rabl +1 -1
  101. data/app/views/katello/api/v2/hosts/base.json.rabl +22 -2
  102. data/app/views/overrides/activation_keys/_host_environment_select.html.erb +2 -2
  103. data/config/initializers/monkeys.rb +0 -2
  104. data/config/routes/api/registry.rb +8 -7
  105. data/config/routes/api/v2.rb +0 -2
  106. data/config/routes.rb +3 -0
  107. data/db/migrate/20200429153103_installed_package_bad_nvrea.rb +1 -1
  108. data/db/migrate/20220228173251_remove_drpm_from_ignorable_content.rb +7 -3
  109. data/db/migrate/20220419193414_content_settings_to_dsl_category.rb +1 -1
  110. data/db/migrate/20220929204746_add_content_view_environment_content_facet.rb +52 -0
  111. data/db/migrate/20221123212341_remove_pulp_docker_registry_port_setting.rb +5 -0
  112. data/db/migrate/20230119003859_ensure_repo_username_password_nil_not_blank.rb +1 -1
  113. data/db/seeds.d/111-upgrade_tasks.rb +2 -1
  114. data/engines/bastion/app/assets/stylesheets/bastion/bastion.scss +4 -0
  115. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/activation-key-details.controller.js +2 -4
  116. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/bulk/content-hosts-bulk-errata-modal.controller.js +0 -1
  117. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/content-host-details.controller.js +2 -4
  118. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/views/content-hosts.html +2 -1
  119. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/errata/apply-errata.controller.js +11 -3
  120. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/details/views/host-collection-hosts-list.html +1 -1
  121. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/bastion_katello.pot +8 -4
  122. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/de.po +5485 -0
  123. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/es.po +5397 -0
  124. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/fr.po +5658 -0
  125. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/ja.po +5284 -0
  126. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/ka.po +5231 -0
  127. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/ko.po +5275 -0
  128. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/pt_BR.po +5389 -0
  129. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/zh_CN.po +5212 -0
  130. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/zh_TW.po +5145 -0
  131. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/translations.js +9 -0
  132. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/views/content-access-mode-banner.html +2 -2
  133. data/lib/katello/engine.rb +2 -1
  134. data/lib/katello/permission_creator.rb +2 -4
  135. data/lib/katello/permissions/registry_permissions.rb +5 -5
  136. data/lib/katello/plugin.rb +22 -14
  137. data/lib/katello/repository_types/README.md +136 -19
  138. data/lib/katello/repository_types/deb.rb +0 -1
  139. data/lib/katello/repository_types/docker.rb +0 -1
  140. data/lib/katello/repository_types/file.rb +0 -1
  141. data/lib/katello/repository_types/yum.rb +0 -4
  142. data/lib/katello/tasks/clean_candlepin_orphaned_products.rake +38 -0
  143. data/lib/katello/tasks/clean_orphaned_facets.rb +20 -0
  144. data/lib/katello/tasks/reimport.rake +1 -2
  145. data/lib/katello/tasks/repository.rake +1 -22
  146. data/lib/katello/tasks/reset.rake +1 -0
  147. data/lib/katello/tasks/upgrades/4.8/fix_incorrect_providers.rake +29 -0
  148. data/lib/katello/version.rb +1 -1
  149. data/lib/katello.rb +0 -5
  150. data/locale/bn/katello.po +69 -27
  151. data/locale/cs/katello.po +69 -27
  152. data/locale/de/katello.po +78 -36
  153. data/locale/en/katello.po +69 -27
  154. data/locale/es/katello.po +70 -28
  155. data/locale/fr/katello.po +73 -31
  156. data/locale/gu/katello.po +69 -27
  157. data/locale/hi/katello.po +69 -27
  158. data/locale/it/katello.po +69 -27
  159. data/locale/ja/katello.po +73 -31
  160. data/locale/ka/katello.po +73 -31
  161. data/locale/katello.pot +335 -262
  162. data/locale/kn/katello.po +69 -27
  163. data/locale/ko/katello.po +69 -27
  164. data/locale/mr/katello.po +69 -27
  165. data/locale/or/katello.po +69 -27
  166. data/locale/pa/katello.po +69 -27
  167. data/locale/pt/katello.po +69 -27
  168. data/locale/pt_BR/katello.po +70 -28
  169. data/locale/ru/katello.po +70 -28
  170. data/locale/ta/katello.po +69 -27
  171. data/locale/te/katello.po +69 -27
  172. data/locale/zh_CN/katello.po +73 -31
  173. data/locale/zh_TW/katello.po +70 -28
  174. data/webpack/components/Content/ContentPage.js +51 -35
  175. data/webpack/components/Content/__tests__/ContentPage.test.js +2 -4
  176. data/webpack/components/Content/__tests__/__snapshots__/ContentPage.test.js.snap +22 -3
  177. data/webpack/components/Table/EmptyStateMessage.js +14 -11
  178. data/webpack/components/Table/MainTable.js +36 -15
  179. data/webpack/components/Table/TableWrapper.js +25 -25
  180. data/webpack/components/Table/__test__/emptyStateMessage.test.js +51 -0
  181. data/webpack/components/extensions/HostDetails/Cards/ErrataOverviewCard.js +5 -4
  182. data/webpack/components/extensions/HostDetails/Cards/HostCollectionsCard/HostCollectionsModal.js +1 -1
  183. data/webpack/components/extensions/HostDetails/Cards/HostCollectionsCard/__tests__/hostCollectionsModal.test.js +1 -17
  184. data/webpack/components/extensions/HostDetails/Tabs/ErrataTab/ErrataTab.js +18 -9
  185. data/webpack/components/extensions/HostDetails/Tabs/ModuleStreamsTab/ModuleStreamsTab.js +1 -2
  186. data/webpack/components/extensions/HostDetails/Tabs/PackagesTab/PackageInstallModal.js +1 -2
  187. data/webpack/components/extensions/HostDetails/Tabs/PackagesTab/PackagesTab.js +1 -2
  188. data/webpack/components/extensions/HostDetails/Tabs/RepositorySetsTab/RepositorySetsTab.js +47 -27
  189. data/webpack/components/extensions/HostDetails/Tabs/TracesTab/TracesTab.js +1 -2
  190. data/webpack/components/extensions/HostDetails/Tabs/__tests__/errataTab.test.js +2 -21
  191. data/webpack/components/extensions/HostDetails/Tabs/__tests__/moduleStreamsTab.test.js +1 -28
  192. data/webpack/components/extensions/HostDetails/Tabs/__tests__/packageInstallModal.test.js +1 -10
  193. data/webpack/components/extensions/HostDetails/Tabs/__tests__/packagesTab.test.js +1 -18
  194. data/webpack/components/extensions/HostDetails/Tabs/__tests__/repositorySetsTab.test.js +1 -17
  195. data/webpack/components/extensions/HostDetails/Tabs/__tests__/tracesTab.test.js +1 -15
  196. data/webpack/global_test_setup.js +1 -1
  197. data/webpack/scenes/AlternateContentSources/Create/ACSCreateWizard.js +12 -10
  198. data/webpack/scenes/AlternateContentSources/Create/Steps/ACSCredentials.js +6 -0
  199. data/webpack/scenes/AlternateContentSources/Create/Steps/ACSSmartProxies.js +1 -0
  200. data/webpack/scenes/AlternateContentSources/Create/Steps/AcsUrlPaths.js +3 -10
  201. data/webpack/scenes/AlternateContentSources/Create/Steps/NameACS.js +1 -0
  202. data/webpack/scenes/AlternateContentSources/Create/__tests__/acsCreate.test.js +3 -3
  203. data/webpack/scenes/AlternateContentSources/Details/EditModals/ACSEditDetails.js +1 -0
  204. data/webpack/scenes/AlternateContentSources/Details/EditModals/ACSEditURLPaths.js +12 -4
  205. data/webpack/scenes/AlternateContentSources/MainTable/ACSTable.js +7 -4
  206. data/webpack/scenes/AlternateContentSources/MainTable/__tests__/acsTable.test.js +4 -8
  207. data/webpack/scenes/AlternateContentSources/helpers.js +1 -1
  208. data/webpack/scenes/Content/Details/ContentRepositories.js +5 -4
  209. data/webpack/scenes/Content/Details/__tests__/contentDetail.test.js +1 -12
  210. data/webpack/scenes/Content/Table/ContentTable.js +2 -1
  211. data/webpack/scenes/Content/__tests__/contentTable.test.js +1 -14
  212. data/webpack/scenes/ContentViews/Delete/__tests__/contentViewDelete.test.js +1 -25
  213. data/webpack/scenes/ContentViews/Details/ComponentContentViews/ContentViewComponents.js +2 -1
  214. data/webpack/scenes/ContentViews/Details/ComponentContentViews/__tests__/contentViewComponents.test.js +44 -31
  215. data/webpack/scenes/ContentViews/Details/ContentViewDetails.js +2 -0
  216. data/webpack/scenes/ContentViews/Details/Filters/AffectedRepositories/AffectedRepositoryTable.js +6 -1
  217. data/webpack/scenes/ContentViews/Details/Filters/CVContainerImageFilterContent.js +2 -1
  218. data/webpack/scenes/ContentViews/Details/Filters/CVDebFilterContent.js +2 -1
  219. data/webpack/scenes/ContentViews/Details/Filters/CVErrataIDFilterContent.js +3 -1
  220. data/webpack/scenes/ContentViews/Details/Filters/CVModuleStreamFilterContent.js +3 -1
  221. data/webpack/scenes/ContentViews/Details/Filters/CVPackageGroupFilterContent.js +3 -1
  222. data/webpack/scenes/ContentViews/Details/Filters/CVRpmFilterContent.js +2 -1
  223. data/webpack/scenes/ContentViews/Details/Filters/ContentViewFilterDetailsHeader.js +2 -0
  224. data/webpack/scenes/ContentViews/Details/Filters/ContentViewFilters.js +2 -1
  225. data/webpack/scenes/ContentViews/Details/Filters/MatchContentModal/CVDebMatchContentModal.js +1 -1
  226. data/webpack/scenes/ContentViews/Details/Filters/MatchContentModal/CVRpmMatchContentModal.js +1 -1
  227. data/webpack/scenes/ContentViews/Details/Filters/MatchContentModal/__tests__/CVRpmMatchContentModal.test.js +35 -33
  228. data/webpack/scenes/ContentViews/Details/Filters/__tests__/CVContainerImageFilterContent.test.js +48 -45
  229. data/webpack/scenes/ContentViews/Details/Filters/__tests__/CVRpmFilterContent.test.js +58 -24
  230. data/webpack/scenes/ContentViews/Details/Filters/__tests__/ContentViewPackageGroupFilter.test.js +64 -0
  231. data/webpack/scenes/ContentViews/Details/Filters/__tests__/contentViewFilterDetails.test.js +36 -20
  232. data/webpack/scenes/ContentViews/Details/Filters/__tests__/contentViewFilters.test.js +40 -23
  233. data/webpack/scenes/ContentViews/Details/Filters/__tests__/cvErrataIDFilter.test.js +0 -13
  234. data/webpack/scenes/ContentViews/Details/Filters/__tests__/cvModuleStreamFilter.test.js +0 -13
  235. data/webpack/scenes/ContentViews/Details/Histories/ContentViewHistories.js +2 -1
  236. data/webpack/scenes/ContentViews/Details/Histories/__tests__/contentViewHistory.test.js +1 -10
  237. data/webpack/scenes/ContentViews/Details/Repositories/ContentViewRepositories.js +2 -1
  238. data/webpack/scenes/ContentViews/Details/Repositories/__tests__/contentViewAddRemove.test.js +1 -10
  239. data/webpack/scenes/ContentViews/Details/Versions/Compare/CVVersionCompareConfig.js +21 -9
  240. data/webpack/scenes/ContentViews/Details/Versions/Compare/CVVersionCompareTable.js +4 -0
  241. data/webpack/scenes/ContentViews/Details/Versions/Compare/__tests__/CVVersionCompare.test.js +1 -32
  242. data/webpack/scenes/ContentViews/Details/Versions/ContentViewVersions.js +3 -1
  243. data/webpack/scenes/ContentViews/Details/Versions/Delete/__tests__/cvVersionRemove.test.js +1 -15
  244. data/webpack/scenes/ContentViews/Details/Versions/Delete/affectedActivationKeys.js +1 -1
  245. data/webpack/scenes/ContentViews/Details/Versions/Delete/affectedHosts.js +1 -2
  246. data/webpack/scenes/ContentViews/Details/Versions/VersionDetails/ContentViewVersionDetailConfig.js +31 -9
  247. data/webpack/scenes/ContentViews/Details/Versions/VersionDetails/ContentViewVersionDetailsTable.js +4 -0
  248. data/webpack/scenes/ContentViews/Details/Versions/VersionDetails/__tests__/ContentViewVersionDetails.test.js +30 -14
  249. data/webpack/scenes/ContentViews/Table/ContentViewsTable.js +1 -1
  250. data/webpack/scenes/ContentViews/__tests__/contentViewPage.test.js +55 -120
  251. data/webpack/scenes/ContentViews/components/WizardHeader.js +1 -1
  252. data/webpack/scenes/ContentViews/expansions/RelatedContentViewComponentsModal.js +1 -1
  253. data/webpack/scenes/ContentViews/expansions/__tests__/contentViewComponentsModal.test.js +8 -1
  254. data/webpack/scenes/ModuleStreams/ModuleStreamsPage.js +3 -9
  255. data/webpack/scenes/ModuleStreams/__tests__/__snapshots__/ModuleStreamPage.test.js.snap +7 -1
  256. data/webpack/scenes/RedHatRepositories/components/Search.js +22 -16
  257. data/webpack/scenes/RedHatRepositories/index.scss +20 -1
  258. data/webpack/scenes/SmartProxy/SmartProxyContentTable.js +12 -1
  259. data/webpack/scenes/Subscriptions/Manifest/CdnConfigurationTab/CdnTypeForm.js +1 -1
  260. data/webpack/scenes/Subscriptions/Manifest/CdnConfigurationTab/CustomCdnTypeForm.js +1 -1
  261. data/webpack/scenes/Subscriptions/SubscriptionsPage.js +21 -19
  262. data/webpack/scenes/Subscriptions/__tests__/__snapshots__/SubscriptionsPage.test.js.snap +34 -1
  263. data/webpack/scenes/Subscriptions/components/SubscriptionsToolbar/SubscriptionsToolbar.js +20 -7
  264. data/webpack/scenes/Subscriptions/components/SubscriptionsToolbar/SubscriptionsToolbar.test.js +0 -1
  265. data/webpack/scenes/Subscriptions/components/SubscriptionsToolbar/__snapshots__/SubscriptionsToolbar.test.js.snap +65 -15
  266. metadata +50 -116
  267. data/app/lib/actions/katello/pulp_selector.rb +0 -24
  268. data/app/lib/actions/katello/repository/correct_checksum.rb +0 -24
  269. data/app/lib/actions/katello/repository/destroy_package_group.rb +0 -26
  270. data/app/lib/actions/katello/repository/upload_package_group.rb +0 -24
  271. data/app/lib/actions/pulp/abstract.rb +0 -37
  272. data/app/lib/actions/pulp/abstract_async_task.rb +0 -154
  273. data/app/lib/actions/pulp/abstract_async_task_group.rb +0 -94
  274. data/app/lib/actions/pulp/consumer/sync_capsule.rb +0 -45
  275. data/app/lib/actions/pulp/consumer/unassociate_units.rb +0 -20
  276. data/app/lib/actions/pulp/expect_one_task.rb +0 -11
  277. data/app/lib/actions/pulp/orchestration/orphan_cleanup/remove_orphans.rb +0 -16
  278. data/app/lib/actions/pulp/orchestration/repository/copy_all_units.rb +0 -19
  279. data/app/lib/actions/pulp/orchestration/repository/delete.rb +0 -15
  280. data/app/lib/actions/pulp/orchestration/repository/refresh.rb +0 -14
  281. data/app/lib/actions/pulp/orchestration/repository/refresh_if_needed.rb +0 -13
  282. data/app/lib/actions/pulp/orchestration/repository/refresh_repos.rb +0 -19
  283. data/app/lib/actions/pulp/orchestration/repository/remove_units.rb +0 -14
  284. data/app/lib/actions/pulp/orchestration/repository/smart_proxy_sync.rb +0 -34
  285. data/app/lib/actions/pulp/orchestration/repository/sync.rb +0 -18
  286. data/app/lib/actions/pulp/orchestration/repository/upload_content.rb +0 -37
  287. data/app/lib/actions/pulp/orphan_cleanup/remove_orphans.rb +0 -15
  288. data/app/lib/actions/pulp/orphan_cleanup/remove_unneeded_repos.rb +0 -16
  289. data/app/lib/actions/pulp/repository/abstract_copy_content.rb +0 -45
  290. data/app/lib/actions/pulp/repository/abstract_remove_content.rb +0 -32
  291. data/app/lib/actions/pulp/repository/clear.rb +0 -18
  292. data/app/lib/actions/pulp/repository/copy_all_units.rb +0 -30
  293. data/app/lib/actions/pulp/repository/copy_units.rb +0 -25
  294. data/app/lib/actions/pulp/repository/create.rb +0 -28
  295. data/app/lib/actions/pulp/repository/create_in_plan.rb +0 -15
  296. data/app/lib/actions/pulp/repository/create_upload_request.rb +0 -20
  297. data/app/lib/actions/pulp/repository/delete_upload_request.rb +0 -19
  298. data/app/lib/actions/pulp/repository/destroy.rb +0 -28
  299. data/app/lib/actions/pulp/repository/distributor_publish.rb +0 -25
  300. data/app/lib/actions/pulp/repository/download.rb +0 -16
  301. data/app/lib/actions/pulp/repository/import_upload.rb +0 -19
  302. data/app/lib/actions/pulp/repository/presenters/abstract_sync_presenter.rb +0 -47
  303. data/app/lib/actions/pulp/repository/presenters/deb_presenter.rb +0 -95
  304. data/app/lib/actions/pulp/repository/presenters/docker_presenter.rb +0 -103
  305. data/app/lib/actions/pulp/repository/presenters/file_unit_presenter.rb +0 -42
  306. data/app/lib/actions/pulp/repository/presenters/yum_presenter.rb +0 -131
  307. data/app/lib/actions/pulp/repository/refresh.rb +0 -21
  308. data/app/lib/actions/pulp/repository/regenerate_applicability.rb +0 -21
  309. data/app/lib/actions/pulp/repository/remove_distribution.rb +0 -11
  310. data/app/lib/actions/pulp/repository/remove_units.rb +0 -44
  311. data/app/lib/actions/pulp/repository/sync.rb +0 -99
  312. data/app/lib/actions/pulp/repository/upload_file.rb +0 -28
  313. data/app/lib/actions/pulp/repository_group/create.rb +0 -31
  314. data/app/lib/actions/pulp/repository_group/delete.rb +0 -17
  315. data/app/lib/actions/pulp/repository_group/export.rb +0 -51
  316. data/app/lib/katello/util/package_clause_generator.rb +0 -77
  317. data/app/models/katello/glue/pulp/pulp_errors.rb +0 -9
  318. data/app/models/katello/glue/pulp/repo.rb +0 -353
  319. data/app/models/katello/pulp_sync_status.rb +0 -165
  320. data/app/models/katello/pulp_task_status.rb +0 -63
  321. data/app/services/katello/pulp/content.rb +0 -24
  322. data/app/services/katello/pulp/importer_comparison.rb +0 -28
  323. data/app/services/katello/pulp/repository/deb.rb +0 -61
  324. data/app/services/katello/pulp/repository/docker.rb +0 -82
  325. data/app/services/katello/pulp/repository/file.rb +0 -52
  326. data/app/services/katello/pulp/repository/yum.rb +0 -205
  327. data/app/services/katello/pulp/repository.rb +0 -327
  328. data/app/services/katello/pulp/server.rb +0 -35
  329. data/app/services/katello/pulp/simple_package.rb +0 -24
  330. data/app/services/katello/pulp/smart_proxy_repository.rb +0 -52
  331. data/lib/monkeys/fix_deb_optimized_sync.rb +0 -35
  332. data/lib/monkeys/fix_pulp_container_path.rb +0 -35
  333. data/locale/zanata.xml +0 -30
  334. data/webpack/scenes/ContentViews/Details/Filters/MatchContentModal/__tests__/CVRpmMatchContentSearch.fixtures.json +0 -33
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  import { act, renderWithRedux, patientlyWaitFor, fireEvent } from 'react-testing-lib-wrapper';
3
3
  import { Route } from 'react-router-dom';
4
4
  import { head, last } from 'lodash';
5
- import { nockInstance, assertNockRequest, mockAutocomplete, mockSetting } from '../../../../../../test-utils/nockWrapper';
5
+ import { nockInstance, assertNockRequest, mockAutocomplete } from '../../../../../../test-utils/nockWrapper';
6
6
  import api from '../../../../../../services/api';
7
7
 
8
8
  import ContentViewVersions from '../../ContentViewVersions';
@@ -55,8 +55,6 @@ const renderOptions = {
55
55
 
56
56
  };
57
57
 
58
- let searchDelayScope;
59
- let autoSearchScope;
60
58
  let envScope;
61
59
 
62
60
  const versionIdsAllContentTypes = {
@@ -343,9 +341,6 @@ test('Can make an API call and show comparison of two versions with all content
343
341
  renderOptions,
344
342
  );
345
343
 
346
- searchDelayScope = mockSetting(nockInstance, 'autosearch_delay', undefined, 9);
347
- autoSearchScope = mockSetting(nockInstance, 'autosearch_while_typing', undefined, 9);
348
-
349
344
  // Nothing will show at first, page is loading
350
345
  expect(queryByText(`Version ${versionLabelsAllContentTypes.versionOneLabel}`)).toBeNull();
351
346
  expect(queryByText(`Version ${versionLabelsAllContentTypes.versionTwoLabel}`)).toBeNull();
@@ -381,8 +376,6 @@ test('Can make an API call and show comparison of two versions with all content
381
376
  scopeContentTypes.map(cv => assertNockRequest(cv));
382
377
  autoCompleteContentTypesScope.map(cv => assertNockRequest(cv));
383
378
  assertNockRequest(sortedRpmTabScope);
384
- assertNockRequest(searchDelayScope);
385
- assertNockRequest(autoSearchScope);
386
379
  act(done);
387
380
  });
388
381
 
@@ -412,9 +405,6 @@ test('Can make an API call and compare two versions with three content types', a
412
405
  renderOptions,
413
406
  );
414
407
 
415
- searchDelayScope = mockSetting(nockInstance, 'autosearch_delay', undefined, 3);
416
- autoSearchScope = mockSetting(nockInstance, 'autosearch_while_typing', undefined, 3);
417
-
418
408
  // Nothing will show at first, page is loading
419
409
  expect(queryByText(`Version ${versionLabelsThreeContentTypes.versionOneLabel}`)).toBeNull();
420
410
  expect(queryByText(`Version ${versionLabelsThreeContentTypes.versionTwoLabel}`)).toBeNull();
@@ -442,8 +432,6 @@ test('Can make an API call and compare two versions with three content types', a
442
432
  assertNockRequest(scopeVersionTwoDetails);
443
433
  scopeContentTypes.map(cv => assertNockRequest(cv));
444
434
  autoCompleteContentTypesScope.map(cv => assertNockRequest(cv));
445
- assertNockRequest(searchDelayScope);
446
- assertNockRequest(autoSearchScope);
447
435
  act(done);
448
436
  });
449
437
 
@@ -453,8 +441,6 @@ test('Can select two versions and click compare button', async (done) => {
453
441
  const autocompleteScope = mockAutocomplete(nockInstance, autocompleteUrl);
454
442
  const scopeContentTypes = testConfigAllContentTypes.map(({ dataUrl, data }) =>
455
443
  nockInstance.get(dataUrl).query(true).reply(200, data));
456
- searchDelayScope = mockSetting(nockInstance, 'autosearch_delay', undefined, 10);
457
- autoSearchScope = mockSetting(nockInstance, 'autosearch_while_typing', undefined, 10);
458
444
  const scope = nockInstance
459
445
  .get(cvVersions)
460
446
  .query(true)
@@ -499,15 +485,11 @@ test('Can select two versions and click compare button', async (done) => {
499
485
  assertNockRequest(autocompleteScope);
500
486
  assertNockRequest(scope);
501
487
  assertNockRequest(scopeCVDetails);
502
- assertNockRequest(searchDelayScope);
503
- assertNockRequest(autoSearchScope);
504
488
  act(done);
505
489
  });
506
490
 
507
491
  test('Can select two versions with no content and click compare button', async (done) => {
508
492
  const autocompleteScope = mockAutocomplete(nockInstance, autocompleteUrl);
509
- searchDelayScope = mockSetting(nockInstance, 'autosearch_delay');
510
- autoSearchScope = mockSetting(nockInstance, 'autosearch_while_typing');
511
493
  const scope = nockInstance
512
494
  .get(cvVersions)
513
495
  .query(true)
@@ -550,8 +532,6 @@ test('Can select two versions with no content and click compare button', async (
550
532
  assertNockRequest(autocompleteScope);
551
533
  assertNockRequest(scope);
552
534
  assertNockRequest(scopeCVDetails);
553
- assertNockRequest(searchDelayScope);
554
- assertNockRequest(autoSearchScope);
555
535
  act(done);
556
536
  });
557
537
 
@@ -586,9 +566,6 @@ test('Can select viewing by "Different" in the dropdown and see the content in e
586
566
  renderOptions,
587
567
  );
588
568
 
589
- searchDelayScope = mockSetting(nockInstance, 'autosearch_delay', undefined, 3);
590
- autoSearchScope = mockSetting(nockInstance, 'autosearch_while_typing', undefined, 3);
591
-
592
569
  // Nothing will show at first, page is loading
593
570
  expect(queryByText(`Version ${versionLabelsThreeContentTypes.versionOneLabel}`)).toBeNull();
594
571
  expect(queryByText(`Version ${versionLabelsThreeContentTypes.versionTwoLabel}`)).toBeNull();
@@ -631,8 +608,6 @@ test('Can select viewing by "Different" in the dropdown and see the content in e
631
608
  assertNockRequest(scopeVersionTwoDetails);
632
609
  scopeContentTypes.map(cv => assertNockRequest(cv));
633
610
  autoCompleteContentTypesScope.map(cv => assertNockRequest(cv));
634
- assertNockRequest(searchDelayScope);
635
- assertNockRequest(autoSearchScope);
636
611
  act(done);
637
612
  });
638
613
 
@@ -667,10 +642,6 @@ test('Can select viewing by "Same" in the dropdown and see the content in common
667
642
  renderOptions,
668
643
  );
669
644
 
670
- searchDelayScope = mockSetting(nockInstance, 'autosearch_delay', undefined, 3);
671
- autoSearchScope = mockSetting(nockInstance, 'autosearch_while_typing', undefined, 3);
672
-
673
-
674
645
  expect(queryByText(`Version ${versionLabelsThreeContentTypes.versionOneLabel}`)).toBeNull();
675
646
  expect(queryByText(`Version ${versionLabelsThreeContentTypes.versionTwoLabel}`)).toBeNull();
676
647
 
@@ -704,7 +675,5 @@ test('Can select viewing by "Same" in the dropdown and see the content in common
704
675
  assertNockRequest(scopeVersionTwoDetails);
705
676
  scopeContentTypes.map(cv => assertNockRequest(cv));
706
677
  autoCompleteContentTypesScope.map(cv => assertNockRequest(cv));
707
- assertNockRequest(searchDelayScope);
708
- assertNockRequest(autoSearchScope);
709
678
  act(done);
710
679
  });
@@ -253,7 +253,9 @@ const ContentViewVersions = ({ cvId, details }) => {
253
253
  }}
254
254
  ouiaId="content-view-versions-table"
255
255
  variant={TableVariant.compact}
256
- autocompleteEndpoint={`/content_view_versions/auto_complete_search?content_view_id=${cvId}`}
256
+ autocompleteEndpoint="/katello/api/v2/content_view_versions"
257
+ autocompleteQueryParams={{ content_view_id: cvId }}
258
+ bookmarkController="katello_content_view_versions"
257
259
  fetchItems={fetchItems}
258
260
  {...hasActionPermissions ? selectionSetVars : []}
259
261
  actionButtons={
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { renderWithRedux, patientlyWaitFor, fireEvent } from 'react-testing-lib-wrapper';
3
- import { nockInstance, assertNockRequest, mockAutocomplete, mockForemanAutocomplete, mockSetting } from '../../../../../../test-utils/nockWrapper';
3
+ import { nockInstance, assertNockRequest, mockAutocomplete, mockForemanAutocomplete } from '../../../../../../test-utils/nockWrapper';
4
4
  import api, { foremanApi } from '../../../../../../services/api';
5
5
  import CONTENT_VIEWS_KEY from '../../../../ContentViewsConstants';
6
6
  import ContentViewVersions from '../../ContentViewVersions';
@@ -27,15 +27,11 @@ const cVDropDownOptionsPath = api.getApiUrl('/content_views?organization_id=1&in
27
27
  // const taskPollingUrl = '/foreman_tasks/api/tasks/6b900ff8-62bb-42ac-8c45-da86b7258520';
28
28
 
29
29
  let firstVersion;
30
- let searchDelayScope;
31
- let autoSearchScope;
32
30
  let envScope;
33
31
 
34
32
  beforeEach(() => {
35
33
  const { results } = cvVersionsData;
36
34
  [firstVersion] = results;
37
- searchDelayScope = mockSetting(nockInstance, 'autosearch_delay', 0);
38
- autoSearchScope = mockSetting(nockInstance, 'autosearch_while_typing');
39
35
  envScope = nockInstance
40
36
  .get(environmentPathsPath)
41
37
  .query(true)
@@ -44,8 +40,6 @@ beforeEach(() => {
44
40
 
45
41
  afterEach(() => {
46
42
  assertNockRequest(envScope);
47
- assertNockRequest(searchDelayScope);
48
- assertNockRequest(autoSearchScope);
49
43
  });
50
44
 
51
45
  test('Can call API and show versions on page load', async (done) => {
@@ -128,8 +122,6 @@ test('Can open Remove wizard and remove version from environment with hosts', as
128
122
  const autocompleteScope = mockAutocomplete(nockInstance, autocompleteUrl);
129
123
  const hostAutocompleteUrl = '/hosts/auto_complete_search';
130
124
  const hostAutocompleteScope = mockForemanAutocomplete(nockInstance, hostAutocompleteUrl);
131
- const hostSearchDelayScope = mockSetting(nockInstance, 'autosearch_delay', 0);
132
- const hostAutoSearchScope = mockSetting(nockInstance, 'autosearch_while_typing');
133
125
 
134
126
  const scope = nockInstance
135
127
  .get(cvVersions)
@@ -206,8 +198,6 @@ test('Can open Remove wizard and remove version from environment with hosts', as
206
198
  assertNockRequest(scope);
207
199
  assertNockRequest(autocompleteScope);
208
200
  assertNockRequest(hostAutocompleteScope);
209
- assertNockRequest(hostSearchDelayScope);
210
- assertNockRequest(hostAutoSearchScope);
211
201
  assertNockRequest(hostScope);
212
202
  assertNockRequest(cVDropDownOptionsScope);
213
203
  assertNockRequest(envPathRemovalScope);
@@ -218,8 +208,6 @@ test('Can open Remove wizard and remove version from environment with activation
218
208
  const autocompleteScope = mockAutocomplete(nockInstance, autocompleteUrl);
219
209
  const akAutocompleteUrl = '/activation_keys/auto_complete_search';
220
210
  const akAutocompleteScope = mockAutocomplete(nockInstance, akAutocompleteUrl);
221
- const akSearchDelayScope = mockSetting(nockInstance, 'autosearch_delay', 0);
222
- const akAutoSearchScope = mockSetting(nockInstance, 'autosearch_while_typing');
223
211
 
224
212
  const scope = nockInstance
225
213
  .get(cvVersions)
@@ -297,8 +285,6 @@ test('Can open Remove wizard and remove version from environment with activation
297
285
  assertNockRequest(scope);
298
286
  assertNockRequest(autocompleteScope);
299
287
  assertNockRequest(akAutocompleteScope);
300
- assertNockRequest(akSearchDelayScope);
301
- assertNockRequest(akAutoSearchScope);
302
288
  assertNockRequest(activationKeysScope);
303
289
  assertNockRequest(cVDropDownOptionsScope);
304
290
  assertNockRequest(envPathRemovalScope);
@@ -55,7 +55,7 @@ const AffectedActivationKeys = ({
55
55
  status,
56
56
  }}
57
57
  ouiaId="content-view-delete-modal-affected-activation-keys"
58
- autocompleteEndpoint="/activation_keys/auto_complete_search"
58
+ autocompleteEndpoint="/katello/api/v2/activation_keys"
59
59
  variant={TableVariant.compact}
60
60
  >
61
61
  <Thead>
@@ -50,8 +50,7 @@ const AffectedHosts = ({
50
50
  status,
51
51
  }}
52
52
  ouiaId="content-view-delete-modal-affected-hosts-table"
53
- autocompleteEndpoint="/hosts/auto_complete_search"
54
- foremanApiAutoComplete
53
+ autocompleteEndpoint="/api/v2/hosts"
55
54
  variant={TableVariant.compact}
56
55
  >
57
56
  <Thead>
@@ -55,6 +55,8 @@ export const TableType = PropTypes.shape({
55
55
  responseSelector: PropTypes.func,
56
56
  statusSelector: PropTypes.func,
57
57
  autocompleteEndpoint: PropTypes.string,
58
+ autocompleteQueryParams: PropTypes.shape({}),
59
+ bookmarkController: PropTypes.string,
58
60
  fetchItems: PropTypes.func,
59
61
  columnHeaders:
60
62
  PropTypes.arrayOf(PropTypes.shape({
@@ -72,6 +74,8 @@ export default ({ cvId, versionId }) => [
72
74
  responseSelector: state => selectCVVersions(state, cvId),
73
75
  statusSelector: state => selectCVVersionsStatus(state, cvId),
74
76
  autocompleteEndpoint: '',
77
+ autocompleteQueryParams: undefined,
78
+ bookmarkController: '',
75
79
  fetchItems: params => getContentViewVersions(
76
80
  cvId,
77
81
  { composite_version_id: versionId, ...params, content_view_id: undefined },
@@ -99,7 +103,9 @@ export default ({ cvId, versionId }) => [
99
103
  getCountKey: item => item?.repositories?.length,
100
104
  responseSelector: state => selectRepositories(state),
101
105
  statusSelector: state => selectRepositoriesStatus(state),
102
- autocompleteEndpoint: `/repositories/auto_complete_search?archived=true&content_view_version_id=${versionId}`,
106
+ autocompleteEndpoint: '/katello/api/v2/repositories',
107
+ autocompleteQueryParams: { archived: true, content_view_version_id: versionId },
108
+ bookmarkController: 'katello_content_view_repositories',
103
109
  fetchItems: params => getRepositories({
104
110
  content_view_version_id: versionId,
105
111
  archived: true,
@@ -137,7 +143,9 @@ export default ({ cvId, versionId }) => [
137
143
  getCountKey: item => item?.rpm_count,
138
144
  responseSelector: state => selectRPMPackages(state),
139
145
  statusSelector: state => selectRPMPackagesStatus(state),
140
- autocompleteEndpoint: `/packages/auto_complete_search?content_view_version_id=${versionId}`,
146
+ autocompleteEndpoint: '/katello/api/v2/packages',
147
+ autocompleteQueryParams: { content_view_version_id: versionId },
148
+ bookmarkController: 'katello_content_view_components',
141
149
  fetchItems: params => getRPMPackages({ content_view_version_id: versionId, ...params }),
142
150
  columnHeaders: [
143
151
  {
@@ -160,7 +168,9 @@ export default ({ cvId, versionId }) => [
160
168
  getCountKey: item => item?.package_group_count,
161
169
  responseSelector: state => selectRPMPackageGroups(state),
162
170
  statusSelector: state => selectRPMPackageGroupsStatus(state),
163
- autocompleteEndpoint: `/package_groups/auto_complete_search?content_view_version_id=${versionId}`,
171
+ autocompleteEndpoint: '/katello/api/v2/package_groups',
172
+ autocompleteQueryParams: { content_view_version_id: versionId },
173
+ bookmarkController: 'katello_content_view_components',
164
174
  fetchItems: params => getPackageGroups({ content_view_version_id: versionId, ...params }),
165
175
  columnHeaders: [
166
176
  { title: __('Name'), getProperty: item => item?.name },
@@ -174,7 +184,9 @@ export default ({ cvId, versionId }) => [
174
184
  getCountKey: item => item?.file_count,
175
185
  responseSelector: state => selectFiles(state),
176
186
  statusSelector: state => selectFilesStatus(state),
177
- autocompleteEndpoint: `/files/auto_complete_search?content_view_version_id=${versionId}`,
187
+ autocompleteEndpoint: '/katello/api/v2/files',
188
+ autocompleteQueryParams: { content_view_version_id: versionId },
189
+ bookmarkController: 'katello_content_view_components',
178
190
  fetchItems: params => getFiles({ content_view_version_id: versionId, ...params }),
179
191
  columnHeaders: [
180
192
  {
@@ -194,7 +206,9 @@ export default ({ cvId, versionId }) => [
194
206
  getCountKey: item => item?.erratum_count,
195
207
  responseSelector: state => selectErrata(state),
196
208
  statusSelector: state => selectErrataStatus(state),
197
- autocompleteEndpoint: `/errata/auto_complete_search?content_view_version_id=${versionId}`,
209
+ autocompleteEndpoint: '/katello/api/v2/errata',
210
+ autocompleteQueryParams: { content_view_version_id: versionId },
211
+ bookmarkController: 'katello_content_view_components',
198
212
  fetchItems: params => getErrata({ content_view_version_id: versionId, ...params }),
199
213
  columnHeaders: [
200
214
  {
@@ -249,7 +263,9 @@ export default ({ cvId, versionId }) => [
249
263
  getCountKey: item => item?.module_stream_count,
250
264
  responseSelector: state => selectModuleStreams(state),
251
265
  statusSelector: state => selectModuleStreamsStatus(state),
252
- autocompleteEndpoint: `/module_streams/auto_complete_search?content_view_version_id=${versionId}`,
266
+ autocompleteEndpoint: '/katello/api/v2/module_streams',
267
+ autocompleteQueryParams: { content_view_version_id: versionId },
268
+ bookmarkController: 'katello_content_view_components',
253
269
  fetchItems: params => getModuleStreams({ content_view_version_id: versionId, ...params }),
254
270
  columnHeaders: [
255
271
  {
@@ -272,7 +288,9 @@ export default ({ cvId, versionId }) => [
272
288
  getCountKey: item => item?.deb_count,
273
289
  responseSelector: state => selectDebPackages(state),
274
290
  statusSelector: state => selectDebPackagesStatus(state),
275
- autocompleteEndpoint: `/debs/auto_complete_search?content_view_version_id=${versionId}`,
291
+ autocompleteEndpoint: '/katello/api/v2/debs',
292
+ autocompleteQueryParams: { content_view_version_id: versionId },
293
+ bookmarkController: 'katello_content_view_components',
276
294
  fetchItems: params => getDebPackages({ content_view_version_id: versionId, ...params }),
277
295
  columnHeaders: [
278
296
  {
@@ -293,7 +311,9 @@ export default ({ cvId, versionId }) => [
293
311
  getCountKey: item => item?.docker_tag_count,
294
312
  responseSelector: state => selectDockerTags(state),
295
313
  statusSelector: state => selectDockerTagsStatus(state),
296
- autocompleteEndpoint: `/docker_tags/auto_complete_search?content_view_version_id=${versionId}`,
314
+ autocompleteEndpoint: '/katello/api/v2/docker_tags',
315
+ autocompleteQueryParams: { content_view_version_id: versionId },
316
+ bookmarkController: 'katello_content_view_components',
297
317
  fetchItems: params => getDockerTags({ content_view_version_id: versionId, ...params }),
298
318
  columnHeaders: [
299
319
  {
@@ -323,7 +343,9 @@ export default ({ cvId, versionId }) => [
323
343
  getCountKey: item => item[`${singularLabel}_count`],
324
344
  responseSelector: state => selectContent(pluralLabel, state),
325
345
  statusSelector: state => selectContentStatus(pluralLabel, state),
326
- autocompleteEndpoint: `/${pluralLabel}/auto_complete_search?content_view_version_id=${versionId}`,
346
+ autocompleteEndpoint: `/katello/api/v2/${pluralLabel}`,
347
+ autocompleteQueryParams: { content_view_version_id: versionId },
348
+ bookmarkController: 'katello_content_view_components',
327
349
  fetchItems: params =>
328
350
  getContent(pluralLabel, { content_view_version_id: versionId, ...params }),
329
351
  columnHeaders,
@@ -32,6 +32,8 @@ const ContentViewVersionDetailsTable = ({
32
32
  responseSelector,
33
33
  statusSelector,
34
34
  autocompleteEndpoint,
35
+ autocompleteQueryParams,
36
+ bookmarkController,
35
37
  fetchItems,
36
38
  columnHeaders,
37
39
  hideSearch,
@@ -77,6 +79,8 @@ const ContentViewVersionDetailsTable = ({
77
79
  updateSearchQuery,
78
80
  status,
79
81
  autocompleteEndpoint,
82
+ autocompleteQueryParams,
83
+ bookmarkController,
80
84
  hideSearch,
81
85
  }}
82
86
  ouiaId={`content-view-version-details-${kebabCase(route)}-table`}
@@ -2,11 +2,10 @@ import React from 'react';
2
2
  import { renderWithRedux, patientlyWaitFor } from 'react-testing-lib-wrapper';
3
3
  import { Route } from 'react-router-dom';
4
4
  import { head, last } from 'lodash';
5
- import { nockInstance, assertNockRequest, mockSetting, mockAutocomplete } from '../../../../../../test-utils/nockWrapper';
5
+ import { nockInstance, assertNockRequest, mockAutocomplete } from '../../../../../../test-utils/nockWrapper';
6
6
  import api from '../../../../../../services/api';
7
7
  import { cvVersionDetailsKey } from '../../../../ContentViewsConstants';
8
8
  import ContentViewVersionDetails from '../ContentViewVersionDetails';
9
- import { AUTOSEARCH_DELAY, AUTOSEARCH_WHILE_TYPING } from '../../../../../Settings/SettingsConstants';
10
9
  import ContentViewVersionDetailsData from './ContentViewVersionDetails.fixtures.json';
11
10
  import ContentViewVersionDetailsCounts from './ContentViewVersionDetailsCounts.fixtures.json';
12
11
  import cvDetailData from '../../../../__tests__/mockDetails.fixtures.json';
@@ -42,6 +41,28 @@ const renderOptions = {
42
41
  },
43
42
  };
44
43
 
44
+ const autocompleteQuery = name => ((name === 'Repositories') ? {
45
+ archived: true,
46
+ organization_id: 1,
47
+ content_view_version_id: 73,
48
+ search: '',
49
+ } : {
50
+ organization_id: 1,
51
+ content_view_version_id: 73,
52
+ search: '',
53
+ });
54
+
55
+ const queryParams = name => ((name === 'Repositories') ? {
56
+ archived: true,
57
+ content_view_version_id: 73,
58
+ per_page: 20,
59
+ page: 1,
60
+ } : {
61
+ content_view_version_id: 73,
62
+ per_page: 20,
63
+ page: 1,
64
+ });
65
+
45
66
  beforeEach(() => {
46
67
  envScope = nockInstance
47
68
  .get(environmentPathsPath)
@@ -90,7 +111,6 @@ test('Can show versions details - Components Tab', async (done) => {
90
111
  assertNockRequest(componentScope, done);
91
112
  });
92
113
 
93
-
94
114
  const testConfig = [
95
115
  {
96
116
  name: 'Repositories',
@@ -196,9 +216,11 @@ testConfig.forEach(({
196
216
  test(`Can show versions details - ${name} Tab`, async (done) => {
197
217
  const { version } = ContentViewVersionDetailsData;
198
218
 
199
- const autocompleteScope = mockAutocomplete(nockInstance, autoCompleteUrl);
200
- const searchDelayScope = mockSetting(nockInstance, AUTOSEARCH_DELAY);
201
- const autoSearchScope = mockSetting(nockInstance, AUTOSEARCH_WHILE_TYPING);
219
+ const autocompleteScope = mockAutocomplete(
220
+ nockInstance,
221
+ autoCompleteUrl,
222
+ autocompleteQuery(name),
223
+ );
202
224
 
203
225
  const scope = nockInstance
204
226
  .get(cvVersions)
@@ -207,7 +229,7 @@ testConfig.forEach(({
207
229
 
208
230
  const tabScope = nockInstance
209
231
  .get(dataUrl)
210
- .query(true)
232
+ .query(queryParams(name))
211
233
  .reply(200, data);
212
234
 
213
235
  const { getByText, queryByText } = renderWithRedux(
@@ -231,8 +253,6 @@ testConfig.forEach(({
231
253
  });
232
254
 
233
255
  assertNockRequest(autocompleteScope);
234
- assertNockRequest(searchDelayScope);
235
- assertNockRequest(autoSearchScope);
236
256
  assertNockRequest(scope);
237
257
  assertNockRequest(tabScope);
238
258
  assertNockRequest(scope, done);
@@ -247,9 +267,7 @@ test('Can change repository selector', async (done) => {
247
267
  } = testConfig[1]; // RPM Packages
248
268
 
249
269
  const { version } = ContentViewVersionDetailsData;
250
- const autocompleteScope = mockAutocomplete(nockInstance, autoCompleteUrl);
251
- const searchDelayScope = mockSetting(nockInstance, AUTOSEARCH_DELAY, 0);
252
- const autoSearchScope = mockSetting(nockInstance, AUTOSEARCH_WHILE_TYPING);
270
+ const autocompleteScope = mockAutocomplete(nockInstance, autoCompleteUrl, autocompleteQuery);
253
271
 
254
272
  const scope = nockInstance
255
273
  .get(cvVersions)
@@ -297,8 +315,6 @@ test('Can change repository selector', async (done) => {
297
315
  });
298
316
 
299
317
  assertNockRequest(autocompleteScope);
300
- assertNockRequest(searchDelayScope);
301
- assertNockRequest(autoSearchScope);
302
318
  assertNockRequest(scope);
303
319
  assertNockRequest(tabScope);
304
320
  assertNockRequest(scope, done);
@@ -162,7 +162,7 @@ const ContentViewTable = () => {
162
162
  bookmarkController="katello_content_views"
163
163
  variant={TableVariant.compact}
164
164
  status={status}
165
- autocompleteEndpoint="/content_views/auto_complete_search"
165
+ autocompleteEndpoint="/katello/api/v2/content_views"
166
166
  primaryActionButton={canCreate ? (
167
167
  <Button
168
168
  ouiaId="create-content-view"