katello 3.10.2 → 3.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 (242) hide show
  1. checksums.yaml +4 -4
  2. data/app/controllers/katello/api/registry/registry_proxies_controller.rb +16 -22
  3. data/app/controllers/katello/api/v2/content_uploads_controller.rb +4 -7
  4. data/app/controllers/katello/api/v2/content_view_puppet_modules_controller.rb +4 -5
  5. data/app/controllers/katello/api/v2/content_view_versions_controller.rb +4 -4
  6. data/app/controllers/katello/api/v2/content_views_controller.rb +3 -3
  7. data/app/controllers/katello/api/v2/docker_manifests_controller.rb +1 -1
  8. data/app/controllers/katello/api/v2/errata_controller.rb +2 -2
  9. data/app/controllers/katello/api/v2/hosts_bulk_actions_controller.rb +1 -3
  10. data/app/controllers/katello/api/v2/package_groups_controller.rb +3 -3
  11. data/app/controllers/katello/api/v2/repositories_controller.rb +5 -24
  12. data/app/controllers/katello/api/v2/repository_sets_controller.rb +1 -1
  13. data/app/controllers/katello/application_controller.rb +4 -4
  14. data/app/controllers/katello/concerns/api/v2/repository_content_controller.rb +1 -1
  15. data/app/controllers/katello/sync_management_controller.rb +1 -1
  16. data/app/helpers/katello/errata_mailer_helper.rb +1 -1
  17. data/app/helpers/katello/sync_management_helper.rb +1 -1
  18. data/app/lib/actions/candlepin/environment/add_content_to_environment.rb +18 -0
  19. data/app/lib/actions/katello/content_view_puppet_environment/clone.rb +1 -4
  20. data/app/lib/actions/katello/content_view_puppet_environment/clone_content_for_version.rb +20 -0
  21. data/app/lib/actions/katello/content_view_puppet_environment/create_for_version.rb +3 -2
  22. data/app/lib/actions/katello/content_view_version/incremental_update.rb +15 -16
  23. data/app/lib/actions/katello/host/hypervisors_update.rb +17 -6
  24. data/app/lib/actions/katello/organization/manifest_delete.rb +1 -3
  25. data/app/lib/actions/katello/organization/manifest_import.rb +1 -3
  26. data/app/lib/actions/katello/organization/manifest_refresh.rb +1 -3
  27. data/app/lib/actions/katello/provider/update.rb +1 -1
  28. data/app/lib/actions/katello/repository/check_matching_content.rb +8 -2
  29. data/app/lib/actions/katello/repository/clone_contents.rb +52 -0
  30. data/app/lib/actions/katello/repository/clone_to_environment.rb +1 -11
  31. data/app/lib/actions/katello/repository/clone_to_version.rb +19 -29
  32. data/app/lib/actions/katello/repository/create.rb +3 -4
  33. data/app/lib/actions/katello/repository/export.rb +1 -2
  34. data/app/lib/actions/katello/repository/import_upload.rb +7 -5
  35. data/app/lib/actions/katello/repository/purge_empty_content.rb +16 -0
  36. data/app/lib/actions/katello/repository/remove_content.rb +2 -2
  37. data/app/lib/actions/katello/repository/sync.rb +1 -1
  38. data/app/lib/actions/pulp/content_view_puppet_environment/copy_contents.rb +36 -0
  39. data/app/lib/actions/pulp/repository/copy_all_units.rb +27 -0
  40. data/app/lib/actions/pulp/repository/copy_units.rb +29 -0
  41. data/app/lib/actions/pulp/repository/refresh.rb +3 -7
  42. data/app/lib/actions/pulp/repository/regenerate_applicability.rb +5 -2
  43. data/app/lib/katello/concerns/renderer_extensions.rb +1 -1
  44. data/app/lib/katello/http_resource.rb +5 -1
  45. data/app/lib/katello/resources/candlepin/consumer.rb +9 -0
  46. data/app/lib/katello/resources/candlepin/content.rb +2 -3
  47. data/app/lib/katello/util/cdn_var_substitutor.rb +1 -2
  48. data/app/lib/katello/util/path_with_substitutions.rb +18 -1
  49. data/app/lib/katello/validators/content_view_puppet_module_validator.rb +2 -2
  50. data/app/lib/katello/validators/environment_docker_repositories_validator.rb +7 -5
  51. data/app/models/katello/concerns/hostgroup_extensions.rb +2 -7
  52. data/app/models/katello/concerns/organization_extensions.rb +11 -1
  53. data/app/models/katello/concerns/pulp_database_unit.rb +40 -24
  54. data/app/models/katello/concerns/redhat_extensions.rb +7 -3
  55. data/app/models/katello/content_view.rb +5 -7
  56. data/app/models/katello/content_view_docker_filter.rb +3 -3
  57. data/app/models/katello/content_view_puppet_environment.rb +1 -1
  58. data/app/models/katello/content_view_puppet_module.rb +2 -3
  59. data/app/models/katello/docker_meta_tag.rb +1 -1
  60. data/app/models/katello/docker_tag.rb +4 -6
  61. data/app/models/katello/erratum.rb +1 -1
  62. data/app/models/katello/glue/pulp/repo.rb +3 -0
  63. data/app/models/katello/glue/pulp/repos.rb +4 -0
  64. data/app/models/katello/host/info_provider.rb +2 -2
  65. data/app/models/katello/host/subscription_facet.rb +0 -1
  66. data/app/models/katello/module_stream.rb +10 -4
  67. data/app/models/katello/ostree_branch.rb +4 -2
  68. data/app/models/katello/package_group.rb +2 -2
  69. data/app/models/katello/ping.rb +1 -1
  70. data/app/models/katello/puppet_module.rb +3 -3
  71. data/app/models/katello/repository.rb +15 -2
  72. data/app/models/katello/root_repository.rb +10 -0
  73. data/app/models/katello/yum_metadata_file.rb +46 -0
  74. data/app/services/katello/abstract/pulp/content.rb +19 -0
  75. data/app/services/katello/applicable_content_helper.rb +5 -5
  76. data/app/services/katello/pulp/content.rb +17 -0
  77. data/app/services/katello/pulp/repository.rb +45 -15
  78. data/app/services/katello/pulp/repository/deb.rb +8 -0
  79. data/app/services/katello/pulp/repository/docker.rb +19 -0
  80. data/app/services/katello/pulp/repository/file.rb +10 -0
  81. data/app/services/katello/pulp/repository/ostree.rb +4 -0
  82. data/app/services/katello/pulp/repository/puppet.rb +10 -0
  83. data/app/services/katello/pulp/repository/yum.rb +73 -0
  84. data/app/services/katello/pulp/yum_metadata_file.rb +7 -0
  85. data/app/services/katello/repository_type.rb +5 -0
  86. data/app/views/dashboard/_errata_widget.html.erb +1 -1
  87. data/app/views/katello/api/v2/debs/base.json.rabl +2 -1
  88. data/app/views/katello/api/v2/docker_tags/_base.json.rabl +3 -3
  89. data/app/views/katello/api/v2/errata/show.json.rabl +2 -1
  90. data/app/views/katello/api/v2/file_units/base.json.rabl +2 -1
  91. data/app/views/katello/api/v2/module_streams/base.json.rabl +2 -1
  92. data/app/views/katello/api/v2/ostree_branches/show.json.rabl +3 -2
  93. data/app/views/katello/api/v2/package_groups/base.json.rabl +2 -1
  94. data/app/views/katello/api/v2/package_groups/show.json.rabl +1 -1
  95. data/app/views/katello/api/v2/packages/base.json.rabl +2 -1
  96. data/app/views/katello/api/v2/packages/show.json.rabl +1 -1
  97. data/app/views/katello/api/v2/puppet_modules/base.json.rabl +2 -1
  98. data/app/views/katello/api/v2/puppet_modules/show.json.rabl +1 -1
  99. data/app/views/katello/api/v2/repositories/base.json.rabl +1 -0
  100. data/app/views/katello/layouts/react.html.erb +3 -3
  101. data/db/migrate/20181219205642_create_yum_metadata_file.rb +20 -0
  102. data/db/migrate/20190107160723_units_uuid_to_backend_ident.rb +8 -0
  103. data/db/seeds.d/101-locations.rb +11 -13
  104. data/db/seeds.d/102-organizations.rb +5 -3
  105. data/db/seeds.d/111-upgrade_tasks.rb +1 -1
  106. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/bastion_katello.js +2 -0
  107. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/common/views/subscription-add-or-remove.html +1 -1
  108. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/bulk/views/content-hosts-bulk-subscriptions-modal.html +2 -2
  109. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content-hosts.module.js +2 -1
  110. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/views/content-host-errata.html +2 -2
  111. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/views/content-host-events.html +1 -1
  112. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/views/content-host-info.html +2 -2
  113. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/views/content-host-provisioning-info.html +1 -1
  114. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/views/content-hosts.html +2 -2
  115. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/content-views.module.js +2 -1
  116. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/views/errata-filter-details.html +2 -2
  117. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/views/filter-repositories.html +2 -2
  118. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/views/filters.html +1 -1
  119. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/histories/views/content-view-history.html +20 -20
  120. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/views/content-view-deb-repositories.html +1 -1
  121. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/views/content-view-docker-repositories.html +1 -1
  122. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/views/content-view-file-repositories.html +1 -1
  123. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/views/content-view-ostree-repositories.html +1 -1
  124. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/views/content-view-repositories.html +1 -1
  125. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/views/content-view-versions.html +1 -1
  126. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/versions/content-view-version-content.controller.js +1 -1
  127. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/versions/views/content-view-version-errata.html +1 -1
  128. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/versions/views/content-view-version-ostree-branches.html +2 -0
  129. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/views/content-views.html +1 -1
  130. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/dates/dates.module.js +50 -0
  131. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/environments/details/views/environment-content-views.html +1 -1
  132. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/environments/details/views/environment-details.html +0 -1
  133. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/environments/details/views/environment-errata.html +2 -1
  134. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/environments/details/views/environment-ostree.html +2 -0
  135. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/environments/environments.module.js +2 -1
  136. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/errata/details/views/erratum-info.html +2 -2
  137. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/errata/errata.module.js +2 -1
  138. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/errata/views/errata.html +1 -1
  139. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/ostree-branches/details/views/ostree-branch-info.html +3 -0
  140. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/bulk/views/products-bulk-sync-plan-modal.html +3 -3
  141. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/details/views/repository-info.html +6 -5
  142. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/details/views/repository-manage-ostree-branches.html +4 -0
  143. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/views/product-info.html +5 -4
  144. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/products.controller.js +7 -8
  145. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/views/partials/product-table-sync-status.html +5 -4
  146. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/details/views/subscription-info.html +3 -3
  147. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/manifest/views/manifest-details.html +2 -2
  148. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/manifest/views/manifest-import-history.html +1 -1
  149. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/views/subscription-start-date.html +1 -1
  150. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/views/subscriptions.html +1 -1
  151. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/details/views/sync-plan-info.html +1 -1
  152. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/views/sync-plans.html +2 -2
  153. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/tasks/views/task-details.html +2 -2
  154. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/tasks/views/tasks-table.html +1 -1
  155. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/tasks/views/user-tasks-table.html +1 -1
  156. data/engines/bastion_katello/lib/bastion_katello/engine.rb +6 -1
  157. data/lib/katello/engine.rb +3 -3
  158. data/lib/katello/plugin.rb +3 -3
  159. data/lib/katello/repository_types/deb.rb +1 -0
  160. data/lib/katello/repository_types/yum.rb +1 -0
  161. data/lib/katello/tasks/reimport.rake +1 -0
  162. data/lib/katello/tasks/repository.rake +1 -1
  163. data/lib/katello/tasks/upgrades/3.11/import_yum_metadata_file.rake +12 -0
  164. data/lib/katello/version.rb +1 -1
  165. data/package.json +3 -1
  166. data/webpack/__mocks__/foremanReact/components/Pagination/PaginationWrapper.js +2 -0
  167. data/webpack/__mocks__/foremanReact/components/common/EmptyState.js +8 -0
  168. data/webpack/common_index.js +6 -0
  169. data/webpack/containers/Application/config.js +3 -3
  170. data/webpack/move_to_foreman/components/common/table/components/Table.js +3 -3
  171. data/webpack/move_to_foreman/components/common/table/components/Table.test.js +2 -0
  172. data/webpack/move_to_foreman/components/common/table/components/__snapshots__/Table.test.js.snap +1 -17
  173. data/webpack/redux/actions/RedHatRepositories/helpers.js +19 -10
  174. data/webpack/scenes/ModuleStreams/Details/Profiles/__tests__/ModuleStreamDetailProfiles.test.js +2 -0
  175. data/webpack/scenes/ModuleStreams/Details/Repositories/__tests__/ModuleStreamDetailRepositories.test.js +2 -0
  176. data/webpack/scenes/ModuleStreams/Details/__tests__/ModuleStreamDetails.test.js +2 -0
  177. data/webpack/scenes/ModuleStreams/__tests__/ModuleStreamPage.test.js +1 -0
  178. data/webpack/scenes/ModuleStreams/__tests__/ModuleStreamsTable.test.js +1 -0
  179. data/webpack/scenes/RedHatRepositories/helpers.js +3 -3
  180. data/webpack/scenes/Subscriptions/Details/__tests__/__snapshots__/SubscriptionDetailProductContent.test.js.snap +1 -0
  181. data/webpack/scenes/Subscriptions/Manifest/ManageManifestModal.js +1 -1
  182. data/webpack/scenes/Subscriptions/Manifest/__tests__/ManageManifestModal.test.js +1 -0
  183. data/webpack/scenes/Subscriptions/Manifest/__tests__/__snapshots__/ManageManifestModal.test.js.snap +1 -1
  184. data/webpack/scenes/Subscriptions/SubscriptionActions.js +10 -0
  185. data/webpack/scenes/Subscriptions/SubscriptionConstants.js +6 -0
  186. data/webpack/scenes/Subscriptions/SubscriptionReducer.js +16 -0
  187. data/webpack/scenes/Subscriptions/SubscriptionValidations.js +3 -3
  188. data/webpack/scenes/Subscriptions/SubscriptionsPage.js +28 -25
  189. data/webpack/scenes/Subscriptions/SubscriptionsSelectors.js +6 -0
  190. data/webpack/scenes/Subscriptions/UpstreamSubscriptions/UpstreamSubscriptionsPage.js +0 -1
  191. data/webpack/scenes/Subscriptions/UpstreamSubscriptions/__tests__/UpstreamSubscriptionsPage.test.js +1 -0
  192. data/webpack/scenes/Subscriptions/UpstreamSubscriptions/__tests__/__snapshots__/UpstreamSubscriptionsPage.test.js.snap +0 -1
  193. data/webpack/scenes/Subscriptions/__tests__/SubscriptionValidations.test.js +9 -4
  194. data/webpack/scenes/Subscriptions/__tests__/SubscriptionsActions.test.js +14 -0
  195. data/webpack/scenes/Subscriptions/__tests__/SubscriptionsPage.test.js +2 -0
  196. data/webpack/scenes/Subscriptions/__tests__/SubscriptionsReducer.test.js +24 -0
  197. data/webpack/scenes/Subscriptions/__tests__/SubscriptionsSelectors.test.js +6 -0
  198. data/webpack/scenes/Subscriptions/__tests__/__snapshots__/SubscriptionsActions.test.js.snap +24 -0
  199. data/webpack/scenes/Subscriptions/__tests__/__snapshots__/SubscriptionsPage.test.js.snap +1 -1
  200. data/webpack/scenes/Subscriptions/__tests__/__snapshots__/SubscriptionsReducer.test.js.snap +138 -0
  201. data/webpack/scenes/Subscriptions/__tests__/__snapshots__/SubscriptionsSelectors.test.js.snap +6 -0
  202. data/webpack/scenes/Subscriptions/components/SubscriptionsTable/EntitlementsInlineEditFormatter.js +8 -6
  203. data/webpack/scenes/Subscriptions/components/SubscriptionsTable/SubscriptionsTableHelpers.js +23 -11
  204. data/webpack/scenes/Subscriptions/components/SubscriptionsTable/__tests__/EntitlementsInlineEditFormatter.test.js +14 -10
  205. data/webpack/scenes/Subscriptions/components/SubscriptionsTable/__tests__/SubscriptionsTable.fixtures.js +105 -0
  206. data/webpack/scenes/Subscriptions/components/SubscriptionsTable/__tests__/SubscriptionsTable.test.js +2 -0
  207. data/webpack/scenes/Subscriptions/components/SubscriptionsTable/__tests__/SubscriptionsTableHelpers.test.js +44 -0
  208. data/webpack/scenes/Subscriptions/components/SubscriptionsTable/__tests__/__snapshots__/EntitlementsInlineEditFormatter.test.js.snap +3 -3
  209. data/webpack/scenes/Subscriptions/components/SubscriptionsTable/__tests__/__snapshots__/SubscriptionsTable.test.js.snap +2 -222
  210. data/webpack/scenes/Subscriptions/index.js +4 -0
  211. metadata +41 -44
  212. data/app/lib/actions/katello/content_view_puppet_environment/clone_content.rb +0 -32
  213. data/app/lib/actions/katello/repository/clone_deb_content.rb +0 -70
  214. data/app/lib/actions/katello/repository/clone_docker_content.rb +0 -26
  215. data/app/lib/actions/katello/repository/clone_file_content.rb +0 -17
  216. data/app/lib/actions/katello/repository/clone_ostree_content.rb +0 -17
  217. data/app/lib/actions/katello/repository/clone_yum_content.rb +0 -105
  218. data/app/lib/actions/katello/repository/clone_yum_metadata.rb +0 -36
  219. data/app/lib/actions/pulp/repository/copy_deb.rb +0 -15
  220. data/app/lib/actions/pulp/repository/copy_deb_component.rb +0 -11
  221. data/app/lib/actions/pulp/repository/copy_deb_release.rb +0 -11
  222. data/app/lib/actions/pulp/repository/copy_distribution.rb +0 -11
  223. data/app/lib/actions/pulp/repository/copy_docker_manifest.rb +0 -11
  224. data/app/lib/actions/pulp/repository/copy_docker_tag.rb +0 -11
  225. data/app/lib/actions/pulp/repository/copy_errata.rb +0 -15
  226. data/app/lib/actions/pulp/repository/copy_files.rb +0 -11
  227. data/app/lib/actions/pulp/repository/copy_module_default.rb +0 -11
  228. data/app/lib/actions/pulp/repository/copy_module_stream.rb +0 -11
  229. data/app/lib/actions/pulp/repository/copy_ostree_branch.rb +0 -11
  230. data/app/lib/actions/pulp/repository/copy_package_group.rb +0 -11
  231. data/app/lib/actions/pulp/repository/copy_puppet_module.rb +0 -15
  232. data/app/lib/actions/pulp/repository/copy_rpm.rb +0 -15
  233. data/app/lib/actions/pulp/repository/copy_srpm.rb +0 -16
  234. data/app/lib/actions/pulp/repository/copy_yum_metadata_file.rb +0 -11
  235. data/app/lib/actions/pulp/repository/purge_empty_errata.rb +0 -19
  236. data/app/lib/actions/pulp/repository/purge_empty_package_groups.rb +0 -24
  237. data/db/migrate/20190326145039_remove_version_date_from_ostree_branch.rb +0 -5
  238. data/lib/katello/tasks/upgrades/3.10/update_gpg_key_urls.rake +0 -32
  239. data/webpack/components/PaginationRow/PaginationRow.test.js +0 -25
  240. data/webpack/components/PaginationRow/__snapshots__/PaginationRow.test.js.snap +0 -35
  241. data/webpack/components/PaginationRow/index.js +0 -94
  242. data/webpack/move_to_foreman/components/common/EmptyState/index.js +0 -68
