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
@@ -0,0 +1,58 @@
|
|
1
|
+
module Katello
|
2
|
+
module UINotifications
|
3
|
+
module Hosts
|
4
|
+
class LifecycleExpireSoon
|
5
|
+
def self.deliver!
|
6
|
+
::Katello::RhelLifecycleStatus.lifecycles_expire_soon.each do |release, schedule|
|
7
|
+
schedule.each do |lifecycle, end_date|
|
8
|
+
count = hosts_with_index(release).count
|
9
|
+
next if count == 0
|
10
|
+
|
11
|
+
message = message(count: count, release: release, lifecycle: lifecycle, end_date: end_date)
|
12
|
+
if (notification = existing_notification(release))
|
13
|
+
/[^:]+: (?<number_of_hosts>\d+) hosts/ =~ notification.message
|
14
|
+
next if number_of_hosts == count.to_s
|
15
|
+
notification.update(message: message)
|
16
|
+
else
|
17
|
+
::Notification.create!(
|
18
|
+
:initiator => User.anonymous_admin,
|
19
|
+
:audience => Notification::AUDIENCE_GLOBAL,
|
20
|
+
:message => message,
|
21
|
+
:expired_at => end_date.strftime('%Y-%m-%d'),
|
22
|
+
:notification_blueprint => blueprint
|
23
|
+
)
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
28
|
+
|
29
|
+
def self.existing_notification(release)
|
30
|
+
blueprint.notifications.where("message like ?", "#{release}%").first
|
31
|
+
end
|
32
|
+
|
33
|
+
def self.message(options)
|
34
|
+
::UINotifications::StringParser.new(
|
35
|
+
blueprint.message,
|
36
|
+
:number_of_hosts => options[:count],
|
37
|
+
:release => options[:release],
|
38
|
+
:lifecycle => options[:lifecycle].gsub(/_/, " "),
|
39
|
+
:end_date => options[:end_date].strftime('%Y-%m-%d'),
|
40
|
+
:audience => Notification::AUDIENCE_GLOBAL
|
41
|
+
)
|
42
|
+
end
|
43
|
+
|
44
|
+
def self.hosts_with_index(release)
|
45
|
+
/RHEL(?<major>\d+)/ =~ release
|
46
|
+
::Host::Managed.joins(:operatingsystem, :fact_values, :fact_names)
|
47
|
+
.where(fact_names: {name: "distribution::name"})
|
48
|
+
.where("fact_values.value like ?", "Red Hat Enterprise Linux%")
|
49
|
+
.where(operatingsystem: {major: major})
|
50
|
+
end
|
51
|
+
|
52
|
+
def self.blueprint
|
53
|
+
@blueprint ||= NotificationBlueprint.find_by(name: 'host_lifecycle_expire_soon')
|
54
|
+
end
|
55
|
+
end
|
56
|
+
end
|
57
|
+
end
|
58
|
+
end
|
@@ -1,5 +1,3 @@
|
|
1
1
|
<%= javascript_include_tag *webpack_asset_paths('katello', extension: 'js') %>
|
2
|
-
|
3
|
-
<br />
|
4
2
|
<% @smartProxyId= @smart_proxy.id %>
|
5
|
-
<%= react_component('Content', smartProxyId: @smartProxyId,) %>
|
3
|
+
<%= react_component('Content', smartProxyId: @smartProxyId, organizationId: Organization.current&.id,) %>
|
@@ -1,6 +1,9 @@
|
|
1
1
|
object @capsule
|
2
2
|
|
3
3
|
attribute :last_sync_time
|
4
|
+
node :last_sync_words do |_object|
|
5
|
+
@capsule&.last_sync_time ? time_ago_in_words(Time.parse(@capsule&.last_sync_time&.to_s)) : nil
|
6
|
+
end
|
4
7
|
|
5
8
|
attribute :download_policy
|
6
9
|
|
@@ -15,6 +18,18 @@ child :last_failed_sync_tasks => :last_failed_sync_tasks do
|
|
15
18
|
extends 'foreman_tasks/api/tasks/show'
|
16
19
|
end
|
17
20
|
|
21
|
+
child :last_sync_task => :last_sync_task do
|
22
|
+
extends 'foreman_tasks/api/tasks/show'
|
23
|
+
end
|
24
|
+
|
25
|
+
node :content_counts do
|
26
|
+
@capsule.content_counts
|
27
|
+
end
|
28
|
+
|
29
|
+
child :last_failed_reclaim_tasks => :last_failed_reclaim_tasks do
|
30
|
+
extends 'foreman_tasks/api/tasks/show'
|
31
|
+
end
|
32
|
+
|
18
33
|
child @lifecycle_environments => :lifecycle_environments do
|
19
34
|
extends 'katello/api/v2/common/identifier'
|
20
35
|
extends 'katello/api/v2/common/org_reference'
|
@@ -24,6 +39,17 @@ child @lifecycle_environments => :lifecycle_environments do
|
|
24
39
|
@capsule.environment_syncable?(env)
|
25
40
|
end
|
26
41
|
|
42
|
+
node :last_sync do |env|
|
43
|
+
last_env_sync_task = @capsule.last_env_sync_task(env)
|
44
|
+
attributes = {
|
45
|
+
:id => last_env_sync_task&.id,
|
46
|
+
:started_at => last_env_sync_task&.started_at,
|
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
|
49
|
+
}
|
50
|
+
attributes
|
51
|
+
end
|
52
|
+
|
27
53
|
if @capsule.has_feature?(SmartProxy::PULP_NODE_FEATURE) || @capsule.has_feature?(SmartProxy::PULP3_FEATURE)
|
28
54
|
node :counts do |env|
|
29
55
|
{
|
@@ -33,8 +59,11 @@ child @lifecycle_environments => :lifecycle_environments do
|
|
33
59
|
|
34
60
|
node :content_views do |env|
|
35
61
|
env.content_views.ignore_generated.map do |content_view|
|
62
|
+
cvv = ::Katello::ContentViewVersion.in_environment(env).find_by(:content_view => content_view)
|
36
63
|
attributes = {
|
37
64
|
:id => content_view.id,
|
65
|
+
:cvv_id => cvv&.id,
|
66
|
+
:cvv_version => cvv&.version,
|
38
67
|
:label => content_view.label,
|
39
68
|
:name => content_view.name,
|
40
69
|
:composite => content_view.composite,
|
@@ -43,7 +72,16 @@ child @lifecycle_environments => :lifecycle_environments do
|
|
43
72
|
:up_to_date => @capsule.repos_pending_sync(env, content_view).empty?,
|
44
73
|
:counts => {
|
45
74
|
:repositories => ::Katello::ContentViewVersion.in_environment(env).find_by(:content_view => content_view)&.archived_repos&.count
|
46
|
-
}
|
75
|
+
},
|
76
|
+
:repositories => ::Katello::ContentViewVersion.in_environment(env)&.find_by(:content_view => content_view)&.archived_repos&.map do |repo|
|
77
|
+
{
|
78
|
+
:id => repo.id,
|
79
|
+
:name => repo.name,
|
80
|
+
:library_id => repo.library_instance_id,
|
81
|
+
:product_id => repo.product_id,
|
82
|
+
:content_type => repo.content_type
|
83
|
+
}
|
84
|
+
end
|
47
85
|
}
|
48
86
|
attributes
|
49
87
|
end
|
@@ -25,6 +25,10 @@ child :content_facet => :content_facet_attributes do
|
|
25
25
|
content_facet.tracer_installed?
|
26
26
|
end
|
27
27
|
|
28
|
+
node :katello_tracer_rpm_available do |content_facet|
|
29
|
+
content_facet.tracer_rpm_available?
|
30
|
+
end
|
31
|
+
|
28
32
|
user = User.current # current_user is not available here
|
29
33
|
child :permissions do
|
30
34
|
node(:view_lifecycle_environments) { user.can?("view_lifecycle_environments") }
|
@@ -2,7 +2,7 @@ extends 'katello/api/v2/common/identifier'
|
|
2
2
|
extends 'katello/api/v2/common/org_reference'
|
3
3
|
|
4
4
|
attributes :composite
|
5
|
-
attributes :component_ids
|
5
|
+
attributes :component_ids, :duplicate_repositories_to_publish
|
6
6
|
attributes :default
|
7
7
|
attributes :version_count
|
8
8
|
attributes :latest_version, :latest_version_id
|
@@ -18,18 +18,40 @@ child :docker_manifest => :manifest do
|
|
18
18
|
attributes :schema_version, :digest, :manifest_type
|
19
19
|
end
|
20
20
|
|
21
|
-
|
22
|
-
|
21
|
+
if @organization
|
22
|
+
node :repositories do
|
23
|
+
@object.repositories.in_organization(@organization).map do |repo|
|
24
|
+
attributes = {
|
25
|
+
:id => repo.id,
|
26
|
+
:name => repo.name,
|
27
|
+
:full_path => repo.full_path
|
28
|
+
}
|
29
|
+
attributes
|
30
|
+
end
|
31
|
+
end
|
32
|
+
node :product do
|
33
|
+
first_repo = @object.repositories.in_organization(@organization)&.first
|
34
|
+
product = first_repo&.product
|
35
|
+
attributes = {
|
36
|
+
:id => product&.id,
|
37
|
+
:name => product&.name
|
38
|
+
}
|
39
|
+
attributes
|
40
|
+
end
|
41
|
+
else
|
42
|
+
child :repositories => :repositories do
|
43
|
+
attributes :id, :name, :full_path
|
44
|
+
end
|
45
|
+
|
46
|
+
child :product => :product do
|
47
|
+
attributes :id, :name
|
48
|
+
end
|
23
49
|
end
|
24
50
|
|
25
51
|
node :upstream_name do |item|
|
26
52
|
item.upstream_name
|
27
53
|
end
|
28
54
|
|
29
|
-
child :product => :product do
|
30
|
-
attributes :id, :name
|
31
|
-
end
|
32
|
-
|
33
55
|
child :environment => :environment do
|
34
56
|
attributes :id, :name
|
35
57
|
end
|
@@ -27,7 +27,7 @@
|
|
27
27
|
|
28
28
|
<% if !host.operatingsystem_name&.match(/Debian|Ubuntu/) %>
|
29
29
|
<% if Setting["host_details_ui"] %>
|
30
|
-
<a href="/new/hosts/<%= host.name %>#/Content/packages">
|
30
|
+
<a href="/new/hosts/<%= host.name %>#/Content/packages?status=Upgradable">
|
31
31
|
<% else %>
|
32
32
|
<a href="/content_hosts/<%= host.id %>/packages/applicable">
|
33
33
|
<% end %>
|
@@ -43,7 +43,7 @@
|
|
43
43
|
<% end %>
|
44
44
|
<% if host.operatingsystem_name&.match(/Debian|Ubuntu/) %>
|
45
45
|
<% if Setting["host_details_ui"] %>
|
46
|
-
<a href="/new/hosts/<%= host.name %>#/Content/packages">
|
46
|
+
<a href="/new/hosts/<%= host.name %>#/Content/packages?status=Upgradable">
|
47
47
|
<% else %>
|
48
48
|
<a href="/content_hosts/<%= host.id %>/debs/applicable">
|
49
49
|
<% end %>
|
@@ -0,0 +1,31 @@
|
|
1
|
+
<p>
|
2
|
+
<%= _("%{label} failed.") % { :label => @task.action } %>
|
3
|
+
</p>
|
4
|
+
|
5
|
+
<div class="dashboard">
|
6
|
+
<table>
|
7
|
+
<tr>
|
8
|
+
<td><%= _('Content view') %></td>
|
9
|
+
<td><%= link_to @content_view.name, "#{katello_url}content_views/#{@content_view.id}" %></td>
|
10
|
+
</tr>
|
11
|
+
<tr>
|
12
|
+
<td><%= _('Task ID') %></td>
|
13
|
+
<td><%= link_to @task.id, foreman_tasks_task_url(@task.id) %></td>
|
14
|
+
</tr>
|
15
|
+
<tr>
|
16
|
+
<td><%= _('Task state') %></td>
|
17
|
+
<td><%= @task.state %></td>
|
18
|
+
</tr>
|
19
|
+
<tr>
|
20
|
+
<td><%= _('Task result') %></td>
|
21
|
+
<td><%= @task.result %></td>
|
22
|
+
</tr>
|
23
|
+
</table>
|
24
|
+
|
25
|
+
Errors:
|
26
|
+
<ul>
|
27
|
+
<% @task.execution_plan.errors.each do |error| %>
|
28
|
+
<li><%= error.exception_class %>: <%= error.message %></li>
|
29
|
+
<% end %>
|
30
|
+
</ul>
|
31
|
+
</div>
|
@@ -0,0 +1,13 @@
|
|
1
|
+
<%= _("%{label} failed.") % { :label => @task.action } %>
|
2
|
+
|
3
|
+
<%= _('Content view ID') %>: <%= @content_view.id %>
|
4
|
+
<%= _('Content view name') %>: <%= @content_view.name %>
|
5
|
+
<%= _('Task ID') %>: <%= @task.id %>
|
6
|
+
<%= _('Task state') %>: <%= @task.state %>
|
7
|
+
<%= _('Task result') %>: <%= @task.result %>
|
8
|
+
<%= _('Task details') %>: <%= foreman_tasks_task_url(@task) %>
|
9
|
+
|
10
|
+
Errors:
|
11
|
+
<% @task.execution_plan.errors.each do |error| %>
|
12
|
+
- <%= error.exception_class %>: <%= error.message %>
|
13
|
+
<% end %>
|
@@ -0,0 +1,31 @@
|
|
1
|
+
<p>
|
2
|
+
<%= _("%{label} failed.") % { :label => @task.action } %>
|
3
|
+
</p>
|
4
|
+
|
5
|
+
<div class="dashboard">
|
6
|
+
<table>
|
7
|
+
<tr>
|
8
|
+
<td><%= _('Content view') %></td>
|
9
|
+
<td><%= link_to @content_view.name, "#{katello_url}content_views/#{@content_view.id}" %></td>
|
10
|
+
</tr>
|
11
|
+
<tr>
|
12
|
+
<td><%= _('Task ID') %></td>
|
13
|
+
<td><%= link_to @task.id, foreman_tasks_task_url(@task.id) %></td>
|
14
|
+
</tr>
|
15
|
+
<tr>
|
16
|
+
<td><%= _('Task state') %></td>
|
17
|
+
<td><%= @task.state %></td>
|
18
|
+
</tr>
|
19
|
+
<tr>
|
20
|
+
<td><%= _('Task result') %></td>
|
21
|
+
<td><%= @task.result %></td>
|
22
|
+
</tr>
|
23
|
+
</table>
|
24
|
+
|
25
|
+
Errors:
|
26
|
+
<ul>
|
27
|
+
<% @task.execution_plan.errors.each do |error| %>
|
28
|
+
<li><%= error.exception_class %>: <%= error.message %></li>
|
29
|
+
<% end %>
|
30
|
+
</ul>
|
31
|
+
</div>
|
@@ -0,0 +1,13 @@
|
|
1
|
+
<%= _("%{label} failed.") % { :label => @task.action } %>
|
2
|
+
|
3
|
+
<%= _('Content view ID') %>: <%= @content_view.id %>
|
4
|
+
<%= _('Content view name') %>: <%= @content_view.name %>
|
5
|
+
<%= _('Task ID') %>: <%= @task.id %>
|
6
|
+
<%= _('Task state') %>: <%= @task.state %>
|
7
|
+
<%= _('Task result') %>: <%= @task.result %>
|
8
|
+
<%= _('Task details') %>: <%= foreman_tasks_task_url(@task) %>
|
9
|
+
|
10
|
+
Errors:
|
11
|
+
<% @task.execution_plan.errors.each do |error| %>
|
12
|
+
- <%= error.exception_class %>: <%= error.message %>
|
13
|
+
<% end %>
|
@@ -0,0 +1,45 @@
|
|
1
|
+
<p>
|
2
|
+
<%= _("%{label} failed.") % { :label => @task.action } %>
|
3
|
+
</p>
|
4
|
+
|
5
|
+
<div class="dashboard">
|
6
|
+
<table>
|
7
|
+
<% if @environment %>
|
8
|
+
<tr>
|
9
|
+
<td><%= _('Environment') %></td>
|
10
|
+
<td><%= link_to @environment.name, "#{katello_url}lifecycle_environments/#{@environment.id}" %></td>
|
11
|
+
</tr>
|
12
|
+
<% end %>
|
13
|
+
<% if @content_view %>
|
14
|
+
<tr>
|
15
|
+
<td><%= _('Content view') %></td>
|
16
|
+
<td><%= link_to @content_view.name, "#{katello_url}content_views/#{@content_view.id}" %></td>
|
17
|
+
</tr>
|
18
|
+
<% end %>
|
19
|
+
<% if @repo %>
|
20
|
+
<tr>
|
21
|
+
<td><%= _('Repository') %></td>
|
22
|
+
<td><%= link_to @repo.name, "#{katello_url}products/#{@repo.product.id}/repositories/#{@repo.id}" %></td>
|
23
|
+
</tr>
|
24
|
+
<% end %>
|
25
|
+
<tr>
|
26
|
+
<td><%= _('Task ID') %></td>
|
27
|
+
<td><%= link_to @task.id, foreman_tasks_task_url(@task.id) %></td>
|
28
|
+
</tr>
|
29
|
+
<tr>
|
30
|
+
<td><%= _('Task state') %></td>
|
31
|
+
<td><%= @task.state %></td>
|
32
|
+
</tr>
|
33
|
+
<tr>
|
34
|
+
<td><%= _('Task result') %></td>
|
35
|
+
<td><%= @task.result %></td>
|
36
|
+
</tr>
|
37
|
+
</table>
|
38
|
+
|
39
|
+
Errors:
|
40
|
+
<ul>
|
41
|
+
<% @task.execution_plan.errors.each do |error| %>
|
42
|
+
<li><%= error.exception_class %>: <%= error.message %></li>
|
43
|
+
<% end %>
|
44
|
+
</ul>
|
45
|
+
</div>
|
@@ -0,0 +1,25 @@
|
|
1
|
+
<%= _("%{label} failed.") % { :label => @task.action } %>
|
2
|
+
|
3
|
+
<%= _('Smart proxy ID') %>: <%= @smart_proxy.id %>
|
4
|
+
<%= _('Smart proxy name') %>: <%= @smart_proxy.name %>
|
5
|
+
<% if @environment %>
|
6
|
+
<%= _('Environment ID') %>: <%= @environment&.id %>
|
7
|
+
<%= _('Environment name') %>: <%= @environment&.name %>
|
8
|
+
<% end %>
|
9
|
+
<% if @content_view %>
|
10
|
+
<%= _('Content view ID') %>: <%= @content_view&.id %>
|
11
|
+
<%= _('Content view name') %>: <%= @content_view&.name %>
|
12
|
+
<% end %>
|
13
|
+
<% if @repo %>
|
14
|
+
<%= _('Repository ID') %>: <%= @repo&.id %>
|
15
|
+
<%= _('Repository name') %>: <%= @repo&.name %>
|
16
|
+
<% end %>
|
17
|
+
<%= _('Task ID') %>: <%= @task.id %>
|
18
|
+
<%= _('Task state') %>: <%= @task.state %>
|
19
|
+
<%= _('Task result') %>: <%= @task.result %>
|
20
|
+
<%= _('Task details') %>: <%= foreman_tasks_task_url(@task) %>
|
21
|
+
|
22
|
+
Errors:
|
23
|
+
<% @task.execution_plan.errors.each do |error| %>
|
24
|
+
- <%= error.exception_class %>: <%= error.message %>
|
25
|
+
<% end %>
|
@@ -0,0 +1,35 @@
|
|
1
|
+
<p>
|
2
|
+
<%= _("%{label} failed.") % { :label => @task.action } %>
|
3
|
+
</p>
|
4
|
+
|
5
|
+
<div class="dashboard">
|
6
|
+
<table>
|
7
|
+
<tr>
|
8
|
+
<td><%= _('Repository') %></td>
|
9
|
+
<td><%= link_to @repo.label, "#{katello_url}products/#{@repo.product.id}/repositories/#{@repo.id}" %></td>
|
10
|
+
</tr>
|
11
|
+
<tr>
|
12
|
+
<td><%= _('Product') %></td>
|
13
|
+
<td><%= link_to @repo.product.label, "#{katello_url}products/#{@repo.product.id}" %></td>
|
14
|
+
</tr>
|
15
|
+
<tr>
|
16
|
+
<td><%= _('Task ID') %></td>
|
17
|
+
<td><%= link_to @task.id, foreman_tasks_task_url(@task.id) %></td>
|
18
|
+
</tr>
|
19
|
+
<tr>
|
20
|
+
<td><%= _('Task state') %></td>
|
21
|
+
<td><%= @task.state %></td>
|
22
|
+
</tr>
|
23
|
+
<tr>
|
24
|
+
<td><%= _('Task result') %></td>
|
25
|
+
<td><%= @task.result %></td>
|
26
|
+
</tr>
|
27
|
+
</table>
|
28
|
+
|
29
|
+
Errors:
|
30
|
+
<ul>
|
31
|
+
<% @task.execution_plan.errors.each do |error| %>
|
32
|
+
<li><%= error.exception_class %>: <%= error.message %></li>
|
33
|
+
<% end %>
|
34
|
+
</ul>
|
35
|
+
</div>
|
@@ -0,0 +1,15 @@
|
|
1
|
+
<%= _("%{label} failed.") % { :label => @task.action } %>
|
2
|
+
|
3
|
+
<%= _('Repo ID') %>: <%= @repo.id %>
|
4
|
+
<%= _('Repo label') %>: <%= @repo.label %>
|
5
|
+
<%= _('Product ID') %>: <%= @repo.product.id %>
|
6
|
+
<%= _('Product label') %>: <%= @repo.product.label %>
|
7
|
+
<%= _('Task ID') %>: <%= @task.id %>
|
8
|
+
<%= _('Task state') %>: <%= @task.state %>
|
9
|
+
<%= _('Task result') %>: <%= @task.result %>
|
10
|
+
<%= _('Task details') %>: <%= foreman_tasks_task_url(@task) %>
|
11
|
+
|
12
|
+
Errors:
|
13
|
+
<% @task.execution_plan.errors.each do |error| %>
|
14
|
+
- <%= error.exception_class %>: <%= error.message %>
|
15
|
+
<% end %>
|
data/config/routes/api/v2.rb
CHANGED
@@ -23,6 +23,8 @@ Katello::Engine.routes.draw do
|
|
23
23
|
resource :content, :only => [], :controller => 'capsule_content' do
|
24
24
|
get :lifecycle_environments
|
25
25
|
get :available_lifecycle_environments
|
26
|
+
get :counts
|
27
|
+
post :update_counts
|
26
28
|
post :sync
|
27
29
|
get :sync, :action => :sync_status
|
28
30
|
delete :sync, :action => :cancel_sync
|
@@ -0,0 +1,7 @@
|
|
1
|
+
class AddContentCountsToSmartProxy < ActiveRecord::Migration[6.1]
|
2
|
+
def change
|
3
|
+
# {:content_view_versions=>{87=>{:repositories=>{1=>{:rpms=>98, :module_streams=>9898}, 2=>{:tags=>32432, :manifests=>323}}}}}
|
4
|
+
add_column :smart_proxies, :content_counts, :jsonb
|
5
|
+
add_index :smart_proxies, :content_counts
|
6
|
+
end
|
7
|
+
end
|
@@ -9,6 +9,10 @@ User.as(::User.anonymous_api_admin.login) do
|
|
9
9
|
N_('Host errata advisory')
|
10
10
|
N_('Sync errata')
|
11
11
|
N_('Promote errata')
|
12
|
+
N_('Repository sync failure')
|
13
|
+
N_('Content view publish failure')
|
14
|
+
N_('Content view promote failure')
|
15
|
+
N_('Proxy sync failure')
|
12
16
|
|
13
17
|
# Mail Notifications
|
14
18
|
notifications = [
|
@@ -39,6 +43,34 @@ User.as(::User.anonymous_api_admin.login) do
|
|
39
43
|
:method => 'subscription_expiry',
|
40
44
|
:subscription_type => 'report',
|
41
45
|
:queryable => true
|
46
|
+
},
|
47
|
+
|
48
|
+
{:name => :repository_sync_failure,
|
49
|
+
:description => N_('A notification about failed repository sync'),
|
50
|
+
:mailer => 'Katello::TaskMailer',
|
51
|
+
:method => 'repo_sync_failure',
|
52
|
+
:subscription_type => 'alert'
|
53
|
+
},
|
54
|
+
|
55
|
+
{:name => :content_view_publish_failure,
|
56
|
+
:description => N_('A notification about failed content view publish'),
|
57
|
+
:mailer => 'Katello::TaskMailer',
|
58
|
+
:method => 'cv_publish_failure',
|
59
|
+
:subscription_type => 'alert'
|
60
|
+
},
|
61
|
+
|
62
|
+
{:name => :content_view_promote_failure,
|
63
|
+
:description => N_('A notification about failed content view promotion'),
|
64
|
+
:mailer => 'Katello::TaskMailer',
|
65
|
+
:method => 'cv_promote_failure',
|
66
|
+
:subscription_type => 'alert'
|
67
|
+
},
|
68
|
+
|
69
|
+
{:name => :proxy_sync_failure,
|
70
|
+
:description => N_('A notification about failed proxy sync'),
|
71
|
+
:mailer => 'Katello::TaskMailer',
|
72
|
+
:method => 'proxy_sync_failure',
|
73
|
+
:subscription_type => 'alert'
|
42
74
|
}
|
43
75
|
]
|
44
76
|
|
@@ -1,4 +1,10 @@
|
|
1
1
|
blueprints = [
|
2
|
+
{
|
3
|
+
group: N_('Hosts'),
|
4
|
+
name: 'host_lifecycle_expire_soon',
|
5
|
+
message: N_('%{release}: %{number_of_hosts} hosts are approaching end of %{lifecycle} on %{end_date}. Please upgrade them before support expires. Check Report Host - Statuses for detail.'),
|
6
|
+
level: 'warning'
|
7
|
+
},
|
2
8
|
{
|
3
9
|
group: N_('Proxies'),
|
4
10
|
name: 'pulp_low_disk_space',
|
@@ -1,5 +1,5 @@
|
|
1
1
|
<div uib-alert ng-class='"alert-" + (type || "warning")' ng-mouseover="cancelFade()">
|
2
|
-
<button ng-show="closeable" type="button" class="close" aria-hidden="true"
|
2
|
+
<button ng-show="closeable" type="button" class="close" aria-hidden="true" data-dismiss="alert">
|
3
3
|
<span class="pficon pficon-close"></span>
|
4
4
|
</button>
|
5
5
|
|
@@ -28,6 +28,10 @@ angular.module('Bastion.activation-keys').controller('ActivationKeysController',
|
|
28
28
|
};
|
29
29
|
|
30
30
|
var nutupane = new Nutupane(ActivationKey, params);
|
31
|
+
|
32
|
+
// Labels so breadcrumb strings can be translated
|
33
|
+
$scope.label = translate('Activation Keys');
|
34
|
+
|
31
35
|
$scope.controllerName = 'katello_activation_keys';
|
32
36
|
nutupane.primaryOnly = true;
|
33
37
|
$scope.table = nutupane.table;
|
@@ -26,6 +26,9 @@ angular.module('Bastion.activation-keys').controller('ActivationKeyAddHostCollec
|
|
26
26
|
'id': $scope.$stateParams.activationKeyId
|
27
27
|
};
|
28
28
|
|
29
|
+
// Labels so breadcrumb strings can be translated
|
30
|
+
$scope.label = translate('Add Host Collections');
|
31
|
+
|
29
32
|
hostCollectionsPane = new Nutupane(ActivationKey, params, 'availableHostCollections');
|
30
33
|
$scope.controllerName = 'katello_host_collections';
|
31
34
|
$scope.table = hostCollectionsPane.table;
|
@@ -30,6 +30,9 @@ angular.module('Bastion.activation-keys').controller('ActivationKeyAddSubscripti
|
|
30
30
|
'available_for': 'activation_key'
|
31
31
|
};
|
32
32
|
|
33
|
+
// Labels so breadcrumb strings can be translated
|
34
|
+
$scope.label = translate('Add Subscriptions');
|
35
|
+
|
33
36
|
$scope.contentNutupane = new Nutupane(Subscription, params);
|
34
37
|
$scope.controllerName = 'katello_subscriptions';
|
35
38
|
$scope.table = $scope.contentNutupane.table;
|
@@ -30,6 +30,10 @@ angular.module('Bastion.activation-keys').controller('ActivationKeyAssociationsC
|
|
30
30
|
'disableAutoLoad': true
|
31
31
|
};
|
32
32
|
|
33
|
+
// Labels so breadcrumb strings can be translated
|
34
|
+
$scope.label = translate('Content Hosts');
|
35
|
+
|
36
|
+
|
33
37
|
contentHostsNutupane = new Nutupane(Host, params, undefined, nutupaneParams);
|
34
38
|
$scope.controllerName = 'hosts';
|
35
39
|
contentHostsNutupane.searchTransform = function (term) {
|
@@ -7,8 +7,11 @@
|
|
7
7
|
*
|
8
8
|
* @description
|
9
9
|
* For copying a host collection.
|
10
|
+
*
|
11
|
+
* @requires translate
|
12
|
+
*
|
10
13
|
*/
|
11
|
-
function ActivationKeyCopyController($scope, ActivationKey, Notification) {
|
14
|
+
function ActivationKeyCopyController($scope, ActivationKey, Notification, translate) {
|
12
15
|
$scope.copy = function (newName) {
|
13
16
|
ActivationKey.copy({id: $scope.activationKey.id, 'new_name': newName}, function (response) {
|
14
17
|
$scope.transitionTo('activation-key.info', {activationKeyId: response.id});
|
@@ -16,12 +19,14 @@
|
|
16
19
|
Notification.setErrorMessage(response.data.displayMessage);
|
17
20
|
});
|
18
21
|
};
|
22
|
+
// Labels so breadcrumb strings can be translated
|
23
|
+
$scope.label = translate('Create Copy');
|
19
24
|
}
|
20
25
|
|
21
26
|
angular
|
22
27
|
.module('Bastion.activation-keys')
|
23
28
|
.controller('ActivationKeyCopyController', ActivationKeyCopyController);
|
24
29
|
|
25
|
-
ActivationKeyCopyController.$inject = ['$scope', 'ActivationKey', 'Notification'];
|
30
|
+
ActivationKeyCopyController.$inject = ['$scope', 'ActivationKey', 'Notification', 'translate'];
|
26
31
|
|
27
32
|
})();
|
@@ -26,6 +26,9 @@ angular.module('Bastion.activation-keys').controller('ActivationKeyHostCollectio
|
|
26
26
|
'full_result': true
|
27
27
|
};
|
28
28
|
|
29
|
+
// Labels so breadcrumb strings can be translated
|
30
|
+
$scope.label = translate('List Host Collections');
|
31
|
+
|
29
32
|
hostCollectionsPane = new Nutupane(ActivationKey, params, 'hostCollections');
|
30
33
|
$scope.controllerName = 'katello_host_collections';
|
31
34
|
$scope.table = hostCollectionsPane.table;
|
@@ -18,6 +18,9 @@ angular.module('Bastion.activation-keys').controller('ActivationKeyRepositorySet
|
|
18
18
|
function ($scope, translate, Nutupane, ActivationKey, RepositorySet, ContentOverrideHelper, Notification) {
|
19
19
|
var params, saveContentOverride, success, error;
|
20
20
|
|
21
|
+
// Labels so breadcrumb strings can be translated
|
22
|
+
$scope.label = translate('Repository Sets');
|
23
|
+
|
21
24
|
params = {
|
22
25
|
'activation_key_id': $scope.$stateParams.activationKeyId,
|
23
26
|
'content_access_mode_all': $scope.simpleContentAccessEnabled,
|