katello 4.21.1.1 → 5.0.0.rc1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/assets/javascripts/katello/hosts/host_and_hostgroup_edit.js +38 -157
- data/app/assets/javascripts/katello/locale/bn/katello.js +333 -465
- data/app/assets/javascripts/katello/locale/bn_IN/katello.js +333 -465
- data/app/assets/javascripts/katello/locale/ca/katello.js +333 -465
- data/app/assets/javascripts/katello/locale/cs/katello.js +334 -466
- data/app/assets/javascripts/katello/locale/cs_CZ/katello.js +334 -466
- data/app/assets/javascripts/katello/locale/de/katello.js +337 -469
- data/app/assets/javascripts/katello/locale/de_AT/katello.js +333 -465
- data/app/assets/javascripts/katello/locale/de_DE/katello.js +334 -466
- data/app/assets/javascripts/katello/locale/el/katello.js +333 -465
- data/app/assets/javascripts/katello/locale/en/katello.js +334 -466
- data/app/assets/javascripts/katello/locale/en_GB/katello.js +333 -465
- data/app/assets/javascripts/katello/locale/en_US/katello.js +333 -465
- data/app/assets/javascripts/katello/locale/es/katello.js +336 -468
- data/app/assets/javascripts/katello/locale/et_EE/katello.js +333 -465
- data/app/assets/javascripts/katello/locale/fr/katello.js +337 -469
- data/app/assets/javascripts/katello/locale/gl/katello.js +333 -465
- data/app/assets/javascripts/katello/locale/gu/katello.js +333 -465
- data/app/assets/javascripts/katello/locale/he_IL/katello.js +333 -465
- data/app/assets/javascripts/katello/locale/hi/katello.js +333 -465
- data/app/assets/javascripts/katello/locale/id/katello.js +333 -465
- data/app/assets/javascripts/katello/locale/it/katello.js +333 -465
- data/app/assets/javascripts/katello/locale/ja/katello.js +336 -468
- data/app/assets/javascripts/katello/locale/ka/katello.js +380 -512
- data/app/assets/javascripts/katello/locale/kn/katello.js +333 -465
- data/app/assets/javascripts/katello/locale/ko/katello.js +337 -469
- data/app/assets/javascripts/katello/locale/ml_IN/katello.js +333 -465
- data/app/assets/javascripts/katello/locale/mr/katello.js +333 -465
- data/app/assets/javascripts/katello/locale/nl_NL/katello.js +333 -465
- data/app/assets/javascripts/katello/locale/or/katello.js +333 -465
- data/app/assets/javascripts/katello/locale/pa/katello.js +333 -465
- data/app/assets/javascripts/katello/locale/pl/katello.js +333 -465
- data/app/assets/javascripts/katello/locale/pl_PL/katello.js +333 -465
- data/app/assets/javascripts/katello/locale/pt/katello.js +333 -465
- data/app/assets/javascripts/katello/locale/pt_BR/katello.js +335 -467
- data/app/assets/javascripts/katello/locale/ro/katello.js +333 -465
- data/app/assets/javascripts/katello/locale/ro_RO/katello.js +333 -465
- data/app/assets/javascripts/katello/locale/ru/katello.js +333 -465
- data/app/assets/javascripts/katello/locale/sl/katello.js +333 -465
- data/app/assets/javascripts/katello/locale/sv_SE/katello.js +333 -465
- data/app/assets/javascripts/katello/locale/ta/katello.js +333 -465
- data/app/assets/javascripts/katello/locale/ta_IN/katello.js +333 -465
- data/app/assets/javascripts/katello/locale/te/katello.js +333 -465
- data/app/assets/javascripts/katello/locale/tr/katello.js +333 -465
- data/app/assets/javascripts/katello/locale/vi/katello.js +333 -465
- data/app/assets/javascripts/katello/locale/vi_VN/katello.js +333 -465
- data/app/assets/javascripts/katello/locale/zh/katello.js +333 -465
- data/app/assets/javascripts/katello/locale/zh_CN/katello.js +337 -469
- data/app/assets/javascripts/katello/locale/zh_TW/katello.js +333 -465
- data/app/controllers/katello/api/rhsm/candlepin_proxies_controller.rb +31 -8
- data/app/controllers/katello/api/v2/activation_keys_controller.rb +28 -69
- data/app/controllers/katello/api/v2/content_view_versions_controller.rb +3 -3
- data/app/controllers/katello/api/v2/host_collections_controller.rb +25 -23
- data/app/controllers/katello/api/v2/host_contents_controller.rb +2 -4
- data/app/controllers/katello/api/v2/hosts_bulk_actions_controller.rb +17 -15
- data/app/controllers/katello/api/v2/upstream_subscriptions_controller.rb +2 -3
- data/app/controllers/katello/concerns/api/v2/hostgroups_controller_extensions.rb +0 -2
- data/app/controllers/katello/concerns/api/v2/hosts_controller_extensions.rb +12 -9
- data/app/controllers/katello/concerns/api/v2/registration_controller_extensions.rb +9 -4
- data/app/controllers/katello/concerns/authorization/api/v2/content_views_controller.rb +6 -6
- data/app/controllers/katello/concerns/smart_proxies_controller_extensions.rb +2 -26
- data/app/helpers/katello/content_options_helper.rb +27 -32
- data/app/helpers/katello/hosts_and_hostgroups_helper.rb +23 -24
- data/app/helpers/katello/kickstart_repository_helper.rb +25 -20
- data/app/lib/actions/katello/activation_key/reassign.rb +3 -4
- data/app/lib/actions/katello/cdn_configuration/update.rb +1 -1
- data/app/lib/actions/katello/content_view/add_to_environment.rb +2 -2
- data/app/lib/actions/katello/content_view/incremental_updates.rb +1 -1
- data/app/lib/actions/katello/content_view/remove.rb +29 -29
- data/app/lib/actions/katello/content_view/remove_from_environment.rb +4 -4
- data/app/lib/actions/katello/content_view_version/incremental_update.rb +1 -10
- data/app/lib/actions/katello/environment/destroy.rb +2 -2
- data/app/lib/actions/katello/host/reassign.rb +2 -4
- data/app/lib/actions/katello/host/update_content_view.rb +2 -4
- data/app/lib/actions/katello/organization/destroy.rb +3 -3
- data/app/lib/actions/katello/organization/environment_contents_refresh.rb +4 -4
- data/app/lib/actions/katello/repository/destroy.rb +0 -2
- data/app/lib/actions/katello/repository/fetch_pxe_files.rb +1 -1
- data/app/lib/actions/katello/repository/refresh_repository.rb +1 -1
- data/app/lib/actions/katello/repository/update.rb +0 -2
- data/app/lib/actions/middleware/record_errata_application.rb +46 -0
- data/app/lib/actions/pulp3/orchestration/repository/create.rb +1 -6
- data/app/lib/katello/api/v2/error_handling.rb +11 -6
- data/app/lib/katello/concerns/base_template_scope_extensions.rb +139 -116
- data/app/lib/katello/concerns/bookmark_controller_validator_extensions.rb +6 -4
- data/app/lib/katello/errors.rb +12 -0
- data/app/lib/katello/resources/candlepin/owner.rb +1 -1
- data/app/lib/katello/resources/candlepin.rb +1 -1
- data/app/lib/katello/resources/cdn.rb +12 -7
- data/app/lib/katello/util/cve_hgcf_migrator.rb +8 -8
- data/app/lib/katello/util/cveak_migrator.rb +10 -10
- data/app/lib/katello/util/cvecf_migrator.rb +10 -10
- data/app/lib/katello/validators/generated_content_view_validator.rb +3 -3
- data/app/lib/katello/validators/hostgroup_kickstart_repository_validator.rb +3 -4
- data/app/models/katello/activation_key.rb +12 -53
- data/app/models/katello/authorization/repository.rb +2 -2
- data/app/models/katello/cdn_configuration.rb +5 -2
- data/app/models/katello/concerns/content_facet_host_extensions.rb +30 -12
- data/app/models/katello/concerns/host_managed_extensions.rb +7 -48
- data/app/models/katello/concerns/hostgroup_extensions.rb +176 -28
- data/app/models/katello/concerns/organization_extensions.rb +2 -9
- data/app/models/katello/concerns/pulp_database_unit.rb +0 -2
- data/app/models/katello/concerns/smart_proxy_extensions.rb +24 -66
- data/app/models/katello/concerns/subscription_facet_host_extensions.rb +8 -3
- data/app/models/katello/concerns/user_extensions.rb +1 -1
- data/app/models/katello/content_view_environment.rb +29 -11
- data/app/models/katello/content_view_environment_activation_key.rb +3 -3
- data/app/models/katello/content_view_environment_content_facet.rb +3 -3
- data/app/models/katello/content_view_version.rb +0 -1
- data/app/models/katello/errata_application.rb +178 -0
- data/app/models/katello/glue/candlepin/environment.rb +0 -2
- data/app/models/katello/host/content_facet.rb +34 -61
- data/app/models/katello/host/info_provider.rb +3 -3
- data/app/models/katello/host/subscription_facet.rb +12 -9
- data/app/models/katello/host_collection.rb +99 -3
- data/app/models/katello/host_collection_hosts.rb +1 -3
- data/app/models/katello/hostgroup/content_facet.rb +4 -134
- data/app/models/katello/kt_environment.rb +2 -2
- data/app/models/katello/ping.rb +0 -60
- data/app/models/katello/provider.rb +1 -7
- data/app/models/katello/repository.rb +10 -10
- data/app/models/katello/upstream_pool.rb +2 -2
- data/app/services/cert/certs.rb +1 -1
- data/app/services/katello/content_view_manager.rb +4 -4
- data/app/services/katello/product_content_finder.rb +4 -2
- data/app/services/katello/product_content_importer.rb +3 -0
- data/app/services/katello/pulp3/pulp_content_unit.rb +0 -1
- data/app/services/katello/pulp3/repository/apt.rb +22 -23
- data/app/services/katello/pulp3/repository.rb +13 -10
- data/app/services/katello/pxe_files_downloader.rb +1 -1
- data/app/services/katello/registration_manager.rb +51 -25
- data/app/services/katello/smart_proxy_helper.rb +0 -4
- data/app/views/katello/api/v2/activation_keys/base.json.rabl +0 -17
- data/app/views/katello/api/v2/capsule_content/sync_status.json.rabl +1 -1
- data/app/views/katello/api/v2/common/async.json.rabl +1 -1
- data/app/views/katello/api/v2/common/bulk_async.json.rabl +1 -1
- data/app/views/katello/api/v2/content_credentials/index.json.rabl +5 -0
- data/app/views/katello/api/v2/content_credentials/permissions.json.rabl +11 -0
- data/app/views/katello/api/v2/content_facet/show.json.rabl +4 -0
- data/app/views/katello/api/v2/hostgroups_extensions/show.json.rabl +1 -1
- data/app/views/katello/api/v2/providers/_provider.json.rabl +1 -1
- data/app/views/overrides/activation_keys/_host_environment_select.html.erb +23 -27
- data/app/views/overrides/smart_proxies/_environment_tab_pane.html.erb +1 -5
- data/config/routes/overrides.rb +0 -1
- data/config/routes.rb +3 -0
- data/db/migrate/20260220070318_drop_katello_task_statuses.katello.rb +6 -0
- data/db/migrate/20260327192122_create_katello_errata_applications.rb +24 -0
- data/db/migrate/20260612120500_add_unique_index_to_katello_host_collection_hosts.rb +32 -0
- data/db/seeds.d/104-proxy.rb +1 -6
- data/db/seeds.d/111-upgrade_tasks.rb +1 -0
- data/engines/bastion/README.md +0 -15
- data/engines/bastion/app/assets/javascripts/bastion/auth/auth.module.js +1 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/activation-key-copy.controller.js +1 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/activation-key-details.controller.js +2 -2
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/bastion_katello.js +1 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/capsule-content/capsule-content.controller.js +15 -5
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/environments/details/environment.controller.js +1 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/errata/apply-errata.controller.js +2 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/errata/views/apply-errata-confirm.html +2 -2
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/details/host-collection-add-hosts.controller.js +1 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/details/host-collection-copy.controller.js +1 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/details/host-collection-details.controller.js +2 -2
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/details/host-collection-hosts.controller.js +1 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/bastion_katello.pot +8 -165
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/bn.po +178 -19
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/bn_IN.po +178 -19
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/ca.po +178 -19
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/cs_CZ.po +178 -19
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/de.po +184 -19
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/de_AT.po +178 -19
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/de_DE.po +178 -19
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/el.po +178 -19
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/en_GB.po +178 -19
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/en_US.po +178 -19
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/es.po +186 -19
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/et_EE.po +178 -19
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/fr.po +192 -19
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/gl.po +178 -19
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/gu.po +178 -19
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/he_IL.po +178 -19
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/hi.po +178 -19
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/id.po +178 -19
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/it.po +178 -19
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/ja.po +179 -19
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/ka.po +211 -49
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/kn.po +178 -19
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/ko.po +180 -19
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/ml_IN.po +178 -19
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/mr.po +178 -19
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/nl_NL.po +178 -19
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/or.po +178 -19
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/pa.po +178 -19
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/pl.po +178 -19
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/pl_PL.po +178 -19
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/pt.po +178 -19
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/pt_BR.po +186 -19
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/ro.po +178 -19
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/ro_RO.po +178 -19
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/ru.po +178 -19
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/sl.po +178 -19
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/sv_SE.po +178 -19
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/ta.po +178 -19
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/ta_IN.po +178 -19
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/te.po +178 -19
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/tr.po +178 -19
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/vi.po +178 -19
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/vi_VN.po +178 -19
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/zh.po +178 -19
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/zh_CN.po +178 -19
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/zh_TW.po +178 -19
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/translations.js +31 -31
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/katello-features.run.js +1 -7
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/organizations/fenced-pages.service.js +0 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/details/repository-details-info.controller.js +2 -2
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/details/repository-details-manage-content.controller.js +1 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/new/new-repository.controller.js +1 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/discovery/discovery-create.controller.js +1 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/details/sync-plan-add-products.controller.js +1 -1
- data/engines/bastion_katello/lib/bastion_katello/engine.rb +0 -1
- data/lib/katello/engine.rb +6 -4
- data/lib/katello/permission_creator.rb +1 -1
- data/lib/katello/permissions/organization_permissions.rb +0 -1
- data/lib/katello/plugin.rb +4 -14
- data/lib/katello/tasks/clean_empty_deb_metadata.rake +72 -0
- data/lib/katello/tasks/upgrades/4.21/populate_errata_applications.rake +250 -0
- data/lib/katello/version.rb +1 -1
- data/locale/bn/LC_MESSAGES/katello.mo +0 -0
- data/locale/bn/katello.po +333 -465
- data/locale/bn_IN/LC_MESSAGES/katello.mo +0 -0
- data/locale/bn_IN/katello.po +333 -465
- data/locale/ca/LC_MESSAGES/katello.mo +0 -0
- data/locale/ca/katello.po +333 -465
- data/locale/cs/LC_MESSAGES/katello.mo +0 -0
- data/locale/cs/katello.po +334 -467
- data/locale/cs_CZ/LC_MESSAGES/katello.mo +0 -0
- data/locale/cs_CZ/katello.po +334 -466
- data/locale/de/LC_MESSAGES/katello.mo +0 -0
- data/locale/de/katello.po +338 -470
- data/locale/de_AT/LC_MESSAGES/katello.mo +0 -0
- data/locale/de_AT/katello.po +333 -465
- data/locale/de_DE/LC_MESSAGES/katello.mo +0 -0
- data/locale/de_DE/katello.po +335 -467
- data/locale/el/LC_MESSAGES/katello.mo +0 -0
- data/locale/el/katello.po +333 -465
- data/locale/en/LC_MESSAGES/katello.mo +0 -0
- data/locale/en/katello.po +334 -467
- data/locale/en_GB/LC_MESSAGES/katello.mo +0 -0
- data/locale/en_GB/katello.po +333 -465
- data/locale/en_US/LC_MESSAGES/katello.mo +0 -0
- data/locale/en_US/katello.po +333 -465
- data/locale/es/LC_MESSAGES/katello.mo +0 -0
- data/locale/es/katello.po +337 -470
- data/locale/et_EE/LC_MESSAGES/katello.mo +0 -0
- data/locale/et_EE/katello.po +333 -465
- data/locale/fr/LC_MESSAGES/katello.mo +0 -0
- data/locale/fr/katello.po +338 -470
- data/locale/gl/LC_MESSAGES/katello.mo +0 -0
- data/locale/gl/katello.po +333 -465
- data/locale/gu/LC_MESSAGES/katello.mo +0 -0
- data/locale/gu/katello.po +333 -465
- data/locale/he_IL/LC_MESSAGES/katello.mo +0 -0
- data/locale/he_IL/katello.po +333 -465
- data/locale/hi/LC_MESSAGES/katello.mo +0 -0
- data/locale/hi/katello.po +333 -465
- data/locale/id/LC_MESSAGES/katello.mo +0 -0
- data/locale/id/katello.po +333 -465
- data/locale/it/LC_MESSAGES/katello.mo +0 -0
- data/locale/it/katello.po +333 -465
- data/locale/ja/LC_MESSAGES/katello.mo +0 -0
- data/locale/ja/katello.po +336 -468
- data/locale/ka/LC_MESSAGES/katello.mo +0 -0
- data/locale/ka/katello.po +377 -509
- data/locale/katello.pot +1315 -1436
- data/locale/kn/LC_MESSAGES/katello.mo +0 -0
- data/locale/kn/katello.po +333 -465
- data/locale/ko/LC_MESSAGES/katello.mo +0 -0
- data/locale/ko/katello.po +339 -470
- data/locale/ml_IN/LC_MESSAGES/katello.mo +0 -0
- data/locale/ml_IN/katello.po +333 -465
- data/locale/mr/LC_MESSAGES/katello.mo +0 -0
- data/locale/mr/katello.po +333 -465
- data/locale/nl_NL/LC_MESSAGES/katello.mo +0 -0
- data/locale/nl_NL/katello.po +333 -465
- data/locale/or/LC_MESSAGES/katello.mo +0 -0
- data/locale/or/katello.po +333 -465
- data/locale/pa/LC_MESSAGES/katello.mo +0 -0
- data/locale/pa/katello.po +333 -465
- data/locale/pl/LC_MESSAGES/katello.mo +0 -0
- data/locale/pl/katello.po +333 -465
- data/locale/pl_PL/LC_MESSAGES/katello.mo +0 -0
- data/locale/pl_PL/katello.po +333 -465
- data/locale/pt/LC_MESSAGES/katello.mo +0 -0
- data/locale/pt/katello.po +333 -465
- data/locale/pt_BR/LC_MESSAGES/katello.mo +0 -0
- data/locale/pt_BR/katello.po +335 -467
- data/locale/ro/LC_MESSAGES/katello.mo +0 -0
- data/locale/ro/katello.po +333 -465
- data/locale/ro_RO/LC_MESSAGES/katello.mo +0 -0
- data/locale/ro_RO/katello.po +333 -465
- data/locale/ru/LC_MESSAGES/katello.mo +0 -0
- data/locale/ru/katello.po +333 -465
- data/locale/sl/LC_MESSAGES/katello.mo +0 -0
- data/locale/sl/katello.po +333 -465
- data/locale/sv_SE/LC_MESSAGES/katello.mo +0 -0
- data/locale/sv_SE/katello.po +333 -465
- data/locale/ta/LC_MESSAGES/katello.mo +0 -0
- data/locale/ta/katello.po +333 -465
- data/locale/ta_IN/LC_MESSAGES/katello.mo +0 -0
- data/locale/ta_IN/katello.po +333 -465
- data/locale/te/LC_MESSAGES/katello.mo +0 -0
- data/locale/te/katello.po +333 -465
- data/locale/tr/LC_MESSAGES/katello.mo +0 -0
- data/locale/tr/katello.po +333 -465
- data/locale/vi/LC_MESSAGES/katello.mo +0 -0
- data/locale/vi/katello.po +333 -465
- data/locale/vi_VN/LC_MESSAGES/katello.mo +0 -0
- data/locale/vi_VN/katello.po +333 -465
- data/locale/zh/LC_MESSAGES/katello.mo +0 -0
- data/locale/zh/katello.po +333 -465
- data/locale/zh_CN/LC_MESSAGES/katello.mo +0 -0
- data/locale/zh_CN/katello.po +338 -470
- data/locale/zh_TW/LC_MESSAGES/katello.mo +0 -0
- data/locale/zh_TW/katello.po +333 -465
- data/package.json +1 -1
- data/webpack/ForemanColumnExtensions/index.scss +2 -0
- data/webpack/components/Bookmark/Bookmark.scss +5 -2
- data/webpack/components/LoadingState/LoadingState.js +2 -2
- data/webpack/components/MultiSelect/MultiSelect.scss +4 -0
- data/webpack/components/MultiSelect/index.js +178 -22
- data/webpack/components/RoutedTabs/RoutedTabs.scss +2 -2
- data/webpack/components/Table/EmptyStateMessage.js +1 -1
- data/webpack/components/Table/MainTable.scss +1 -0
- data/webpack/components/TooltipButton/TooltipButton.js +31 -12
- data/webpack/components/TooltipButton/TooltipButton.scss +6 -0
- data/webpack/components/extensions/HostDetails/Cards/ContentViewDetailsCard/ContentViewDetailsCard.scss +26 -24
- data/webpack/components/extensions/HostDetails/Cards/ContentViewDetailsCard/_shared-assignment-styles.scss +4 -4
- data/webpack/components/extensions/HostDetails/Cards/ErrataOverviewCard.scss +1 -0
- data/webpack/components/extensions/HostDetails/Cards/HostCollectionsCard/HostCollectionsCard.scss +5 -0
- data/webpack/components/extensions/HostDetails/Cards/SystemPurposeCard/SystemPurposeCard.scss +1 -0
- data/webpack/components/extensions/HostDetails/Tabs/ErrataTab/ErrataTab.scss +4 -4
- data/webpack/components/extensions/HostDetails/Tabs/TracesTab/EnableTracerModal.js +70 -50
- data/webpack/components/extensions/HostDetails/Tabs/TracesTab/EnableTracerModal.scss +12 -8
- data/webpack/components/extensions/HostDetails/Tabs/TracesTab/TracerPrerequisites.js +48 -0
- data/webpack/components/extensions/HostDetails/Tabs/TracesTab/TracesEnabler.js +10 -3
- data/webpack/components/extensions/HostDetails/Tabs/TracesTab/TracesTab.js +8 -2
- data/webpack/components/extensions/HostDetails/Tabs/__tests__/tracesTab.test.js +61 -4
- data/webpack/components/extensions/Hosts/BulkActions/BulkAssignCVEnvsModal/actions.js +2 -2
- data/webpack/components/pf3Table/formatters/EntitlementsInlineEditFormatter.js +6 -3
- data/webpack/containers/Application/config.js +2 -2
- data/webpack/containers/Application/overrides.scss +18 -9
- data/webpack/mockRequest.js +1 -1
- data/webpack/redux/OrganizationProducts/OrganizationProductsSelectors.js +3 -0
- data/webpack/redux/actions/RedHatRepositories/repositorySetRepositories.js +1 -1
- data/webpack/redux/reducers/index.js +2 -0
- data/webpack/scenes/ContainerImages/Synced/SyncedContainerImagesPage.scss +1 -1
- data/webpack/scenes/Content/GenericContentPage.js +2 -2
- data/webpack/scenes/Content/Table/ContentTable.js +1 -0
- data/webpack/scenes/ContentCredentials/ContentCredentialActions.js +30 -2
- data/webpack/scenes/ContentCredentials/ContentCredentialConstants.js +2 -0
- data/webpack/scenes/ContentCredentials/ContentCredentialSelectors.js +14 -1
- data/webpack/scenes/ContentCredentials/ContentCredentialsPage.js +70 -21
- data/webpack/scenes/ContentCredentials/Create/CreateContentCredentialForm.js +205 -0
- data/webpack/scenes/ContentCredentials/Create/CreateContentCredentialForm.scss +5 -0
- data/webpack/scenes/ContentCredentials/Create/CreateContentCredentialModal.js +69 -0
- data/webpack/scenes/ContentCredentials/Create/__tests__/CreateContentCredentialModal.test.js +248 -0
- data/webpack/scenes/ContentCredentials/Create/index.js +1 -0
- data/webpack/scenes/ContentCredentials/Delete/DeleteContentCredentialModal.js +102 -0
- data/webpack/scenes/ContentCredentials/Delete/__tests__/DeleteContentCredentialModal.test.js +261 -0
- data/webpack/scenes/ContentCredentials/Details/ContentCredentialsDetails.js +7 -21
- data/webpack/scenes/ContentCredentials/Details/ContentCredentialsDetailsActions.js +1 -2
- data/webpack/scenes/ContentCredentials/Details/__tests__/ContentCredentialsDetails.test.js +7 -21
- data/webpack/scenes/ContentCredentials/Details/__tests__/DetailsTab.test.js +1 -1
- data/webpack/scenes/ContentViews/Details/Filters/MatchContentModal/matchContentModal.scss +4 -2
- data/webpack/scenes/ContentViews/Details/Versions/Compare/CVVersionCompare.scss +1 -0
- data/webpack/scenes/ContentViews/Details/Versions/ContentViewVersionErrata.scss +1 -1
- data/webpack/scenes/ContentViews/Publish/cvPublishForm.scss +1 -1
- data/webpack/scenes/ContentViews/components/EnvironmentPaths/EnvironmentPaths.scss +2 -1
- data/webpack/scenes/RedHatRepositories/RedHatRepositoriesPage.js +44 -32
- data/webpack/scenes/RedHatRepositories/components/EnabledRepository/EnabledRepository.js +79 -65
- data/webpack/scenes/RedHatRepositories/components/EnabledRepository/EnabledRepositoryContent.js +26 -30
- data/webpack/scenes/RedHatRepositories/components/EnabledRepository/__tests__/EnabledRepository.test.js +4 -4
- data/webpack/scenes/RedHatRepositories/components/EnabledRepository/__tests__/EnabledRepositoryContent.test.js +32 -30
- data/webpack/scenes/RedHatRepositories/components/RecommendedRepositorySetsToggler.js +18 -6
- data/webpack/scenes/RedHatRepositories/components/RecommendedRepositorySetsToggler.scss +9 -9
- data/webpack/scenes/RedHatRepositories/components/RepositorySet.js +71 -16
- data/webpack/scenes/RedHatRepositories/components/RepositorySetRepositories.js +74 -64
- data/webpack/scenes/RedHatRepositories/components/RepositorySetRepository/RepositorySetRepository.js +137 -111
- data/webpack/scenes/RedHatRepositories/components/RepositorySetRepository/__test__/RepositorySetRepository.test.js +13 -12
- data/webpack/scenes/RedHatRepositories/components/RepositoryTypeIcon.js +31 -24
- data/webpack/scenes/RedHatRepositories/components/Search.js +113 -68
- data/webpack/scenes/RedHatRepositories/components/SearchBar.js +110 -115
- data/webpack/scenes/RedHatRepositories/components/__tests__/RecommendedRepositorySetsToggler.test.js +40 -25
- data/webpack/scenes/RedHatRepositories/components/__tests__/RepositorySetRepositories.test.js +1 -3
- data/webpack/scenes/RedHatRepositories/components/__tests__/RepositoryTypeIcon.test.js +15 -22
- data/webpack/scenes/RedHatRepositories/helpers.js +11 -7
- data/webpack/scenes/RedHatRepositories/index.scss +169 -88
- data/webpack/scenes/Settings/Tables/TableActions.js +4 -1
- data/webpack/scenes/SmartProxy/Content.js +8 -3
- data/webpack/scenes/SmartProxy/SmartProxyContentActions.js +44 -12
- data/webpack/scenes/SmartProxy/SmartProxyContentConstants.js +9 -0
- data/webpack/scenes/SmartProxy/useSmartProxyContentRefresh.js +130 -0
- data/webpack/scenes/Subscriptions/Details/SubscriptionDetailProduct.js +14 -24
- data/webpack/scenes/Subscriptions/Details/SubscriptionDetailProductContent.js +28 -28
- data/webpack/scenes/Subscriptions/Details/SubscriptionDetailProducts.js +4 -4
- data/webpack/scenes/Subscriptions/Details/SubscriptionDetails.js +77 -104
- data/webpack/scenes/Subscriptions/Details/__tests__/SubscriptionDetailInfo.test.js +23 -8
- data/webpack/scenes/Subscriptions/Details/__tests__/SubscriptionDetailProduct.test.js +12 -5
- data/webpack/scenes/Subscriptions/Details/__tests__/SubscriptionDetailProductContent.test.js +12 -10
- data/webpack/scenes/Subscriptions/Details/__tests__/SubscriptionDetailProducts.test.js +11 -8
- data/webpack/scenes/Subscriptions/Details/__tests__/SubscriptionDetails.test.js +56 -22
- data/webpack/scenes/Subscriptions/Manifest/ManageManifestModal.js +9 -7
- data/webpack/scenes/Subscriptions/Manifest/ManageManifestModal.scss +2 -0
- data/webpack/scenes/Subscriptions/SubscriptionConstants.js +4 -4
- data/webpack/scenes/Subscriptions/SubscriptionsPage.js +132 -136
- data/webpack/scenes/Subscriptions/SubscriptionsPage.scss +56 -14
- data/webpack/scenes/Subscriptions/UpstreamSubscriptions/UpstreamSubscriptionsPage.js +165 -199
- data/webpack/scenes/Subscriptions/UpstreamSubscriptions/__tests__/UpstreamSubscriptionsPage.test.js +100 -50
- data/webpack/scenes/Subscriptions/__tests__/SubscriptionHelpers.test.js +7 -2
- data/webpack/scenes/Subscriptions/__tests__/SubscriptionsActions.test.js +102 -22
- data/webpack/scenes/Subscriptions/__tests__/SubscriptionsPage.test.js +8 -11
- data/webpack/scenes/Subscriptions/__tests__/SubscriptionsReducer.test.js +179 -150
- data/webpack/scenes/Subscriptions/__tests__/SubscriptionsSelectors.test.js +24 -10
- data/webpack/scenes/Subscriptions/__tests__/subscriptions.fixtures.js +4 -4
- data/webpack/scenes/Subscriptions/components/SubscriptionsTable/SubscriptionsTableSchema.js +37 -17
- data/webpack/scenes/Subscriptions/components/SubscriptionsTable/__tests__/SubscriptionTypeFormatter.test.js +29 -21
- data/webpack/scenes/Subscriptions/components/SubscriptionsTable/__tests__/SubscriptionsTable.test.js +100 -108
- data/webpack/scenes/Subscriptions/components/SubscriptionsTable/components/Dialogs/DeleteDialog.js +33 -27
- data/webpack/scenes/Subscriptions/components/SubscriptionsTable/components/Dialogs/InputsErrorsDialog.js +20 -8
- data/webpack/scenes/Subscriptions/components/SubscriptionsTable/components/Dialogs/UnsavedChangesDialog.js +28 -10
- data/webpack/scenes/Subscriptions/components/SubscriptionsTable/components/Dialogs/UpdateDialog.js +33 -21
- data/webpack/scenes/Subscriptions/components/SubscriptionsToolbar/SubscriptionsToolbar.js +162 -68
- data/webpack/scenes/Subscriptions/components/SubscriptionsToolbar/SubscriptionsToolbar.test.js +93 -33
- data/webpack/scenes/Subscriptions/index.js +1 -6
- data/webpack/scenes/SyncStatus/SyncStatus.scss +2 -2
- data/webpack/utils/helpers.js +1 -2
- metadata +31 -113
- data/app/lib/actions/pulp3/repository/initialize.rb +0 -17
- data/app/lib/katello/util/task_status.rb +0 -132
- data/app/models/katello/task_status.rb +0 -309
- data/app/services/katello/proxy_status/pulp.rb +0 -52
- data/app/services/katello/proxy_status/pulp_node.rb +0 -10
- data/app/views/katello/api/v2/host_errata/system_task.json.rabl +0 -3
- data/app/views/katello/api/v2/tasks/index.json.rabl +0 -3
- data/app/views/katello/api/v2/tasks/show.json.rabl +0 -11
- data/app/views/katello/api/v2/tasks/task_status_show.json.rabl +0 -15
- data/app/views/smart_proxies/plugins/_pulp.html.erb +0 -9
- data/app/views/smart_proxies/plugins/_pulp_node.html.erb +0 -9
- data/app/views/smart_proxies/pulp_status.html.erb +0 -27
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-credentials/content-credentials.controller.js +0 -38
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-credentials/content-credentials.routes.js +0 -85
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-credentials/content-type.filter.js +0 -25
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-credentials/details/content-credential-acs.controller.js +0 -41
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-credentials/details/content-credential-details-info.controller.js +0 -54
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-credentials/details/content-credential-details.controller.js +0 -54
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-credentials/details/content-credential-products.controller.js +0 -41
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-credentials/details/content-credential-repositories.controller.js +0 -41
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-credentials/details/views/content-credential-acs.html +0 -38
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-credentials/details/views/content-credential-details.html +0 -39
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-credentials/details/views/content-credential-info.html +0 -64
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-credentials/details/views/content-credential-products.html +0 -44
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-credentials/details/views/content-credential-repositories.html +0 -41
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-credentials/new/new-content-credential.controller.js +0 -42
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-credentials/new/views/new-content-credential.html +0 -55
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-credentials/views/content-credentials.html +0 -60
- data/lib/katello/permissions/user_permissions.rb +0 -5
- data/lib/proxy_api/pulp.rb +0 -22
- data/lib/proxy_api/pulp_node.rb +0 -22
- data/locale/action_names.rb +0 -181
- data/locale/bn/katello.po.time_stamp +0 -0
- data/locale/bn_IN/katello.po.time_stamp +0 -0
- data/locale/ca/katello.po.time_stamp +0 -0
- data/locale/cs/katello.po.time_stamp +0 -0
- data/locale/cs_CZ/katello.po.time_stamp +0 -0
- data/locale/de/katello.po.time_stamp +0 -0
- data/locale/de_AT/katello.po.time_stamp +0 -0
- data/locale/de_DE/katello.po.time_stamp +0 -0
- data/locale/el/katello.po.time_stamp +0 -0
- data/locale/en/katello.po.time_stamp +0 -0
- data/locale/en_GB/katello.po.time_stamp +0 -0
- data/locale/en_US/katello.po.time_stamp +0 -0
- data/locale/es/katello.po.time_stamp +0 -0
- data/locale/et_EE/katello.po.time_stamp +0 -0
- data/locale/fr/katello.po.time_stamp +0 -0
- data/locale/gl/katello.po.time_stamp +0 -0
- data/locale/gu/katello.po.time_stamp +0 -0
- data/locale/he_IL/katello.po.time_stamp +0 -0
- data/locale/hi/katello.po.time_stamp +0 -0
- data/locale/id/katello.po.time_stamp +0 -0
- data/locale/it/katello.po.time_stamp +0 -0
- data/locale/ja/katello.po.time_stamp +0 -0
- data/locale/ka/katello.po.time_stamp +0 -0
- data/locale/kn/katello.po.time_stamp +0 -0
- data/locale/ko/katello.po.time_stamp +0 -0
- data/locale/ml_IN/katello.po.time_stamp +0 -0
- data/locale/mr/katello.po.time_stamp +0 -0
- data/locale/nl_NL/katello.po.time_stamp +0 -0
- data/locale/or/katello.po.time_stamp +0 -0
- data/locale/pa/katello.po.time_stamp +0 -0
- data/locale/pl/katello.po.time_stamp +0 -0
- data/locale/pl_PL/katello.po.time_stamp +0 -0
- data/locale/pt/katello.po.time_stamp +0 -0
- data/locale/pt_BR/katello.po.time_stamp +0 -0
- data/locale/ro/katello.po.time_stamp +0 -0
- data/locale/ro_RO/katello.po.time_stamp +0 -0
- data/locale/ru/katello.po.time_stamp +0 -0
- data/locale/sl/katello.po.time_stamp +0 -0
- data/locale/sv_SE/katello.po.time_stamp +0 -0
- data/locale/ta/katello.po.time_stamp +0 -0
- data/locale/ta_IN/katello.po.time_stamp +0 -0
- data/locale/te/katello.po.time_stamp +0 -0
- data/locale/tr/katello.po.time_stamp +0 -0
- data/locale/vi/katello.po.time_stamp +0 -0
- data/locale/vi_VN/katello.po.time_stamp +0 -0
- data/locale/zh/katello.po.time_stamp +0 -0
- data/locale/zh_CN/katello.po.time_stamp +0 -0
- data/locale/zh_TW/katello.po.time_stamp +0 -0
- data/webpack/components/Content/ContentTable.js +0 -48
- data/webpack/components/Content/GenericContentPage.js +0 -74
- data/webpack/components/Content/__tests__/ContentTable.test.js +0 -147
- data/webpack/components/Content/__tests__/GenericContentPage.test.js +0 -35
- data/webpack/components/OptionTooltip/OptionTooltip.scss +0 -21
- data/webpack/components/OptionTooltip/__tests__/OptionTooltip.test.js +0 -50
- data/webpack/components/OptionTooltip/index.js +0 -83
- data/webpack/scenes/Subscriptions/Details/__tests__/__snapshots__/SubscriptionDetailInfo.test.js.snap +0 -216
- data/webpack/scenes/Subscriptions/Details/__tests__/__snapshots__/SubscriptionDetailProduct.test.js.snap +0 -79
- data/webpack/scenes/Subscriptions/Details/__tests__/__snapshots__/SubscriptionDetailProductContent.test.js.snap +0 -45
- data/webpack/scenes/Subscriptions/Details/__tests__/__snapshots__/SubscriptionDetailProducts.test.js.snap +0 -167
- data/webpack/scenes/Subscriptions/Details/__tests__/__snapshots__/SubscriptionDetails.test.js.snap +0 -398
- data/webpack/scenes/Subscriptions/UpstreamSubscriptions/__tests__/__snapshots__/UpstreamSubscriptionsPage.test.js.snap +0 -232
- data/webpack/scenes/Subscriptions/__tests__/__snapshots__/SubscriptionHelpers.test.js.snap +0 -27
- data/webpack/scenes/Subscriptions/__tests__/__snapshots__/SubscriptionsActions.test.js.snap +0 -126
- data/webpack/scenes/Subscriptions/__tests__/__snapshots__/SubscriptionsReducer.test.js.snap +0 -668
- data/webpack/scenes/Subscriptions/__tests__/__snapshots__/SubscriptionsSelectors.test.js.snap +0 -22
- data/webpack/scenes/Subscriptions/components/SubscriptionsTable/__tests__/__snapshots__/SubscriptionTypeFormatter.test.js.snap +0 -33
- data/webpack/scenes/Subscriptions/components/SubscriptionsTable/__tests__/__snapshots__/SubscriptionsTable.test.js.snap +0 -418
- data/webpack/scenes/Subscriptions/components/SubscriptionsToolbar/__snapshots__/SubscriptionsToolbar.test.js.snap +0 -489
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4e653190d3fe14b62c359141f803d7bd85414aae4f23139b16b645e5141e9014
|
|
4
|
+
data.tar.gz: c30fd8dc07ddeff325744cc40e7b30b12ab710abfb75b6e5d580099ae9cdd4ea
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 91c5b0e77683c1f53f26c375941ef7b8eb3b30604c3b5e0ca6d95f82532a666915b42d28b8d6dbf8ad66d8ef0f188ba3d3135c8b90b762afd74ea3392efd9fab
|
|
7
|
+
data.tar.gz: 39169742a17e71c8a7b8ade2a8879b4824c5ee77cc01d172f97eb4802577bb7083c9ec70e022433510edfe2f773a83b1e19f2a49b587074e482738e90cefb349
|
|
@@ -4,36 +4,24 @@ KT.hosts = {};
|
|
|
4
4
|
$(document).on('ContentLoad', function(){
|
|
5
5
|
KT.hosts.onKatelloHostEditLoad();
|
|
6
6
|
window.tfm.hosts.registerPluginAttributes("os",
|
|
7
|
-
['
|
|
8
|
-
|
|
9
|
-
$("#hostgroup_lifecycle_environment_id").on("change",KT.hosts.environmentChanged);
|
|
10
|
-
$("#host_lifecycle_environment_id").on("change", KT.hosts.environmentChanged);
|
|
7
|
+
['content_view_environment_id', 'content_source_id', 'architecture_id', 'parent_id']);
|
|
11
8
|
|
|
12
9
|
KT.hosts.update_media_enablement();
|
|
13
10
|
KT.hosts.set_media_selection_bindings();
|
|
14
11
|
});
|
|
15
12
|
|
|
16
13
|
KT.hosts.contentSourceChanged = function() {
|
|
17
|
-
$("#hostgroup_lifecycle_environment_id").val("");
|
|
18
|
-
$("#host_lifecycle_environment_id").val("");
|
|
19
14
|
$("#hostgroup_content_view_environment_id").val("");
|
|
20
|
-
|
|
21
|
-
KT.hosts.environmentChanged();
|
|
15
|
+
$("#host_content_view_environment_id").val("");
|
|
22
16
|
KT.hosts.refreshContentViewEnvironments();
|
|
23
17
|
};
|
|
24
18
|
|
|
25
|
-
KT.hosts.environmentChanged = function() {
|
|
26
|
-
// if we don't save the currently selected view it's likely
|
|
27
|
-
// it will be undefined in toggle_installation_medium due to the CV dropdown reload
|
|
28
|
-
var previous_content_view = KT.hosts.getSelectedContentView();
|
|
29
|
-
|
|
30
|
-
KT.hosts.fetchContentViews();
|
|
31
|
-
KT.hosts.toggle_installation_medium(previous_content_view);
|
|
32
|
-
};
|
|
33
|
-
|
|
34
19
|
KT.hosts.refreshContentViewEnvironments = function() {
|
|
35
20
|
var select = $("#hostgroup_content_view_environment_id");
|
|
36
|
-
if (select.length === 0)
|
|
21
|
+
if (select.length === 0) {
|
|
22
|
+
select = $("#host_content_view_environment_id");
|
|
23
|
+
}
|
|
24
|
+
if (select.length === 0) return;
|
|
37
25
|
|
|
38
26
|
var content_source_id = $('#content_source_id').val();
|
|
39
27
|
var orgIdsElem = $("#hostgroup_organization_ids");
|
|
@@ -43,7 +31,10 @@ KT.hosts.refreshContentViewEnvironments = function() {
|
|
|
43
31
|
orgIds = orgIdsElem.data('useds');
|
|
44
32
|
}
|
|
45
33
|
if (orgIds === undefined || orgIds === null || orgIds.length === 0) {
|
|
46
|
-
|
|
34
|
+
orgIds = [$("#host_organization_id").val()];
|
|
35
|
+
}
|
|
36
|
+
if (orgIds === undefined || orgIds === null || orgIds.length === 0) {
|
|
37
|
+
return;
|
|
47
38
|
}
|
|
48
39
|
var orgId = Array.isArray(orgIds) ? orgIds[0] : orgIds;
|
|
49
40
|
|
|
@@ -63,24 +54,22 @@ KT.hosts.refreshContentViewEnvironments = function() {
|
|
|
63
54
|
$.get(url, params, function(data) {
|
|
64
55
|
var foundPreviousValue = false;
|
|
65
56
|
|
|
66
|
-
|
|
67
|
-
if (previousInheritText && (previousInheritText.includes('Inherit') || previousInheritText === '')) {
|
|
57
|
+
if (inheritOption.length && (inheritOption.val() === '' || previousInheritDataId)) {
|
|
68
58
|
var inheritOpt = $("<option />").text(previousInheritText).val('');
|
|
69
59
|
if (previousInheritDataId) inheritOpt.attr('data-id', previousInheritDataId);
|
|
70
60
|
select.append(inheritOpt);
|
|
71
61
|
}
|
|
72
62
|
|
|
73
|
-
$.each(data.results, function(index,
|
|
74
|
-
var label =
|
|
75
|
-
var option = $("<option />").val(
|
|
76
|
-
if (
|
|
63
|
+
$.each(data.results, function(index, cvEnv) {
|
|
64
|
+
var label = cvEnv.label;
|
|
65
|
+
var option = $("<option />").val(cvEnv.id).text(label);
|
|
66
|
+
if (cvEnv.id === parseInt(previousValue)) {
|
|
77
67
|
option.prop('selected', true);
|
|
78
68
|
foundPreviousValue = true;
|
|
79
69
|
}
|
|
80
70
|
select.append(option);
|
|
81
71
|
});
|
|
82
72
|
|
|
83
|
-
// If previous value not found in filtered list, select the blank/inherit option
|
|
84
73
|
if (!foundPreviousValue) {
|
|
85
74
|
select.val('');
|
|
86
75
|
}
|
|
@@ -89,126 +78,9 @@ KT.hosts.refreshContentViewEnvironments = function() {
|
|
|
89
78
|
});
|
|
90
79
|
};
|
|
91
80
|
|
|
92
|
-
KT.hosts.fetchEnvironments = function () {
|
|
93
|
-
var select = KT.hosts.getEnvironmentSelect();
|
|
94
|
-
var content_source_id = $('#content_source_id').val();
|
|
95
|
-
var option;
|
|
96
|
-
select.find('option').remove();
|
|
97
|
-
if (content_source_id) {
|
|
98
|
-
var url = tfm.tools.foremanUrl('/katello/api/capsules/' + content_source_id);
|
|
99
|
-
var orgIdsElem = $("#hostgroup_organization_ids");
|
|
100
|
-
var orgIds = orgIdsElem.val();
|
|
101
|
-
if (orgIds === undefined || orgIds === null || orgIds.length === 0) {
|
|
102
|
-
orgIds = orgIdsElem.data('useds');
|
|
103
|
-
}
|
|
104
|
-
if (orgIds === undefined || orgIds === null || orgIds.length === 0) {
|
|
105
|
-
orgIds = [$("#host_organization_id").val()];
|
|
106
|
-
};
|
|
107
|
-
orgIds = orgIds.map(function (id) {
|
|
108
|
-
return Number(id);
|
|
109
|
-
});
|
|
110
|
-
$.get(url, function (content_source) {
|
|
111
|
-
$.each(content_source.lifecycle_environments, function(index, env) {
|
|
112
|
-
// Don't show environments that aren't in the selected org. See jQuery.each() docs
|
|
113
|
-
if (!orgIds.includes(env.organization_id)) return true;
|
|
114
|
-
option = $("<option />").val(env.id).text(env.name);
|
|
115
|
-
select.append(option);
|
|
116
|
-
});
|
|
117
|
-
select.trigger('change');
|
|
118
|
-
});
|
|
119
|
-
}
|
|
120
|
-
};
|
|
121
|
-
|
|
122
|
-
KT.hosts.fetchContentViews = function () {
|
|
123
|
-
var select = KT.hosts.getContentViewSelect();
|
|
124
|
-
var envId = KT.hosts.getSelectedEnvironment();
|
|
125
|
-
var option;
|
|
126
|
-
var previous_view = KT.hosts.getSelectedContentView();
|
|
127
|
-
var previousInheritViewText = select.find('option:first-child').text();
|
|
128
|
-
select.find('option').remove();
|
|
129
|
-
if (envId) {
|
|
130
|
-
KT.hosts.signalContentViewFetch(true);
|
|
131
|
-
var url = tfm.tools.foremanUrl('/katello/api/v2/content_views');
|
|
132
|
-
$.get(url, {environment_id: envId, full_result: true}, function (data) {
|
|
133
|
-
if ($('#hostgroup_parent_id').length > 0) {
|
|
134
|
-
select.append($("<option />").text(previousInheritViewText).val(''));
|
|
135
|
-
}
|
|
136
|
-
$.each(data.results, function(index, view) {
|
|
137
|
-
option = $("<option />").val(view.id).text(view.name);
|
|
138
|
-
if (view.id === parseInt(previous_view)) {
|
|
139
|
-
option.prop('selected', true);
|
|
140
|
-
}
|
|
141
|
-
select.append(option);
|
|
142
|
-
});
|
|
143
|
-
select.trigger('change');
|
|
144
|
-
KT.hosts.signalContentViewFetch(false);
|
|
145
|
-
});
|
|
146
|
-
}
|
|
147
|
-
};
|
|
148
|
-
|
|
149
|
-
KT.hosts.signalContentViewFetch = function(fetching) {
|
|
150
|
-
var select = KT.hosts.getContentViewSelect();
|
|
151
|
-
var select2 = KT.hosts.getContentViewSelect2();
|
|
152
|
-
spinner = $('<img>').attr('src', select.data("spinner-path")),
|
|
153
|
-
spinner_id = "content_view_spinner";
|
|
154
|
-
|
|
155
|
-
if(fetching) {
|
|
156
|
-
select.hide();
|
|
157
|
-
select2.hide();
|
|
158
|
-
$(spinner).attr('id', spinner_id).insertAfter(select);
|
|
159
|
-
} else {
|
|
160
|
-
select2.show();
|
|
161
|
-
$('#' + spinner_id).remove();
|
|
162
|
-
}
|
|
163
|
-
};
|
|
164
|
-
|
|
165
|
-
KT.hosts.getContentViewSelect2 = function() {
|
|
166
|
-
var select = $("#s2id_host_content_view_id").first();
|
|
167
|
-
if(select.length === 0) {
|
|
168
|
-
select = $("#s2id_hostgroup_content_view_id").first();
|
|
169
|
-
}
|
|
170
|
-
return select;
|
|
171
|
-
};
|
|
172
|
-
|
|
173
|
-
KT.hosts.getContentViewSelect = function() {
|
|
174
|
-
var select = $("#host_content_view_id").first();
|
|
175
|
-
if(select.length === 0) {
|
|
176
|
-
select = $("#hostgroup_content_view_id").first();
|
|
177
|
-
}
|
|
178
|
-
return select;
|
|
179
|
-
};
|
|
180
|
-
|
|
181
|
-
KT.hosts.getSelectedContentView = function() {
|
|
182
|
-
var select = KT.hosts.getContentViewSelect();
|
|
183
|
-
return select.val() || select.find("option:selected").data("id");
|
|
184
|
-
};
|
|
185
|
-
|
|
186
|
-
KT.hosts.getEnvironmentSelect = function() {
|
|
187
|
-
var select = $("#hostgroup_lifecycle_environment_id").first();
|
|
188
|
-
if(select.length === 0) {
|
|
189
|
-
select = $("#host_lifecycle_environment_id").first();
|
|
190
|
-
}
|
|
191
|
-
return select;
|
|
192
|
-
};
|
|
193
|
-
|
|
194
|
-
KT.hosts.getSelectedEnvironment = function () {
|
|
195
|
-
var envId = $("#hostgroup_lifecycle_environment_id").val();
|
|
196
|
-
if(envId === undefined || envId === null || envId.length === 0) {
|
|
197
|
-
envId = $("#host_lifecycle_environment_id").val()
|
|
198
|
-
}
|
|
199
|
-
if(envId === undefined || envId === null || envId.length === 0) {
|
|
200
|
-
envId = $("#hostgroup_lifecycle_environment_id > option:selected").data("id");
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
if(envId && envId.length === 0) {
|
|
204
|
-
envId = undefined;
|
|
205
|
-
}
|
|
206
|
-
return envId;
|
|
207
|
-
};
|
|
208
|
-
|
|
209
81
|
KT.hosts.onKatelloHostEditLoad = function(){
|
|
210
82
|
var prefixes = ['host', 'hostgroup'],
|
|
211
|
-
attributes = ['
|
|
83
|
+
attributes = ['content_view_environment_id', 'architecture_id'];
|
|
212
84
|
|
|
213
85
|
$('body').off('.hostsContentSourceNS');
|
|
214
86
|
|
|
@@ -226,26 +98,38 @@ KT.hosts.onKatelloHostEditLoad = function(){
|
|
|
226
98
|
});
|
|
227
99
|
};
|
|
228
100
|
|
|
229
|
-
KT.hosts.
|
|
230
|
-
var
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
101
|
+
KT.hosts.getSelectedContentViewEnvironment = function() {
|
|
102
|
+
var cvEnvId = $("#hostgroup_content_view_environment_id").val();
|
|
103
|
+
if (!cvEnvId) {
|
|
104
|
+
cvEnvId = $("#host_content_view_environment_id").val();
|
|
105
|
+
}
|
|
106
|
+
if (!cvEnvId) {
|
|
107
|
+
cvEnvId = $("#hostgroup_content_view_environment_id > option:selected").data("id");
|
|
108
|
+
}
|
|
109
|
+
if (!cvEnvId) {
|
|
110
|
+
var hiddenInput = $("input[name='host[content_facet_attributes][content_view_environment_ids][]']").first();
|
|
111
|
+
if (hiddenInput.length) {
|
|
112
|
+
cvEnvId = hiddenInput.val();
|
|
113
|
+
}
|
|
234
114
|
}
|
|
115
|
+
return cvEnvId;
|
|
116
|
+
};
|
|
117
|
+
|
|
118
|
+
KT.hosts.toggle_installation_medium = function() {
|
|
119
|
+
var content_view_environment_id, content_source_id, architecture_id, operatingsystem_id;
|
|
120
|
+
|
|
121
|
+
content_view_environment_id = KT.hosts.getSelectedContentViewEnvironment();
|
|
122
|
+
content_source_id = $('#content_source_id').val();
|
|
235
123
|
|
|
236
124
|
if ($('#hostgroup_operatingsystem_id').data('type') == 'hostgroup') {
|
|
237
|
-
lifecycle_environment_id = KT.hosts.getSelectedEnvironment();
|
|
238
|
-
content_source_id = $('#content_source_id').val();
|
|
239
125
|
architecture_id = $('#hostgroup_architecture_id').val();
|
|
240
126
|
operatingsystem_id = $('#hostgroup_operatingsystem_id').val();
|
|
241
127
|
} else {
|
|
242
|
-
lifecycle_environment_id = KT.hosts.getSelectedEnvironment();
|
|
243
|
-
content_source_id = $('#content_source_id').val();
|
|
244
128
|
architecture_id = $('#host_architecture_id').val();
|
|
245
129
|
operatingsystem_id = $('#host_operatingsystem_id').val();
|
|
246
130
|
}
|
|
247
131
|
|
|
248
|
-
if (
|
|
132
|
+
if (content_view_environment_id && content_source_id && architecture_id && operatingsystem_id) {
|
|
249
133
|
os_selected(KT.hosts.get_os_element());
|
|
250
134
|
}
|
|
251
135
|
};
|
|
@@ -318,13 +202,11 @@ KT.hosts.get_synced_content_dropdown = function() {
|
|
|
318
202
|
};
|
|
319
203
|
|
|
320
204
|
KT.hosts.on_install_media_dropdown_change = function() {
|
|
321
|
-
// reset the kickstart-repository-id .. They are either or.
|
|
322
205
|
KT.hosts.get_synced_content_dropdown().val("");
|
|
323
206
|
activate_select2("#media_select");
|
|
324
207
|
};
|
|
325
208
|
|
|
326
209
|
KT.hosts.on_synced_content_dropdown_change = function() {
|
|
327
|
-
// reset the kickstart-repository-id .. They are either or.
|
|
328
210
|
$("#host_medium_id").val("");
|
|
329
211
|
$("#s2id_host_medium_id").val("");
|
|
330
212
|
$("#hostgroup_medium_id").val("");
|
|
@@ -333,7 +215,6 @@ KT.hosts.on_synced_content_dropdown_change = function() {
|
|
|
333
215
|
};
|
|
334
216
|
|
|
335
217
|
KT.hosts.set_install_media_bindings = function() {
|
|
336
|
-
// reset the host medium id
|
|
337
218
|
$("#host_medium_id").on("select2:select", KT.hosts.on_install_media_dropdown_change);
|
|
338
219
|
$("#s2id_host_medium_id").on("select2:select", KT.hosts.on_install_media_dropdown_change);
|
|
339
220
|
$("#hostgroup_medium_id").on("select2:select", KT.hosts.on_install_media_dropdown_change);
|