@@ -13,6 +13,8 @@ import {
13
13
  selectSearchQuery,
14
14
  selectManifestModalOpened,
15
15
  selectDeleteModalOpened,
16
+ selectTaskModalOpened,
17
+ selectDeleteButtonDisabled,
16
18
  selectSubscriptionsTasks,
17
19
  } from './SubscriptionsSelectors';
18
20
 
@@ -32,6 +34,8 @@ const mapStateToProps = (state) => {
32
34
  searchQuery: selectSearchQuery(state),
33
35
  manifestModalOpened: selectManifestModalOpened(state),
34
36
  deleteModalOpened: selectDeleteModalOpened(state),
37
+ taskModalOpened: selectTaskModalOpened(state),
38
+ deleteButtonDisabled: selectDeleteButtonDisabled(state),
35
39
  organization: state.katello.organization,
36
40
  taskDetails: state.katello.manifestHistory.taskDetails,
37
41
  };
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: katello
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.10.2
4
+ version: 3.11.0.rc1
5
5
  platform: ruby
6
6
  authors:
7
7
  - N/A
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-06-13 00:00:00.000000000 Z
11
+ date: 2019-01-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -101,12 +101,23 @@ dependencies:
101
101
  - !ruby/object:Gem::Version
102
102
  version: 0.14.1
