katello 4.14.0 → 4.15.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/common/chosen.jquery.js +3 -3
- data/app/assets/javascripts/katello/common/env_select_scroll.js +3 -3
- data/app/assets/javascripts/katello/common/katello.js +8 -7
- data/app/assets/javascripts/katello/common/katello_object.js +3 -3
- data/app/assets/javascripts/katello/common/menu.js +7 -7
- data/app/assets/javascripts/katello/hosts/host_and_hostgroup_edit.js +6 -6
- data/app/assets/javascripts/katello/locale/bn/katello.js +259 -28
- data/app/assets/javascripts/katello/locale/bn_IN/katello.js +258 -27
- data/app/assets/javascripts/katello/locale/ca/katello.js +258 -27
- data/app/assets/javascripts/katello/locale/cs/katello.js +258 -27
- data/app/assets/javascripts/katello/locale/cs_CZ/katello.js +258 -27
- data/app/assets/javascripts/katello/locale/de/katello.js +259 -28
- data/app/assets/javascripts/katello/locale/de_AT/katello.js +258 -27
- data/app/assets/javascripts/katello/locale/de_DE/katello.js +258 -27
- data/app/assets/javascripts/katello/locale/el/katello.js +258 -27
- data/app/assets/javascripts/katello/locale/en/katello.js +258 -27
- data/app/assets/javascripts/katello/locale/en_GB/katello.js +258 -27
- data/app/assets/javascripts/katello/locale/en_US/katello.js +258 -27
- data/app/assets/javascripts/katello/locale/es/katello.js +259 -28
- data/app/assets/javascripts/katello/locale/et_EE/katello.js +258 -27
- data/app/assets/javascripts/katello/locale/fr/katello.js +259 -28
- data/app/assets/javascripts/katello/locale/gl/katello.js +258 -27
- data/app/assets/javascripts/katello/locale/gu/katello.js +258 -27
- data/app/assets/javascripts/katello/locale/he_IL/katello.js +258 -27
- data/app/assets/javascripts/katello/locale/hi/katello.js +258 -27
- data/app/assets/javascripts/katello/locale/id/katello.js +258 -27
- data/app/assets/javascripts/katello/locale/it/katello.js +259 -28
- data/app/assets/javascripts/katello/locale/ja/katello.js +259 -28
- data/app/assets/javascripts/katello/locale/ka/katello.js +259 -28
- data/app/assets/javascripts/katello/locale/kn/katello.js +258 -27
- data/app/assets/javascripts/katello/locale/ko/katello.js +259 -28
- data/app/assets/javascripts/katello/locale/ml_IN/katello.js +258 -27
- data/app/assets/javascripts/katello/locale/mr/katello.js +258 -27
- data/app/assets/javascripts/katello/locale/nl_NL/katello.js +258 -27
- data/app/assets/javascripts/katello/locale/or/katello.js +258 -27
- data/app/assets/javascripts/katello/locale/pa/katello.js +258 -27
- data/app/assets/javascripts/katello/locale/pl/katello.js +258 -27
- data/app/assets/javascripts/katello/locale/pl_PL/katello.js +258 -27
- data/app/assets/javascripts/katello/locale/pt/katello.js +258 -27
- data/app/assets/javascripts/katello/locale/pt_BR/katello.js +259 -28
- data/app/assets/javascripts/katello/locale/ro/katello.js +258 -27
- data/app/assets/javascripts/katello/locale/ro_RO/katello.js +258 -27
- data/app/assets/javascripts/katello/locale/ru/katello.js +259 -28
- data/app/assets/javascripts/katello/locale/sl/katello.js +258 -27
- data/app/assets/javascripts/katello/locale/sv_SE/katello.js +258 -27
- data/app/assets/javascripts/katello/locale/ta/katello.js +259 -28
- data/app/assets/javascripts/katello/locale/ta_IN/katello.js +258 -27
- data/app/assets/javascripts/katello/locale/te/katello.js +258 -27
- data/app/assets/javascripts/katello/locale/tr/katello.js +258 -27
- data/app/assets/javascripts/katello/locale/vi/katello.js +258 -27
- data/app/assets/javascripts/katello/locale/vi_VN/katello.js +258 -27
- data/app/assets/javascripts/katello/locale/zh/katello.js +258 -27
- data/app/assets/javascripts/katello/locale/zh_CN/katello.js +259 -28
- data/app/assets/javascripts/katello/locale/zh_TW/katello.js +259 -28
- data/app/assets/javascripts/katello/organizations/download_certificate.js +1 -1
- data/app/assets/javascripts/katello/sync_management/sync_management.js +22 -18
- data/app/assets/javascripts/katello/widgets/env_content_view_selector.js +5 -5
- data/app/assets/javascripts/katello/widgets/path_selector.js +6 -6
- data/app/assets/javascripts/katello/widgets/subpanel_new.js +1 -1
- data/app/controllers/katello/api/registry/registry_proxies_controller.rb +7 -7
- data/app/controllers/katello/api/rhsm/candlepin_proxies_controller.rb +6 -1
- data/app/controllers/katello/api/v2/activation_keys_controller.rb +131 -59
- data/app/controllers/katello/api/v2/api_controller.rb +1 -1
- data/app/controllers/katello/api/v2/capsule_content_controller.rb +21 -10
- data/app/controllers/katello/api/v2/content_view_components_controller.rb +1 -1
- data/app/controllers/katello/api/v2/content_view_environments_controller.rb +54 -0
- data/app/controllers/katello/api/v2/content_view_versions_controller.rb +3 -3
- data/app/controllers/katello/api/v2/content_views_controller.rb +1 -1
- data/app/controllers/katello/api/v2/environments_controller.rb +1 -1
- data/app/controllers/katello/api/v2/exports_controller.rb +1 -1
- data/app/controllers/katello/api/v2/host_collections_controller.rb +2 -2
- data/app/controllers/katello/api/v2/host_contents_controller.rb +1 -1
- data/app/controllers/katello/api/v2/host_errata_controller.rb +1 -1
- data/app/controllers/katello/api/v2/host_subscriptions_controller.rb +1 -1
- data/app/controllers/katello/api/v2/hosts_bulk_actions_controller.rb +1 -4
- data/app/controllers/katello/api/v2/organizations_controller.rb +2 -1
- data/app/controllers/katello/api/v2/repositories_controller.rb +3 -2
- data/app/controllers/katello/api/v2/repository_sets_controller.rb +1 -1
- data/app/controllers/katello/concerns/api/v2/hosts_controller_extensions.rb +10 -16
- data/app/controllers/katello/concerns/api/v2/multi_cv_params_handling.rb +24 -0
- data/app/controllers/katello/concerns/authorization/api/v2/content_views_controller.rb +2 -5
- data/app/controllers/katello/concerns/hosts_controller_extensions.rb +1 -1
- data/app/controllers/katello/concerns/registration_commands_controller_extensions.rb +1 -1
- data/app/helpers/katello/concerns/smart_proxy_helper_extensions.rb +5 -5
- data/app/helpers/katello/hosts_and_hostgroups_helper.rb +2 -2
- data/app/helpers/katello/katello_url_helper.rb +1 -1
- data/app/lib/actions/candlepin/product/content_create.rb +12 -1
- data/app/lib/actions/candlepin/product/content_update.rb +21 -4
- data/app/lib/actions/katello/activation_key/reassign.rb +4 -3
- data/app/lib/actions/katello/capsule_content/sync_capsule.rb +8 -3
- data/app/lib/actions/katello/capsule_content/update_content_counts.rb +21 -3
- data/app/lib/actions/katello/cdn_configuration/update.rb +1 -1
- data/app/lib/actions/katello/content_view/capsule_sync.rb +17 -1
- data/app/lib/actions/katello/content_view/incremental_updates.rb +1 -1
- data/app/lib/actions/katello/content_view/presenters/incremental_updates_presenter.rb +1 -1
- data/app/lib/actions/katello/content_view/remove.rb +8 -12
- data/app/lib/actions/katello/content_view_version/import.rb +1 -1
- data/app/lib/actions/katello/content_view_version/incremental_update.rb +2 -2
- data/app/lib/actions/katello/flatpak/scan_remote.rb +62 -0
- data/app/lib/actions/katello/host/hypervisors.rb +1 -1
- data/app/lib/actions/katello/product/content_create.rb +28 -19
- data/app/lib/actions/katello/product/content_destroy.rb +6 -5
- data/app/lib/actions/katello/product/destroy.rb +1 -1
- data/app/lib/actions/katello/repository/clone_contents.rb +14 -0
- data/app/lib/actions/katello/repository/create.rb +24 -17
- data/app/lib/actions/katello/repository/create_container_push_root.rb +44 -0
- data/app/lib/actions/katello/repository/create_root.rb +5 -14
- data/app/lib/actions/katello/repository/destroy.rb +3 -3
- data/app/lib/actions/katello/repository/discover.rb +1 -1
- data/app/lib/actions/katello/repository/finish_upload.rb +13 -0
- data/app/lib/actions/katello/repository/import_upload.rb +1 -1
- data/app/lib/actions/katello/repository/sync.rb +16 -0
- data/app/lib/actions/katello/repository/update.rb +11 -20
- data/app/lib/actions/katello/repository/upload_files.rb +1 -1
- data/app/lib/actions/katello/repository_set/enable_repository.rb +1 -1
- data/app/lib/actions/katello/repository_set/scan_cdn.rb +1 -1
- data/app/lib/actions/katello/upstream_subscriptions/bind_entitlement.rb +1 -1
- data/app/lib/actions/pulp3/capsule_content/sync.rb +1 -1
- data/app/lib/actions/pulp3/content_view/delete_repository_references.rb +6 -2
- data/app/lib/actions/pulp3/orchestration/content_view_version/export_library.rb +1 -1
- data/app/lib/actions/pulp3/orchestration/repository/create.rb +6 -1
- data/app/lib/actions/pulp3/orchestration/repository/trigger_update_repo_cert_guard.rb +1 -1
- data/app/lib/actions/pulp3/repository/initialize.rb +17 -0
- data/app/lib/actions/pulp3/repository/refresh_distribution.rb +1 -1
- data/app/lib/katello/api/constraints/register_with_activation_key_constraint.rb +11 -0
- data/app/lib/katello/concerns/base_template_scope_extensions.rb +1 -1
- data/app/lib/katello/http_resource.rb +6 -6
- data/app/lib/katello/messaging/stomp_connection.rb +4 -4
- data/app/lib/katello/resources/candlepin/activation_key.rb +1 -1
- data/app/lib/katello/resources/candlepin/owner.rb +1 -1
- data/app/lib/katello/resources/candlepin/product.rb +1 -1
- data/app/lib/katello/resources/candlepin.rb +1 -1
- data/app/lib/katello/resources/cdn/katello_cdn.rb +3 -3
- data/app/lib/katello/resources/cdn.rb +1 -1
- data/app/lib/katello/resources/discovery/container.rb +5 -3
- data/app/lib/katello/resources/discovery/yum.rb +3 -1
- data/app/lib/katello/resources/registry.rb +0 -3
- data/app/lib/katello/util/candlepin_repository_checker.rb +2 -2
- data/app/lib/katello/util/cveak_migrator.rb +38 -0
- data/app/lib/katello/util/deb.rb +9 -0
- data/app/lib/katello/util/deduplication_migrator.rb +8 -8
- data/app/lib/katello/util/model.rb +2 -2
- data/app/lib/katello/util/search.rb +5 -5
- data/app/lib/katello/util/task_status.rb +19 -19
- data/app/lib/katello/util/url_matcher.rb +3 -3
- data/app/lib/katello/validators/content_view_environment_org_validator.rb +2 -1
- data/app/lib/katello/validators/katello_url_format_validator.rb +2 -2
- data/app/mailers/katello/errata_mailer.rb +1 -4
- data/app/models/katello/activation_key.rb +123 -27
- data/app/models/katello/alternate_content_source.rb +5 -5
- data/app/models/katello/authorization/activation_key.rb +1 -1
- data/app/models/katello/authorization/content_view_environment.rb +7 -0
- data/app/models/katello/cdn_configuration.rb +1 -1
- data/app/models/katello/concerns/content_facet_host_extensions.rb +24 -2
- data/app/models/katello/concerns/host_managed_extensions.rb +29 -22
- data/app/models/katello/concerns/organization_extensions.rb +4 -4
- data/app/models/katello/concerns/redhat_extensions.rb +1 -1
- data/app/models/katello/concerns/smart_proxy_extensions.rb +84 -39
- data/app/models/katello/content.rb +3 -3
- data/app/models/katello/content_view.rb +15 -18
- data/app/models/katello/content_view_environment.rb +56 -15
- data/app/models/katello/content_view_environment_activation_key.rb +20 -0
- data/app/models/katello/content_view_erratum_filter_rule.rb +1 -1
- data/app/models/katello/content_view_filter.rb +2 -2
- data/app/models/katello/content_view_history.rb +1 -1
- data/app/models/katello/content_view_repository.rb +1 -1
- data/app/models/katello/content_view_version.rb +3 -3
- data/app/models/katello/content_view_version_export_history.rb +2 -2
- data/app/models/katello/content_view_version_import_history.rb +1 -1
- data/app/models/katello/events/delete_latest_content_view_version.rb +1 -1
- data/app/models/katello/flatpak_remote.rb +11 -0
- data/app/models/katello/flatpak_remote_repository.rb +12 -0
- data/app/models/katello/flatpak_remote_repository_manifest.rb +10 -0
- data/app/models/katello/glue/candlepin/activation_key.rb +1 -1
- data/app/models/katello/glue/candlepin/candlepin_object.rb +1 -1
- data/app/models/katello/glue/candlepin/pool.rb +1 -1
- data/app/models/katello/glue/pulp/repos.rb +1 -1
- data/app/models/katello/host/content_facet.rb +33 -17
- data/app/models/katello/host/info_provider.rb +2 -4
- data/app/models/katello/host/subscription_facet.rb +3 -3
- data/app/models/katello/host_available_module_stream.rb +1 -1
- data/app/models/katello/installed_product.rb +2 -2
- data/app/models/katello/kt_environment.rb +11 -6
- data/app/models/katello/ping.rb +2 -3
- data/app/models/katello/repository.rb +40 -6
- data/app/models/katello/rhel_lifecycle_status.rb +10 -10
- data/app/models/katello/root_repository.rb +14 -18
- data/app/models/katello/task_status.rb +1 -1
- data/app/models/katello/upstream_pool.rb +2 -2
- data/app/presenters/katello/product_content_presenter.rb +2 -2
- data/app/presenters/katello/repository_presenter.rb +3 -3
- data/app/presenters/katello/sync_status_presenter.rb +3 -3
- data/app/services/cert/certs.rb +6 -2
- data/app/services/katello/candlepin_event_listener.rb +1 -1
- data/app/services/katello/event_monitor/poller_thread.rb +1 -1
- data/app/services/katello/event_queue.rb +1 -1
- data/app/services/katello/product_content_finder.rb +10 -10
- data/app/services/katello/product_content_importer.rb +1 -1
- data/app/services/katello/pulp3/alternate_content_source.rb +2 -2
- data/app/services/katello/pulp3/ansible_collection.rb +1 -1
- data/app/services/katello/pulp3/api/apt.rb +4 -0
- data/app/services/katello/pulp3/content.rb +1 -0
- data/app/services/katello/pulp3/content_view_version/export.rb +3 -10
- data/app/services/katello/pulp3/content_view_version/export_validator.rb +1 -1
- data/app/services/katello/pulp3/content_view_version/import.rb +2 -2
- data/app/services/katello/pulp3/content_view_version/import_gpg_keys.rb +1 -1
- data/app/services/katello/pulp3/content_view_version/importable_products.rb +2 -2
- data/app/services/katello/pulp3/content_view_version/importable_repositories.rb +4 -4
- data/app/services/katello/pulp3/content_view_version/metadata_generator.rb +2 -2
- data/app/services/katello/pulp3/deb.rb +35 -1
- data/app/services/katello/pulp3/docker_manifest.rb +1 -1
- data/app/services/katello/pulp3/docker_manifest_list.rb +6 -2
- data/app/services/katello/pulp3/docker_tag.rb +1 -1
- data/app/services/katello/pulp3/erratum.rb +2 -2
- data/app/services/katello/pulp3/file_unit.rb +1 -1
- data/app/services/katello/pulp3/generic_content_unit.rb +1 -1
- data/app/services/katello/pulp3/module_stream.rb +2 -2
- data/app/services/katello/pulp3/repository/ansible_collection.rb +1 -1
- data/app/services/katello/pulp3/repository/apt.rb +22 -16
- data/app/services/katello/pulp3/repository/docker.rb +2 -2
- data/app/services/katello/pulp3/repository/file.rb +1 -1
- data/app/services/katello/pulp3/repository/generic.rb +1 -1
- data/app/services/katello/pulp3/repository/yum.rb +7 -7
- data/app/services/katello/pulp3/repository.rb +15 -9
- data/app/services/katello/pulp3/repository_mirror.rb +3 -3
- data/app/services/katello/registration_manager.rb +23 -6
- data/app/services/katello/repository_type.rb +3 -3
- data/app/services/katello/smart_proxy_helper.rb +3 -3
- data/app/services/katello/ui_notifications/content_view/delete_latest_version_failure.rb +1 -1
- data/app/services/katello/ui_notifications/subscriptions/expire_soon.rb +3 -3
- data/app/services/katello/ui_notifications/subscriptions/manifest_expire_soon_warning.rb +3 -3
- data/app/services/katello/ui_notifications/task_notification.rb +2 -2
- data/app/services/katello/upstream_connection_checker.rb +1 -1
- data/app/views/foreman/job_templates/install_errata_by_search_query.erb +1 -1
- data/app/views/foreman/job_templates/install_errata_by_search_query_-_katello_ansible_default.erb +1 -1
- data/app/views/katello/api/v2/activation_keys/base.json.rabl +43 -8
- data/app/views/katello/api/v2/alternate_content_sources/base.json.rabl +1 -1
- data/app/views/katello/api/v2/capsule_content/sync_status.json.rabl +5 -5
- data/app/views/katello/api/v2/common/_metadata.json.rabl +1 -1
- data/app/views/katello/api/v2/content_credentials/show.json.rabl +1 -1
- data/app/views/katello/api/v2/content_facet/base.json.rabl +15 -6
- data/app/views/katello/api/v2/content_facet/show.json.rabl +1 -1
- data/app/views/katello/api/v2/content_view_environments/index.json.rabl +7 -0
- data/app/views/katello/api/v2/content_view_environments/show.json.rabl +33 -0
- data/app/views/katello/api/v2/content_view_filter_rules/show.json.rabl +1 -1
- data/app/views/katello/api/v2/content_view_filters/show.json.rabl +1 -1
- data/app/views/katello/api/v2/content_view_versions/base.json.rabl +3 -3
- data/app/views/katello/api/v2/content_views/base.json.rabl +4 -3
- data/app/views/katello/api/v2/content_views/show.json.rabl +1 -2
- data/app/views/katello/api/v2/debs/backend.json.rabl +7 -0
- data/app/views/katello/api/v2/debs/base.json.rabl +4 -0
- data/app/views/katello/api/v2/debs/show.json.rabl +2 -0
- data/app/views/katello/api/v2/docker_manifest_lists/show.json.rabl +1 -0
- data/app/views/katello/api/v2/docker_tags/_base.json.rabl +2 -2
- data/app/views/katello/api/v2/environments/show.json.rabl +4 -4
- data/app/views/katello/api/v2/gpg_keys/show.json.rabl +1 -1
- data/app/views/katello/api/v2/host_collections/base.json.rabl +1 -1
- data/app/views/katello/api/v2/hosts/base.json.rabl +2 -2
- data/app/views/katello/api/v2/package_groups/base.json.rabl +2 -2
- data/app/views/katello/api/v2/products/show.json.rabl +2 -2
- data/app/views/katello/api/v2/repositories/show.json.rabl +1 -1
- data/app/views/katello/api/v2/repository_sets/show.json.rabl +1 -1
- data/app/views/katello/api/v2/subscriptions/base.json.rabl +1 -1
- data/app/views/katello/api/v2/subscriptions/show.json.rabl +3 -3
- data/app/views/katello/api/v2/sync_plans/show.json.rabl +1 -1
- data/app/views/katello/sync_management/index.html.erb +2 -2
- data/config/initializers/inflections.rb +11 -0
- data/config/katello.yaml.example +4 -10
- data/config/routes/api/registry.rb +0 -2
- data/config/routes/api/rhsm.rb +1 -4
- data/config/routes/api/v2.rb +2 -3
- data/db/migrate/20140716211853_repo_rename_feed_to_url.rb +1 -1
- data/db/migrate/20141003210742_add_docker_container_registry_url_to_providers.rb +1 -1
- data/db/migrate/20150224083608_remove_docker_registry_url.rb +1 -1
- data/db/migrate/20160808002834_add_files.rb +1 -1
- data/db/migrate/20161014133811_move_content_view_version_description_to_histories.rb +1 -1
- data/db/migrate/20200818192230_update_system_purpose_status.rb +1 -1
- data/db/migrate/20201012172713_remove_gpg_key_perms.rb +1 -1
- data/db/migrate/20210322142311_add_auth_url_token_to_root_repositories.rb +1 -1
- data/db/migrate/20211220185935_clean_duplicate_content_units.rb +2 -2
- data/db/migrate/20230717150442_change_change_content_source_job_template_name.rb +1 -1
- data/db/migrate/20240207191223_remove_entitlement_mode_host_statuses.rb +1 -1
- data/db/migrate/20240508100434_add_content_id_to_katello_repository.rb +5 -0
- data/db/migrate/20240730163043_add_content_view_environment_activation_key.rb +87 -0
- data/db/migrate/20240806130902_add_more_deb_fields.rb +15 -0
- data/db/migrate/20240903194428_add_priority_to_content_view_environment_activation_key.rb +5 -0
- data/db/migrate/20241007200316_add_fields_to_katello_docker_manifest_list.rb +8 -0
- data/db/migrate/20241007212705_add_bootc_facts_to_content_facet.rb +27 -0
- data/db/migrate/20241025151105_remove_pulp3_migrated_hrefs_from_content_tables.rb +10 -0
- data/db/migrate/20241030181402_create_katello_flatpak_tables.rb +41 -0
- data/db/seeds.d/106-mail_notifications.rb +9 -9
- data/db/seeds.d/108-subcription-bookmarks.rb +1 -1
- data/db/seeds.d/109-katello-notification-blueprints.rb +21 -21
- data/db/seeds.d/110-content-view-autopublish.rb +5 -5
- data/db/seeds.d/111-container-image-bookmarks.rb +1 -1
- data/db/seeds.d/111-upgrade_tasks.rb +1 -1
- data/engines/bastion/app/assets/javascripts/bastion/i18n/i18n.module.js +4 -0
- data/engines/bastion/lib/bastion/engine.rb +1 -1
- data/engines/bastion/lib/bastion.rb +1 -1
- data/engines/bastion/vendor/assets/javascripts/bastion/angular-gettext/angular-gettext.js +5 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/activation-key-repository-sets.controller.js +16 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/views/activation-key-info.html +29 -15
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/views/activation-key-repository-sets.html +13 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/views/activation-keys.html +2 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/bulk/content-hosts-bulk-host-collections-modal.controller.js +2 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/bulk/views/content-hosts-bulk-host-collections-modal.html +4 -4
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content-host-modal-helper.service.js +0 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/debs/debs.routes.js +9 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/debs/details/views/deb-dependencies.html +54 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/debs/details/views/deb-info.html +13 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/debs/details/views/deb.html +8 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/errata/views/apply-errata-confirm.html +1 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/details/views/repository-info.html +4 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/new/views/new-repository.html +11 -0
- data/engines/bastion_katello/app/assets/stylesheets/bastion_katello/activation_keys.scss +1 -1
- data/engines/bastion_katello/lib/bastion_katello/engine.rb +1 -1
- data/lib/katello/engine.rb +17 -15
- data/lib/katello/permission_creator.rb +51 -49
- data/lib/katello/permissions/host_permissions.rb +4 -4
- data/lib/katello/permissions/organization_permissions.rb +4 -4
- data/lib/katello/permissions/registry_permissions.rb +1 -1
- data/lib/katello/permissions/roles_permissions.rb +1 -1
- data/lib/katello/permissions/user_permissions.rb +1 -1
- data/lib/katello/plugin.rb +14 -8
- data/lib/katello/repository_types/docker.rb +4 -2
- data/lib/katello/repository_types/ostree.rb +5 -3
- data/lib/katello/repository_types/python.rb +1 -1
- data/lib/katello/repository_types/yum.rb +2 -1
- data/lib/katello/scheduled_jobs.rb +1 -1
- data/lib/katello/tasks/migrate_structure_content_for_deb.rake +105 -0
- data/lib/katello/tasks/receptor/extract_orgs.rake +1 -1
- data/lib/katello/tasks/reimport.rake +1 -1
- data/lib/katello/tasks/repository.rake +19 -9
- data/lib/katello/tasks/upgrades/4.1/reupdate_content_import_export_perms.rake +1 -1
- data/lib/katello/tasks/upgrades/4.3/fix_url_auth.rake +1 -1
- data/lib/katello/version.rb +1 -1
- data/locale/action_names.rb +92 -1
- data/locale/bn/LC_MESSAGES/katello.mo +0 -0
- data/locale/bn/katello.po +259 -28
- data/locale/bn_IN/katello.po +258 -27
- data/locale/ca/LC_MESSAGES/katello.mo +0 -0
- data/locale/ca/katello.po +258 -27
- data/locale/cs/katello.po +258 -30
- data/locale/cs_CZ/LC_MESSAGES/katello.mo +0 -0
- data/locale/cs_CZ/katello.po +258 -27
- data/locale/de/LC_MESSAGES/katello.mo +0 -0
- data/locale/de/katello.po +259 -28
- data/locale/de_AT/katello.po +258 -27
- data/locale/de_DE/katello.po +258 -27
- data/locale/el/LC_MESSAGES/katello.mo +0 -0
- data/locale/el/katello.po +258 -27
- data/locale/en/katello.po +258 -27
- data/locale/en_GB/katello.po +258 -27
- data/locale/en_US/katello.po +258 -27
- data/locale/es/LC_MESSAGES/katello.mo +0 -0
- data/locale/es/katello.po +259 -28
- data/locale/et_EE/katello.po +258 -27
- data/locale/fr/LC_MESSAGES/katello.mo +0 -0
- data/locale/fr/katello.po +259 -28
- data/locale/gl/katello.po +258 -27
- data/locale/gu/katello.po +258 -27
- data/locale/he_IL/katello.po +258 -27
- data/locale/hi/katello.po +258 -27
- data/locale/id/katello.po +258 -27
- data/locale/it/LC_MESSAGES/katello.mo +0 -0
- data/locale/it/katello.po +259 -28
- data/locale/ja/LC_MESSAGES/katello.mo +0 -0
- data/locale/ja/katello.po +259 -28
- data/locale/ka/LC_MESSAGES/katello.mo +0 -0
- data/locale/ka/katello.po +259 -28
- data/locale/katello.pot +1041 -696
- data/locale/kn/katello.po +258 -27
- data/locale/ko/LC_MESSAGES/katello.mo +0 -0
- data/locale/ko/katello.po +259 -28
- data/locale/ml_IN/katello.po +258 -27
- data/locale/mr/katello.po +258 -27
- data/locale/nl_NL/LC_MESSAGES/katello.mo +0 -0
- data/locale/nl_NL/katello.po +258 -27
- data/locale/or/katello.po +258 -27
- data/locale/pa/katello.po +258 -27
- data/locale/pl/LC_MESSAGES/katello.mo +0 -0
- data/locale/pl/katello.po +258 -27
- data/locale/pl_PL/katello.po +258 -27
- data/locale/pt/katello.po +258 -27
- data/locale/pt_BR/LC_MESSAGES/katello.mo +0 -0
- data/locale/pt_BR/katello.po +259 -28
- data/locale/ro/katello.po +258 -27
- data/locale/ro_RO/katello.po +258 -27
- data/locale/ru/LC_MESSAGES/katello.mo +0 -0
- data/locale/ru/katello.po +259 -28
- data/locale/sl/katello.po +258 -27
- data/locale/sv_SE/katello.po +258 -27
- data/locale/ta/LC_MESSAGES/katello.mo +0 -0
- data/locale/ta/katello.po +259 -28
- data/locale/ta_IN/katello.po +258 -27
- data/locale/te/katello.po +258 -27
- data/locale/tr/katello.po +258 -27
- data/locale/vi/katello.po +258 -27
- data/locale/vi_VN/katello.po +258 -27
- data/locale/zh/katello.po +258 -27
- data/locale/zh_CN/LC_MESSAGES/katello.mo +0 -0
- data/locale/zh_CN/katello.po +259 -28
- data/locale/zh_TW/LC_MESSAGES/katello.mo +0 -0
- data/locale/zh_TW/katello.po +259 -28
- data/vendor/assets/javascripts/katello/chosen.jquery.js +2 -2
- data/vendor/assets/javascripts/katello/jquery.ba-bbq.js +1 -1
- data/vendor/assets/javascripts/katello/jquery.hoverIntent.js +2 -2
- data/webpack/ForemanColumnExtensions/index.js +1 -1
- data/webpack/components/extensions/HostDetails/Cards/ContentViewDetailsCard/ContentViewDetailsCard.js +113 -86
- data/webpack/components/extensions/HostDetails/DetailsTabCards/HwPropertiesCard.js +7 -2
- data/webpack/components/extensions/HostDetails/Tabs/DebsTab/DebsTab.js +31 -4
- data/webpack/components/extensions/HostDetails/Tabs/RepositorySetsTab/RepositorySetsTab.js +1 -1
- data/webpack/components/extensions/RegistrationCommands/fields/ActivationKeys.js +1 -7
- data/webpack/components/extensions/RegistrationCommands/helpers.js +15 -0
- data/webpack/components/extensions/RegistrationCommands/index.js +3 -9
- data/webpack/global_index.js +11 -4
- data/webpack/redux/actions/RedHatRepositories/helpers.js +8 -6
- data/webpack/scenes/ActivationKeys/Details/ActivationKeyDetails.js +4 -0
- data/webpack/scenes/ActivationKeys/Details/components/CVEDetailsCard.js +37 -0
- data/webpack/scenes/ContentViews/Details/Versions/VersionDetails/ContentViewVersionDetailConfig.js +1 -2
- data/webpack/scenes/Hosts/ChangeContentSource/helpers.js +2 -8
- data/webpack/scenes/SmartProxy/ExpandableCvDetails.js +22 -2
- data/webpack/scenes/SmartProxy/ExpandedSmartProxyRepositories.js +39 -20
- data/webpack/scenes/SmartProxy/SmartProxyContentActions.js +2 -1
- data/webpack/scenes/SmartProxy/SmartProxyExpandableTable.js +6 -4
- data/webpack/scenes/SmartProxy/__tests__/SmartProxyContentTest.js +62 -0
- data/webpack/scenes/Subscriptions/Manifest/ManageManifestModal.js +6 -4
- data/webpack/scenes/Subscriptions/SubscriptionsPage.js +1 -1
- metadata +86 -76
- data/app/lib/katello/api/constraints/activation_key_constraint.rb +0 -7
- /data/app/lib/katello/{api → routing}/mapper_extensions.rb +0 -0
@@ -92,7 +92,7 @@ module Katello
|
|
92
92
|
def distribution_options(path, options = {})
|
93
93
|
ret = {
|
94
94
|
base_path: path,
|
95
|
-
name: "#{backend_object_name}"
|
95
|
+
name: "#{backend_object_name}",
|
96
96
|
}
|
97
97
|
ret[:content_guard] = repo.unprotected ? nil : content_guard_href
|
98
98
|
ret[:publication] = options[:publication] if options.key? :publication
|
@@ -145,7 +145,7 @@ module Katello
|
|
145
145
|
connect_timeout: Setting[:sync_connect_timeout_v2],
|
146
146
|
sock_connect_timeout: Setting[:sync_sock_connect_timeout],
|
147
147
|
sock_read_timeout: Setting[:sync_sock_read_timeout],
|
148
|
-
rate_limit: Setting[:download_rate_limit]
|
148
|
+
rate_limit: Setting[:download_rate_limit],
|
149
149
|
}
|
150
150
|
remote_options.merge!({download_concurrency: repo.download_concurrency}) if repo.download_concurrency
|
151
151
|
remote_options.merge!(ssl_remote_options)
|
@@ -157,7 +157,7 @@ module Katello
|
|
157
157
|
client_cert: ueber_cert[:cert],
|
158
158
|
client_key: ueber_cert[:key],
|
159
159
|
ca_cert: ::Cert::Certs.ca_cert,
|
160
|
-
tls_validation: true
|
160
|
+
tls_validation: true,
|
161
161
|
}
|
162
162
|
end
|
163
163
|
|
@@ -154,19 +154,24 @@ module Katello
|
|
154
154
|
end
|
155
155
|
end
|
156
156
|
|
157
|
+
# rubocop:disable Metrics/MethodLength
|
157
158
|
def register_host(host, consumer_params, content_view_environments, activation_keys = [])
|
158
159
|
new_host = host.new_record?
|
159
160
|
unless new_host
|
160
161
|
host.save!
|
161
162
|
# Keep the kickstart repository ID so the host's Medium isn't unset
|
162
163
|
# Important for registering a host during provisioning
|
163
|
-
|
164
|
+
begin
|
165
|
+
unregister_host(host, :unregistering => true, :keep_kickstart_repository => true)
|
166
|
+
rescue RestClient::Gone
|
167
|
+
Rails.logger.debug("Host %s has been removed in preparation for reregistration" % host&.name)
|
168
|
+
end
|
164
169
|
host.reload
|
165
170
|
end
|
166
171
|
|
167
172
|
if activation_keys.present?
|
168
173
|
if content_view_environments.blank?
|
169
|
-
content_view_environments =
|
174
|
+
content_view_environments = lookup_content_view_environments(activation_keys)
|
170
175
|
end
|
171
176
|
set_host_collections(host, activation_keys)
|
172
177
|
end
|
@@ -194,6 +199,7 @@ module Katello
|
|
194
199
|
finalize_registration(host)
|
195
200
|
end
|
196
201
|
end
|
202
|
+
# rubocop:enable Metrics/MethodLength
|
197
203
|
|
198
204
|
def check_registration_services
|
199
205
|
ping_results = {}
|
@@ -246,7 +252,7 @@ module Katello
|
|
246
252
|
host.subscription_facet.save!
|
247
253
|
host.refresh_statuses([
|
248
254
|
::Katello::ErrataStatus,
|
249
|
-
::Katello::RhelLifecycleStatus
|
255
|
+
::Katello::RhelLifecycleStatus,
|
250
256
|
])
|
251
257
|
end
|
252
258
|
|
@@ -264,12 +270,23 @@ module Katello
|
|
264
270
|
host.host_collection_ids = host_collection_ids
|
265
271
|
end
|
266
272
|
|
267
|
-
def
|
273
|
+
def lookup_content_view_environments(activation_keys)
|
274
|
+
# If the setting is on, we combine all CVEs from all AKs
|
275
|
+
if Setting['allow_multiple_content_views']
|
276
|
+
cves = activation_keys.map do |act_key|
|
277
|
+
act_key.content_view_environments
|
278
|
+
end
|
279
|
+
cves = cves.flatten.uniq
|
280
|
+
fail _('At least one activation key must have a lifecycle environment and content view assigned to it') if cves.blank?
|
281
|
+
return cves
|
282
|
+
end
|
283
|
+
|
284
|
+
# If the setting is off, we stick with the previous behavior (the last AK with a valid cv/lce wins).
|
268
285
|
activation_key = activation_keys.reverse.detect do |act_key|
|
269
|
-
act_key.
|
286
|
+
act_key.content_view_environments.any?
|
270
287
|
end
|
271
288
|
if activation_key
|
272
|
-
::Katello::ContentViewEnvironment.where(:content_view_id => activation_key.content_view, :environment_id => activation_key.environment)
|
289
|
+
::Katello::ContentViewEnvironment.where(:content_view_id => activation_key.content_view, :environment_id => activation_key.environment)
|
273
290
|
else
|
274
291
|
fail _('At least one activation key must have a lifecycle environment and content view assigned to it')
|
275
292
|
end
|
@@ -123,7 +123,7 @@ module Katello
|
|
123
123
|
:generic_remote_options => translated_generic_remote_options,
|
124
124
|
:import_attributes => translated_import_attributes,
|
125
125
|
:url_description => _(@url_description),
|
126
|
-
:content_types => content_types.as_json
|
126
|
+
:content_types => content_types.as_json,
|
127
127
|
}
|
128
128
|
end
|
129
129
|
|
@@ -170,7 +170,7 @@ module Katello
|
|
170
170
|
generic: false,
|
171
171
|
removable: removable,
|
172
172
|
uploadable: uploadable,
|
173
|
-
indexed: index
|
173
|
+
indexed: index,
|
174
174
|
}
|
175
175
|
end
|
176
176
|
|
@@ -220,7 +220,7 @@ module Katello
|
|
220
220
|
:generic => true,
|
221
221
|
:pluralized_label => content_type.pluralize,
|
222
222
|
:pluralized_name => pluralized_name,
|
223
|
-
:details_columns => details_columns
|
223
|
+
:details_columns => details_columns,
|
224
224
|
}
|
225
225
|
)
|
226
226
|
end
|
@@ -47,9 +47,9 @@ module Katello
|
|
47
47
|
|
48
48
|
def repositories_available_to_capsule(environments = nil, content_view = nil)
|
49
49
|
environments = @smart_proxy.lifecycle_environments if environments.nil?
|
50
|
-
|
51
|
-
|
52
|
-
|
50
|
+
repos = Katello::Repository.in_environment(environments)
|
51
|
+
repos = repos.in_content_views([content_view]) if content_view
|
52
|
+
repos.smart_proxy_syncable
|
53
53
|
end
|
54
54
|
|
55
55
|
def unsyncable_content_types
|
@@ -15,7 +15,7 @@ foreign_input_sets:
|
|
15
15
|
exclude: action,package
|
16
16
|
%>
|
17
17
|
|
18
|
-
<% advisory_ids = @host.advisory_ids(search: input("Errata search query")) -%>
|
18
|
+
<% advisory_ids = @host.advisory_ids(search: input("Errata search query"), check_installable_for_host: false) -%>
|
19
19
|
<% render_error(N_("No errata matching given search query")) if !input("Errata search query").blank? && advisory_ids.blank? -%>
|
20
20
|
# RESOLVED_ERRATA_IDS=<%= advisory_ids.join(',') %>
|
21
21
|
|
data/app/views/foreman/job_templates/install_errata_by_search_query_-_katello_ansible_default.erb
CHANGED
@@ -12,7 +12,7 @@ template_inputs:
|
|
12
12
|
required: false
|
13
13
|
%>
|
14
14
|
|
15
|
-
<% advisory_ids = @host.advisory_ids(search: input("Errata search query")) -%>
|
15
|
+
<% advisory_ids = @host.advisory_ids(search: input("Errata search query"), check_installable_for_host: false) -%>
|
16
16
|
<% render_error(N_("No errata matching given search query")) if !input("Errata search query").blank? && advisory_ids.blank? -%>
|
17
17
|
# RESOLVED_ERRATA_IDS=<%= advisory_ids.join(',') %>
|
18
18
|
|
@@ -1,18 +1,53 @@
|
|
1
1
|
extends 'katello/api/v2/common/org_reference'
|
2
2
|
extends 'katello/api/v2/common/timestamps'
|
3
3
|
|
4
|
-
attributes :id, :name, :description, :unlimited_hosts, :auto_attach
|
4
|
+
attributes :id, :name, :description, :unlimited_hosts, :auto_attach, :content_view_environment_labels
|
5
5
|
|
6
|
-
|
6
|
+
node :multi_content_view_environment do |ak|
|
7
|
+
ak.multi_content_view_environment?
|
8
|
+
end
|
7
9
|
|
8
|
-
child :
|
9
|
-
|
10
|
+
child :content_view_environments => :content_view_environments do
|
11
|
+
node :content_view do |cve|
|
12
|
+
{
|
13
|
+
id: cve.content_view&.id,
|
14
|
+
name: cve.content_view&.name,
|
15
|
+
composite: cve.content_view&.composite,
|
16
|
+
content_view_version: cve.content_view_version&.version,
|
17
|
+
content_view_version_id: cve.content_view_version&.id,
|
18
|
+
content_view_version_latest: cve.content_view_version&.latest?,
|
19
|
+
content_view_default: cve.content_view&.default?,
|
20
|
+
content_view_environment_id: cve.id,
|
21
|
+
}
|
22
|
+
end
|
23
|
+
node :lifecycle_environment do |cve|
|
24
|
+
{
|
25
|
+
id: cve.lifecycle_environment&.id,
|
26
|
+
name: cve.lifecycle_environment&.name,
|
27
|
+
lifecycle_environment_library: cve.lifecycle_environment&.library?,
|
28
|
+
}
|
29
|
+
end
|
30
|
+
node :label do |cve|
|
31
|
+
cve.label
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
# single cv/lce for backward compatibility
|
36
|
+
node :content_view_id do |ak|
|
37
|
+
ak.single_content_view&.id
|
38
|
+
end
|
39
|
+
|
40
|
+
node :content_view do |ak|
|
41
|
+
ak.single_content_view&.slice(:id, :name)
|
42
|
+
end
|
43
|
+
|
44
|
+
node :environment_id do |ak|
|
45
|
+
ak.single_lifecycle_environment&.id
|
10
46
|
end
|
11
47
|
|
12
|
-
|
13
|
-
|
48
|
+
node :environment do |ak|
|
49
|
+
ak.single_lifecycle_environment&.slice(:id, :name)
|
14
50
|
end
|
15
|
-
attributes :environment_id
|
16
51
|
|
17
52
|
attributes :usage_count, :user_id, :max_hosts, :system_template_id, :release_version, :purpose_usage, :purpose_role
|
18
53
|
|
@@ -24,7 +59,7 @@ node :permissions do |activation_key|
|
|
24
59
|
{
|
25
60
|
:view_activation_keys => activation_key.readable?,
|
26
61
|
:edit_activation_keys => activation_key.editable?,
|
27
|
-
:destroy_activation_keys => activation_key.deletable
|
62
|
+
:destroy_activation_keys => activation_key.deletable?,
|
28
63
|
}
|
29
64
|
end
|
30
65
|
|
@@ -33,7 +33,7 @@ if ::Foreman::Cast.to_bool(params.fetch(:include_permissions, false))
|
|
33
33
|
{
|
34
34
|
:view_alternate_content_sources => alternate_content_source.readable?,
|
35
35
|
:edit_alternate_content_sources => alternate_content_source.editable?,
|
36
|
-
:destroy_alternate_content_sources => alternate_content_source.deletable
|
36
|
+
:destroy_alternate_content_sources => alternate_content_source.deletable?,
|
37
37
|
}
|
38
38
|
end
|
39
39
|
end
|
@@ -45,7 +45,7 @@ child @lifecycle_environments => :lifecycle_environments do
|
|
45
45
|
:id => last_env_sync_task&.id,
|
46
46
|
:started_at => last_env_sync_task&.started_at,
|
47
47
|
:result => last_env_sync_task&.result,
|
48
|
-
:last_sync_words => last_env_sync_task.try(:started_at) ? time_ago_in_words(Time.parse(last_env_sync_task.started_at.to_s)) : nil
|
48
|
+
:last_sync_words => last_env_sync_task.try(:started_at) ? time_ago_in_words(Time.parse(last_env_sync_task.started_at.to_s)) : nil,
|
49
49
|
}
|
50
50
|
attributes
|
51
51
|
end
|
@@ -53,7 +53,7 @@ child @lifecycle_environments => :lifecycle_environments do
|
|
53
53
|
if @capsule.has_feature?(SmartProxy::PULP_NODE_FEATURE) || @capsule.has_feature?(SmartProxy::PULP3_FEATURE)
|
54
54
|
node :counts do |env|
|
55
55
|
{
|
56
|
-
:content_views => env.content_views.non_default.count
|
56
|
+
:content_views => env.content_views.non_default.count,
|
57
57
|
}
|
58
58
|
end
|
59
59
|
|
@@ -71,7 +71,7 @@ child @lifecycle_environments => :lifecycle_environments do
|
|
71
71
|
:default => content_view.default,
|
72
72
|
:up_to_date => @capsule.repos_pending_sync(env, content_view).empty?,
|
73
73
|
:counts => {
|
74
|
-
:repositories => ::Katello::ContentViewVersion.in_environment(env).find_by(:content_view => content_view)&.archived_repos&.count
|
74
|
+
:repositories => ::Katello::ContentViewVersion.in_environment(env).find_by(:content_view => content_view)&.archived_repos&.count,
|
75
75
|
},
|
76
76
|
:repositories => ::Katello::ContentViewVersion.in_environment(env)&.find_by(:content_view => content_view)&.archived_repos&.map do |repo|
|
77
77
|
{
|
@@ -79,9 +79,9 @@ child @lifecycle_environments => :lifecycle_environments do
|
|
79
79
|
:name => repo.name,
|
80
80
|
:library_id => repo.library_instance_id,
|
81
81
|
:product_id => repo.product_id,
|
82
|
-
:content_type => repo.content_type
|
82
|
+
:content_type => repo.content_type,
|
83
83
|
}
|
84
|
-
end
|
84
|
+
end,
|
85
85
|
}
|
86
86
|
attributes
|
87
87
|
end
|
@@ -116,6 +116,6 @@ node :permissions do |content_credential|
|
|
116
116
|
{
|
117
117
|
:view_content_credenials => content_credential.readable?,
|
118
118
|
:edit_content_credenials => content_credential.editable?,
|
119
|
-
:destroy_content_credenials => content_credential.deletable
|
119
|
+
:destroy_content_credenials => content_credential.deletable?,
|
120
120
|
}
|
121
121
|
end
|
@@ -17,21 +17,27 @@ child :content_view_environments => :content_view_environments do
|
|
17
17
|
content_view_version: cve.content_view_version&.version,
|
18
18
|
content_view_version_id: cve.content_view_version&.id,
|
19
19
|
content_view_version_latest: cve.content_view_version&.latest?,
|
20
|
-
content_view_default: cve.content_view&.default
|
20
|
+
content_view_default: cve.content_view&.default?,
|
21
21
|
}
|
22
22
|
end
|
23
23
|
node :lifecycle_environment do |cve|
|
24
24
|
{
|
25
25
|
id: cve.lifecycle_environment&.id,
|
26
26
|
name: cve.lifecycle_environment&.name,
|
27
|
-
lifecycle_environment_library: cve.lifecycle_environment&.library
|
27
|
+
lifecycle_environment_library: cve.lifecycle_environment&.library?,
|
28
28
|
}
|
29
29
|
end
|
30
|
-
node :
|
31
|
-
cve.
|
30
|
+
node :label do |cve|
|
31
|
+
cve.label
|
32
32
|
end
|
33
33
|
end
|
34
34
|
|
35
|
+
attributes :content_view_environment_labels
|
36
|
+
|
37
|
+
node :multi_content_view_environment do |content_facet|
|
38
|
+
content_facet.multi_content_view_environment?
|
39
|
+
end
|
40
|
+
|
35
41
|
# single cv/lce for backward compatibility
|
36
42
|
node :content_view do |content_facet|
|
37
43
|
content_view = content_facet.single_content_view
|
@@ -39,7 +45,7 @@ node :content_view do |content_facet|
|
|
39
45
|
{
|
40
46
|
:id => content_view.id,
|
41
47
|
:name => content_view.name,
|
42
|
-
:composite => content_view.composite
|
48
|
+
:composite => content_view.composite?,
|
43
49
|
}
|
44
50
|
end
|
45
51
|
end
|
@@ -49,7 +55,7 @@ node :lifecycle_environment do |content_facet|
|
|
49
55
|
if lifecycle_environment.present?
|
50
56
|
{
|
51
57
|
:id => lifecycle_environment.id,
|
52
|
-
:name => lifecycle_environment.name
|
58
|
+
:name => lifecycle_environment.name,
|
53
59
|
}
|
54
60
|
end
|
55
61
|
end
|
@@ -61,3 +67,6 @@ end
|
|
61
67
|
child :kickstart_repository => :kickstart_repository do
|
62
68
|
attributes :id, :name
|
63
69
|
end
|
70
|
+
|
71
|
+
attributes :bootc_booted_image, :bootc_booted_digest, :bootc_available_image, :bootc_available_digest,
|
72
|
+
:bootc_staged_image, :bootc_staged_digest, :bootc_rollback_image, :bootc_rollback_digest
|
@@ -8,7 +8,7 @@ child :content_facet => :content_facet_attributes do
|
|
8
8
|
{
|
9
9
|
:content_view_version => version.version,
|
10
10
|
:content_view_version_id => version.id,
|
11
|
-
:content_view_version_latest => version.latest
|
11
|
+
:content_view_version_latest => version.latest?,
|
12
12
|
}
|
13
13
|
end
|
14
14
|
end
|
@@ -0,0 +1,33 @@
|
|
1
|
+
object @resource
|
2
|
+
extends 'katello/api/v2/common/identifier'
|
3
|
+
|
4
|
+
extends 'katello/api/v2/common/timestamps'
|
5
|
+
attributes :default_environment? => :default
|
6
|
+
|
7
|
+
child :organization => :organization do
|
8
|
+
attributes :name, :label, :id
|
9
|
+
end
|
10
|
+
|
11
|
+
node :content_view do |cve|
|
12
|
+
cve.content_view&.slice(:id, :name, :label, :default)
|
13
|
+
end
|
14
|
+
|
15
|
+
node :lifecycle_environment do |cve|
|
16
|
+
cve.environment&.slice(:id, :name, :label, :library)
|
17
|
+
end
|
18
|
+
|
19
|
+
node :environment do |cve|
|
20
|
+
cve.environment&.slice(:id, :name, :label, :library)
|
21
|
+
end
|
22
|
+
|
23
|
+
child :activation_keys => :activation_keys do
|
24
|
+
attributes :id, :name, :label
|
25
|
+
end
|
26
|
+
|
27
|
+
node :activation_keys_count do |cve|
|
28
|
+
cve.activation_keys.count
|
29
|
+
end
|
30
|
+
|
31
|
+
node :hosts_count do |cve|
|
32
|
+
cve.hosts.count
|
33
|
+
end
|
@@ -20,7 +20,7 @@ if @resource&.try(:module_stream)
|
|
20
20
|
{
|
21
21
|
:module_stream_id => rule.module_stream.id,
|
22
22
|
:module_stream_name => rule.module_stream.name,
|
23
|
-
:module_stream_stream => rule.module_stream.stream
|
23
|
+
:module_stream_stream => rule.module_stream.stream,
|
24
24
|
}
|
25
25
|
end
|
26
26
|
end
|
@@ -20,7 +20,7 @@ child :content_view => :content_view do
|
|
20
20
|
:package => repo.rpms.count,
|
21
21
|
:package_group => repo.package_groups.count,
|
22
22
|
:erratum => repo.errata.count,
|
23
|
-
:module_stream => repo.module_streams.count
|
23
|
+
:module_stream => repo.module_streams.count,
|
24
24
|
}
|
25
25
|
end
|
26
26
|
end
|
@@ -42,7 +42,7 @@ end
|
|
42
42
|
|
43
43
|
node :permissions do |cvv|
|
44
44
|
{
|
45
|
-
:deletable => cvv.removable
|
45
|
+
:deletable => cvv.removable?,
|
46
46
|
}
|
47
47
|
end
|
48
48
|
|
@@ -61,7 +61,7 @@ child :environments => :environments do
|
|
61
61
|
:readable => env.readable?,
|
62
62
|
:promotable_or_removable => env.promotable_or_removable?,
|
63
63
|
:all_hosts_editable => version.all_hosts_editable?(env),
|
64
|
-
:all_keys_editable => Katello::ActivationKey.all_editable?(version.content_view_id, env.id)
|
64
|
+
:all_keys_editable => Katello::ActivationKey.all_editable?(version.content_view_id, env.id),
|
65
65
|
}
|
66
66
|
end
|
67
67
|
|
@@ -70,7 +70,7 @@ child :environments => :environments do
|
|
70
70
|
end
|
71
71
|
|
72
72
|
node :activation_key_count do |env|
|
73
|
-
Katello::ActivationKey.
|
73
|
+
Katello::ActivationKey.with_content_views(version.content_view).with_environments(env).count
|
74
74
|
end
|
75
75
|
end
|
76
76
|
|
@@ -13,6 +13,7 @@ attributes :generated_for
|
|
13
13
|
attributes :related_cv_count
|
14
14
|
attributes :related_composite_cvs
|
15
15
|
attributes :filtered? => :filtered
|
16
|
+
attributes :needs_publish? => :needs_publish
|
16
17
|
|
17
18
|
node :next_version do |content_view|
|
18
19
|
content_view.next_version.to_f.to_s
|
@@ -44,9 +45,9 @@ node :environments do |cv|
|
|
44
45
|
id: env.id,
|
45
46
|
label: env.label,
|
46
47
|
name: env.name,
|
47
|
-
activation_keys: cv&.activation_keys&.
|
48
|
+
activation_keys: cv&.activation_keys&.in_environments([env])&.ids,
|
48
49
|
hosts: cv&.hosts&.in_environments([env])&.ids,
|
49
|
-
permissions: {readable: env.readable?}
|
50
|
+
permissions: {readable: env.readable?},
|
50
51
|
}
|
51
52
|
end
|
52
53
|
end
|
@@ -81,7 +82,7 @@ if params.key?(:include_permissions)
|
|
81
82
|
:edit_content_views => cv.editable?,
|
82
83
|
:destroy_content_views => cv.deletable?,
|
83
84
|
:publish_content_views => cv.publishable?,
|
84
|
-
:promote_or_remove_content_views => cv.promotable_or_removable
|
85
|
+
:promote_or_remove_content_views => cv.promotable_or_removable?,
|
85
86
|
}
|
86
87
|
end
|
87
88
|
end
|
@@ -3,7 +3,6 @@ object @resource
|
|
3
3
|
extends "katello/api/v2/content_views/base"
|
4
4
|
|
5
5
|
attributes :content_host_count
|
6
|
-
attributes :needs_publish? => :needs_publish
|
7
6
|
|
8
7
|
node :errors do
|
9
8
|
unless @resource.valid?
|
@@ -17,7 +16,7 @@ child :duplicate_repositories_to_publish => :duplicate_repositories_to_publish d
|
|
17
16
|
@resource.components_with_repo(repo).map do |component|
|
18
17
|
{
|
19
18
|
:content_view_name => component.content_view.name,
|
20
|
-
:content_view_version => component.version
|
19
|
+
:content_view_version => component.version,
|
21
20
|
}
|
22
21
|
end
|
23
22
|
end
|
@@ -11,6 +11,10 @@ attributes :nav
|
|
11
11
|
attributes :nva
|
12
12
|
attributes :pulp_id
|
13
13
|
attributes :pulp_id => :uuid
|
14
|
+
attributes :section
|
15
|
+
attributes :maintainer
|
16
|
+
attributes :homepage
|
17
|
+
attributes :installed_size
|
14
18
|
|
15
19
|
node(:hosts_available_count) { |m| m.hosts_available(params[:organization_id]).count }
|
16
20
|
node(:hosts_applicable_count) { |m| m.hosts_applicable(params[:organization_id]).count }
|
@@ -24,7 +24,7 @@ if @organization
|
|
24
24
|
attributes = {
|
25
25
|
:id => repo.id,
|
26
26
|
:name => repo.name,
|
27
|
-
:full_path => repo.full_path
|
27
|
+
:full_path => repo.full_path,
|
28
28
|
}
|
29
29
|
attributes
|
30
30
|
end
|
@@ -34,7 +34,7 @@ if @organization
|
|
34
34
|
product = first_repo&.product
|
35
35
|
attributes = {
|
36
36
|
:id => product&.id,
|
37
|
-
:name => product&.name
|
37
|
+
:name => product&.name,
|
38
38
|
}
|
39
39
|
attributes
|
40
40
|
end
|
@@ -11,7 +11,7 @@ if @content_source.present?
|
|
11
11
|
{
|
12
12
|
:name => @content_source.name,
|
13
13
|
:id => @content_source_id,
|
14
|
-
:environment_is_associated => env.content_source_associated?(@content_source)
|
14
|
+
:environment_is_associated => env.content_source_associated?(@content_source),
|
15
15
|
}
|
16
16
|
end
|
17
17
|
end
|
@@ -31,7 +31,7 @@ end
|
|
31
31
|
node :counts do |env|
|
32
32
|
counts = {
|
33
33
|
:content_hosts => env.hosts.authorized("view_hosts").count,
|
34
|
-
:content_views => env.content_views.non_default.count
|
34
|
+
:content_views => env.content_views.non_default.count,
|
35
35
|
}
|
36
36
|
if env.library?
|
37
37
|
repos = env.repositories.in_default_view
|
@@ -54,7 +54,7 @@ node :permissions do |env|
|
|
54
54
|
:view_lifecycle_environments => env.readable?,
|
55
55
|
:edit_lifecycle_environments => env.editable?,
|
56
56
|
:destroy_lifecycle_environments => env.deletable?,
|
57
|
-
:promote_or_remove_content_views_to_environments => env.promotable_or_removable
|
57
|
+
:promote_or_remove_content_views_to_environments => env.promotable_or_removable?,
|
58
58
|
}
|
59
59
|
end
|
60
60
|
|
@@ -62,7 +62,7 @@ node :content_views do |env|
|
|
62
62
|
env.content_views.non_default.map do |cv|
|
63
63
|
{
|
64
64
|
:name => cv.name,
|
65
|
-
:id => cv.id
|
65
|
+
:id => cv.id,
|
66
66
|
}
|
67
67
|
end
|
68
68
|
end
|