katello 4.10.0 → 4.11.0.rc1
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of katello might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/app/assets/javascripts/katello/locale/bn/katello.js +254 -215
- data/app/assets/javascripts/katello/locale/bn_IN/katello.js +254 -215
- data/app/assets/javascripts/katello/locale/ca/katello.js +254 -215
- data/app/assets/javascripts/katello/locale/cs/katello.js +254 -215
- data/app/assets/javascripts/katello/locale/cs_CZ/katello.js +254 -215
- data/app/assets/javascripts/katello/locale/de/katello.js +260 -245
- data/app/assets/javascripts/katello/locale/de_AT/katello.js +254 -215
- data/app/assets/javascripts/katello/locale/de_DE/katello.js +254 -215
- data/app/assets/javascripts/katello/locale/el/katello.js +254 -215
- data/app/assets/javascripts/katello/locale/en/katello.js +254 -215
- data/app/assets/javascripts/katello/locale/en_GB/katello.js +254 -215
- data/app/assets/javascripts/katello/locale/en_US/katello.js +254 -215
- data/app/assets/javascripts/katello/locale/es/katello.js +257 -233
- data/app/assets/javascripts/katello/locale/et_EE/katello.js +254 -215
- data/app/assets/javascripts/katello/locale/fr/katello.js +268 -268
- data/app/assets/javascripts/katello/locale/gl/katello.js +254 -215
- data/app/assets/javascripts/katello/locale/gu/katello.js +254 -215
- data/app/assets/javascripts/katello/locale/he_IL/katello.js +254 -215
- data/app/assets/javascripts/katello/locale/hi/katello.js +254 -215
- data/app/assets/javascripts/katello/locale/id/katello.js +254 -215
- data/app/assets/javascripts/katello/locale/it/katello.js +254 -221
- data/app/assets/javascripts/katello/locale/ja/katello.js +268 -268
- data/app/assets/javascripts/katello/locale/ka/katello.js +261 -231
- data/app/assets/javascripts/katello/locale/kn/katello.js +254 -215
- data/app/assets/javascripts/katello/locale/ko/katello.js +255 -222
- data/app/assets/javascripts/katello/locale/locale/katello.js +1049 -1012
- data/app/assets/javascripts/katello/locale/ml_IN/katello.js +254 -215
- data/app/assets/javascripts/katello/locale/mr/katello.js +254 -215
- data/app/assets/javascripts/katello/locale/nl_NL/katello.js +254 -215
- data/app/assets/javascripts/katello/locale/or/katello.js +254 -215
- data/app/assets/javascripts/katello/locale/pa/katello.js +254 -215
- data/app/assets/javascripts/katello/locale/pl/katello.js +254 -215
- data/app/assets/javascripts/katello/locale/pl_PL/katello.js +254 -215
- data/app/assets/javascripts/katello/locale/pt/katello.js +254 -215
- data/app/assets/javascripts/katello/locale/pt_BR/katello.js +257 -233
- data/app/assets/javascripts/katello/locale/ro/katello.js +254 -215
- data/app/assets/javascripts/katello/locale/ro_RO/katello.js +254 -215
- data/app/assets/javascripts/katello/locale/ru/katello.js +255 -222
- data/app/assets/javascripts/katello/locale/sl/katello.js +254 -215
- data/app/assets/javascripts/katello/locale/sv_SE/katello.js +254 -215
- data/app/assets/javascripts/katello/locale/ta/katello.js +254 -215
- data/app/assets/javascripts/katello/locale/ta_IN/katello.js +254 -215
- data/app/assets/javascripts/katello/locale/te/katello.js +254 -215
- data/app/assets/javascripts/katello/locale/tr/katello.js +254 -215
- data/app/assets/javascripts/katello/locale/vi/katello.js +254 -215
- data/app/assets/javascripts/katello/locale/vi_VN/katello.js +254 -215
- data/app/assets/javascripts/katello/locale/zh/katello.js +254 -215
- data/app/assets/javascripts/katello/locale/zh_CN/katello.js +268 -268
- data/app/assets/javascripts/katello/locale/zh_TW/katello.js +255 -222
- data/app/controllers/katello/api/registry/registry_proxies_controller.rb +15 -2
- data/app/controllers/katello/api/v2/capsule_content_controller.rb +21 -4
- data/app/controllers/katello/api/v2/capsules_controller.rb +11 -1
- data/app/controllers/katello/api/v2/content_view_versions_controller.rb +1 -1
- data/app/controllers/katello/api/v2/docker_tags_controller.rb +2 -0
- data/app/controllers/katello/api/v2/hosts_bulk_actions_controller.rb +2 -1
- data/app/controllers/katello/api/v2/organizations_controller.rb +2 -2
- data/app/controllers/katello/api/v2/repositories_controller.rb +1 -0
- data/app/controllers/katello/api/v2/simple_content_access_controller.rb +5 -5
- data/app/controllers/katello/api/v2/sync_plans_controller.rb +11 -3
- data/app/controllers/katello/concerns/api/api_controller.rb +6 -0
- data/app/controllers/katello/concerns/api/v2/hosts_bulk_actions_controller_extensions.rb +23 -0
- data/app/controllers/katello/concerns/filtered_auto_complete_search.rb +1 -1
- data/app/controllers/katello/concerns/organizations_controller_extensions.rb +2 -0
- data/app/controllers/katello/remote_execution_controller.rb +1 -1
- data/app/jobs/create_host_lifecycle_expire_soon_notifications.rb +11 -0
- data/app/lib/actions/katello/applicability/hosts/bulk_generate.rb +10 -0
- data/app/lib/actions/katello/capsule_content/refresh_repos.rb +8 -2
- data/app/lib/actions/katello/capsule_content/sync.rb +30 -10
- data/app/lib/actions/katello/capsule_content/sync_capsule.rb +13 -0
- data/app/lib/actions/katello/capsule_content/update_content_counts.rb +24 -0
- data/app/lib/actions/katello/content_view/promote.rb +9 -0
- data/app/lib/actions/katello/content_view/publish.rb +9 -0
- data/app/lib/actions/katello/orphan_cleanup/remove_orphans.rb +8 -0
- data/app/lib/actions/katello/repository/sync.rb +11 -0
- data/app/lib/actions/pulp3/capsule_content/reclaim_space.rb +5 -0
- data/app/lib/actions/pulp3/content_view_version/create_export_history.rb +6 -1
- data/app/lib/actions/pulp3/content_view_version/export.rb +8 -0
- data/app/lib/actions/pulp3/orchestration/content_view_version/export_repository.rb +1 -1
- data/app/lib/katello/concerns/base_template_scope_extensions.rb +14 -1
- data/app/lib/katello/errors.rb +1 -0
- data/app/lib/katello/repo_discovery.rb +2 -2
- data/app/lib/katello/validators/content_view_environment_coherent_default_validator.rb +22 -0
- data/app/lib/katello/validators/content_view_environment_validator.rb +1 -0
- data/app/mailers/katello/task_mailer.rb +54 -0
- data/app/models/katello/concerns/host_managed_extensions.rb +41 -1
- data/app/models/katello/concerns/organization_extensions.rb +1 -1
- data/app/models/katello/concerns/smart_proxy_extensions.rb +75 -3
- data/app/models/katello/concerns/subscription_facet_host_extensions.rb +6 -0
- data/app/models/katello/content_view.rb +21 -0
- data/app/models/katello/content_view_environment.rb +6 -1
- data/app/models/katello/docker_meta_tag.rb +1 -1
- data/app/models/katello/docker_tag.rb +1 -1
- data/app/models/katello/erratum.rb +1 -1
- data/app/models/katello/host/content_facet.rb +10 -7
- data/app/models/katello/product.rb +8 -0
- data/app/models/katello/repository.rb +31 -6
- data/app/models/katello/rhel_lifecycle_status.rb +214 -0
- data/app/models/katello/sync_plan.rb +19 -1
- data/app/models/katello/yum_metadata_file.rb +1 -1
- data/app/services/katello/applicability/applicable_content_helper.rb +1 -1
- data/app/services/katello/event_queue.rb +10 -2
- data/app/services/katello/host_status_manager.rb +1 -0
- data/app/services/katello/product_content_importer.rb +45 -3
- data/app/services/katello/pulp3/ansible_collection.rb +1 -0
- data/app/services/katello/pulp3/api/core.rb +1 -1
- data/app/services/katello/pulp3/deb.rb +1 -0
- data/app/services/katello/pulp3/docker_manifest.rb +1 -0
- data/app/services/katello/pulp3/docker_manifest_list.rb +9 -4
- data/app/services/katello/pulp3/docker_tag.rb +1 -0
- data/app/services/katello/pulp3/erratum.rb +1 -0
- data/app/services/katello/pulp3/file_unit.rb +1 -0
- data/app/services/katello/pulp3/module_stream.rb +1 -0
- data/app/services/katello/pulp3/package_group.rb +1 -0
- data/app/services/katello/pulp3/pulp_content_unit.rb +39 -0
- data/app/services/katello/pulp3/repository_mirror.rb +21 -2
- data/app/services/katello/pulp3/rpm.rb +1 -0
- data/app/services/katello/pulp3/smart_proxy_mirror_repository.rb +1 -1
- data/app/services/katello/pulp3/srpm.rb +3 -2
- data/app/services/katello/registration_manager.rb +6 -3
- data/app/services/katello/repository_type.rb +2 -1
- data/app/services/katello/ui_notifications/hosts/lifecycle_expire_soon.rb +58 -0
- data/app/views/foreman/job_templates/resolve_traces.erb +1 -1
- data/app/views/foreman/smart_proxies/_content_tab.html.erb +1 -3
- data/app/views/katello/api/v2/capsule_content/sync_status.json.rabl +39 -1
- data/app/views/katello/api/v2/content_facet/show.json.rabl +4 -0
- data/app/views/katello/api/v2/content_views/base.json.rabl +1 -1
- data/app/views/katello/api/v2/docker_tags/_base.json.rabl +28 -6
- data/app/views/katello/hosts/_errata_counts.html.erb +2 -2
- data/app/views/katello/task_mailer/cv_promote_failure.html.erb +31 -0
- data/app/views/katello/task_mailer/cv_promote_failure.text.erb +13 -0
- data/app/views/katello/task_mailer/cv_publish_failure.html.erb +31 -0
- data/app/views/katello/task_mailer/cv_publish_failure.text.erb +13 -0
- data/app/views/katello/task_mailer/proxy_sync_failure.html.erb +45 -0
- data/app/views/katello/task_mailer/proxy_sync_failure.text.erb +25 -0
- data/app/views/katello/task_mailer/repo_sync_failure.html.erb +35 -0
- data/app/views/katello/task_mailer/repo_sync_failure.text.erb +15 -0
- data/app/views/overrides/organizations/_edit_override.html.erb +4 -0
- data/config/routes/api/v2.rb +2 -0
- data/db/migrate/20230825180856_add_content_counts_to_smart_proxy.rb +7 -0
- data/db/migrate/20231020153017_create_indexes_for_nvra_and_epoch.rb +6 -0
- data/db/seeds.d/106-mail_notifications.rb +32 -0
- data/db/seeds.d/109-katello-notification-blueprints.rb +6 -0
- data/engines/bastion/app/assets/javascripts/bastion/components/views/bst-alert.html +1 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/activation-keys.controller.js +4 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/activation-key-add-host-collections.controller.js +3 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/activation-key-add-subscriptions.controller.js +3 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/activation-key-associations.controller.js +4 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/activation-key-copy.controller.js +7 -2
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/activation-key-host-collections.controller.js +3 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/activation-key-repository-sets.controller.js +3 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/activation-key-subscriptions.controller.js +3 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/new/new-activation-key.controller.js +6 -2
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/capsule-content/capsule-content.controller.js +16 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/common/views/rhel-lifecycle-notice.html +5 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-credentials/content-credentials.controller.js +7 -2
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-credentials/details/content-credential-acs.controller.js +7 -2
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-credentials/details/content-credential-products.controller.js +7 -2
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-credentials/details/content-credential-repositories.controller.js +7 -2
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-credentials/new/new-content-credential.controller.js +3 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/bulk/content-hosts-bulk-errata-modal.controller.js +5 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/content-host-debs-actions.controller.js +5 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/content-host-debs-applicable.controller.js +3 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/content-host-debs-installed.controller.js +3 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/content-host-errata.controller.js +4 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/content-host-module-streams.controller.js +3 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/content-host-packages-applicable.controller.js +3 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/content-host-packages-installed.controller.js +3 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/content-host-packages.controller.js +3 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/content-host-traces.controller.js +4 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/views/content-host-debs-actions.html +1 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/views/content-host-debs-applicable.html +1 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/views/content-host-debs-installed.html +1 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/views/content-host-errata.html +3 -3
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/views/content-host-module-streams.html +1 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/views/content-host-packages-actions.html +1 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/views/content-host-packages-applicable.html +1 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/views/content-host-packages-installed.html +1 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/views/content-host-traces.html +3 -3
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content-hosts.controller.js +5 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content-hosts.routes.js +1 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/content-host-add-host-collections.controller.js +4 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/content-host-add-subscriptions.controller.js +3 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/content-host-host-collections.controller.js +4 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/content-host-repository-sets.controller.js +3 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/content-host-subscriptions.controller.js +3 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/views/content-host-add-subscriptions.html +1 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/views/content-host-details.html +4 -3
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/views/content-host-host-collections.html +1 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/views/content-host-info.html +3 -3
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/views/content-host-provisioning-info.html +2 -2
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/views/content-host-subscriptions-list.html +1 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/views/content-host-subscriptions.html +1 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/views/content-hosts.html +3 -3
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/debs/debs.controller.js +7 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/debs/details/deb-content-views.controller.js +8 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/debs/details/deb-repositories.controller.js +10 -2
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/docker-tags/details/docker-tag-environments.controller.js +5 -2
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/docker-tags/details/docker-tag-repositories.controller.js +6 -2
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/docker-tags/docker-tags.controller.js +6 -3
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/environments/details/environment-content.controller.js +13 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/environments/details/environment.controller.js +6 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/environments/new-environment.controller.js +8 -2
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/errata/apply-errata.controller.js +4 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/errata/details/erratum-content-hosts.controller.js +7 -2
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/errata/details/erratum-repositories.controller.js +7 -2
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/errata/details/erratum.controller.js +6 -2
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/errata/details/views/erratum-info.html +2 -2
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/errata/errata.controller.js +5 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/errata/views/errata.html +1 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/files/details/file-content-views.controller.js +10 -2
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/files/details/file-repositories.controller.js +8 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/files/files.controller.js +9 -2
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/details/host-collection-add-hosts.controller.js +3 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/details/host-collection-copy.controller.js +7 -2
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/details/host-collection-hosts.controller.js +3 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/host-collections.controller.js +4 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/new/new-host-collection.controller.js +6 -2
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/hosts/host.factory.js +4 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/bastion_katello.pot +166 -43
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/fr.po +4 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/translations.js +1 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/packages/packages.controller.js +7 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/product-repositories.controller.js +5 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/details/repository-details-advanced-sync.controller.js +6 -2
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/details/repository-details-manage-content.controller.js +11 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/new/new-repository.controller.js +3 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/views/product-repositories.html +2 -2
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/discovery/discovery-create.controller.js +3 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/discovery/discovery.controller.js +3 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/new/product-form.controller.js +6 -2
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/products.controller.js +4 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/views/content-access-mode-banner.html +1 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/details/sync-plan-add-products.controller.js +5 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/details/sync-plan-products.controller.js +4 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/new/new-sync-plan.controller.js +3 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/sync-plans.controller.js +4 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/tasks/task-details.controller.js +6 -2
- data/lib/katello/engine.rb +2 -3
- data/lib/katello/permission_creator.rb +2 -2
- data/lib/katello/plugin.rb +4 -0
- data/lib/katello/repository_types/ostree.rb +1 -0
- data/lib/katello/repository_types/python.rb +1 -0
- data/lib/katello/scheduled_jobs.rb +1 -1
- data/lib/katello/version.rb +1 -1
- data/locale/action_names.rb +1 -3
- data/locale/bn/LC_MESSAGES/katello.mo +0 -0
- data/locale/bn/katello.po +236 -197
- data/locale/bn_IN/LC_MESSAGES/katello.mo +0 -0
- data/locale/bn_IN/katello.po +236 -197
- data/locale/ca/LC_MESSAGES/katello.mo +0 -0
- data/locale/ca/katello.po +236 -197
- data/locale/cs/LC_MESSAGES/katello.mo +0 -0
- data/locale/cs/katello.po +236 -206
- data/locale/cs_CZ/LC_MESSAGES/katello.mo +0 -0
- data/locale/cs_CZ/katello.po +236 -197
- data/locale/de/LC_MESSAGES/katello.mo +0 -0
- data/locale/de/katello.po +241 -202
- data/locale/de_AT/LC_MESSAGES/katello.mo +0 -0
- data/locale/de_AT/katello.po +236 -197
- data/locale/de_DE/LC_MESSAGES/katello.mo +0 -0
- data/locale/de_DE/katello.po +236 -197
- data/locale/el/LC_MESSAGES/katello.mo +0 -0
- data/locale/el/katello.po +236 -197
- data/locale/en/LC_MESSAGES/katello.mo +0 -0
- data/locale/en/katello.po +236 -197
- data/locale/en_GB/LC_MESSAGES/katello.mo +0 -0
- data/locale/en_GB/katello.po +236 -197
- data/locale/en_US/LC_MESSAGES/katello.mo +0 -0
- data/locale/en_US/katello.po +236 -197
- data/locale/es/LC_MESSAGES/katello.mo +0 -0
- data/locale/es/katello.po +238 -199
- data/locale/et_EE/LC_MESSAGES/katello.mo +0 -0
- data/locale/et_EE/katello.po +236 -197
- data/locale/fr/LC_MESSAGES/katello.mo +0 -0
- data/locale/fr/katello.po +247 -208
- data/locale/gl/LC_MESSAGES/katello.mo +0 -0
- data/locale/gl/katello.po +236 -197
- data/locale/gu/LC_MESSAGES/katello.mo +0 -0
- data/locale/gu/katello.po +236 -197
- data/locale/he_IL/LC_MESSAGES/katello.mo +0 -0
- data/locale/he_IL/katello.po +236 -197
- data/locale/hi/LC_MESSAGES/katello.mo +0 -0
- data/locale/hi/katello.po +236 -197
- data/locale/id/LC_MESSAGES/katello.mo +0 -0
- data/locale/id/katello.po +236 -197
- data/locale/it/LC_MESSAGES/katello.mo +0 -0
- data/locale/it/katello.po +236 -197
- data/locale/ja/LC_MESSAGES/katello.mo +0 -0
- data/locale/ja/katello.po +247 -208
- data/locale/ka/LC_MESSAGES/katello.mo +0 -0
- data/locale/ka/katello.po +241 -202
- data/locale/katello.pot +1427 -1296
- data/locale/kn/LC_MESSAGES/katello.mo +0 -0
- data/locale/kn/katello.po +236 -197
- data/locale/ko/LC_MESSAGES/katello.mo +0 -0
- data/locale/ko/katello.po +236 -197
- data/locale/ml_IN/LC_MESSAGES/katello.mo +0 -0
- data/locale/ml_IN/katello.po +236 -197
- data/locale/mr/LC_MESSAGES/katello.mo +0 -0
- data/locale/mr/katello.po +236 -197
- data/locale/nl_NL/LC_MESSAGES/katello.mo +0 -0
- data/locale/nl_NL/katello.po +236 -197
- data/locale/or/LC_MESSAGES/katello.mo +0 -0
- data/locale/or/katello.po +236 -197
- data/locale/pa/LC_MESSAGES/katello.mo +0 -0
- data/locale/pa/katello.po +236 -197
- data/locale/pl/LC_MESSAGES/katello.mo +0 -0
- data/locale/pl/katello.po +236 -197
- data/locale/pl_PL/LC_MESSAGES/katello.mo +0 -0
- data/locale/pl_PL/katello.po +236 -197
- data/locale/pt/LC_MESSAGES/katello.mo +0 -0
- data/locale/pt/katello.po +236 -197
- data/locale/pt_BR/LC_MESSAGES/katello.mo +0 -0
- data/locale/pt_BR/katello.po +238 -199
- data/locale/ro/LC_MESSAGES/katello.mo +0 -0
- data/locale/ro/katello.po +236 -197
- data/locale/ro_RO/LC_MESSAGES/katello.mo +0 -0
- data/locale/ro_RO/katello.po +236 -197
- data/locale/ru/LC_MESSAGES/katello.mo +0 -0
- data/locale/ru/katello.po +236 -197
- data/locale/sl/LC_MESSAGES/katello.mo +0 -0
- data/locale/sl/katello.po +236 -197
- data/locale/sv_SE/LC_MESSAGES/katello.mo +0 -0
- data/locale/sv_SE/katello.po +236 -197
- data/locale/ta/LC_MESSAGES/katello.mo +0 -0
- data/locale/ta/katello.po +236 -197
- data/locale/ta_IN/LC_MESSAGES/katello.mo +0 -0
- data/locale/ta_IN/katello.po +236 -197
- data/locale/te/LC_MESSAGES/katello.mo +0 -0
- data/locale/te/katello.po +236 -197
- data/locale/tr/LC_MESSAGES/katello.mo +0 -0
- data/locale/tr/katello.po +236 -197
- data/locale/vi/LC_MESSAGES/katello.mo +0 -0
- data/locale/vi/katello.po +236 -197
- data/locale/vi_VN/LC_MESSAGES/katello.mo +0 -0
- data/locale/vi_VN/katello.po +236 -197
- data/locale/zh/LC_MESSAGES/katello.mo +0 -0
- data/locale/zh/katello.po +236 -197
- data/locale/zh_CN/LC_MESSAGES/katello.mo +0 -0
- data/locale/zh_CN/katello.po +247 -208
- data/locale/zh_TW/LC_MESSAGES/katello.mo +0 -0
- data/locale/zh_TW/katello.po +236 -197
- data/webpack/components/Table/EmptyStateMessage.js +7 -4
- data/webpack/components/Table/MainTable.scss +18 -17
- data/webpack/components/Table/TableWrapper.js +4 -1
- data/webpack/components/extensions/HostDetails/ActionsBar/index.js +45 -4
- data/webpack/components/extensions/HostDetails/Cards/ErrataOverviewCard.scss +9 -7
- data/webpack/components/extensions/HostDetails/Cards/HostCollectionsCard/HostCollectionsCard.js +1 -1
- data/webpack/components/extensions/HostDetails/Cards/HostCollectionsCard/HostCollectionsModal.js +1 -1
- data/webpack/components/extensions/HostDetails/Cards/SystemPurposeCard/SystemPurposeActions.js +29 -7
- data/webpack/components/extensions/HostDetails/Cards/SystemPurposeCard/SystemPurposeCard.js +106 -66
- data/webpack/components/extensions/HostDetails/Cards/SystemPurposeCard/SystemPurposeCard.scss +6 -0
- data/webpack/components/extensions/HostDetails/Cards/SystemPurposeCard/SystemPurposeConstants.js +2 -0
- data/webpack/components/extensions/HostDetails/Cards/SystemPurposeCard/SystemPurposeEditModal.js +53 -29
- data/webpack/components/extensions/HostDetails/Cards/SystemPurposeCard/SystemPurposeSelectors.js +7 -6
- data/webpack/components/extensions/HostDetails/Cards/SystemPurposeCard/__tests__/SystemPurposeCard.test.js +24 -5
- data/webpack/components/extensions/HostDetails/Cards/SystemPurposeCard/__tests__/SystemPurposeEditModal.test.js +137 -7
- data/webpack/components/extensions/HostDetails/DetailsTabCards/HwPropertiesCard.js +11 -10
- data/webpack/components/extensions/HostDetails/DetailsTabCards/RegistrationCard.js +8 -2
- data/webpack/components/extensions/HostDetails/Tabs/ErrataTab/ErrataTab.js +27 -10
- data/webpack/components/extensions/HostDetails/Tabs/ErrataTab/HostErrataActions.js +3 -22
- data/webpack/components/extensions/HostDetails/Tabs/ErrataTab/HostErrataConstants.js +0 -1
- data/webpack/components/extensions/HostDetails/Tabs/ModuleStreamsTab/ModuleStreamsTab.js +3 -2
- data/webpack/components/extensions/HostDetails/Tabs/PackagesTab/PackageInstallModal.js +2 -2
- data/webpack/components/extensions/HostDetails/Tabs/PackagesTab/PackagesTab.js +48 -12
- data/webpack/components/extensions/HostDetails/Tabs/RemoteExecutionActions.js +22 -10
- data/webpack/components/extensions/HostDetails/Tabs/RemoteExecutionHooks.js +1 -1
- data/webpack/components/extensions/HostDetails/Tabs/RepositorySetsTab/RepositorySetsTab.js +2 -2
- data/webpack/components/extensions/HostDetails/Tabs/TracesTab/EnableTracerModal.js +71 -5
- data/webpack/components/extensions/HostDetails/Tabs/TracesTab/EnableTracerModal.scss +16 -0
- data/webpack/components/extensions/HostDetails/Tabs/TracesTab/TracesEnabler.js +4 -1
- data/webpack/components/extensions/HostDetails/Tabs/TracesTab/TracesTab.js +6 -2
- data/webpack/components/extensions/HostDetails/Tabs/__tests__/packagesTab.test.js +2 -1
- data/webpack/components/extensions/HostDetails/Tabs/__tests__/tracesTab.test.js +25 -0
- data/webpack/components/extensions/Hosts/ActionsBar/index.js +36 -0
- data/webpack/components/extensions/Hosts/constants.js +2 -0
- data/webpack/components/extensions/RegistrationCommands/RegistrationCommandsPageHelpers.js +13 -7
- data/webpack/components/extensions/RegistrationCommands/__tests__/__snapshots__/ActivationKeys.test.js.snap +9 -1
- data/webpack/components/extensions/RegistrationCommands/fields/ActivationKeys.js +87 -22
- data/webpack/components/extensions/RegistrationCommands/index.js +17 -41
- data/webpack/global_index.js +11 -2
- data/webpack/redux/reducers/RedHatRepositories/enabled.fixtures.js +4 -0
- data/webpack/redux/reducers/RedHatRepositories/enabled.js +1 -0
- data/webpack/scenes/ActivationKeys/Details/ActivationKeyDetails.js +10 -1
- data/webpack/scenes/ActivationKeys/Details/ActivationKeyDetails.scss +33 -31
- data/webpack/scenes/AlternateContentSources/MainTable/ACSTable.js +3 -1
- data/webpack/scenes/Content/ContentConfig.js +3 -0
- data/webpack/scenes/ContentViews/Create/CreateContentViewForm.js +6 -4
- data/webpack/scenes/ContentViews/Create/CreateContentViewForm.scss +8 -6
- data/webpack/scenes/ContentViews/Delete/ContentViewDeleteWizard.js +1 -0
- data/webpack/scenes/ContentViews/Delete/Steps/CVEnvironmentSelectionForm.scss +4 -2
- data/webpack/scenes/ContentViews/Details/ComponentContentViews/ComponentContentViewAddModal.js +3 -4
- data/webpack/scenes/ContentViews/Details/ComponentContentViews/ComponentContentViewBulkAddModal.js +2 -2
- data/webpack/scenes/ContentViews/Details/ComponentContentViews/ContentViewComponents.js +5 -5
- data/webpack/scenes/ContentViews/Details/ComponentContentViews/__tests__/compositeCVDetails.fixtures.json +393 -0
- data/webpack/scenes/ContentViews/Details/ComponentContentViews/__tests__/contentViewComponents.test.js +30 -4
- data/webpack/scenes/ContentViews/Details/Filters/CVErrataDateFilterContent.js +3 -1
- data/webpack/scenes/ContentViews/Details/Repositories/ContentViewRepositories.js +3 -3
- data/webpack/scenes/ContentViews/Details/Repositories/RepoIcon.js +2 -1
- data/webpack/scenes/ContentViews/Details/Versions/Compare/CVVersionCompareTable.js +1 -1
- data/webpack/scenes/ContentViews/Details/Versions/ContentViewVersions.js +1 -1
- data/webpack/scenes/ContentViews/Details/Versions/Delete/RemoveCVVersionWizard.js +1 -1
- data/webpack/scenes/ContentViews/Details/Versions/VersionDetails/ContentViewVersionDetailsTable.js +1 -1
- data/webpack/scenes/ContentViews/Publish/CVPublishForm.js +24 -1
- data/webpack/scenes/ContentViews/Publish/PublishContentViewWizard.js +1 -0
- data/webpack/scenes/ContentViews/Publish/__tests__/publishContentView.test.js +42 -0
- data/webpack/scenes/ContentViews/Publish/cvPublishForm.scss +13 -11
- data/webpack/scenes/ContentViews/Table/ContentViewsTable.js +2 -1
- data/webpack/scenes/ContentViews/__tests__/mockDetails.fixtures.json +2 -1
- data/webpack/scenes/Hosts/ChangeContentSource/index.js +4 -3
- data/webpack/scenes/ModuleStreams/Details/ModuleStreamDetails.js +1 -2
- data/webpack/scenes/ModuleStreams/Details/__tests__/__snapshots__/ModuleStreamDetails.test.js.snap +1 -1
- data/webpack/scenes/RedHatRepositories/RedHatRepositoriesPage.js +2 -1
- data/webpack/scenes/RedHatRepositories/__tests__/__snapshots__/RedHatRepositoriesPage.test.js.snap +6 -0
- data/webpack/scenes/RedHatRepositories/components/EnabledRepository/EnabledRepository.js +4 -1
- data/webpack/scenes/RedHatRepositories/components/EnabledRepository/EnabledRepositoryContent.js +13 -4
- data/webpack/scenes/RedHatRepositories/components/EnabledRepository/__tests__/EnabledRepositoryContent.test.js +1 -0
- data/webpack/scenes/RedHatRepositories/components/EnabledRepository/__tests__/__snapshots__/EnabledRepository.test.js.snap +1 -0
- data/webpack/scenes/RedHatRepositories/components/EnabledRepository/__tests__/__snapshots__/EnabledRepositoryContent.test.js.snap +3 -2
- data/webpack/scenes/SmartProxy/AdditionalCapsuleContent.js +93 -0
- data/webpack/scenes/SmartProxy/Content.js +12 -4
- data/webpack/scenes/SmartProxy/ExpandableCvDetails.js +107 -0
- data/webpack/scenes/SmartProxy/ExpandedSmartProxyRepositories.js +139 -0
- data/webpack/scenes/SmartProxy/SmartProxyContentActions.js +17 -4
- data/webpack/scenes/SmartProxy/SmartProxyContentConstants.js +1 -0
- data/webpack/scenes/SmartProxy/SmartProxyExpandableTable.js +150 -0
- data/webpack/scenes/SmartProxy/__tests__/SmartProxyContentTest.fixtures.json +799 -0
- data/webpack/scenes/SmartProxy/__tests__/SmartProxyContentTest.js +29 -17
- data/webpack/scenes/Subscriptions/Details/SubscriptionDetails.js +16 -19
- data/webpack/scenes/Subscriptions/Details/SubscriptionDetails.scss +12 -8
- data/webpack/scenes/Subscriptions/Details/__tests__/__snapshots__/SubscriptionDetails.test.js.snap +21 -18
- data/webpack/scenes/Subscriptions/Manifest/CdnConfigurationTab/CdnConfigurationForm.scss +4 -2
- data/webpack/scenes/Subscriptions/Manifest/ManageManifestModal.scss +38 -19
- data/webpack/scenes/Subscriptions/Manifest/index.js +0 -2
- data/webpack/scenes/Subscriptions/SubscriptionsPage.js +38 -12
- data/webpack/scenes/Subscriptions/SubscriptionsPage.scss +38 -36
- data/webpack/scenes/Subscriptions/__tests__/__snapshots__/SubscriptionsPage.test.js.snap +16 -13
- data/webpack/utils/helpers.js +0 -1
- metadata +99 -33
- data/app/controllers/katello/concerns/api/v2/bulk_hosts_extensions.rb +0 -47
- data/webpack/components/Table/TableHooks.js +0 -315
- data/webpack/components/Table/__test__/useBulkSelect.test.js +0 -99
- data/webpack/components/extensions/RegistrationCommands/__tests__/LifeCycleEnvironment.test.js +0 -11
- data/webpack/components/extensions/RegistrationCommands/__tests__/__snapshots__/LifeCycleEnvironment.test.js.snap +0 -29
- data/webpack/components/extensions/RegistrationCommands/fields/LifecycleEnvironment.js +0 -57
- data/webpack/scenes/SmartProxy/SmartProxyContentTable.js +0 -164
- data/webpack/scenes/SmartProxy/__tests__/SmartProxyContentResult.fixtures.json +0 -140
- data/webpack/scenes/Subscriptions/Manifest/Manifest.scss +0 -16
@@ -1,21 +1,27 @@
|
|
1
1
|
// Activation Keys helpers
|
2
2
|
|
3
|
-
export const validateAKField = (
|
3
|
+
export const validateAKField = (
|
4
|
+
hasInteraction,
|
5
|
+
hostGroupId,
|
6
|
+
activationKeys,
|
7
|
+
userKeys,
|
8
|
+
hgKeys,
|
9
|
+
) => {
|
4
10
|
if (hostGroupId === '') {
|
5
|
-
return
|
11
|
+
return userKeys?.length > 0 ? 'success' : 'error';
|
6
12
|
}
|
7
13
|
|
8
|
-
if (
|
9
|
-
return
|
14
|
+
if (!hasInteraction && activationKeys?.length > 0) {
|
15
|
+
return 'default';
|
10
16
|
}
|
11
17
|
|
12
|
-
return
|
18
|
+
return userKeys?.length > 0 || hgKeys?.length > 0 ? 'success' : 'error';
|
13
19
|
};
|
14
20
|
|
15
21
|
export const akHasValidValue = (hostGroupId, userKeys, hgKeys) => {
|
16
22
|
if (hostGroupId === '') {
|
17
|
-
return
|
23
|
+
return userKeys?.length > 0;
|
18
24
|
}
|
19
25
|
|
20
|
-
return
|
26
|
+
return hgKeys?.length > 0 || userKeys?.length > 0;
|
21
27
|
};
|
@@ -11,13 +11,21 @@ exports[`ActivationKeys renders 1`] = `
|
|
11
11
|
Create new activation key
|
12
12
|
</a>
|
13
13
|
}
|
14
|
+
helperTextInvalidIcon={
|
15
|
+
<ExclamationCircleIcon
|
16
|
+
color="currentColor"
|
17
|
+
noVerticalAlign={false}
|
18
|
+
size="sm"
|
19
|
+
/>
|
20
|
+
}
|
14
21
|
isRequired={true}
|
15
22
|
label="Activation Keys"
|
16
23
|
labelIcon={
|
17
24
|
<LabelIcon
|
18
|
-
text="Activation key(s)
|
25
|
+
text="Activation key(s) to use during registration"
|
19
26
|
/>
|
20
27
|
}
|
28
|
+
onFocus={[Function]}
|
21
29
|
validated="error"
|
22
30
|
>
|
23
31
|
<Select
|
@@ -1,16 +1,21 @@
|
|
1
|
-
|
2
1
|
/* eslint-disable max-len, react/forbid-prop-types */
|
3
2
|
import React, { useState, useEffect } from 'react';
|
4
3
|
import PropTypes from 'prop-types';
|
5
4
|
import {
|
6
5
|
FormGroup,
|
7
|
-
Select,
|
6
|
+
Select,
|
7
|
+
SelectOption,
|
8
|
+
SelectVariant,
|
8
9
|
} from '@patternfly/react-core';
|
9
10
|
|
10
11
|
import LabelIcon from 'foremanReact/components/common/LabelIcon';
|
12
|
+
import { ExclamationCircleIcon } from '@patternfly/react-icons';
|
11
13
|
import { sprintf, translate as __ } from 'foremanReact/common/I18n';
|
12
14
|
|
13
|
-
import {
|
15
|
+
import {
|
16
|
+
validateAKField,
|
17
|
+
akHasValidValue,
|
18
|
+
} from '../RegistrationCommandsPageHelpers';
|
14
19
|
|
15
20
|
const ActivationKeys = ({
|
16
21
|
activationKeys,
|
@@ -23,14 +28,22 @@ const ActivationKeys = ({
|
|
23
28
|
handleInvalidField,
|
24
29
|
}) => {
|
25
30
|
const [isOpen, setIsOpen] = useState(false);
|
31
|
+
const [hasInteraction, setHasInteraction] = useState(false);
|
26
32
|
|
27
33
|
const updatePluginValues = (keys) => {
|
28
34
|
onChange({ activationKeys: keys });
|
29
|
-
handleInvalidField(
|
35
|
+
handleInvalidField(
|
36
|
+
'Activation Keys',
|
37
|
+
akHasValidValue(
|
38
|
+
hostGroupId,
|
39
|
+
pluginValues?.activationKeys,
|
40
|
+
hostGroupActivationKeys,
|
41
|
+
),
|
42
|
+
);
|
30
43
|
};
|
31
44
|
|
32
45
|
const onSelect = (_e, value) => {
|
33
|
-
if (selectedKeys.find(
|
46
|
+
if (selectedKeys.find(key => key === value)) {
|
34
47
|
updatePluginValues(selectedKeys.filter(sk => sk !== value));
|
35
48
|
} else {
|
36
49
|
updatePluginValues([...selectedKeys, value]);
|
@@ -39,48 +52,100 @@ const ActivationKeys = ({
|
|
39
52
|
|
40
53
|
// Validate field when hostgroup is changed (host group may have some keys)
|
41
54
|
useEffect(() => {
|
42
|
-
handleInvalidField(
|
55
|
+
handleInvalidField(
|
56
|
+
'Activation Keys',
|
57
|
+
akHasValidValue(
|
58
|
+
hostGroupId,
|
59
|
+
pluginValues?.activationKeys,
|
60
|
+
hostGroupActivationKeys,
|
61
|
+
),
|
62
|
+
);
|
43
63
|
}, [handleInvalidField, hostGroupId, hostGroupActivationKeys, pluginValues]);
|
44
64
|
|
65
|
+
useEffect(() => {
|
66
|
+
if (activationKeys?.length === 1) {
|
67
|
+
onChange({ activationKeys: [activationKeys[0].name] });
|
68
|
+
}
|
69
|
+
}, [activationKeys, onChange]);
|
70
|
+
|
45
71
|
return (
|
46
72
|
<FormGroup
|
73
|
+
onFocus={() => setHasInteraction(true)}
|
47
74
|
label={__('Activation Keys')}
|
48
75
|
fieldId="activation_keys_field"
|
49
|
-
helperText={
|
50
|
-
|
51
|
-
|
52
|
-
|
76
|
+
helperText={
|
77
|
+
hostGroupActivationKeys &&
|
78
|
+
sprintf('From host group: %s', hostGroupActivationKeys)
|
79
|
+
}
|
80
|
+
helperTextInvalid={
|
81
|
+
activationKeys?.length === 0 ? (
|
82
|
+
<a href="/activation_keys/new">{__('Create new activation key')}</a>
|
83
|
+
) : (
|
84
|
+
__('No Activation Keys selected')
|
85
|
+
)
|
86
|
+
}
|
87
|
+
helperTextInvalidIcon={<ExclamationCircleIcon />}
|
88
|
+
labelIcon={
|
89
|
+
<LabelIcon text={__('Activation key(s) to use during registration')} />
|
90
|
+
}
|
91
|
+
validated={validateAKField(
|
92
|
+
hasInteraction,
|
93
|
+
hostGroupId,
|
94
|
+
activationKeys,
|
95
|
+
pluginValues?.activationKeys,
|
96
|
+
hostGroupActivationKeys,
|
97
|
+
)}
|
53
98
|
isRequired
|
54
99
|
>
|
55
100
|
<Select
|
56
101
|
ouiaId="activation-keys-field"
|
57
102
|
selections={selectedKeys}
|
58
103
|
variant={SelectVariant.typeaheadMulti}
|
59
|
-
onToggle={() =>
|
104
|
+
onToggle={() => {
|
105
|
+
setHasInteraction(true);
|
106
|
+
setIsOpen(!isOpen);
|
107
|
+
}}
|
60
108
|
onSelect={onSelect}
|
61
109
|
onClear={() => updatePluginValues([])}
|
62
110
|
isOpen={isOpen}
|
111
|
+
validated={
|
112
|
+
activationKeys?.length > 0
|
113
|
+
? validateAKField(
|
114
|
+
hasInteraction,
|
115
|
+
hostGroupId,
|
116
|
+
activationKeys,
|
117
|
+
pluginValues?.activationKeys,
|
118
|
+
hostGroupActivationKeys,
|
119
|
+
)
|
120
|
+
: 'default'
|
121
|
+
}
|
63
122
|
id="activation_keys_field"
|
64
123
|
className="without_select2"
|
65
124
|
isDisabled={isLoading || activationKeys?.length === 0}
|
66
|
-
placeholderText={
|
125
|
+
placeholderText={
|
126
|
+
activationKeys?.length === 0 ? __('No Activation keys to select') : ''
|
127
|
+
}
|
67
128
|
>
|
68
|
-
{activationKeys &&
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
129
|
+
{activationKeys &&
|
130
|
+
activationKeys.map(ack => (
|
131
|
+
<SelectOption
|
132
|
+
key={ack.name}
|
133
|
+
value={ack.name}
|
134
|
+
description={ack?.lce ? ack.lce : __('No environment')}
|
135
|
+
/>
|
136
|
+
))}
|
75
137
|
</Select>
|
76
|
-
</FormGroup>
|
138
|
+
</FormGroup>
|
139
|
+
);
|
77
140
|
};
|
78
141
|
|
79
|
-
|
80
142
|
ActivationKeys.propTypes = {
|
81
143
|
activationKeys: PropTypes.array,
|
82
144
|
selectedKeys: PropTypes.array,
|
83
|
-
hostGroupActivationKeys: PropTypes.oneOfType([
|
145
|
+
hostGroupActivationKeys: PropTypes.oneOfType([
|
146
|
+
PropTypes.string,
|
147
|
+
PropTypes.array,
|
148
|
+
]),
|
84
149
|
hostGroupId: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
85
150
|
pluginValues: PropTypes.objectOf(PropTypes.shape({})),
|
86
151
|
onChange: PropTypes.func.isRequired,
|
@@ -3,62 +3,38 @@ import PropTypes from 'prop-types';
|
|
3
3
|
import { noop } from 'foremanReact/common/helpers';
|
4
4
|
|
5
5
|
import ActivationKeys from './fields/ActivationKeys';
|
6
|
-
import LifecycleEnvironment from './fields/LifecycleEnvironment';
|
7
6
|
import IgnoreSubmanErrors from './fields/IgnoreSubmanErrors';
|
8
7
|
import Force from './fields/Force';
|
9
8
|
|
10
9
|
export const RegistrationCommands = ({
|
11
|
-
organizationId,
|
12
|
-
hostGroupId,
|
13
10
|
pluginValues,
|
14
|
-
pluginData,
|
15
11
|
onChange,
|
16
12
|
isLoading,
|
17
|
-
}) =>
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
value={pluginValues?.ignoreSubmanErrors}
|
34
|
-
pluginValues={pluginValues}
|
35
|
-
onChange={onChange}
|
36
|
-
isLoading={isLoading}
|
37
|
-
/>
|
38
|
-
<Force
|
39
|
-
value={pluginValues?.force}
|
40
|
-
pluginValues={pluginValues}
|
41
|
-
onChange={onChange}
|
42
|
-
isLoading={isLoading}
|
43
|
-
/>
|
44
|
-
</>
|
45
|
-
);
|
46
|
-
};
|
13
|
+
}) => (
|
14
|
+
<>
|
15
|
+
<IgnoreSubmanErrors
|
16
|
+
value={pluginValues?.ignoreSubmanErrors}
|
17
|
+
pluginValues={pluginValues}
|
18
|
+
onChange={onChange}
|
19
|
+
isLoading={isLoading}
|
20
|
+
/>
|
21
|
+
<Force
|
22
|
+
value={pluginValues?.force}
|
23
|
+
pluginValues={pluginValues}
|
24
|
+
onChange={onChange}
|
25
|
+
isLoading={isLoading}
|
26
|
+
/>
|
27
|
+
</>
|
28
|
+
);
|
47
29
|
|
48
30
|
RegistrationCommands.propTypes = {
|
49
|
-
organizationId: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
50
|
-
hostGroupId: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
51
31
|
pluginValues: PropTypes.object, // eslint-disable-line react/forbid-prop-types
|
52
|
-
pluginData: PropTypes.object, // eslint-disable-line react/forbid-prop-types
|
53
32
|
onChange: PropTypes.func,
|
54
33
|
isLoading: PropTypes.bool,
|
55
34
|
};
|
56
35
|
|
57
36
|
RegistrationCommands.defaultProps = {
|
58
|
-
organizationId: undefined,
|
59
|
-
hostGroupId: undefined,
|
60
37
|
pluginValues: {},
|
61
|
-
pluginData: {},
|
62
38
|
isLoading: false,
|
63
39
|
onChange: noop,
|
64
40
|
};
|
@@ -80,7 +56,7 @@ export const RegistrationActivationKeys = ({
|
|
80
56
|
<ActivationKeys
|
81
57
|
activationKeys={pluginData?.activationKeys}
|
82
58
|
organizationId={organizationId}
|
83
|
-
selectedKeys={
|
59
|
+
selectedKeys={pluginValues?.activationKeys || []}
|
84
60
|
hostGroupActivationKeys={pluginData?.hostGroupActivationKeys}
|
85
61
|
hostGroupId={hostGroupId}
|
86
62
|
pluginValues={pluginValues}
|
data/webpack/global_index.js
CHANGED
@@ -25,7 +25,8 @@ import {
|
|
25
25
|
SystemPropertiesCardVirtualization,
|
26
26
|
SystemPropertiesCardTracer,
|
27
27
|
} from './components/extensions/HostDetails/DetailsTabCards/SystemPropertiesCardExtensions';
|
28
|
-
import
|
28
|
+
import HostDetailsActionsBar from './components/extensions/HostDetails/ActionsBar';
|
29
|
+
import HostsIndexActionsBar from './components/extensions/Hosts/ActionsBar';
|
29
30
|
import RecentCommunicationCardExtensions from './components/extensions/HostDetails/DetailsTabCards/RecentCommunicationCardExtensions';
|
30
31
|
import SystemPurposeCard from './components/extensions/HostDetails/Cards/SystemPurposeCard/SystemPurposeCard';
|
31
32
|
|
@@ -67,7 +68,15 @@ addGlobalFill('host-details-tab-properties-3', 'Virtualization', <SystemProperti
|
|
67
68
|
addGlobalFill(
|
68
69
|
'host-details-kebab',
|
69
70
|
'katello-host-details-kebab',
|
70
|
-
<
|
71
|
+
<HostDetailsActionsBar key="katello-host-details-kebab" />,
|
71
72
|
100,
|
72
73
|
);
|
74
|
+
|
75
|
+
addGlobalFill(
|
76
|
+
'hosts-index-kebab',
|
77
|
+
'katello-hosts-index-kebab',
|
78
|
+
<HostsIndexActionsBar key="katello-hosts-index-kebab" />,
|
79
|
+
100,
|
80
|
+
);
|
81
|
+
|
73
82
|
addGlobalFill('host-tab-details-cards', 'HW properties', <HwPropertiesCard key="hw-properties" />, 200);
|
@@ -55,6 +55,7 @@ export const requestSuccessResponse = Immutable({
|
|
55
55
|
],
|
56
56
|
},
|
57
57
|
last_sync: null,
|
58
|
+
content_view_versions: [],
|
58
59
|
content_counts: {
|
59
60
|
docker_manifest: 0,
|
60
61
|
docker_manifest_list: 0,
|
@@ -95,6 +96,7 @@ export const requestSuccessResponse = Immutable({
|
|
95
96
|
],
|
96
97
|
},
|
97
98
|
last_sync: null,
|
99
|
+
content_view_versions: [1],
|
98
100
|
content_counts: {
|
99
101
|
docker_manifest: 0,
|
100
102
|
docker_manifest_list: 0,
|
@@ -128,6 +130,7 @@ export const successState = Immutable({
|
|
128
130
|
productId: 20,
|
129
131
|
releasever: '7.0',
|
130
132
|
type: 'yum',
|
133
|
+
canDisable: true,
|
131
134
|
},
|
132
135
|
{
|
133
136
|
arch: 'x86_64',
|
@@ -139,6 +142,7 @@ export const successState = Immutable({
|
|
139
142
|
productId: 20,
|
140
143
|
releasever: '7.1',
|
141
144
|
type: 'yum',
|
145
|
+
canDisable: false,
|
142
146
|
},
|
143
147
|
],
|
144
148
|
searchIsActive: false,
|
@@ -25,6 +25,7 @@ import {
|
|
25
25
|
Flex,
|
26
26
|
FlexItem,
|
27
27
|
Panel,
|
28
|
+
PageSection,
|
28
29
|
} from '@patternfly/react-core';
|
29
30
|
import './ActivationKeyDetails.scss';
|
30
31
|
import EditModal from './components/EditModal';
|
@@ -32,6 +33,7 @@ import DeleteMenu from './components/DeleteMenu';
|
|
32
33
|
import { getActivationKey } from './ActivationKeyActions';
|
33
34
|
import DeleteModal from './components/DeleteModal';
|
34
35
|
import InactiveText from '../../ContentViews/components/InactiveText';
|
36
|
+
import SystemPurposeCard from '../../../components/extensions/HostDetails/Cards/SystemPurposeCard/SystemPurposeCard';
|
35
37
|
|
36
38
|
const ActivationKeyDetails = ({ match }) => {
|
37
39
|
const dispatch = useDispatch();
|
@@ -51,7 +53,7 @@ const ActivationKeyDetails = ({ match }) => {
|
|
51
53
|
};
|
52
54
|
|
53
55
|
return (
|
54
|
-
<div >
|
56
|
+
<div id="ak-details-katello" >
|
55
57
|
<Panel className="ak-details-header">
|
56
58
|
<div className="breadcrumb-bar-pf4">
|
57
59
|
<Breadcrumb ouiaId="ak-breadcrumbs" className="breadcrumb-display">
|
@@ -106,6 +108,13 @@ const ActivationKeyDetails = ({ match }) => {
|
|
106
108
|
}
|
107
109
|
</div>
|
108
110
|
</Panel>
|
111
|
+
<PageSection className="ak-details-tab-page">
|
112
|
+
<Grid className="ak-details-tab-page" hasGutter>
|
113
|
+
<GridItem span={6}>
|
114
|
+
<SystemPurposeCard akDetails={akDetails} />
|
115
|
+
</GridItem>
|
116
|
+
</Grid>
|
117
|
+
</PageSection>
|
109
118
|
<DeleteModal isModalOpen={isModalOpen} handleModalToggle={handleModalToggle} akId={akId} />
|
110
119
|
</div>
|
111
120
|
);
|
@@ -1,37 +1,39 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
1
|
+
#ak-details-katello {
|
2
|
+
.ak-details-header {
|
3
|
+
margin: 0 24px 16px;
|
4
|
+
padding-top: 16px;
|
5
|
+
}
|
5
6
|
|
6
|
-
.ak-details-description {
|
7
|
-
|
8
|
-
}
|
7
|
+
.ak-details-description {
|
8
|
+
padding-top: 16px;
|
9
|
+
}
|
9
10
|
|
10
|
-
.breadcrumb-bar-pf4 {
|
11
|
-
|
12
|
-
}
|
11
|
+
.breadcrumb-bar-pf4 {
|
12
|
+
margin: 0 0 16px;
|
13
|
+
}
|
13
14
|
|
14
|
-
.breadcrumb-display {
|
15
|
-
|
16
|
-
}
|
15
|
+
.breadcrumb-display {
|
16
|
+
display: block;
|
17
|
+
}
|
17
18
|
|
18
|
-
.breadcrumb-list {
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
}
|
19
|
+
.breadcrumb-list {
|
20
|
+
display: flex;
|
21
|
+
flex-wrap: wrap;
|
22
|
+
align-items: center;
|
23
|
+
}
|
23
24
|
|
24
|
-
.ak-name-truncate {
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
}
|
25
|
+
.ak-name-truncate {
|
26
|
+
text-overflow: ellipsis;
|
27
|
+
max-width: 100%;
|
28
|
+
white-space: nowrap;
|
29
|
+
overflow: hidden;
|
30
|
+
display: inline-block;
|
31
|
+
margin-right: 16px;
|
32
|
+
}
|
32
33
|
|
33
|
-
.ak-name-wrapper {
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
}
|
34
|
+
.ak-name-wrapper {
|
35
|
+
display: inline-flex;
|
36
|
+
max-width: 60%;
|
37
|
+
margin-right: 8px;
|
38
|
+
}
|
39
|
+
}
|
@@ -27,13 +27,15 @@ import {
|
|
27
27
|
TextVariants,
|
28
28
|
} from '@patternfly/react-core';
|
29
29
|
import { TableVariant, Tbody, Td, Th, Thead, Tr, ActionsColumn } from '@patternfly/react-table';
|
30
|
+
import { useSelectionSet } from 'foremanReact/components/PF4/TableIndexPage/Table/TableHooks';
|
31
|
+
import { useTableSort } from 'foremanReact/components/PF4/Helpers/useTableSort';
|
32
|
+
|
30
33
|
import TableWrapper from '../../../components/Table/TableWrapper';
|
31
34
|
import {
|
32
35
|
selectAlternateContentSources,
|
33
36
|
selectAlternateContentSourcesError,
|
34
37
|
selectAlternateContentSourcesStatus,
|
35
38
|
} from '../ACSSelectors';
|
36
|
-
import { useSelectionSet, useTableSort } from '../../../components/Table/TableHooks';
|
37
39
|
import getAlternateContentSources, { deleteACS, bulkDeleteACS, getACSDetails, refreshACS, bulkRefreshACS } from '../ACSActions';
|
38
40
|
import ACSCreateWizard from '../Create/ACSCreateWizard';
|
39
41
|
import LastSync from '../../ContentViews/Details/Repositories/LastSync';
|
@@ -16,6 +16,7 @@ export default [
|
|
16
16
|
singularLowercase: __('Python package'),
|
17
17
|
pluralLabel: 'python_packages',
|
18
18
|
singularLabel: 'python_package',
|
19
|
+
capsuleCountLabel: 'python_package',
|
19
20
|
},
|
20
21
|
columnHeaders: [
|
21
22
|
{ title: __('Name'), getProperty: unit => (<a href={urlBuilder(`content/python_packages/${unit?.id}`, '')}>{unit?.name}</a>) },
|
@@ -81,6 +82,7 @@ export default [
|
|
81
82
|
singularLowercase: __('OSTree ref'),
|
82
83
|
pluralLabel: 'ostree_refs',
|
83
84
|
singularLabel: 'ostree_ref',
|
85
|
+
capsuleCountLabel: 'ostree_ref',
|
84
86
|
},
|
85
87
|
columnHeaders: [
|
86
88
|
{ title: __('Name'), getProperty: unit => (<a href={urlBuilder(`content/ostree_refs/${unit?.id}`, '')}>{unit?.name}</a>) },
|
@@ -142,6 +144,7 @@ export default [
|
|
142
144
|
singularLowercase: __('Ansible collection'),
|
143
145
|
pluralLabel: 'ansible_collections',
|
144
146
|
singularLabel: 'ansible_collection',
|
147
|
+
capsuleCountLabel: 'ansible_collection',
|
145
148
|
},
|
146
149
|
columnHeaders: [
|
147
150
|
{ title: __('Name'), getProperty: unit => (<a href={urlBuilder(`content/ansible_collections/${unit?.id}`, '')}>{unit?.name}</a>) },
|
@@ -76,10 +76,12 @@ const CreateContentViewForm = ({ setModalOpen }) => {
|
|
76
76
|
const submitDisabled = !name?.length || !label?.length || saving || redirect || labelValidated === 'error';
|
77
77
|
|
78
78
|
return (
|
79
|
-
<Form
|
80
|
-
e
|
81
|
-
|
82
|
-
|
79
|
+
<Form
|
80
|
+
onSubmit={(e) => {
|
81
|
+
e.preventDefault();
|
82
|
+
onSave();
|
83
|
+
}}
|
84
|
+
id="create-content-view-form"
|
83
85
|
>
|
84
86
|
<FormGroup label={__('Name')} isRequired fieldId="name">
|
85
87
|
<TextInput
|
data/webpack/scenes/ContentViews/Details/ComponentContentViews/ComponentContentViewAddModal.js
CHANGED
@@ -13,8 +13,7 @@ import {
|
|
13
13
|
selectCVDetails,
|
14
14
|
selectCVDetailStatus,
|
15
15
|
} from '../../Details/ContentViewDetailSelectors';
|
16
|
-
import { addComponent } from '../ContentViewDetailActions';
|
17
|
-
import { CONTENT_VIEW_NEEDS_PUBLISH } from '../../ContentViewsConstants';
|
16
|
+
import getContentViewDetails, { addComponent } from '../ContentViewDetailActions';
|
18
17
|
|
19
18
|
const ComponentContentViewAddModal = ({
|
20
19
|
cvId, componentCvId, componentId, latest, componentVersionId, show, setIsOpen,
|
@@ -67,12 +66,12 @@ const ComponentContentViewAddModal = ({
|
|
67
66
|
dispatch(addComponent({
|
68
67
|
compositeContentViewId: cvId,
|
69
68
|
components: getUpdateParams(),
|
70
|
-
}, () => dispatch(
|
69
|
+
}, () => dispatch(getContentViewDetails(cvId))));
|
71
70
|
} else {
|
72
71
|
dispatch(addComponent({
|
73
72
|
compositeContentViewId: cvId,
|
74
73
|
components: getAddParams(),
|
75
|
-
}, () => dispatch(
|
74
|
+
}, () => dispatch(getContentViewDetails(cvId))));
|
76
75
|
}
|
77
76
|
setIsOpen(false);
|
78
77
|
};
|
data/webpack/scenes/ContentViews/Details/ComponentContentViews/ComponentContentViewBulkAddModal.js
CHANGED
@@ -8,7 +8,7 @@ import {
|
|
8
8
|
import { OutlinedQuestionCircleIcon } from '@patternfly/react-icons';
|
9
9
|
import { useDispatch } from 'react-redux';
|
10
10
|
import { translate as __ } from 'foremanReact/common/I18n';
|
11
|
-
import { addComponent } from '../ContentViewDetailActions';
|
11
|
+
import getContentViewDetails, { addComponent } from '../ContentViewDetailActions';
|
12
12
|
|
13
13
|
const ComponentContentViewBulkAddModal = ({ cvId, rowsToAdd, onClose }) => {
|
14
14
|
const dispatch = useDispatch();
|
@@ -37,7 +37,7 @@ const ComponentContentViewBulkAddModal = ({ cvId, rowsToAdd, onClose }) => {
|
|
37
37
|
dispatch(addComponent({
|
38
38
|
compositeContentViewId: cvId,
|
39
39
|
components: bulkAddParams(),
|
40
|
-
}));
|
40
|
+
}, () => dispatch(getContentViewDetails(cvId))));
|
41
41
|
onClose();
|
42
42
|
};
|
43
43
|
|