103
103
  - !ruby/object:Gem::Dependency
104
- name: foreman_docker
104
+ name: dynflow
105
105
  requirement: !ruby/object:Gem::Requirement
106
106
  requirements:
107
- - - "<"
107
+ - - ">="
108
108
  - !ruby/object:Gem::Version
109
- version: 4.1.1
109
+ version: 1.2.0
110
+ type: :runtime
111
+ prerelease: false
112
+ version_requirements: !ruby/object:Gem::Requirement
113
+ requirements:
114
+ - - ">="
115
+ - !ruby/object:Gem::Version
116
+ version: 1.2.0
117
+ - !ruby/object:Gem::Dependency
118
+ name: foreman_docker
119
+ requirement: !ruby/object:Gem::Requirement
120
+ requirements:
110
121
  - - ">="
111
122
  - !ruby/object:Gem::Version
112
123
  version: 0.2.0
@@ -114,9 +125,6 @@ dependencies:
114
125
  prerelease: false
115
126
  version_requirements: !ruby/object:Gem::Requirement
116
127
  requirements:
117
- - - "<"
118
- - !ruby/object:Gem::Version
119
- version: 4.1.1
120
128
  - - ">="
121
129
  - !ruby/object:Gem::Version
122
130
  version: 0.2.0
@@ -171,7 +179,7 @@ dependencies:
171
179
  version: 2.10.0
