katello 4.0.0 → 4.0.2

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 (58) hide show
  1. checksums.yaml +4 -4
  2. data/app/controllers/katello/api/registry/registry_proxies_controller.rb +5 -7
  3. data/app/controllers/katello/api/v2/repositories_controller.rb +4 -3
  4. data/app/lib/actions/katello/agent_action.rb +26 -17
  5. data/app/lib/actions/katello/bulk_agent_action.rb +18 -5
  6. data/app/lib/actions/katello/capsule_content/sync.rb +1 -1
  7. data/app/lib/actions/katello/capsule_content/sync_capsule.rb +44 -6
  8. data/app/lib/actions/katello/content_view/promote.rb +25 -0
  9. data/app/lib/actions/katello/content_view/publish.rb +29 -0
  10. data/app/lib/actions/katello/content_view_version/incremental_update.rb +14 -3
  11. data/app/lib/actions/katello/jail_concern/content_view.rb +30 -0
  12. data/app/lib/actions/katello/jail_concern/organization.rb +30 -0
  13. data/app/lib/actions/katello/orphan_cleanup/remove_orphans.rb +2 -2
  14. data/app/lib/actions/katello/repository/check_matching_content.rb +3 -4
  15. data/app/lib/actions/katello/repository/sync.rb +59 -0
  16. data/app/lib/actions/pulp3/content_guard/refresh.rb +6 -10
  17. data/app/lib/actions/pulp3/orchestration/orphan_cleanup/remove_orphans.rb +1 -1
  18. data/app/lib/katello/agent/client_message_handler.rb +12 -3
  19. data/app/lib/katello/errors.rb +1 -1
  20. data/app/lib/katello/event_daemon/monitor.rb +1 -0
  21. data/app/lib/katello/event_daemon/services/agent_event_receiver.rb +6 -10
  22. data/app/lib/katello/util/hostgroup_facets_helper.rb +126 -0
  23. data/app/models/katello/agent/dispatch_history.rb +2 -0
  24. data/app/models/katello/authorization/content_view.rb +12 -0
  25. data/app/models/katello/authorization/repository.rb +18 -0
  26. data/app/models/katello/concerns/hostgroup_extensions.rb +4 -2
  27. data/app/models/katello/concerns/redhat_extensions.rb +23 -18
  28. data/app/models/katello/concerns/smart_proxy_extensions.rb +23 -0
  29. data/app/models/katello/content_view.rb +13 -7
  30. data/app/models/katello/glue/pulp/repo.rb +0 -19
  31. data/app/models/katello/ping.rb +3 -10
  32. data/app/models/katello/repository.rb +16 -2
  33. data/app/models/katello/root_repository.rb +1 -1
  34. data/app/services/cert/certs.rb +4 -0
  35. data/app/services/katello/agent/dispatcher.rb +18 -24
  36. data/app/services/katello/applicability/applicable_content_helper.rb +8 -6
  37. data/app/services/katello/managed_content_medium_provider.rb +3 -3
  38. data/app/services/katello/pulp3/api/content_guard.rb +39 -5
  39. data/app/services/katello/pulp3/migration.rb +4 -3
  40. data/app/services/katello/pulp3/repository.rb +32 -4
  41. data/app/services/katello/pulp3/repository/apt.rb +1 -2
  42. data/app/services/katello/pulp3/repository/yum.rb +1 -1
  43. data/app/services/katello/ui_notifications/pulp/proxy_disk_space.rb +1 -0
  44. data/app/views/overrides/smart_proxies/_download_policy.erb +1 -1
  45. data/db/migrate/20200514092553_move_katello_fields_from_hostgroups.katello.rb +1 -1
  46. data/db/migrate/20210119162528_delete_puppet_and_ostree_repos.rb +25 -22
  47. data/db/migrate/20210512192745_fix_red_hat_root_repository_arch.rb +11 -0
  48. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/bulk/views/products-bulk-advanced-sync-modal.html +2 -2
  49. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/new/views/new-repository.html +3 -4
  50. data/lib/katello.rb +1 -1
  51. data/lib/katello/engine.rb +11 -11
  52. data/lib/katello/plugin.rb +5 -2
  53. data/lib/katello/tasks/clean_backend_objects.rake +0 -25
  54. data/lib/katello/tasks/fix_hostgroup_facets.rake +8 -0
  55. data/lib/katello/version.rb +1 -1
  56. data/lib/proxy_api/container_gateway.rb +22 -11
  57. metadata +28 -10
  58. data/app/lib/actions/pulp3/capsule_content/refresh_content_guard.rb +0 -17
@@ -1,17 +0,0 @@
1
- module Actions
2
- module Pulp3
3
- module CapsuleContent
4
- class RefreshContentGuard < Pulp3::AbstractAsyncTask
5
- def plan(smart_proxy, options = {})
6
- content_guard_api = ::Katello::Pulp3::Api::ContentGuard.new(smart_proxy)
7
- content_guard_href = content_guard_api.list&.results&.first&.pulp_href
8
- if content_guard_href && options.try(:[], :update)
9
- content_guard_api.partial_update content_guard_href
10
- else
11
- content_guard_api.create
12
- end
13
- end
14
- end
15
- end
16
- end
17
- end