katello 4.0.3 → 4.1.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.
- checksums.yaml +4 -4
- data/app/assets/javascripts/katello/hosts/host_and_hostgroup_edit.js +0 -33
- data/app/assets/stylesheets/katello/contents.scss +1 -1
- data/app/controllers/katello/api/registry/registry_proxies_controller.rb +5 -11
- data/app/controllers/katello/api/rhsm/candlepin_proxies_controller.rb +2 -9
- data/app/controllers/katello/api/v2/activation_keys_controller.rb +10 -24
- data/app/controllers/katello/api/v2/api_controller.rb +15 -3
- data/app/controllers/katello/api/v2/content_credentials_controller.rb +1 -1
- data/app/controllers/katello/api/v2/content_export_incrementals_controller.rb +1 -8
- data/app/controllers/katello/api/v2/content_exports_controller.rb +1 -14
- data/app/controllers/katello/api/v2/content_imports_controller.rb +38 -15
- data/app/controllers/katello/api/v2/content_uploads_controller.rb +1 -1
- data/app/controllers/katello/api/v2/content_view_components_controller.rb +22 -1
- data/app/controllers/katello/api/v2/content_view_filter_rules_controller.rb +6 -1
- data/app/controllers/katello/api/v2/content_view_versions_controller.rb +2 -59
- data/app/controllers/katello/api/v2/content_views_controller.rb +3 -58
- data/app/controllers/katello/api/v2/host_errata_controller.rb +7 -6
- data/app/controllers/katello/api/v2/host_packages_controller.rb +4 -4
- data/app/controllers/katello/api/v2/host_subscriptions_controller.rb +18 -22
- data/app/controllers/katello/api/v2/hosts_bulk_actions_controller.rb +16 -16
- data/app/controllers/katello/api/v2/organizations_controller.rb +2 -1
- data/app/controllers/katello/api/v2/package_groups_controller.rb +4 -0
- data/app/controllers/katello/api/v2/repositories_controller.rb +13 -12
- data/app/controllers/katello/api/v2/repository_sets_controller.rb +50 -4
- data/app/controllers/katello/api/v2/subscriptions_controller.rb +7 -1
- data/app/controllers/katello/concerns/api/api_controller.rb +10 -0
- data/app/controllers/katello/concerns/api/v2/registration_commands_controller_extensions.rb +46 -0
- data/app/controllers/katello/concerns/api/v2/registration_controller_extensions.rb +8 -0
- data/app/controllers/katello/concerns/api/v2/repository_content_controller.rb +31 -22
- data/app/controllers/katello/concerns/hosts_controller_extensions.rb +0 -8
- data/app/controllers/katello/concerns/organizations_controller_extensions.rb +1 -1
- data/app/controllers/katello/concerns/registration_commands_controller_extensions.rb +34 -0
- data/app/helpers/katello/katello_urls_helper.rb +23 -0
- data/app/lib/actions/candlepin/owner/import.rb +10 -3
- data/app/lib/actions/candlepin/product/content_update.rb +1 -1
- data/app/lib/actions/foreman/environment/destroy.rb +2 -2
- data/app/lib/actions/katello/agent_action.rb +1 -6
- data/app/lib/actions/katello/capsule_content/refresh_repos.rb +0 -7
- data/app/lib/actions/katello/capsule_content/sync.rb +1 -1
- data/app/lib/actions/katello/capsule_content/sync_capsule.rb +1 -2
- data/app/lib/actions/katello/content_view/add_to_environment.rb +9 -7
- data/app/lib/actions/katello/content_view/incremental_updates.rb +3 -10
- data/app/lib/actions/katello/content_view/presenters/incremental_updates_presenter.rb +2 -3
- data/app/lib/actions/katello/content_view/promote_to_environment.rb +1 -4
- data/app/lib/actions/katello/content_view/publish.rb +21 -31
- data/app/lib/actions/katello/content_view_environment/destroy.rb +0 -5
- data/app/lib/actions/katello/content_view_version/auto_create_products.rb +22 -0
- data/app/lib/actions/katello/content_view_version/auto_create_repositories.rb +22 -0
- data/app/lib/actions/katello/content_view_version/destroy.rb +0 -10
- data/app/lib/actions/katello/content_view_version/export.rb +20 -22
- data/app/lib/actions/katello/content_view_version/import.rb +27 -13
- data/app/lib/actions/katello/content_view_version/import_library.rb +4 -2
- data/app/lib/actions/katello/content_view_version/incremental_update.rb +12 -67
- data/app/lib/actions/katello/content_view_version/republish_repositories.rb +0 -4
- data/app/lib/actions/katello/content_view_version/reset_content_view_repositories_from_metadata.rb +11 -0
- data/app/lib/actions/katello/foreman/content_update.rb +0 -3
- data/app/lib/actions/katello/host/auto_attach_subscriptions.rb +0 -4
- data/app/lib/actions/katello/organization/manifest_import.rb +7 -1
- data/app/lib/actions/katello/organization/manifest_refresh.rb +28 -7
- data/app/lib/actions/katello/orphan_cleanup/remove_orphans.rb +2 -2
- data/app/lib/actions/katello/product/create.rb +0 -1
- data/app/lib/actions/katello/repository/check_matching_content.rb +4 -3
- data/app/lib/actions/katello/repository/destroy.rb +1 -1
- data/app/lib/actions/katello/repository/discover.rb +1 -1
- data/app/lib/actions/katello/repository/filtered_index_content.rb +1 -4
- data/app/lib/actions/katello/repository/import_upload.rb +0 -1
- data/app/lib/actions/katello/repository/update.rb +0 -1
- data/app/lib/actions/middleware/record_smart_proxy_sync_history.rb +0 -5
- data/app/lib/actions/pulp/repository/create.rb +1 -7
- data/app/lib/actions/pulp/repository/distributor_publish.rb +2 -10
- data/app/lib/actions/pulp/repository/sync.rb +1 -3
- data/app/lib/actions/pulp3/capsule_content/refresh_content_guard.rb +17 -0
- data/app/lib/actions/pulp3/content_guard/refresh.rb +10 -6
- data/app/lib/actions/pulp3/content_view_version/create_export_history.rb +57 -0
- data/app/lib/actions/pulp3/content_view_version/create_import_history.rb +34 -0
- data/app/lib/actions/pulp3/orchestration/content_view_version/copy_version_units_to_library.rb +2 -3
- data/app/lib/actions/pulp3/orchestration/content_view_version/export.rb +34 -51
- data/app/lib/actions/pulp3/orchestration/content_view_version/export_library.rb +2 -2
- data/app/lib/actions/pulp3/orchestration/content_view_version/import.rb +13 -1
- data/app/lib/actions/pulp3/orchestration/orphan_cleanup/remove_orphans.rb +1 -1
- data/app/lib/actions/pulp3/orchestration/repository/sync.rb +1 -0
- data/app/lib/actions/pulp3/repository/refresh_remote.rb +17 -0
- data/app/lib/katello/agent/client_message_handler.rb +3 -11
- data/app/lib/katello/concerns/base_template_scope_extensions.rb +117 -3
- data/app/lib/katello/errors.rb +6 -11
- data/app/lib/katello/event_daemon/monitor.rb +0 -1
- data/app/lib/katello/event_daemon/runner.rb +2 -2
- data/app/lib/katello/event_daemon/services/agent_event_receiver.rb +10 -6
- data/app/lib/katello/http_resource.rb +1 -6
- data/app/lib/katello/logging.rb +11 -6
- data/app/lib/katello/qpid/connection.rb +1 -3
- data/app/lib/katello/repo_discovery.rb +15 -1
- data/app/lib/katello/resources/candlepin/owner.rb +3 -2
- data/app/lib/katello/resources/candlepin/pool.rb +6 -2
- data/app/lib/katello/resources/candlepin.rb +10 -0
- data/app/lib/katello/util/package.rb +1 -1
- data/app/lib/katello/util/pulpcore_content_filters.rb +1 -1
- data/app/lib/katello/validators/hostgroup_kickstart_repository_validator.rb +0 -6
- data/app/models/katello/authorization/content_view.rb +8 -0
- data/app/models/katello/authorization/content_view_version_import_history.rb +11 -0
- data/app/models/katello/concerns/content_facet_host_extensions.rb +1 -1
- data/app/models/katello/concerns/content_view_filter_rule_common.rb +2 -2
- data/app/models/katello/concerns/host_managed_extensions.rb +1 -32
- data/app/models/katello/concerns/hostgroup_extensions.rb +2 -9
- data/app/models/katello/concerns/http_proxy_extensions.rb +2 -4
- data/app/models/katello/concerns/location_extensions.rb +2 -25
- data/app/models/katello/concerns/operatingsystem_extensions.rb +0 -2
- data/app/models/katello/concerns/organization_extensions.rb +4 -18
- data/app/models/katello/concerns/redhat_extensions.rb +10 -18
- data/app/models/katello/concerns/smart_proxy_extensions.rb +6 -31
- data/app/models/katello/content_view.rb +17 -113
- data/app/models/katello/content_view_component.rb +5 -0
- data/app/models/katello/content_view_docker_filter_rule.rb +1 -0
- data/app/models/katello/content_view_package_filter_rule.rb +4 -0
- data/app/models/katello/content_view_package_group_filter.rb +1 -0
- data/app/models/katello/content_view_repository.rb +4 -5
- data/app/models/katello/content_view_version.rb +9 -33
- data/app/models/katello/content_view_version_export_history.rb +18 -4
- data/app/models/katello/content_view_version_import_history.rb +42 -0
- data/app/models/katello/erratum.rb +1 -1
- data/app/models/katello/events/delete_pool.rb +19 -0
- data/app/models/katello/glue/candlepin/environment.rb +7 -0
- data/app/models/katello/glue/candlepin/owner.rb +12 -1
- data/app/models/katello/glue/candlepin/pool.rb +42 -25
- data/app/models/katello/glue/provider.rb +3 -6
- data/app/models/katello/glue/pulp/repo.rb +19 -9
- data/app/models/katello/host/content_facet.rb +1 -0
- data/app/models/katello/host/subscription_facet.rb +3 -1
- data/app/models/katello/kt_environment.rb +0 -6
- data/app/models/katello/package_group.rb +4 -0
- data/app/models/katello/ping.rb +15 -4
- data/app/models/katello/pool.rb +9 -0
- data/app/models/katello/product.rb +0 -6
- data/app/models/katello/product_content.rb +3 -1
- data/app/models/katello/pulp_sync_status.rb +0 -10
- data/app/models/katello/repository.rb +20 -35
- data/app/models/katello/root_repository.rb +0 -5
- data/app/models/katello/subscription.rb +10 -0
- data/app/models/katello/sync_plan.rb +7 -0
- data/app/models/setting/content.rb +7 -8
- data/app/presenters/katello/content_view_version_compare_presenter.rb +2 -6
- data/app/presenters/katello/product_content_presenter.rb +3 -5
- data/app/services/cert/certs.rb +3 -7
- data/app/services/katello/applicability/applicable_content_helper.rb +1 -2
- data/app/services/katello/candlepin/event_handler.rb +22 -22
- data/app/services/katello/candlepin/message_handler.rb +24 -15
- data/app/services/katello/content_view_manager.rb +24 -0
- data/app/services/katello/event_monitor/poller_thread.rb +25 -20
- data/app/services/katello/managed_content_medium_provider.rb +4 -0
- data/app/services/katello/organization_creator.rb +120 -0
- data/app/services/katello/product_content_finder.rb +5 -1
- data/app/services/katello/pulp/pulp_content_unit.rb +6 -6
- data/app/services/katello/pulp/smart_proxy_repository.rb +2 -17
- data/app/services/katello/pulp3/api/ansible_collection.rb +14 -2
- data/app/services/katello/pulp3/api/apt.rb +1 -1
- data/app/services/katello/pulp3/api/content_guard.rb +6 -40
- data/app/services/katello/pulp3/api/core.rb +27 -2
- data/app/services/katello/pulp3/api/docker.rb +1 -1
- data/app/services/katello/pulp3/api/file.rb +5 -1
- data/app/services/katello/pulp3/api/yum.rb +9 -1
- data/app/services/katello/pulp3/content_view_version/export.rb +18 -40
- data/app/services/katello/pulp3/content_view_version/import.rb +75 -30
- data/app/services/katello/pulp3/content_view_version/import_gpg_keys.rb +32 -0
- data/app/services/katello/pulp3/content_view_version/import_validator.rb +53 -21
- data/app/services/katello/pulp3/content_view_version/importable_products.rb +47 -0
- data/app/services/katello/pulp3/content_view_version/importable_repositories.rb +52 -0
- data/app/services/katello/pulp3/content_view_version/metadata_generator.rb +99 -0
- data/app/services/katello/pulp3/pulp_content_unit.rb +1 -1
- data/app/services/katello/pulp3/repository/ansible_collection.rb +5 -1
- data/app/services/katello/pulp3/repository/apt.rb +2 -1
- data/app/services/katello/pulp3/repository/yum.rb +0 -16
- data/app/services/katello/pulp3/repository.rb +20 -1
- data/app/services/katello/pulp3/rpm.rb +5 -1
- data/app/services/katello/pulp3/task.rb +12 -5
- data/app/services/katello/pulp3/task_group.rb +10 -5
- data/app/services/katello/smart_proxy_helper.rb +1 -8
- data/app/services/katello/ui_notifications/pulp/proxy_disk_space.rb +0 -1
- data/app/services/katello/ui_notifications/system_error.rb +25 -0
- data/app/views/katello/api/v2/content_view_components/show.json.rabl +1 -1
- data/app/views/katello/api/v2/content_view_filters/show.json.rabl +0 -1
- data/app/views/katello/api/v2/{puppet_modules → content_view_version_import_histories}/index.json.rabl +1 -1
- data/app/views/katello/api/v2/content_view_version_import_histories/show.json.rabl +14 -0
- data/app/views/katello/api/v2/content_view_versions/base.json.rabl +2 -2
- data/app/views/katello/api/v2/content_view_versions/show.json.rabl +0 -7
- data/app/views/katello/api/v2/content_views/base.json.rabl +20 -9
- data/app/views/katello/api/v2/environments/show.json.rabl +0 -1
- data/app/views/katello/api/v2/package_groups/index.json.rabl +4 -0
- data/app/views/katello/api/v2/repositories/base.json.rabl +0 -1
- data/app/views/katello/api/v2/repositories/show.json.rabl +1 -1
- data/app/views/katello/api/v2/repository_sets/index.json.rabl +4 -1
- data/app/views/katello/api/v2/repository_sets/show.json.rabl +22 -0
- data/app/views/katello/api/v2/subscriptions/show.json.rabl +1 -1
- data/app/views/overrides/activation_keys/_host_media_type_select.html.erb +1 -1
- data/app/views/overrides/smart_proxies/_download_policy.erb +1 -1
- data/config/initializers/monkeys.rb +0 -1
- data/config/katello.yaml.example +0 -1
- data/config/routes/api/v2.rb +9 -21
- data/config/routes/overrides.rb +1 -2
- data/db/migrate/20140422000001_update_products_add_organization.rb +3 -2
- data/db/migrate/20160701180402_add_sortable_version_to_puppet_modules.rb +2 -0
- data/db/migrate/20200514092553_move_katello_fields_from_hostgroups.katello.rb +1 -1
- data/db/migrate/20210119162528_delete_puppet_and_ostree_repos.rb +14 -20
- data/db/migrate/20210224160921_remove_disabled_products_from_sync_plans.rb +6 -0
- data/db/migrate/20210302165636_remove_katello_puppet_modules.rb +62 -0
- data/db/migrate/20210309160925_create_katello_content_view_version_import_histories.rb +13 -0
- data/db/migrate/20210318204533_add_import_type_to_import_histories.rb +8 -0
- data/db/migrate/20210319123300_add_foreign_keys_to_import_export_histories.rb +6 -0
- data/db/migrate/20210322142311_add_auth_url_token_to_root_repositories.rb +6 -0
- data/db/migrate/20210331180353_katello_pool_organization_id_not_nullable.rb +16 -0
- data/db/migrate/20210409033915_add_created_in_katello_to_taxonomy.rb +9 -0
- data/db/seeds.d/101-locations.rb +0 -3
- data/db/seeds.d/102-organizations.rb +1 -5
- data/db/seeds.d/109-katello-notification-blueprints.rb +12 -0
- data/db/seeds.d/111-upgrade_tasks.rb +3 -2
- data/engines/bastion/vendor/assets/javascripts/bastion/angular/angular.js +325 -156
- data/engines/bastion/vendor/assets/javascripts/bastion/angular-animate/angular-animate.js +3 -3
- data/engines/bastion/vendor/assets/javascripts/bastion/angular-resource/angular-resource.js +3 -3
- data/engines/bastion/vendor/assets/javascripts/bastion/angular-route/angular-route.js +3 -3
- data/engines/bastion/vendor/assets/javascripts/bastion/angular-sanitize/angular-sanitize.js +21 -43
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/activation-key-repository-sets.controller.js +9 -10
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/views/activation-key-repository-sets.html +2 -9
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/bastion-katello-bootstrap.js +0 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/bastion_katello.js +0 -3
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/bulk/content-hosts-bulk-errata-modal.controller.js +2 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/bulk/content-hosts-bulk-packages-modal.controller.js +2 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/bulk/views/content-hosts-bulk-errata-modal.html +11 -4
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/bulk/views/content-hosts-bulk-packages-modal.html +18 -11
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/bulk/views/content-hosts-bulk-system-purpose-modal.html +10 -4
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/content-host-errata.controller.js +2 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/content-host-packages-actions.controller.js +5 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/content-host-packages-applicable.controller.js +7 -2
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/content-host-packages-installed.controller.js +7 -2
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/views/content-host-errata.html +6 -6
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/views/content-host-packages-actions.html +7 -7
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/views/content-host-packages-applicable.html +14 -6
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/views/content-host-packages-installed.html +5 -5
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content-hosts.routes.js +0 -14
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/content-host-repository-sets.controller.js +9 -11
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/views/content-host-info.html +2 -2
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/views/content-host-repository-sets.html +2 -8
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/views/content-hosts.html +3 -6
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/views/register.html +5 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/content-view.factory.js +0 -6
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/content-views.routes.js +0 -56
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/components/views/content-view-composite-available-content-views.html +0 -5
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/components/views/content-view-composite-content-views-list.html +0 -5
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/views/content-view-details.html +2 -9
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/views/content-view-info.html +0 -12
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/views/content-view-versions.html +0 -3
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/versions/content-view-version-content.controller.js +2 -6
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/versions/content-view-versions.module.js +0 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/versions/views/content-view-version.html +0 -7
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/environments/content.service.js +0 -5
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/environments/environments.module.js +0 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/environments/environments.routes.js +0 -11
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/environments/views/environments.html +0 -3
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/errata/apply-errata.controller.js +21 -6
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/errata/views/apply-errata-confirm.html +9 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/bastion_katello.pot +71 -311
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/translations.js +0 -10
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/organizations/fenced-pages.service.js +0 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/details/repository-details-manage-content.controller.js +2 -4
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/details/views/repository-info.html +13 -15
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/new/views/new-repository.html +21 -7
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/repositories.routes.js +0 -9
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/views/product-repositories.html +0 -6
- data/engines/bastion_katello/lib/bastion_katello/engine.rb +3 -3
- data/lib/katello/engine.rb +16 -15
- data/lib/katello/middleware/organization_created_enforcer.rb +22 -0
- data/lib/katello/permission_creator.rb +12 -28
- data/lib/katello/permissions/host_permissions.rb +3 -2
- data/lib/katello/plugin.rb +6 -19
- data/lib/katello/repository_types/ansible_collection.rb +1 -1
- data/lib/katello/repository_types/deb.rb +1 -1
- data/lib/katello/repository_types/docker.rb +1 -1
- data/lib/katello/repository_types/file.rb +1 -1
- data/lib/katello/repository_types/yum.rb +1 -1
- data/lib/katello/tasks/clean_backend_objects.rake +25 -0
- data/lib/katello/tasks/jenkins.rake +6 -0
- data/lib/katello/tasks/receptor/extract_orgs.rake +1 -3
- data/lib/katello/tasks/reimport.rake +0 -1
- data/lib/katello/tasks/repository.rake +0 -30
- data/lib/katello/tasks/update_subscription_facet_backend_data.rake +3 -3
- data/lib/katello/tasks/upgrades/4.0/remove_ostree_puppet_content.rake +2 -4
- data/lib/katello/tasks/upgrades/4.1/fix_invalid_pools.rake +62 -0
- data/lib/katello/tasks/upgrades/4.1/sync_noarch_content.rake +15 -0
- data/lib/katello/version.rb +1 -1
- data/lib/katello.rb +1 -1
- data/locale/action_names.rb +65 -63
- data/locale/bn/katello.edit.po +1357 -1606
- data/locale/bn/katello.po +465 -744
- data/locale/cs/katello.edit.po +1213 -1087
- data/locale/cs/katello.po +307 -219
- data/locale/de/katello.edit.po +1498 -1520
- data/locale/de/katello.po +589 -625
- data/locale/en/katello.edit.po +1198 -1074
- data/locale/en/katello.po +304 -213
- data/locale/es/katello.edit.po +2344 -2304
- data/locale/es/katello.po +1407 -1407
- data/locale/fr/katello.edit.po +2720 -2642
- data/locale/fr/katello.po +1703 -1750
- data/locale/gu/katello.edit.po +1546 -1797
- data/locale/gu/katello.po +654 -935
- data/locale/hi/katello.edit.po +1545 -1793
- data/locale/hi/katello.po +653 -931
- data/locale/it/katello.edit.po +1323 -1310
- data/locale/it/katello.po +407 -409
- data/locale/ja/katello.edit.po +2645 -2557
- data/locale/ja/katello.po +1646 -1664
- data/locale/katello.pot +1435 -1289
- data/locale/kn/katello.edit.po +1546 -1795
- data/locale/kn/katello.po +654 -933
- data/locale/ko/katello.edit.po +1464 -1449
- data/locale/ko/katello.po +554 -554
- data/locale/mr/katello.edit.po +1545 -1758
- data/locale/mr/katello.po +653 -896
- data/locale/or/katello.edit.po +1546 -1795
- data/locale/or/katello.po +654 -933
- data/locale/pa/katello.edit.po +1541 -1775
- data/locale/pa/katello.po +649 -913
- data/locale/pt/katello.edit.po +1289 -1255
- data/locale/pt/katello.po +398 -394
- data/locale/pt_BR/katello.edit.po +2370 -2315
- data/locale/pt_BR/katello.po +1435 -1421
- data/locale/ru/katello.edit.po +1611 -1608
- data/locale/ru/katello.po +704 -716
- data/locale/ta/katello.edit.po +1358 -1605
- data/locale/ta/katello.po +465 -742
- data/locale/te/katello.edit.po +1545 -1792
- data/locale/te/katello.po +653 -930
- data/locale/zh_CN/katello.edit.po +3052 -2930
- data/locale/zh_CN/katello.po +2055 -2039
- data/locale/zh_TW/katello.edit.po +1571 -1669
- data/locale/zh_TW/katello.po +649 -777
- data/package.json +2 -2
- data/webpack/{scenes/ContentViews/Details/Repositories/RepoAddedStatus.js → components/AddedStatusLabel.js} +5 -5
- data/webpack/components/RoutedTabs/RoutedTabs.js +91 -0
- data/webpack/components/RoutedTabs/__tests__/RoutedTabs.test.js +32 -0
- data/webpack/components/RoutedTabs/index.js +4 -0
- data/webpack/components/extensions/RegistrationCommands/RegistrationCommandsPageConstants.js +2 -0
- data/webpack/components/extensions/RegistrationCommands/RegistrationCommandsPageHelpers.js +21 -0
- data/webpack/components/extensions/RegistrationCommands/RegistrationCommandsPageSelectors.js +21 -0
- data/webpack/components/extensions/RegistrationCommands/__tests__/ActivationKeys.test.js +18 -0
- data/webpack/components/extensions/RegistrationCommands/__tests__/Force.test.js +9 -0
- data/webpack/components/extensions/RegistrationCommands/__tests__/IgnoreSubmanErrors.test.js +9 -0
- data/webpack/components/extensions/RegistrationCommands/__tests__/LifeCycleEnvironment.test.js +11 -0
- data/webpack/components/extensions/RegistrationCommands/__tests__/__snapshots__/ActivationKeys.test.js.snap +58 -0
- data/webpack/components/extensions/RegistrationCommands/__tests__/__snapshots__/Force.test.js.snap +25 -0
- data/webpack/components/extensions/RegistrationCommands/__tests__/__snapshots__/IgnoreSubmanErrors.test.js.snap +25 -0
- data/webpack/components/extensions/RegistrationCommands/__tests__/__snapshots__/LifeCycleEnvironment.test.js.snap +27 -0
- data/webpack/components/extensions/RegistrationCommands/fields/ActivationKeys.js +99 -0
- data/webpack/components/extensions/RegistrationCommands/fields/Force.js +38 -0
- data/webpack/components/extensions/RegistrationCommands/fields/IgnoreSubmanErrors.js +38 -0
- data/webpack/components/extensions/RegistrationCommands/fields/LifecycleEnvironment.js +56 -0
- data/webpack/components/extensions/RegistrationCommands/index.js +81 -0
- data/webpack/components/pf3Table/formatters/EntitlementsInlineEditFormatter.js +23 -24
- data/webpack/components/pf3Table/formatters/__tests__/__snapshots__/EntitlementsInlineEditFormatter.test.js.snap +3 -1
- data/webpack/components/pf3Table/formatters/entitlementsValueFormatter.js +16 -0
- data/webpack/containers/Application/overrides.scss +3 -0
- data/webpack/fills_index.js +3 -0
- data/webpack/redux/reducers/RedHatRepositories/enabled.fixtures.js +0 -2
- data/webpack/scenes/ContentViews/ContentViewsConstants.js +8 -1
- data/webpack/scenes/ContentViews/Copy/__tests__/contentViewCopyResult.fixtures.json +1 -3
- data/webpack/scenes/ContentViews/Create/__tests__/contentViewCreateResult.fixtures.json +1 -3
- data/webpack/scenes/ContentViews/Details/ComponentContentViews/ComponentEnvironments.js +28 -0
- data/webpack/scenes/ContentViews/Details/ComponentContentViews/ComponentVersion.js +45 -0
- data/webpack/scenes/ContentViews/Details/ComponentContentViews/ContentViewComponents.js +124 -0
- data/webpack/scenes/ContentViews/Details/ComponentContentViews/__tests__/contentViewComponents.fixtures.json +161 -0
- data/webpack/scenes/ContentViews/Details/ComponentContentViews/__tests__/contentViewComponents.test.js +163 -0
- data/webpack/scenes/ContentViews/Details/ComponentContentViews/__tests__/unpublishedCVComponents.fixtures.json +64 -0
- data/webpack/scenes/ContentViews/Details/ContentViewDetailActions.js +67 -7
- data/webpack/scenes/ContentViews/Details/ContentViewDetailSelectors.js +61 -4
- data/webpack/scenes/ContentViews/Details/ContentViewDetails.js +34 -11
- data/webpack/scenes/ContentViews/Details/Filters/CVFilterDetailType.js +33 -0
- data/webpack/scenes/ContentViews/Details/Filters/CVPackageGroupFilterContent.js +117 -0
- data/webpack/scenes/ContentViews/Details/Filters/CVRpmFilterContent.js +115 -0
- data/webpack/scenes/ContentViews/Details/Filters/ContentType.js +7 -10
- data/webpack/scenes/ContentViews/Details/Filters/ContentViewFilterDetails.js +49 -0
- data/webpack/scenes/ContentViews/Details/Filters/ContentViewFilterDetailsHeader.js +56 -0
- data/webpack/scenes/ContentViews/Details/Filters/ContentViewFilters.js +3 -17
- data/webpack/scenes/ContentViews/Details/Filters/__tests__/CVRpmFilterContent.test.js +116 -0
- data/webpack/scenes/ContentViews/Details/Filters/__tests__/allFilterPackageGroups.fixtures.json +69 -0
- data/webpack/scenes/ContentViews/Details/Filters/__tests__/contentViewFilterDetail.fixtures.json +103 -0
- data/webpack/scenes/ContentViews/Details/Filters/__tests__/contentViewFilterDetails.test.js +116 -0
- data/webpack/scenes/ContentViews/Details/Filters/__tests__/cvPackageFilterDetail.fixtures.json +147 -0
- data/webpack/scenes/ContentViews/Details/Filters/__tests__/cvPackageFilterRules.fixtures.json +30 -0
- data/webpack/scenes/ContentViews/Details/Histories/ContentViewHistories.js +136 -0
- data/webpack/scenes/ContentViews/Details/Histories/__tests__/contentViewHistory.fixtures.json +370 -0
- data/webpack/scenes/ContentViews/Details/Histories/__tests__/contentViewHistory.test.js +94 -0
- data/webpack/scenes/ContentViews/Details/Repositories/ContentCounts.js +0 -1
- data/webpack/scenes/ContentViews/Details/Repositories/ContentViewRepositories.js +106 -13
- data/webpack/scenes/ContentViews/Details/Repositories/LastSync.js +11 -5
- data/webpack/scenes/ContentViews/Details/Repositories/RepoIcon.js +5 -1
- data/webpack/scenes/ContentViews/Details/Repositories/__tests__/contentViewAddRemove.test.js +138 -0
- data/webpack/scenes/ContentViews/Details/Repositories/__tests__/contentViewDetailRepos.fixtures.json +0 -2
- data/webpack/scenes/ContentViews/Details/Repositories/__tests__/contentViewDetailRepos.test.js +1 -1
- data/webpack/scenes/ContentViews/Details/Repositories/__tests__/contentViewRepoAdd.fixture.json +57 -0
- data/webpack/scenes/ContentViews/Details/Versions/ContentViewVersionContent.js +73 -0
- data/webpack/scenes/ContentViews/Details/Versions/ContentViewVersionEnvironments.js +31 -0
- data/webpack/scenes/ContentViews/Details/Versions/ContentViewVersionErrata.js +64 -0
- data/webpack/scenes/ContentViews/Details/Versions/ContentViewVersionErrata.scss +8 -0
- data/webpack/scenes/ContentViews/Details/Versions/ContentViewVersionPackages.js +0 -0
- data/webpack/scenes/ContentViews/Details/Versions/ContentViewVersions.js +105 -0
- data/webpack/scenes/ContentViews/Details/Versions/__tests__/contentViewVersions.fixtures.json +728 -0
- data/webpack/scenes/ContentViews/Details/Versions/__tests__/contentViewVersions.test.js +154 -0
- data/webpack/scenes/ContentViews/Details/Versions/__tests__/emptyCVVersion.fixtures.json +13 -0
- data/webpack/scenes/ContentViews/Details/__tests__/contentViewDetail.test.js +3 -1
- data/webpack/scenes/ContentViews/Details/__tests__/contentViewDetails.fixtures.json +0 -2
- data/webpack/scenes/ContentViews/Table/ContentViewVersionCell.js +33 -0
- data/webpack/scenes/ContentViews/Table/ContentViewsTable.js +17 -22
- data/webpack/scenes/ContentViews/Table/tableDataGenerator.js +51 -102
- data/webpack/scenes/ContentViews/__tests__/basicContentViews.fixtures.js +5 -3
- data/webpack/scenes/ContentViews/__tests__/contentViewList.fixtures.json +30 -5
- data/webpack/scenes/ContentViews/__tests__/contentViewPage.test.js +95 -0
- data/webpack/scenes/ContentViews/components/ContentViewIcon.js +11 -5
- data/webpack/scenes/ContentViews/components/EnvironmentLabels.js +16 -0
- data/webpack/scenes/ContentViews/components/IconWithCount.js +1 -1
- data/webpack/scenes/ContentViews/components/InactiveText.js +15 -0
- data/webpack/scenes/ContentViews/expansions/DetailsExpansion.js +19 -1
- data/webpack/scenes/Subscriptions/Details/SubscriptionPurposeAttributes.js +1 -1
- data/webpack/scenes/Subscriptions/Details/__tests__/__snapshots__/SubscriptionDetailInfo.test.js.snap +1 -1
- data/webpack/scenes/Subscriptions/Details/__tests__/__snapshots__/SubscriptionDetails.test.js.snap +3 -3
- data/webpack/scenes/Subscriptions/Details/__tests__/subscriptionDetails.fixtures.js +1 -1
- data/webpack/scenes/Subscriptions/components/SubscriptionsTable/SubscriptionsTableHelpers.js +17 -0
- data/webpack/scenes/Subscriptions/components/SubscriptionsTable/SubscriptionsTableSchema.js +2 -1
- data/webpack/scenes/Subscriptions/components/SubscriptionsTable/__tests__/SubscriptionsTable.test.js +1 -1
- data/webpack/scenes/Subscriptions/components/SubscriptionsTable/__tests__/__snapshots__/SubscriptionsTable.test.js.snap +144 -0
- data/webpack/scenes/Tasks/helpers.js +2 -2
- data/webpack/test-utils/react-testing-lib-wrapper.js +11 -3
- data/webpack/utils/__tests__/useParamsWithHash.test.js +22 -0
- data/webpack/utils/helpers.js +2 -0
- data/webpack/utils/paramsFromHash.js +16 -0
- data/webpack/utils/useUrlParams.js +14 -0
- metadata +122 -206
- data/app/controllers/katello/api/v2/content_view_puppet_modules_controller.rb +0 -82
- data/app/controllers/katello/api/v2/puppet_modules_controller.rb +0 -19
- data/app/controllers/katello/concerns/registration_controller_extensions.rb +0 -16
- data/app/helpers/katello/concerns/hosts_and_hostgroups_helper_extensions.rb +0 -20
- data/app/lib/actions/candlepin/owner/create.rb +0 -16
- data/app/lib/actions/katello/content_view_puppet_environment/clear.rb +0 -11
- data/app/lib/actions/katello/content_view_puppet_environment/clone.rb +0 -78
- data/app/lib/actions/katello/content_view_puppet_environment/clone_content_for_version.rb +0 -20
- data/app/lib/actions/katello/content_view_puppet_environment/create.rb +0 -34
- data/app/lib/actions/katello/content_view_puppet_environment/create_for_version.rb +0 -23
- data/app/lib/actions/katello/content_view_puppet_environment/destroy.rb +0 -28
- data/app/lib/actions/katello/content_view_puppet_module/destroy.rb +0 -46
- data/app/lib/actions/katello/environment/library_create.rb +0 -35
- data/app/lib/actions/katello/organization/create.rb +0 -38
- data/app/lib/actions/pulp/content_view_puppet_environment/copy_contents.rb +0 -36
- data/app/lib/actions/pulp/content_view_puppet_environment/index_content.rb +0 -19
- data/app/lib/actions/pulp/repository/presenters/puppet_presenter.rb +0 -54
- data/app/lib/actions/pulp3/content_migration.rb +0 -31
- data/app/lib/actions/pulp3/content_migration_presenter.rb +0 -59
- data/app/lib/actions/pulp3/content_migration_reset.rb +0 -22
- data/app/lib/katello/foreman.rb +0 -32
- data/app/lib/katello/mapping.rb +0 -31
- data/app/lib/katello/util/hostgroup_facets_helper.rb +0 -126
- data/app/lib/katello/validators/content_view_puppet_module_validator.rb +0 -32
- data/app/models/katello/concerns/environment_extensions.rb +0 -74
- data/app/models/katello/content_view_puppet_environment.rb +0 -116
- data/app/models/katello/content_view_puppet_environment_puppet_module.rb +0 -11
- data/app/models/katello/content_view_puppet_module.rb +0 -63
- data/app/models/katello/puppet_module.rb +0 -77
- data/app/models/katello/repository_puppet_module.rb +0 -7
- data/app/services/katello/pulp/puppet_module.rb +0 -21
- data/app/services/katello/pulp/repository/puppet.rb +0 -68
- data/app/services/katello/pulp3/migration.rb +0 -329
- data/app/services/katello/pulp3/migration_plan.rb +0 -178
- data/app/services/katello/pulp3/migration_switchover.rb +0 -126
- data/app/services/katello/puppet_class_importer_extensions.rb +0 -32
- data/app/views/foreman/hosts/_registration.html.erb +0 -12
- data/app/views/katello/api/v2/activation_keys/product_content.json.rabl +0 -30
- data/app/views/katello/api/v2/content_view_puppet_modules/create.json.rabl +0 -3
- data/app/views/katello/api/v2/content_view_puppet_modules/index.json.rabl +0 -7
- data/app/views/katello/api/v2/content_view_puppet_modules/show.json.rabl +0 -9
- data/app/views/katello/api/v2/content_views/puppet_modules.json.rabl +0 -7
- data/app/views/katello/api/v2/host_subscriptions/content_override.json.rabl +0 -3
- data/app/views/katello/api/v2/host_subscriptions/product_content.json.rabl +0 -29
- data/app/views/katello/api/v2/puppet_modules/backend.json.rabl +0 -7
- data/app/views/katello/api/v2/puppet_modules/base.json.rabl +0 -9
- data/app/views/katello/api/v2/puppet_modules/compare.json.rabl +0 -10
- data/app/views/katello/api/v2/puppet_modules/name.json.rabl +0 -3
- data/app/views/katello/api/v2/puppet_modules/names.json.rabl +0 -7
- data/app/views/katello/api/v2/puppet_modules/show.json.rabl +0 -4
- data/db/migrate/20210512192745_fix_red_hat_root_repository_arch.rb +0 -11
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content-host-register-client.directive.js +0 -6
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content-host-register-os-client.directive.js +0 -17
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content-host-register.controller.js +0 -44
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/views/register-client.html +0 -28
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/views/register-deb-client.html +0 -38
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/views/register-oracle-client.html +0 -5
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/views/register-sles-client.html +0 -28
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/content-view-available-puppet-modules.controller.js +0 -9
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/puppet-modules/content-view-puppet-module-names.controller.js +0 -45
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/puppet-modules/content-view-puppet-module-versions.controller.js +0 -61
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/puppet-modules/content-view-puppet-module.factory.js +0 -23
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/puppet-modules/content-view-puppet-modules.controller.js +0 -74
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/puppet-modules/views/content-view-puppet-module-names.html +0 -57
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/puppet-modules/views/content-view-puppet-module-versions.html +0 -64
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/puppet-modules/views/content-view-puppet-modules.html +0 -54
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/versions/views/content-view-version-puppet-modules.html +0 -19
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/environments/details/views/environment-puppet-modules.html +0 -25
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/de.po +0 -6903
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/es.po +0 -7094
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/fr.po +0 -7303
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/it.po +0 -6895
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/ja.po +0 -6865
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/ko.po +0 -6720
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/pt_BR.po +0 -7077
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/ru.po +0 -6832
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/zh_CN.po +0 -6766
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/zh_TW.po +0 -6703
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/details/views/repository-manage-puppet-modules.html +0 -66
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/puppet-modules/details/puppet-module-content-views.controller.js +0 -44
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/puppet-modules/details/puppet-module-repositories.controller.js +0 -36
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/puppet-modules/details/puppet-module.controller.js +0 -34
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/puppet-modules/details/views/puppet-module-content-views.html +0 -41
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/puppet-modules/details/views/puppet-module-info.html +0 -32
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/puppet-modules/details/views/puppet-module-repositories.html +0 -52
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/puppet-modules/details/views/puppet-module.html +0 -37
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/puppet-modules/puppet-module.factory.js +0 -28
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/puppet-modules/puppet-modules.controller.js +0 -35
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/puppet-modules/puppet-modules.module.js +0 -20
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/puppet-modules/puppet-modules.routes.js +0 -71
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/puppet-modules/views/puppet-modules.html +0 -47
- data/lib/katello/repository_types/puppet.rb +0 -5
- data/lib/katello/tasks/fix_hostgroup_facets.rake +0 -8
- data/lib/katello/tasks/pulp3_content_switchover.rake +0 -32
- data/lib/katello/tasks/pulp3_migration.rake +0 -41
- data/lib/katello/tasks/pulp3_migration_abort.rake +0 -22
- data/lib/katello/tasks/pulp3_migration_reset.rake +0 -26
- data/lib/katello/tasks/pulp3_migration_stats.rake +0 -41
- data/lib/katello/tasks/pulp3_post_migration_check.rake +0 -51
- data/lib/monkeys/passenger_tee_input.rb +0 -20
- data/locale/bn/LC_MESSAGES/katello.mo +0 -0
- data/locale/cs/LC_MESSAGES/katello.mo +0 -0
- data/locale/de/LC_MESSAGES/katello.mo +0 -0
- data/locale/en/LC_MESSAGES/katello.mo +0 -0
- data/locale/es/LC_MESSAGES/katello.mo +0 -0
- data/locale/fr/LC_MESSAGES/katello.mo +0 -0
- data/locale/gu/LC_MESSAGES/katello.mo +0 -0
- data/locale/hi/LC_MESSAGES/katello.mo +0 -0
- data/locale/it/LC_MESSAGES/katello.mo +0 -0
- data/locale/ja/LC_MESSAGES/katello.mo +0 -0
- data/locale/kn/LC_MESSAGES/katello.mo +0 -0
- data/locale/ko/LC_MESSAGES/katello.mo +0 -0
- data/locale/mr/LC_MESSAGES/katello.mo +0 -0
- data/locale/or/LC_MESSAGES/katello.mo +0 -0
- data/locale/pa/LC_MESSAGES/katello.mo +0 -0
- data/locale/pt/LC_MESSAGES/katello.mo +0 -0
- data/locale/pt_BR/LC_MESSAGES/katello.mo +0 -0
- data/locale/ru/LC_MESSAGES/katello.mo +0 -0
- data/locale/ta/LC_MESSAGES/katello.mo +0 -0
- data/locale/te/LC_MESSAGES/katello.mo +0 -0
- data/locale/zh_CN/LC_MESSAGES/katello.mo +0 -0
- data/locale/zh_TW/LC_MESSAGES/katello.mo +0 -0
- data/webpack/components/TabWrapper/TabWrapper.js +0 -26
- data/webpack/components/TabWrapper/index.js +0 -3
- data/webpack/components/TabbedView/TabbedView.js +0 -38
- data/webpack/components/TabbedView/TabbedView.scss +0 -3
- data/webpack/components/TabbedView/index.js +0 -3
- data/webpack/scenes/ContentViews/expansions/EnvironmentsExpansion.js +0 -19
- data/webpack/scenes/ContentViews/expansions/VersionsExpansion.js +0 -11
@@ -282,6 +282,24 @@ module Katello
|
|
282
282
|
tasks
|
283
283
|
end
|
284
284
|
|
285
|
+
def copy_all(source_repository, mirror: false)
|
286
|
+
if mirror
|
287
|
+
data = api.class.add_remove_content_class.new(
|
288
|
+
base_version: source_repository.version_href)
|
289
|
+
|
290
|
+
[api.repositories_api.modify(repository_reference.repository_href, data)]
|
291
|
+
elsif api.respond_to? :copy_api
|
292
|
+
data = api.class.copy_class.new
|
293
|
+
data.config = [{
|
294
|
+
source_repo_version: source_repository.version_href,
|
295
|
+
dest_repo: repository_reference.repository_href
|
296
|
+
}]
|
297
|
+
[api.copy_api.copy_content(data)]
|
298
|
+
else
|
299
|
+
copy_content_for_source(source_repository)
|
300
|
+
end
|
301
|
+
end
|
302
|
+
|
285
303
|
def copy_version(from_repository)
|
286
304
|
create_version(:base_version => from_repository.version_href)
|
287
305
|
end
|
@@ -330,7 +348,8 @@ module Katello
|
|
330
348
|
tls_validation: root.verify_ssl_on_sync,
|
331
349
|
name: generate_backend_object_name,
|
332
350
|
url: root.url,
|
333
|
-
proxy_url: root.http_proxy&.full_url
|
351
|
+
proxy_url: root.http_proxy&.full_url,
|
352
|
+
total_timeout: Setting[:sync_connect_timeout]
|
334
353
|
}
|
335
354
|
remote_options[:url] = root.url unless root.url.blank?
|
336
355
|
remote_options[:download_concurrency] = root.download_concurrency unless root.download_concurrency.blank?
|
@@ -111,6 +111,10 @@ module Katello
|
|
111
111
|
backend_data['rpm_license']
|
112
112
|
end
|
113
113
|
|
114
|
+
def parse_filename(path)
|
115
|
+
File.split(path).last unless path.blank?
|
116
|
+
end
|
117
|
+
|
114
118
|
def update_model(model)
|
115
119
|
custom_json = {}
|
116
120
|
custom_json['modular'] = backend_data['is_modular']
|
@@ -119,7 +123,7 @@ module Katello
|
|
119
123
|
each { |field| custom_json[field] = backend_data[field] }
|
120
124
|
custom_json['release_sortable'] = Util::Package.sortable_version(backend_data['release'])
|
121
125
|
custom_json['version_sortable'] = Util::Package.sortable_version(backend_data['version'])
|
122
|
-
custom_json['filename'] = backend_data['location_href']
|
126
|
+
custom_json['filename'] = parse_filename(backend_data['location_href']) #location_href is the relative path of the rpm in the upstream repo
|
123
127
|
custom_json['checksum'] = backend_data['pkgId']
|
124
128
|
custom_json['sourcerpm'] = backend_data['rpm_sourcerpm']
|
125
129
|
model.assign_attributes(custom_json)
|
@@ -56,8 +56,10 @@ module Katello
|
|
56
56
|
@pulp_data ||= tasks_api.read(@href).as_json.with_indifferent_access
|
57
57
|
end
|
58
58
|
|
59
|
-
|
60
|
-
|
59
|
+
delegate :tasks_api, to: :core_api
|
60
|
+
|
61
|
+
def core_api
|
62
|
+
::Katello::Pulp3::Api::Core.new(@smart_proxy)
|
61
63
|
end
|
62
64
|
|
63
65
|
def task_group_href
|
@@ -72,6 +74,10 @@ module Katello
|
|
72
74
|
task_data['progress_reports']
|
73
75
|
end
|
74
76
|
|
77
|
+
def correlation_id
|
78
|
+
task_data['logging_cid']
|
79
|
+
end
|
80
|
+
|
75
81
|
def poll
|
76
82
|
task_data(true)
|
77
83
|
self
|
@@ -94,10 +100,11 @@ module Katello
|
|
94
100
|
end
|
95
101
|
|
96
102
|
def cancel
|
97
|
-
|
98
|
-
tasks_api.tasks_cancel(task_data['pulp_href'], data)
|
103
|
+
core_api.cancel_task(task_data['pulp_href'])
|
99
104
|
#the main task may have completed, so cancel spawned tasks too
|
100
|
-
task_data['spawned_tasks']&.each
|
105
|
+
task_data['spawned_tasks']&.each do |spawned|
|
106
|
+
core_api.cancel_task(spawned['pulp_href'])
|
107
|
+
end
|
101
108
|
end
|
102
109
|
end
|
103
110
|
end
|
@@ -79,12 +79,17 @@ module Katello
|
|
79
79
|
end
|
80
80
|
end
|
81
81
|
|
82
|
+
def core_api
|
83
|
+
::Katello::Pulp3::Api::Core.new(@smart_proxy)
|
84
|
+
end
|
85
|
+
|
82
86
|
def cancel
|
83
|
-
tasks_api =
|
84
|
-
tasks_response =
|
85
|
-
|
86
|
-
|
87
|
-
|
87
|
+
tasks_api = core_api.tasks_api
|
88
|
+
tasks_response = core_api.fetch_from_list do |page_opts|
|
89
|
+
tasks_api.list(page_opts.merge(task_group: task_group_data['pulp_href'], state__in: 'running,waiting'))
|
90
|
+
end
|
91
|
+
tasks_response.collect do |result|
|
92
|
+
::Katello::Pulp3::Api::Core.new(@smart_proxy).cancel_task(result.pulp_href)
|
88
93
|
end
|
89
94
|
end
|
90
95
|
end
|
@@ -35,7 +35,7 @@ module Katello
|
|
35
35
|
if repository
|
36
36
|
[repository]
|
37
37
|
else
|
38
|
-
repositories_available_to_capsule(environment, content_view)
|
38
|
+
repositories_available_to_capsule(environment, content_view)
|
39
39
|
end
|
40
40
|
end
|
41
41
|
|
@@ -45,12 +45,5 @@ module Katello
|
|
45
45
|
yum_repos = yum_repos.in_content_views([content_view]) if content_view
|
46
46
|
yum_repos.smart_proxy_syncable
|
47
47
|
end
|
48
|
-
|
49
|
-
def puppet_environments_available_to_capsule(environments, content_view)
|
50
|
-
environments = @smart_proxy.lifecycle_environments if environments.nil?
|
51
|
-
puppet_environments = Katello::ContentViewPuppetEnvironment.in_environment(environments)
|
52
|
-
puppet_environments = puppet_environments.in_content_view(content_view) if content_view
|
53
|
-
puppet_environments
|
54
|
-
end
|
55
48
|
end
|
56
49
|
end
|
@@ -5,7 +5,6 @@ module Katello
|
|
5
5
|
class << self
|
6
6
|
def deliver!
|
7
7
|
SmartProxy.unscoped.with_content.each do |proxy|
|
8
|
-
percentage = proxy.pulp_disk_usage[0]['percentage']
|
9
8
|
if percentage < 90 && notification_already_exists?(proxy)
|
10
9
|
blueprint.notifications.where(subject: proxy).destroy_all
|
11
10
|
elsif update_notifications(proxy).empty? && percentage > 90
|
@@ -0,0 +1,25 @@
|
|
1
|
+
module Katello
|
2
|
+
module UINotifications
|
3
|
+
class SystemError < ::UINotifications::Base
|
4
|
+
private
|
5
|
+
|
6
|
+
def create
|
7
|
+
if unexpired_notifications.zero?
|
8
|
+
Notification.create!(
|
9
|
+
initiator: initiator,
|
10
|
+
audience: ::Notification::AUDIENCE_ADMIN,
|
11
|
+
notification_blueprint: blueprint
|
12
|
+
)
|
13
|
+
end
|
14
|
+
end
|
15
|
+
|
16
|
+
def unexpired_notifications
|
17
|
+
blueprint.notifications.update_all(expired_at: blueprint.expired_at)
|
18
|
+
end
|
19
|
+
|
20
|
+
def blueprint
|
21
|
+
@blueprint ||= NotificationBlueprint.find_by(name: 'system_status_error')
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
@@ -13,7 +13,7 @@ child :content_view => :content_view do
|
|
13
13
|
end
|
14
14
|
|
15
15
|
child :latest_version => :content_view_version do
|
16
|
-
attributes :id, :name, :label, :content_view_id, :version
|
16
|
+
attributes :id, :name, :label, :content_view_id, :version
|
17
17
|
|
18
18
|
child :content_view => :content_view do
|
19
19
|
attributes :id, :name, :label, :description
|
@@ -0,0 +1,14 @@
|
|
1
|
+
object @resource
|
2
|
+
|
3
|
+
attributes :path, :id, :metadata
|
4
|
+
attributes :import_type => :type
|
5
|
+
|
6
|
+
node :content_view_version do |h|
|
7
|
+
h.content_view_version.name
|
8
|
+
end
|
9
|
+
|
10
|
+
node :content_view_version_id do |h|
|
11
|
+
h.content_view_version.id
|
12
|
+
end
|
13
|
+
|
14
|
+
extends 'katello/api/v2/common/timestamps'
|
@@ -45,8 +45,8 @@ version = @object || @resource
|
|
45
45
|
child :environments => :environments do
|
46
46
|
attributes :id, :name, :label
|
47
47
|
|
48
|
-
node :
|
49
|
-
version.
|
48
|
+
node :publish_date do |env|
|
49
|
+
time_ago_in_words(version.env_promote_date(env))
|
50
50
|
end
|
51
51
|
|
52
52
|
node :permissions do |env|
|
@@ -4,9 +4,8 @@ extends 'katello/api/v2/common/org_reference'
|
|
4
4
|
attributes :composite
|
5
5
|
attributes :component_ids
|
6
6
|
attributes :default
|
7
|
-
attributes :force_puppet_environment
|
8
7
|
attributes :version_count
|
9
|
-
attributes :latest_version
|
8
|
+
attributes :latest_version, :latest_version_id
|
10
9
|
attributes :auto_publish
|
11
10
|
attributes :solve_dependencies
|
12
11
|
attributes :import_only
|
@@ -15,6 +14,20 @@ node :next_version do |content_view|
|
|
15
14
|
content_view.next_version.to_f.to_s
|
16
15
|
end
|
17
16
|
|
17
|
+
child :last_task => :last_task do |_task|
|
18
|
+
attributes :task_id => :id
|
19
|
+
attributes :status => :result
|
20
|
+
node :last_sync_words do |object|
|
21
|
+
if object.try(:created_at)
|
22
|
+
time_ago_in_words(Time.parse(object.created_at.to_s))
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
|
27
|
+
child :latest_version_env => :latest_version_environments do
|
28
|
+
attributes :id, :name, :label
|
29
|
+
end
|
30
|
+
|
18
31
|
node :last_published do |content_view|
|
19
32
|
unless content_view.versions.empty?
|
20
33
|
content_view.versions.order(:created_at).last.created_at
|
@@ -42,12 +55,6 @@ else
|
|
42
55
|
attributes :repository_ids
|
43
56
|
end
|
44
57
|
|
45
|
-
child :puppet_modules => :puppet_modules do
|
46
|
-
attributes :id, :name, :author, :uuid
|
47
|
-
attributes :created_at
|
48
|
-
attributes :updated_at
|
49
|
-
end
|
50
|
-
|
51
58
|
child :versions => :versions do
|
52
59
|
attributes :id, :version
|
53
60
|
attributes :created_at => :published
|
@@ -65,7 +72,7 @@ node :permissions do |cv|
|
|
65
72
|
end
|
66
73
|
|
67
74
|
child :components => :components do
|
68
|
-
attributes :id, :name, :label, :content_view_id, :version
|
75
|
+
attributes :id, :name, :label, :content_view_id, :version
|
69
76
|
|
70
77
|
child :environments => :environments do
|
71
78
|
attributes :id, :name, :label
|
@@ -88,4 +95,8 @@ child :activation_keys => :activation_keys do
|
|
88
95
|
attributes :id, :name
|
89
96
|
end
|
90
97
|
|
98
|
+
child :hosts => :hosts do
|
99
|
+
attributes :id, :name
|
100
|
+
end
|
101
|
+
|
91
102
|
extends 'katello/api/v2/common/timestamps'
|
@@ -26,7 +26,6 @@ node :counts do |env|
|
|
26
26
|
if env.library?
|
27
27
|
repos = env.repositories.in_default_view
|
28
28
|
counts[:packages] = Katello::Rpm.total_for_repositories(repos)
|
29
|
-
counts[:puppet_modules] = Katello::PuppetModule.in_repositories(repos).count
|
30
29
|
counts[:module_streams] = Katello::ModuleStream.in_repositories(repos).count
|
31
30
|
counts[:errata] = partial('katello/api/v2/errata/counts', :object => Katello::RelationPresenter.new(Katello::Erratum.in_repositories(repos)))
|
32
31
|
counts[:yum_repositories] = repos.yum_type.count
|
@@ -4,4 +4,8 @@ extends "katello/api/v2/common/metadata"
|
|
4
4
|
|
5
5
|
child @collection[:results] => :results do
|
6
6
|
extends "katello/api/v2/package_groups/base"
|
7
|
+
|
8
|
+
if params[:include_filter_ids]
|
9
|
+
node(:filter_ids) { |package_group| package_group.content_view_filters.pluck(:id) }
|
10
|
+
end
|
7
11
|
end
|
@@ -35,7 +35,6 @@ node :content_counts do |repo|
|
|
35
35
|
:package => repo.rpms.count,
|
36
36
|
:package_group => repo.package_groups.count,
|
37
37
|
:erratum => repo.errata.count,
|
38
|
-
:puppet_module => repo.puppet_modules.count,
|
39
38
|
:file => repo.files.count,
|
40
39
|
:deb => repo.debs.count,
|
41
40
|
:module_stream => repo.module_streams.count,
|
@@ -13,7 +13,7 @@ glue(@resource.root) do
|
|
13
13
|
attributes :container_repository_name
|
14
14
|
attributes :download_policy
|
15
15
|
attributes :url
|
16
|
-
attributes :ansible_collection_requirements
|
16
|
+
attributes :ansible_collection_requirements, :ansible_collection_auth_url, :ansible_collection_auth_token
|
17
17
|
attributes :gpg_key_id
|
18
18
|
attributes :ssl_ca_cert_id
|
19
19
|
attributes :ssl_client_cert_id
|
@@ -25,7 +25,29 @@ if @resource.product
|
|
25
25
|
end
|
26
26
|
end
|
27
27
|
|
28
|
+
# For backwards compatibility with the original
|
29
|
+
# ActivationKeys#product_contents
|
30
|
+
|
31
|
+
child :content => :content do
|
32
|
+
attributes :id, :name, :label, :vendor, :content_type, :content_url, :gpg_url
|
33
|
+
end
|
34
|
+
|
28
35
|
child @resource.repositories => :repositories do
|
29
36
|
attributes :id, :name, :arch
|
30
37
|
attributes :minor => :releasever
|
31
38
|
end
|
39
|
+
|
40
|
+
node :override do |pc|
|
41
|
+
pc.override
|
42
|
+
end
|
43
|
+
|
44
|
+
node :overrides do |pc|
|
45
|
+
pc.content_overrides.map do |override|
|
46
|
+
{:name => override.name, :value => override.computed_value}
|
47
|
+
end
|
48
|
+
end
|
49
|
+
|
50
|
+
node :enabled_content_override do |pc|
|
51
|
+
override = pc.enabled_content_override
|
52
|
+
override&.computed_value
|
53
|
+
end
|
@@ -9,7 +9,7 @@
|
|
9
9
|
|
10
10
|
<div class="clear-fix" id="media_selection_section">
|
11
11
|
<div class="form-group ">
|
12
|
-
<label class="col-md-2 control-label" for="use_install_media"
|
12
|
+
<label class="col-md-2 control-label" for="use_install_media"><%= _('Media Selection') %></label>
|
13
13
|
<div class="col-md-4">
|
14
14
|
<label class="radio-inline">
|
15
15
|
<input data-media-selector="true" id="host_use_synced_content" name="media_selector" value="synced_content" type="radio" <%= synced_content_radio %> <%= synced_content_disabled %>/> <%= _('Synced Content') %>
|
data/config/katello.yaml.example
CHANGED
data/config/routes/api/v2.rb
CHANGED
@@ -33,7 +33,7 @@ Katello::Engine.routes.draw do
|
|
33
33
|
api_resources :activation_keys, :only => [:index, :create, :show, :update, :destroy] do
|
34
34
|
get :auto_complete_search, :on => :collection
|
35
35
|
member do
|
36
|
-
match '/product_content' => '
|
36
|
+
match '/product_content' => 'repository_sets#index', :via => :get, :entity => :activation_key
|
37
37
|
match '/content_override' => 'activation_keys#content_override', :via => :put
|
38
38
|
post :copy
|
39
39
|
put :add_subscriptions
|
@@ -74,15 +74,8 @@ Katello::Engine.routes.draw do
|
|
74
74
|
post :copy
|
75
75
|
post :publish
|
76
76
|
put :remove
|
77
|
-
get :available_puppet_modules
|
78
|
-
get :available_puppet_module_names
|
79
77
|
match '/environments/:environment_id' => "content_views#remove_from_environment", :via => :delete
|
80
78
|
end
|
81
|
-
api_resources :content_view_puppet_modules do
|
82
|
-
collection do
|
83
|
-
get :auto_complete_search
|
84
|
-
end
|
85
|
-
end
|
86
79
|
api_resources :filters, :controller => :content_view_filters do
|
87
80
|
collection do
|
88
81
|
get :auto_complete_search
|
@@ -95,7 +88,6 @@ Katello::Engine.routes.draw do
|
|
95
88
|
get :auto_complete_search
|
96
89
|
end
|
97
90
|
end
|
98
|
-
api_resources :puppet_modules, :only => [:index]
|
99
91
|
api_resources :repositories, :only => [:index] do
|
100
92
|
collection do
|
101
93
|
match '/show_all' => "content_view_repositories#show_all", :via => :get
|
@@ -107,21 +99,26 @@ Katello::Engine.routes.draw do
|
|
107
99
|
api_resources :content_view_filters do
|
108
100
|
api_resources :errata, :only => [:index]
|
109
101
|
api_resources :package_groups, :only => [:index]
|
110
|
-
api_resources :rules, :controller => :content_view_filter_rules
|
102
|
+
api_resources :rules, :controller => :content_view_filter_rules do
|
103
|
+
collection do
|
104
|
+
get :auto_complete_search
|
105
|
+
end
|
106
|
+
end
|
111
107
|
collection do
|
112
108
|
get :auto_complete_search
|
113
109
|
end
|
114
110
|
end
|
115
111
|
|
116
|
-
api_resources :content_exports, :only => [] do
|
112
|
+
api_resources :content_exports, :only => [:index] do
|
117
113
|
collection do
|
118
114
|
post :version
|
119
115
|
post :library
|
120
116
|
get :index
|
121
|
-
get :api_status
|
122
117
|
end
|
123
118
|
end
|
124
119
|
|
120
|
+
api_resources :content_imports, :only => [:index]
|
121
|
+
|
125
122
|
api_resources :content_export_incrementals, :only => [] do
|
126
123
|
collection do
|
127
124
|
post :version
|
@@ -197,7 +194,6 @@ Katello::Engine.routes.draw do
|
|
197
194
|
|
198
195
|
api_resources :environments, :only => [:index, :show, :create, :update, :destroy] do
|
199
196
|
api_resources :activation_keys, :only => [:index, :create]
|
200
|
-
api_resources :puppet_modules, :only => [:index]
|
201
197
|
end
|
202
198
|
|
203
199
|
api_resources :errata, :only => [:index, :show] do
|
@@ -297,12 +293,6 @@ Katello::Engine.routes.draw do
|
|
297
293
|
end
|
298
294
|
end
|
299
295
|
end
|
300
|
-
api_resources :puppet_modules, :only => [:index, :show] do
|
301
|
-
collection do
|
302
|
-
get :auto_complete_search
|
303
|
-
get :compare
|
304
|
-
end
|
305
|
-
end
|
306
296
|
|
307
297
|
api_resources :repositories, :only => [:index, :create, :show, :destroy, :update] do
|
308
298
|
collection do
|
@@ -395,7 +385,6 @@ Katello::Engine.routes.draw do
|
|
395
385
|
api_resources :package_groups, :only => [:index, :show]
|
396
386
|
api_resources :files, :only => [:index, :show], :controller => 'file_units'
|
397
387
|
api_resources :errata, :only => [:index, :show], :constraints => {:id => /[0-9a-zA-Z\-\+%_.:]+/}
|
398
|
-
api_resources :puppet_modules, :only => [:index, :show]
|
399
388
|
api_resources :docker_manifests, :only => [:index, :show]
|
400
389
|
api_resources :docker_manifest_lists, :only => [:index, :show]
|
401
390
|
api_resources :docker_tags, :only => [:index, :show]
|
@@ -410,7 +399,6 @@ Katello::Engine.routes.draw do
|
|
410
399
|
member do
|
411
400
|
get :gpg_key_content
|
412
401
|
put :remove_packages, :action => :remove_content
|
413
|
-
put :remove_puppet_modules, :action => :remove_content
|
414
402
|
put :remove_docker_manifests, :action => :remove_content
|
415
403
|
put :remove_content
|
416
404
|
post :sync
|
data/config/routes/overrides.rb
CHANGED
@@ -22,7 +22,6 @@ Foreman::Application.routes.draw do
|
|
22
22
|
match "/api/v2/organizations/:id", via: :delete, to: proc { [404, {}, [override_message]] }
|
23
23
|
|
24
24
|
resources :hosts, :only => [] do
|
25
|
-
get 'puppet_environment_for_content_view', :on => :collection
|
26
25
|
get :content_hosts, :on => :collection
|
27
26
|
end
|
28
27
|
|
@@ -106,7 +105,7 @@ Foreman::Application.routes.draw do
|
|
106
105
|
resources :subscriptions, :only => [:index], :controller => :host_subscriptions do
|
107
106
|
collection do
|
108
107
|
put :auto_attach
|
109
|
-
get :
|
108
|
+
match '/product_content' => 'repository_sets#index', :via => :get, :entity => :host
|
110
109
|
get :available_release_versions
|
111
110
|
put :content_override
|
112
111
|
put :remove_subscriptions
|
@@ -1,5 +1,6 @@
|
|
1
1
|
class UpdateProductsAddOrganization < ActiveRecord::Migration[4.2]
|
2
|
-
class
|
2
|
+
class FakeProduct < ApplicationRecord
|
3
|
+
self.table_name = 'katello_products'
|
3
4
|
belongs_to :provider
|
4
5
|
self.inheritance_column = nil
|
5
6
|
end
|
@@ -7,7 +8,7 @@ class UpdateProductsAddOrganization < ActiveRecord::Migration[4.2]
|
|
7
8
|
def up
|
8
9
|
add_column :katello_products, :organization_id, :integer, :null => true
|
9
10
|
|
10
|
-
|
11
|
+
FakeProduct.all.each do |product|
|
11
12
|
product.organization_id = product.provider.organization_id
|
12
13
|
product.save!
|
13
14
|
end
|
@@ -15,6 +15,8 @@ class AddSortableVersionToPuppetModules < ActiveRecord::Migration[4.2]
|
|
15
15
|
def up
|
16
16
|
add_column :katello_puppet_modules, :sortable_version, :string
|
17
17
|
|
18
|
+
return unless Object.const_defined?('::Katello::PuppetModule')
|
19
|
+
|
18
20
|
Katello::PuppetModule.find_each do |puppet_mod|
|
19
21
|
puppet_mod.update_attribute(:sortable_version, sortable_version(puppet_mod.version))
|
20
22
|
end
|
@@ -46,7 +46,7 @@ class MoveKatelloFieldsFromHostgroups < ActiveRecord::Migration[6.0]
|
|
46
46
|
content_facet.kickstart_repository_id = kickstart_repository_id
|
47
47
|
content_facet.content_view_id = content_view_id
|
48
48
|
content_facet.lifecycle_environment_id = lifecycle_environment_id
|
49
|
-
unless content_facet.save
|
49
|
+
unless content_facet.save
|
50
50
|
Rails.logger.warn("Unable to save content facet hostgroup for #{content_facet.inspect} ")
|
51
51
|
Rails.logger.warn(content_facet.errors.full_messages.join("\n"))
|
52
52
|
end
|
@@ -32,34 +32,28 @@ class DeletePuppetAndOstreeRepos < ActiveRecord::Migration[6.0]
|
|
32
32
|
end
|
33
33
|
|
34
34
|
def up
|
35
|
-
|
36
|
-
|
37
|
-
|
35
|
+
if Katello::Repository.ostree_type.any? || puppet_repositories.any?
|
36
|
+
User.as_anonymous_admin do
|
37
|
+
FakeContentViewPuppetModule.delete_all
|
38
|
+
FakeContentViewPuppetEnvironmentPuppetModule.delete_all
|
39
|
+
FakeRepositoryPuppetModule.delete_all
|
38
40
|
|
39
|
-
|
40
|
-
|
41
|
+
FakeContentViewPuppetEnvironment.delete_all
|
42
|
+
FakePuppetModule.delete_all
|
41
43
|
|
42
|
-
if puppet_repositories.any?
|
43
|
-
User.as_anonymous_admin do
|
44
44
|
::Katello::Repository.delete(puppet_repositories)
|
45
|
-
::Katello::RootRepository.where(content_type: 'puppet').destroy_all
|
46
|
-
end
|
47
|
-
end
|
48
|
-
|
49
|
-
FakeRepositoryOstreeBranch.delete_all
|
50
|
-
FakeOstreeBranch.delete_all
|
51
45
|
|
52
|
-
|
53
|
-
|
46
|
+
FakeRepositoryOstreeBranch.delete_all
|
47
|
+
FakeOstreeBranch.delete_all
|
54
48
|
Katello::Repository.ostree_type.where.not(:library_instance_id => nil, :environment_id => nil).destroy_all #CV LCE repos
|
55
49
|
Katello::Repository.ostree_type.where.not(:library_instance_id => nil).destroy_all # archive repos
|
56
50
|
Katello::Repository.ostree_type.destroy_all #all the rest (should just be library repos)
|
57
|
-
end
|
58
|
-
end
|
59
51
|
|
60
|
-
|
61
|
-
|
62
|
-
|
52
|
+
Katello::ContentViewVersion.where.not(:content_counts => nil).each do |version|
|
53
|
+
version.content_counts.except!('ostree', 'puppet_module')
|
54
|
+
version.save
|
55
|
+
end
|
56
|
+
end
|
63
57
|
end
|
64
58
|
end
|
65
59
|
|