172
180
  - - "<"
173
181
  - !ruby/object:Gem::Version
174
- version: 2.11.0
182
+ version: 3.0.0
175
183
  type: :runtime
176
184
  prerelease: false
177
185
  version_requirements: !ruby/object:Gem::Requirement
@@ -181,7 +189,7 @@ dependencies:
181
189
  version: 2.10.0
182
190
  - - "<"
183
191
  - !ruby/object:Gem::Version
184
- version: 2.11.0
192
+ version: 3.0.0
185
193
  - !ruby/object:Gem::Dependency
186
194
  name: anemone
187
195
  requirement: !ruby/object:Gem::Requirement
@@ -571,6 +579,7 @@ files:
571
579
  - app/lib/actions/candlepin/consumer/hypervisors.rb
572
580
  - app/lib/actions/candlepin/consumer/remove_subscription.rb
573
581
  - app/lib/actions/candlepin/consumer/update.rb
582
+ - app/lib/actions/candlepin/environment/add_content_to_environment.rb
574
583
  - app/lib/actions/candlepin/environment/create.rb
575
584
  - app/lib/actions/candlepin/environment/destroy.rb
576
585
  - app/lib/actions/candlepin/environment/set_content.rb
@@ -626,7 +635,7 @@ files:
626
635
  - app/lib/actions/katello/content_view_environment/reassign_objects.rb
627
636
  - app/lib/actions/katello/content_view_puppet_environment/clear.rb
628
637
  - app/lib/actions/katello/content_view_puppet_environment/clone.rb
629
- - app/lib/actions/katello/content_view_puppet_environment/clone_content.rb
638
+ - app/lib/actions/katello/content_view_puppet_environment/clone_content_for_version.rb
630
639
  - app/lib/actions/katello/content_view_puppet_environment/create.rb
631
640
  - app/lib/actions/katello/content_view_puppet_environment/create_for_version.rb
632
641
  - app/lib/actions/katello/content_view_puppet_environment/destroy.rb
@@ -688,14 +697,9 @@ files:
688
697
  - app/lib/actions/katello/repository/capsule_sync.rb
689
698
  - app/lib/actions/katello/repository/check_matching_content.rb
690
699
  - app/lib/actions/katello/repository/clear.rb
691
- - app/lib/actions/katello/repository/clone_deb_content.rb
692
- - app/lib/actions/katello/repository/clone_docker_content.rb
693
- - app/lib/actions/katello/repository/clone_file_content.rb
694
- - app/lib/actions/katello/repository/clone_ostree_content.rb
700
+ - app/lib/actions/katello/repository/clone_contents.rb
695
701
  - app/lib/actions/katello/repository/clone_to_environment.rb
696
702
  - app/lib/actions/katello/repository/clone_to_version.rb
697
- - app/lib/actions/katello/repository/clone_yum_content.rb
698
- - app/lib/actions/katello/repository/clone_yum_metadata.rb
699
703
  - app/lib/actions/katello/repository/correct_checksum.rb
700
704
  - app/lib/actions/katello/repository/create.rb
701
705
  - app/lib/actions/katello/repository/create_root.rb
@@ -715,6 +719,7 @@ files:
715
719
  - app/lib/actions/katello/repository/index_package_groups.rb
716
720
  - app/lib/actions/katello/repository/instance_update.rb
717
721
  - app/lib/actions/katello/repository/metadata_generate.rb
722
+ - app/lib/actions/katello/repository/purge_empty_content.rb
718
723
  - app/lib/actions/katello/repository/refresh_repository.rb
719
724
  - app/lib/actions/katello/repository/remove_content.rb
720
725
  - app/lib/actions/katello/repository/sync.rb
@@ -757,26 +762,13 @@ files:
757
762
  - app/lib/actions/pulp/consumer/sync_capsule.rb
758
763
  - app/lib/actions/pulp/consumer/unassociate_units.rb
759
764
  - app/lib/actions/pulp/consumer/update.rb
765
+ - app/lib/actions/pulp/content_view_puppet_environment/copy_contents.rb
760
766
  - app/lib/actions/pulp/content_view_puppet_environment/index_content.rb
761
767
  - app/lib/actions/pulp/expect_one_task.rb
762
768
  - app/lib/actions/pulp/repository/abstract_copy_content.rb
763
769
  - app/lib/actions/pulp/repository/abstract_remove_content.rb
764
- - app/lib/actions/pulp/repository/copy_deb.rb
765
- - app/lib/actions/pulp/repository/copy_deb_component.rb
766
- - app/lib/actions/pulp/repository/copy_deb_release.rb
767
- - app/lib/actions/pulp/repository/copy_distribution.rb
768
- - app/lib/actions/pulp/repository/copy_docker_manifest.rb
769
- - app/lib/actions/pulp/repository/copy_docker_tag.rb
770
- - app/lib/actions/pulp/repository/copy_errata.rb
771
- - app/lib/actions/pulp/repository/copy_files.rb
772
- - app/lib/actions/pulp/repository/copy_module_default.rb
773
- - app/lib/actions/pulp/repository/copy_module_stream.rb
774
- - app/lib/actions/pulp/repository/copy_ostree_branch.rb
775
- - app/lib/actions/pulp/repository/copy_package_group.rb
776
- - app/lib/actions/pulp/repository/copy_puppet_module.rb
777
- - app/lib/actions/pulp/repository/copy_rpm.rb
778
- - app/lib/actions/pulp/repository/copy_srpm.rb
779
- - app/lib/actions/pulp/repository/copy_yum_metadata_file.rb
770
+ - app/lib/actions/pulp/repository/copy_all_units.rb
771
+ - app/lib/actions/pulp/repository/copy_units.rb
780
772
  - app/lib/actions/pulp/repository/create.rb
781
773
  - app/lib/actions/pulp/repository/create_in_plan.rb
782
774
  - app/lib/actions/pulp/repository/create_upload_request.rb
@@ -792,8 +784,6 @@ files:
792
784
  - app/lib/actions/pulp/repository/presenters/ostree_presenter.rb
793
785
  - app/lib/actions/pulp/repository/presenters/puppet_presenter.rb
794
786
  - app/lib/actions/pulp/repository/presenters/yum_presenter.rb
795
- - app/lib/actions/pulp/repository/purge_empty_errata.rb
796
- - app/lib/actions/pulp/repository/purge_empty_package_groups.rb
797
787
  - app/lib/actions/pulp/repository/refresh.rb
798
788
  - app/lib/actions/pulp/repository/regenerate_applicability.rb
799
789
  - app/lib/actions/pulp/repository/remove_deb.rb
@@ -1056,6 +1046,7 @@ files:
1056
1046
  - app/models/katello/task_status.rb
1057
1047
  - app/models/katello/trace_status.rb
1058
1048
  - app/models/katello/upstream_pool.rb
1049
+ - app/models/katello/yum_metadata_file.rb
1059
1050
  - app/models/setting/content.rb
1060
1051
  - app/overrides/add_about_page.rb
1061
1052
  - app/overrides/add_activation_keys_input.rb
@@ -1073,6 +1064,7 @@ files:
1073
1064
  - app/presenters/katello/sync_status_presenter.rb
1074
1065
  - app/services/cert/certs.rb
1075
1066
  - app/services/cert/rhsm_client.rb
1067
+ - app/services/katello/abstract/pulp/content.rb
1076
1068
  - app/services/katello/applicable_content_helper.rb
1077
1069
  - app/services/katello/authentication/client_authentication.rb
1078
1070
  - app/services/katello/candlepin/consumer.rb
@@ -1085,6 +1077,7 @@ files:
1085
1077
  - app/services/katello/proxy_status/pulp_node.rb
1086
1078
  - app/services/katello/pulp/consumer.rb
1087
1079
  - app/services/katello/pulp/consumer_group.rb
1080
+ - app/services/katello/pulp/content.rb
1088
1081
  - app/services/katello/pulp/content_counts_calculator.rb
1089
1082
  - app/services/katello/pulp/deb.rb
1090
1083
  - app/services/katello/pulp/docker_manifest.rb
@@ -1108,6 +1101,7 @@ files:
1108
1101
  - app/services/katello/pulp/server.rb
1109
1102
  - app/services/katello/pulp/simple_package.rb
1110
1103
  - app/services/katello/pulp/srpm.rb
1104
+ - app/services/katello/pulp/yum_metadata_file.rb
1111
1105
  - app/services/katello/puppet_class_importer_extensions.rb
1112
1106
  - app/services/katello/pxe_files_downloader.rb
1113
1107
  - app/services/katello/registration_manager.rb
@@ -1632,7 +1626,8 @@ files:
1632
1626
  - db/migrate/20181008201422_add_modules_to_errata_packages.rb
1633
1627
  - db/migrate/20181017181806_available_module_streams.rb
1634
1628
  - db/migrate/20181027014323_add_applicable_modules.rb
1635
- - db/migrate/20190326145039_remove_version_date_from_ostree_branch.rb
1629
+ - db/migrate/20181219205642_create_yum_metadata_file.rb
1630
+ - db/migrate/20190107160723_units_uuid_to_backend_ident.rb
1636
1631
  - db/seeds.d/101-locations.rb
1637
1632
  - db/seeds.d/102-organizations.rb
1638
1633
  - db/seeds.d/104-proxy.rb
@@ -1882,6 +1877,7 @@ files:
1882
1877
  - engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/versions/views/content-view-version-yum.html
1883
1878
  - engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/versions/views/content-view-version.html
1884
1879
  - engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/views/content-views.html
1880
+ - engines/bastion_katello/app/assets/javascripts/bastion_katello/dates/dates.module.js
1885
1881
  - engines/bastion_katello/app/assets/javascripts/bastion_katello/debs/deb.factory.js
1886
1882
  - engines/bastion_katello/app/assets/javascripts/bastion_katello/debs/debs.controller.js
1887
1883
  - engines/bastion_katello/app/assets/javascripts/bastion_katello/debs/debs.module.js
@@ -2236,7 +2232,7 @@ files:
2236
2232
  - lib/katello/tasks/update_subscription_facet_backend_data.rake
2237
2233
  - lib/katello/tasks/upgrade_check.rake
2238
2234
  - lib/katello/tasks/upgrades/3.10/clear_invalid_repo_credentials.rake
2239
- - lib/katello/tasks/upgrades/3.10/update_gpg_key_urls.rake
2235
+ - lib/katello/tasks/upgrades/3.11/import_yum_metadata_file.rake
2240
2236
  - lib/katello/tasks/upgrades/3.11/update_puppet_repos.rake
2241
2237
  - lib/katello/tasks/upgrades/3.8/clear_checksum_type.rake
2242
2238
  - lib/katello/tasks/upgrades/3.9/migrate_sync_plans.rake
@@ -2338,14 +2334,14 @@ files:
2338
2334
  - webpack/__mocks__/foremanReact/common/I18n.js
2339
2335
  - webpack/__mocks__/foremanReact/common/helpers.js
2340
2336
  - webpack/__mocks__/foremanReact/components/BreadcrumbBar.js
2337
+ - webpack/__mocks__/foremanReact/components/Pagination/PaginationWrapper.js
2338
+ - webpack/__mocks__/foremanReact/components/common/EmptyState.js
2341
2339
  - webpack/__mocks__/foremanReact/components/common/table.js
2342
2340
  - webpack/__mocks__/foremanReact/redux.js
2343
2341
  - webpack/__mocks__/foremanReact/redux/actions/toasts.js
2344
2342
  - webpack/__mocks__/react-bootstrap-tooltip-button.js
2343
+ - webpack/common_index.js
2345
2344
  - webpack/components/MultiSelect/index.js
2346
- - webpack/components/PaginationRow/PaginationRow.test.js
2347
- - webpack/components/PaginationRow/__snapshots__/PaginationRow.test.js.snap
2348
- - webpack/components/PaginationRow/index.js
2349
2345
  - webpack/components/Search/Search.test.js
2350
2346
  - webpack/components/Search/__snapshots__/Search.test.js.snap
2351
2347
  - webpack/components/Search/helpers.js
@@ -2380,7 +2376,6 @@ files:
2380
2376
  - webpack/move_to_foreman/components/common/Dialog/__tests__/Dialog.test.js
2381
2377
  - webpack/move_to_foreman/components/common/Dialog/__tests__/__snapshots__/Dialog.test.js.snap
2382
2378
  - webpack/move_to_foreman/components/common/Dialog/index.js
2383
- - webpack/move_to_foreman/components/common/EmptyState/index.js
2384
2379
  - webpack/move_to_foreman/components/common/ModalProgressBar/ModalProgressBar.js
2385
2380
  - webpack/move_to_foreman/components/common/ModalProgressBar/ModalProgressBar.scss
2386
2381
  - webpack/move_to_foreman/components/common/ModalProgressBar/__tests__/ModalProgressBar.test.js
@@ -2630,7 +2625,9 @@ files:
2630
2625
  - webpack/scenes/Subscriptions/components/SubscriptionsTable/SubscriptionsTableSchema.js
2631
2626
  - webpack/scenes/Subscriptions/components/SubscriptionsTable/__tests__/EntitlementsInlineEditFormatter.test.js
2632
2627
  - webpack/scenes/Subscriptions/components/SubscriptionsTable/__tests__/SubscriptionTypeFormatter.test.js
2628
+ - webpack/scenes/Subscriptions/components/SubscriptionsTable/__tests__/SubscriptionsTable.fixtures.js
2633
2629
  - webpack/scenes/Subscriptions/components/SubscriptionsTable/__tests__/SubscriptionsTable.test.js
2630
+ - webpack/scenes/Subscriptions/components/SubscriptionsTable/__tests__/SubscriptionsTableHelpers.test.js
2634
2631
  - webpack/scenes/Subscriptions/components/SubscriptionsTable/__tests__/__snapshots__/EntitlementsInlineEditFormatter.test.js.snap
2635
2632
  - webpack/scenes/Subscriptions/components/SubscriptionsTable/__tests__/__snapshots__/SubscriptionTypeFormatter.test.js.snap
2636
2633
  - webpack/scenes/Subscriptions/components/SubscriptionsTable/__tests__/__snapshots__/SubscriptionsTable.test.js.snap
@@ -2665,12 +2662,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
2665
2662
  version: '0'
2666
2663
  required_rubygems_version: !ruby/object:Gem::Requirement
2667
2664
  requirements:
2668
- - - ">="
2665
+ - - ">"
2669
2666
  - !ruby/object:Gem::Version
2670
- version: '0'
2667
+ version: 1.3.1
2671
2668
  requirements: []
2672
2669
  rubyforge_project:
2673
- rubygems_version: 2.7.6.2
2670
+ rubygems_version: 2.7.6
2674
2671
  signing_key:
2675
2672
  specification_version: 4
2676
2673
  summary: ''
@@ -1,32 +0,0 @@
1
- module Actions
2
- module Katello
3
- module ContentViewPuppetEnvironment
4
- class CloneContent < Actions::Base
5
- def plan(puppet_environment, module_ids_by_repoid)
6
- sequence do
7
- concurrence do
8
- module_ids_by_repoid.each_pair do |repo_id, module_ids|
9
- source_repo = ::Katello::ContentViewPuppetEnvironment.where(:pulp_id => repo_id).first ||
10
- ::Katello::Repository.where(:pulp_id => repo_id).first
11
- plan_copy(Pulp::Repository::CopyPuppetModule, source_repo, puppet_environment, clauses(module_ids))
12
- end
13
- end
14
-
15
- plan_action(Pulp::ContentViewPuppetEnvironment::IndexContent, id: puppet_environment.id)
16
- end
17
- end
18
-
19
- def clauses(module_ids)
20
- { 'unit_id' => { "$in" => module_ids } }
21
- end
22
-
23
- def plan_copy(action_class, source_repo, target_repo, clauses = nil)
24
- plan_action(action_class,
25
- source_pulp_id: source_repo.pulp_id,
26
- target_pulp_id: target_repo.pulp_id,
27
- clauses: clauses)
28
- end
29
- end
30
- end
31
- end
32
- end
@@ -1,70 +0,0 @@
1
- module Actions
2
- module Katello
3
- module Repository
4
- class CloneDebContent < Actions::Base
5
- # rubocop:disable MethodLength
6
- def plan(source_repo, target_repo, filters, _purge_empty_units, options = {})
7
- generate_metadata = options.fetch(:generate_metadata, true)
8
- index_content = options.fetch(:index_content, true)
9
-
10
- copy_clauses = nil
11
- remove_clauses = nil
12
- filters = filters.deb unless filters.is_a? Array
13
-
14
- if filters.any?
15
- clause_gen = ::Katello::Util::PackageClauseGenerator.new(source_repo, filters)
16
- clause_gen.generate
17
- copy_clauses = clause_gen.copy_clause
18
- remove_clauses = clause_gen.remove_clause
19
- end
20
-
21
- sequence do
22
- if filters.empty? || copy_clauses
23
- plan_copy(Pulp::Repository::CopyDeb, source_repo, target_repo, copy_clauses)
24
- elsif options[:simple_clone]
25
- plan_copy(Pulp::Repository::CopyDeb, source_repo, target_repo)
26
- end
27
- if remove_clauses
28
- plan_remove(Pulp::Repository::RemoveDeb, target_repo, :unit => remove_clauses)
29
- end
30
- plan_copy(Pulp::Repository::CopyDebRelease, source_repo, target_repo)
31
- plan_copy(Pulp::Repository::CopyDebComponent, source_repo, target_repo)
32
-
33
- # Check for matching content before indexing happens, the content in pulp is
34
- # actually updated, but it is not reflected in the database yet.
35
- output = {}
36
- if target_repo.environment
37
- output = plan_action(Katello::Repository::CheckMatchingContent,
38
- :source_repo_id => source_repo.id,
39
- :target_repo_id => target_repo.id).output
40
- end
41
-
42
- plan_action(Katello::Repository::IndexContent, id: target_repo.id) if index_content
43
-
44
- source_repository = filters.empty? ? source_repo : nil
45
-
46
- if generate_metadata
47
- plan_action(Katello::Repository::MetadataGenerate,
48
- target_repo,
49
- :source_repository => source_repository,
50
- :matching_content => output[:matching_content])
51
- end
52
- end
53
- end
54
-
55
- def plan_copy(action_class, source_repo, target_repo, clauses = nil)
56
- plan_action(action_class,
57
- source_pulp_id: source_repo.pulp_id,
58
- target_pulp_id: target_repo.pulp_id,
59
- clauses: clauses)
60
- end
61
-
62
- def plan_remove(action_class, target_repo, clauses)
63
- plan_action(action_class,
64
- pulp_id: target_repo.pulp_id,
65
- clauses: clauses)
66
- end
67
- end
68
- end
69
- end
70
- end
@@ -1,26 +0,0 @@
1
- module Actions
2
- module Katello
3
- module Repository
4
- class CloneDockerContent < Actions::Base
5
- def plan(source_repo, target_repo, filters)
6
- filters = filters.docker unless filters.is_a? Array
7
-
8
- if filters.any?
9
- clause_gen = ::Katello::Util::DockerManifestClauseGenerator.new(source_repo, filters)
10
- clause_gen.generate
11
- copy_clauses = clause_gen.copy_clause
12
- end
13
-
14
- sequence do
15
- if filters.empty? || copy_clauses
16
- plan_action(Pulp::Repository::CopyDockerTag, source_pulp_id: source_repo.pulp_id,
17
- target_pulp_id: target_repo.pulp_id, clauses: copy_clauses)
18
- end
19
- plan_action(Katello::Repository::MetadataGenerate, target_repo)
20
- plan_action(Katello::Repository::IndexContent, id: target_repo.id)
21
- end
22
- end
23
- end
24
- end
25
- end
26
- end
@@ -1,17 +0,0 @@
1
- module Actions
2
- module Katello
3
- module Repository
4
- class CloneFileContent < Actions::Base
5
- def plan(source_repo, target_repo)
6
- sequence do
7
- plan_action(Pulp::Repository::CopyFiles,
8
- source_pulp_id: source_repo.pulp_id,
9
- target_pulp_id: target_repo.pulp_id)
10
- plan_action(Katello::Repository::MetadataGenerate, target_repo)
11
- plan_action(Katello::Repository::IndexContent, id: target_repo.id)
12
- end
13
- end
14
- end
15
- end
16
- end
17
- end
@@ -1,17 +0,0 @@
1
- module Actions
2
- module Katello
3
- module Repository
4
- class CloneOstreeContent < Actions::Base
5
- def plan(source_repo, target_repo)
6
- sequence do
7
- plan_action(Pulp::Repository::CopyOstreeBranch,
8
- source_pulp_id: source_repo.pulp_id,
9
- target_pulp_id: target_repo.pulp_id)
10
- plan_action(Katello::Repository::MetadataGenerate, target_repo)
11
- plan_action(Katello::Repository::IndexContent, id: target_repo.id)
12
- end
13
- end
14
- end
15
- end
16
- end
17
- end
@@ -1,105 +0,0 @@
1
- module Actions
2
- module Katello
3
- module Repository
4
- class CloneYumContent < Actions::Base
5
- # rubocop:disable MethodLength
6
- # rubocop:disable Metrics/CyclomaticComplexity TODO: refactor to push everything into options hash
7
- def plan(source_repo, target_repo, filters, options = {})
8
- generate_metadata = options.fetch(:generate_metadata, true)
9
- index_content = options.fetch(:index_content, true)
10
- rpm_filenames = options.fetch(:rpm_filenames, {})
11
- purge_empty_units = options.fetch(:purge_empty_units, {})
12
-
13
- copy_clauses = nil
14
- remove_clauses = nil
15
- process_errata_and_groups = false
16
- filters = filters.yum unless filters.is_a? Array
17
-
18
- if filters.any?
19
- clause_gen = ::Katello::Util::PackageClauseGenerator.new(source_repo, filters)
20
- clause_gen.generate
21
- copy_clauses = clause_gen.copy_clause
22
- remove_clauses = clause_gen.remove_clause
23
- end
24
-
25
- # if we are providing a list of files, process that here and override filters
26
- if rpm_filenames.present?
27
- # log a warning if we are overriding the list of RPMs and using a filter
28
- # ensure we have all the files we want to copy
29
- rpms_available = source_repo.rpms.pluck(:filename)
30
- rpm_filenames.each do |filename|
31
- fail "%s not available in repository %s" % [filename, source_repo.label] unless rpms_available.include? filename
32
- end
33
- copy_clauses = { 'filename' => { '$in' => rpm_filenames } }
34
- remove_clauses = nil
35
- Rails.logger.warn("Filters on content view have been overridden by passed-in filename list during publish") if filters.any?
36
- end
37
-
38
- sequence do
39
- plan_copy(Pulp::Repository::CopySrpm, source_repo, target_repo)
40
-
41
- if filters.empty? || copy_clauses
42
- plan_copy(Pulp::Repository::CopyRpm, source_repo, target_repo, copy_clauses)
43
- process_errata_and_groups = true
44
- elsif options[:simple_clone]
45
- plan_copy(Pulp::Repository::CopyRpm, source_repo, target_repo)
46
- process_errata_and_groups = true
47
- end
48
- if remove_clauses
49
- plan_remove(Pulp::Repository::RemoveRpm, target_repo, :unit => remove_clauses)
50
- process_errata_and_groups = true
51
- end
52
- if process_errata_and_groups
53
- plan_copy(Pulp::Repository::CopyErrata, source_repo, target_repo, nil)
54
- plan_copy(Pulp::Repository::CopyPackageGroup, source_repo, target_repo, nil)
55
- end
56
- plan_copy(Pulp::Repository::CopyYumMetadataFile, source_repo, target_repo)
57
- plan_copy(Pulp::Repository::CopyDistribution, source_repo, target_repo)
58
- plan_copy(Pulp::Repository::CopyModuleStream, source_repo, target_repo, nil)
59
- plan_copy(Pulp::Repository::CopyModuleDefault, source_repo, target_repo)
60
-
61
- # Check for matching content before indexing happens, the content in pulp is
62
- # actually updated, but it is not reflected in the database yet.
63
- output = {}
64
- if target_repo.environment
65
- output = plan_action(Katello::Repository::CheckMatchingContent,
66
- :source_repo_id => source_repo.id,
67
- :target_repo_id => target_repo.id).output
68
- end
69
-
70
- plan_action(Katello::Repository::IndexContent, id: target_repo.id) if index_content
71
-
72
- if purge_empty_units
73
- plan_action(Pulp::Repository::PurgeEmptyErrata, :pulp_id => target_repo.pulp_id)
74
- plan_action(Pulp::Repository::PurgeEmptyPackageGroups, :pulp_id => target_repo.pulp_id)
75
- plan_action(Katello::Repository::IndexErrata, target_repo)
76
- plan_action(Katello::Repository::IndexPackageGroups, target_repo)
77
- end
78
-
79
- source_repository = filters.empty? && rpm_filenames.empty? ? source_repo : nil
80
-
81
- if generate_metadata
82
- plan_action(Katello::Repository::MetadataGenerate,
83
- target_repo,
84
- :source_repository => source_repository,
85
- :matching_content => output[:matching_content])
86
- end
87
- end
88
- end
89
-
90
- def plan_copy(action_class, source_repo, target_repo, clauses = nil)
91
- plan_action(action_class,
92
- source_pulp_id: source_repo.pulp_id,
93
- target_pulp_id: target_repo.pulp_id,
94
- clauses: clauses)
95
- end
96
-
97
- def plan_remove(action_class, target_repo, clauses)
98
- plan_action(action_class,
99
- pulp_id: target_repo.pulp_id,
100
- clauses: clauses)
101
- end
102
- end
103
- end
104
- end
105
- end