katello 4.11.1 → 4.12.0.rc1
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of katello might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/app/assets/javascripts/katello/common/katello.global.js +1 -1
- data/app/assets/javascripts/katello/locale/bn/katello.js +76 -85
- data/app/assets/javascripts/katello/locale/bn_IN/katello.js +76 -85
- data/app/assets/javascripts/katello/locale/ca/katello.js +80 -86
- data/app/assets/javascripts/katello/locale/cs/katello.js +79 -85
- data/app/assets/javascripts/katello/locale/cs_CZ/katello.js +91 -88
- data/app/assets/javascripts/katello/locale/de/katello.js +97 -94
- data/app/assets/javascripts/katello/locale/de_AT/katello.js +76 -85
- data/app/assets/javascripts/katello/locale/de_DE/katello.js +76 -85
- data/app/assets/javascripts/katello/locale/el/katello.js +86 -86
- data/app/assets/javascripts/katello/locale/en/katello.js +76 -85
- data/app/assets/javascripts/katello/locale/en_GB/katello.js +88 -85
- data/app/assets/javascripts/katello/locale/en_US/katello.js +76 -85
- data/app/assets/javascripts/katello/locale/es/katello.js +94 -94
- data/app/assets/javascripts/katello/locale/et_EE/katello.js +76 -85
- data/app/assets/javascripts/katello/locale/fr/katello.js +97 -94
- data/app/assets/javascripts/katello/locale/gl/katello.js +80 -86
- data/app/assets/javascripts/katello/locale/gu/katello.js +76 -85
- data/app/assets/javascripts/katello/locale/he_IL/katello.js +76 -85
- data/app/assets/javascripts/katello/locale/hi/katello.js +76 -85
- data/app/assets/javascripts/katello/locale/id/katello.js +76 -85
- data/app/assets/javascripts/katello/locale/it/katello.js +89 -86
- data/app/assets/javascripts/katello/locale/ja/katello.js +97 -94
- data/app/assets/javascripts/katello/locale/ka/katello.js +92 -92
- data/app/assets/javascripts/katello/locale/kn/katello.js +76 -85
- data/app/assets/javascripts/katello/locale/ko/katello.js +91 -94
- data/app/assets/javascripts/katello/locale/locale/katello.js +1051 -1048
- data/app/assets/javascripts/katello/locale/ml_IN/katello.js +76 -85
- data/app/assets/javascripts/katello/locale/mr/katello.js +76 -85
- data/app/assets/javascripts/katello/locale/nl_NL/katello.js +76 -85
- data/app/assets/javascripts/katello/locale/or/katello.js +76 -85
- data/app/assets/javascripts/katello/locale/pa/katello.js +76 -85
- data/app/assets/javascripts/katello/locale/pl/katello.js +76 -85
- data/app/assets/javascripts/katello/locale/pl_PL/katello.js +76 -85
- data/app/assets/javascripts/katello/locale/pt/katello.js +76 -85
- data/app/assets/javascripts/katello/locale/pt_BR/katello.js +94 -94
- data/app/assets/javascripts/katello/locale/ro/katello.js +76 -85
- data/app/assets/javascripts/katello/locale/ro_RO/katello.js +76 -85
- data/app/assets/javascripts/katello/locale/ru/katello.js +91 -94
- data/app/assets/javascripts/katello/locale/sl/katello.js +76 -85
- data/app/assets/javascripts/katello/locale/sv_SE/katello.js +80 -86
- data/app/assets/javascripts/katello/locale/ta/katello.js +76 -85
- data/app/assets/javascripts/katello/locale/ta_IN/katello.js +76 -85
- data/app/assets/javascripts/katello/locale/te/katello.js +76 -85
- data/app/assets/javascripts/katello/locale/tr/katello.js +76 -85
- data/app/assets/javascripts/katello/locale/vi/katello.js +76 -85
- data/app/assets/javascripts/katello/locale/vi_VN/katello.js +76 -85
- data/app/assets/javascripts/katello/locale/zh/katello.js +76 -85
- data/app/assets/javascripts/katello/locale/zh_CN/katello.js +97 -94
- data/app/assets/javascripts/katello/locale/zh_TW/katello.js +91 -94
- data/app/assets/javascripts/katello/sync_management/index.js +0 -1
- data/app/assets/javascripts/katello/sync_management/sync_management.js +365 -308
- data/app/controllers/katello/api/rhsm/candlepin_proxies_controller.rb +1 -0
- data/app/controllers/katello/api/v2/debs_controller.rb +4 -0
- data/app/controllers/katello/api/v2/host_debs_controller.rb +13 -1
- data/app/controllers/katello/api/v2/organizations_controller.rb +1 -3
- data/app/controllers/katello/api/v2/repositories_controller.rb +2 -8
- data/app/controllers/katello/concerns/api/v2/registration_commands_controller_extensions.rb +0 -1
- data/app/controllers/katello/concerns/hosts_controller_extensions.rb +7 -3
- data/app/controllers/katello/concerns/organizations_controller_extensions.rb +1 -17
- data/app/helpers/katello/concerns/dashboard_helper_extensions.rb +0 -20
- data/app/lib/actions/katello/content_view/publish.rb +3 -3
- data/app/lib/actions/katello/content_view_version/auto_create_products.rb +4 -4
- data/app/lib/actions/katello/content_view_version/auto_create_redhat_repositories.rb +5 -5
- data/app/lib/actions/katello/content_view_version/auto_create_repositories.rb +5 -5
- data/app/lib/actions/katello/content_view_version/import.rb +14 -13
- data/app/lib/actions/katello/content_view_version/import_library.rb +4 -4
- data/app/lib/actions/katello/content_view_version/import_repository.rb +3 -3
- data/app/lib/actions/katello/content_view_version/reset_content_view_repositories_from_metadata.rb +2 -2
- data/app/lib/actions/katello/host/hypervisors_update.rb +0 -1
- data/app/lib/actions/katello/organization/manifest_delete.rb +1 -1
- data/app/lib/actions/katello/organization/manifest_refresh.rb +16 -16
- data/app/lib/actions/katello/repository/sync.rb +2 -4
- data/app/lib/actions/pulp3/orchestration/content_view_version/export.rb +20 -15
- data/app/lib/actions/pulp3/orchestration/content_view_version/export_library.rb +17 -14
- data/app/lib/actions/pulp3/orchestration/content_view_version/import.rb +11 -11
- data/app/lib/actions/pulp3/orchestration/repository/upload_content.rb +18 -13
- data/app/lib/actions/pulp3/repository/import_upload.rb +13 -5
- data/app/lib/actions/pulp3/repository/save_artifact.rb +23 -12
- data/app/lib/katello/api/v2/error_handling.rb +1 -1
- data/app/lib/katello/lazy_accessor.rb +6 -6
- data/app/lib/katello/resources/candlepin/owner.rb +2 -2
- data/app/mailers/katello/errata_mailer.rb +3 -3
- data/app/models/katello/concerns/host_managed_extensions.rb +29 -76
- data/app/models/katello/concerns/hostgroup_extensions.rb +4 -2
- data/app/models/katello/concerns/organization_extensions.rb +1 -1
- data/app/models/katello/concerns/pulp_database_unit.rb +1 -1
- data/app/models/katello/concerns/subscription_facet_host_extensions.rb +0 -27
- data/app/models/katello/content_view.rb +11 -6
- data/app/models/katello/content_view_version.rb +2 -0
- data/app/models/katello/deb.rb +8 -0
- data/app/models/katello/host/content_facet.rb +19 -14
- data/app/models/katello/host/subscription_facet.rb +0 -19
- data/app/models/katello/host_tracer.rb +9 -5
- data/app/models/katello/installed_deb.rb +1 -0
- data/app/models/katello/repository.rb +3 -2
- data/app/models/katello/trace_status.rb +6 -2
- data/app/overrides/add_organization_attributes.rb +0 -18
- data/app/presenters/katello/host_deb_presenter.rb +23 -0
- data/app/services/katello/candlepin/consumer.rb +0 -4
- data/app/services/katello/candlepin/event_handler.rb +6 -25
- data/app/services/katello/candlepin/message_handler.rb +1 -21
- data/app/services/katello/host/profiles_uploader.rb +17 -6
- data/app/services/katello/host_status_manager.rb +0 -22
- data/app/services/katello/organization_creator.rb +2 -2
- data/app/services/katello/pulp3/api/apt.rb +1 -1
- data/app/services/katello/pulp3/content_view_version/export.rb +2 -2
- data/app/services/katello/pulp3/content_view_version/metadata_generator.rb +1 -0
- data/app/services/katello/pulp3/content_view_version/metadata_map.rb +3 -0
- data/app/services/katello/pulp3/repository/apt.rb +16 -6
- data/app/services/katello/registration_manager.rb +1 -13
- data/app/views/katello/api/v2/host_debs/base.json.rabl +2 -0
- data/app/views/katello/api/v2/hosts/base.json.rabl +9 -0
- data/app/views/katello/api/v2/subscription_facet/base_with_root.json.rabl +0 -3
- data/app/views/katello/api/v2/subscription_facet/show.json.rabl +3 -0
- data/app/views/katello/sync_management/index.html.erb +14 -13
- data/app/views/overrides/activation_keys/_host_environment_select.html.erb +20 -16
- data/app/views/overrides/activation_keys/_host_synced_content_select.html.erb +6 -4
- data/app/views/overrides/organizations/_edit_override.html.erb +0 -12
- data/db/migrate/20131014225132_add_users_fields.rb +0 -1
- data/db/migrate/20150603045418_remove_user_fields.rb +0 -2
- data/db/migrate/20160404132250_remove_katello_from_notification_name.rb +4 -22
- data/db/migrate/20160505181337_rename_katello_settings.rb +2 -2
- data/db/migrate/20200818192230_update_system_purpose_status.rb +9 -3
- data/db/migrate/20240111032511_add_index_to_host_installed_packages.rb +16 -0
- data/db/migrate/20240123120109_remove_pulp_export_destination_setting.rb +9 -0
- data/db/migrate/20240207191223_remove_entitlement_mode_host_statuses.rb +30 -0
- data/db/seeds.d/111-upgrade_tasks.rb +2 -1
- data/engines/bastion/app/assets/javascripts/bastion/bastion.js +0 -2
- data/engines/bastion/app/views/bastion/layouts/assets.html.erb +6 -2
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/views/activation-key-associations-content-hosts.html +0 -4
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/views/activation-key-details.html +0 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/bastion-katello-bootstrap.js +45 -29
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content-hosts-helper.service.js +0 -10
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/content-host-details.controller.js +0 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/views/content-host-info.html +2 -21
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/views/content-host-subscriptions.html +0 -5
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/views/content-hosts.html +0 -7
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/bastion_katello.pot +5 -5
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/details/views/repository-info.html +9 -1
- data/engines/bastion_katello/lib/bastion_katello/engine.rb +0 -6
- data/lib/katello/engine.rb +0 -3
- data/lib/katello/plugin.rb +2 -11
- data/lib/katello/tasks/rubocop.rake +0 -9
- data/lib/katello/tasks/unify_hosts.rake +0 -1
- data/lib/katello/tasks/upgrades/4.12/update_content_access_modes.rake +35 -0
- data/lib/katello/version.rb +1 -1
- data/locale/action_names.rb +12 -6
- data/locale/bn/katello.po +19 -28
- data/locale/bn/katello.po.time_stamp +0 -0
- data/locale/bn/katello.pox +0 -0
- data/locale/bn_IN/katello.po +19 -28
- data/locale/bn_IN/katello.po.time_stamp +0 -0
- data/locale/ca/LC_MESSAGES/katello.mo +0 -0
- data/locale/ca/katello.po +20 -29
- data/locale/ca/katello.po.time_stamp +0 -0
- data/locale/cs/katello.po +19 -29
- data/locale/cs/katello.po.time_stamp +0 -0
- data/locale/cs_CZ/LC_MESSAGES/katello.mo +0 -0
- data/locale/cs_CZ/katello.po +20 -29
- data/locale/cs_CZ/katello.po.time_stamp +0 -0
- data/locale/de/LC_MESSAGES/katello.mo +0 -0
- data/locale/de/katello.po +20 -29
- data/locale/de/katello.po.time_stamp +0 -0
- data/locale/de_AT/katello.po +19 -28
- data/locale/de_AT/katello.po.time_stamp +0 -0
- data/locale/de_DE/katello.po +19 -28
- data/locale/de_DE/katello.po.time_stamp +0 -0
- data/locale/el/LC_MESSAGES/katello.mo +0 -0
- data/locale/el/katello.po +20 -29
- data/locale/el/katello.po.time_stamp +0 -0
- data/locale/en/katello.po +19 -28
- data/locale/en/katello.po.time_stamp +0 -0
- data/locale/en_GB/LC_MESSAGES/katello.mo +0 -0
- data/locale/en_GB/katello.po +19 -28
- data/locale/en_GB/katello.po.time_stamp +0 -0
- data/locale/en_US/katello.po +19 -28
- data/locale/en_US/katello.po.time_stamp +0 -0
- data/locale/es/LC_MESSAGES/katello.mo +0 -0
- data/locale/es/katello.po +20 -29
- data/locale/es/katello.po.time_stamp +0 -0
- data/locale/et_EE/katello.po +19 -28
- data/locale/et_EE/katello.po.time_stamp +0 -0
- data/locale/fr/LC_MESSAGES/katello.mo +0 -0
- data/locale/fr/katello.po +20 -29
- data/locale/fr/katello.po.time_stamp +0 -0
- data/locale/gl/LC_MESSAGES/katello.mo +0 -0
- data/locale/gl/katello.po +20 -29
- data/locale/gl/katello.po.time_stamp +0 -0
- data/locale/gu/katello.po +19 -28
- data/locale/gu/katello.po.time_stamp +0 -0
- data/locale/he_IL/katello.po +19 -28
- data/locale/he_IL/katello.po.time_stamp +0 -0
- data/locale/hi/katello.po +19 -28
- data/locale/hi/katello.po.time_stamp +0 -0
- data/locale/id/katello.po +19 -28
- data/locale/id/katello.po.time_stamp +0 -0
- data/locale/it/LC_MESSAGES/katello.mo +0 -0
- data/locale/it/katello.po +20 -29
- data/locale/it/katello.po.time_stamp +0 -0
- data/locale/ja/LC_MESSAGES/katello.mo +0 -0
- data/locale/ja/katello.po +20 -29
- data/locale/ja/katello.po.time_stamp +0 -0
- data/locale/ka/LC_MESSAGES/katello.mo +0 -0
- data/locale/ka/katello.po +20 -29
- data/locale/ka/katello.po.time_stamp +0 -0
- data/locale/katello.pot +363 -348
- data/locale/kn/katello.po +19 -28
- data/locale/kn/katello.po.time_stamp +0 -0
- data/locale/ko/LC_MESSAGES/katello.mo +0 -0
- data/locale/ko/katello.po +20 -29
- data/locale/ko/katello.po.time_stamp +0 -0
- data/locale/messages.mo +0 -0
- data/locale/ml_IN/katello.po +19 -28
- data/locale/ml_IN/katello.po.time_stamp +0 -0
- data/locale/mr/katello.po +19 -28
- data/locale/mr/katello.po.time_stamp +0 -0
- data/locale/nl_NL/katello.po +19 -28
- data/locale/nl_NL/katello.po.time_stamp +0 -0
- data/locale/or/katello.po +19 -28
- data/locale/or/katello.po.time_stamp +0 -0
- data/locale/pa/katello.po +19 -28
- data/locale/pa/katello.po.time_stamp +0 -0
- data/locale/pl/katello.po +19 -28
- data/locale/pl/katello.po.time_stamp +0 -0
- data/locale/pl_PL/katello.po +19 -28
- data/locale/pl_PL/katello.po.time_stamp +0 -0
- data/locale/pt/katello.po +19 -28
- data/locale/pt/katello.po.time_stamp +0 -0
- data/locale/pt_BR/LC_MESSAGES/katello.mo +0 -0
- data/locale/pt_BR/katello.po +20 -29
- data/locale/pt_BR/katello.po.time_stamp +0 -0
- data/locale/ro/katello.po +19 -28
- data/locale/ro/katello.po.time_stamp +0 -0
- data/locale/ro_RO/katello.po +19 -28
- data/locale/ro_RO/katello.po.time_stamp +0 -0
- data/locale/ru/LC_MESSAGES/katello.mo +0 -0
- data/locale/ru/katello.po +20 -29
- data/locale/ru/katello.po.time_stamp +0 -0
- data/locale/sl/katello.po +19 -28
- data/locale/sl/katello.po.time_stamp +0 -0
- data/locale/sv_SE/LC_MESSAGES/katello.mo +0 -0
- data/locale/sv_SE/katello.po +20 -29
- data/locale/sv_SE/katello.po.time_stamp +0 -0
- data/locale/ta/katello.po +19 -28
- data/locale/ta/katello.po.time_stamp +0 -0
- data/locale/ta_IN/katello.po +19 -28
- data/locale/ta_IN/katello.po.time_stamp +0 -0
- data/locale/te/katello.po +19 -28
- data/locale/te/katello.po.time_stamp +0 -0
- data/locale/tr/katello.po +19 -28
- data/locale/tr/katello.po.time_stamp +0 -0
- data/locale/vi/katello.po +19 -28
- data/locale/vi/katello.po.time_stamp +0 -0
- data/locale/vi_VN/katello.po +19 -28
- data/locale/vi_VN/katello.po.time_stamp +0 -0
- data/locale/zh/katello.po +19 -28
- data/locale/zh/katello.po.time_stamp +0 -0
- data/locale/zh_CN/LC_MESSAGES/katello.mo +0 -0
- data/locale/zh_CN/katello.po +20 -29
- data/locale/zh_CN/katello.po.time_stamp +0 -0
- data/locale/zh_TW/LC_MESSAGES/katello.mo +0 -0
- data/locale/zh_TW/katello.po +20 -29
- data/locale/zh_TW/katello.po.time_stamp +0 -0
- data/package.json +0 -1
- data/webpack/components/extensions/HostDetails/Tabs/ContentTab/SecondaryTabsRoutes.js +4 -0
- data/webpack/components/extensions/HostDetails/Tabs/ContentTab/constants.js +4 -1
- data/webpack/components/extensions/HostDetails/Tabs/DebsTab/DebInstallModal.js +250 -0
- data/webpack/components/extensions/HostDetails/Tabs/DebsTab/DebInstallModal.scss +3 -0
- data/webpack/components/extensions/HostDetails/Tabs/DebsTab/DebsTab.js +585 -0
- data/webpack/components/extensions/HostDetails/Tabs/DebsTab/DebsTab.scss +12 -0
- data/webpack/components/extensions/HostDetails/Tabs/DebsTab/HostDebsActions.js +13 -0
- data/webpack/components/extensions/HostDetails/Tabs/DebsTab/HostDebsConstants.js +13 -0
- data/webpack/components/extensions/HostDetails/Tabs/DebsTab/HostDebsSelectors.js +16 -0
- data/webpack/components/extensions/HostDetails/Tabs/DebsTab/InstallableDebsActions.js +17 -0
- data/webpack/components/extensions/HostDetails/Tabs/DebsTab/InstallableDebsConstants.js +3 -0
- data/webpack/components/extensions/HostDetails/Tabs/DebsTab/InstallableDebsSelectors.js +16 -0
- data/webpack/components/extensions/HostDetails/Tabs/ModuleStreamsTab/ModuleStreamsTab.js +1 -8
- data/webpack/components/extensions/HostDetails/Tabs/PackagesTab/PackagesTab.js +2 -0
- data/webpack/components/extensions/HostDetails/Tabs/RepositorySetsTab/RepositorySetsTab.js +4 -18
- data/webpack/components/extensions/HostDetails/Tabs/TracesTab/TracesTab.js +13 -5
- data/webpack/components/extensions/HostDetails/Tabs/__tests__/debs.fixtures.json +31 -0
- data/webpack/components/extensions/HostDetails/Tabs/__tests__/debsInstallModal.test.js +226 -0
- data/webpack/components/extensions/HostDetails/Tabs/__tests__/debsTab.test.js +420 -0
- data/webpack/components/extensions/HostDetails/Tabs/__tests__/installableDebs.fixtures.json +63 -0
- data/webpack/components/extensions/HostDetails/Tabs/__tests__/traces.fixtures.json +11 -1
- data/webpack/components/extensions/HostDetails/Tabs/__tests__/tracesTab.test.js +63 -3
- data/webpack/scenes/ContentViews/ContentViewsConstants.js +3 -0
- data/webpack/scenes/ContentViews/Delete/__tests__/affectedHosts.fixtures.json +0 -13
- data/webpack/scenes/ContentViews/Details/ContentViewDetailActions.js +23 -1
- data/webpack/scenes/ContentViews/Details/ContentViewDetailSelectors.js +19 -1
- data/webpack/scenes/ContentViews/Details/Versions/BulkDelete/__tests__/hosts.fixtures.json +0 -13
- data/webpack/scenes/ContentViews/Details/Versions/Compare/CVVersionCompareConfig.js +37 -3
- data/webpack/scenes/ContentViews/Details/Versions/ContentViewVersionContent.js +10 -2
- data/webpack/scenes/ContentViews/Details/Versions/Delete/__tests__/cvAffectedHosts.fixture.json +0 -13
- data/webpack/scenes/ContentViews/Details/Versions/VersionDetails/ContentViewVersionDetailConfig.js +31 -5
- data/webpack/scenes/Organizations/OrganizationSelectors.js +0 -3
- data/webpack/scenes/Subscriptions/Manifest/index.js +1 -4
- data/webpack/scenes/Subscriptions/SubscriptionsPage.js +3 -25
- data/webpack/scenes/Subscriptions/SubscriptionsSelectors.js +0 -3
- data/webpack/scenes/Subscriptions/__tests__/SubscriptionsSelectors.test.js +0 -3
- data/webpack/scenes/Subscriptions/__tests__/__snapshots__/SubscriptionsPage.test.js.snap +0 -22
- data/webpack/scenes/Subscriptions/__tests__/__snapshots__/SubscriptionsSelectors.test.js.snap +0 -3
- data/webpack/scenes/Subscriptions/index.js +1 -2
- metadata +93 -190
- data/app/controllers/katello/concerns/content_facet_hosts_controller_extensions.rb +0 -22
- data/app/models/katello/concerns/widget_extensions.rb +0 -23
- data/app/models/katello/purpose_addons_status.rb +0 -28
- data/app/models/katello/purpose_role_status.rb +0 -28
- data/app/models/katello/purpose_sla_status.rb +0 -28
- data/app/models/katello/purpose_status.rb +0 -71
- data/app/models/katello/purpose_usage_status.rb +0 -28
- data/app/models/katello/subscription_status.rb +0 -71
- data/app/services/katello/candlepin/system_purpose.rb +0 -49
- data/app/views/dashboard/_subscription_status_widget.html.erb +0 -37
- data/app/views/dashboard/_subscription_widget.html.erb +0 -85
- data/app/views/overrides/organizations/_index_header_override.html.erb +0 -3
- data/app/views/overrides/organizations/_index_row_override.html.erb +0 -3
- data/app/views/overrides/organizations/_step_1_override.html.erb +0 -10
- data/config/locales/README +0 -10
- data/config/locales/bn.yml +0 -182
- data/config/locales/compare_upstream.sh +0 -21
- data/config/locales/cs.yml +0 -211
- data/config/locales/de.yml +0 -203
- data/config/locales/en.yml +0 -205
- data/config/locales/es.yml +0 -199
- data/config/locales/fr.yml +0 -222
- data/config/locales/gu.yml +0 -181
- data/config/locales/hi.yml +0 -199
- data/config/locales/it.yml +0 -205
- data/config/locales/ja.yml +0 -197
- data/config/locales/kn.yml +0 -199
- data/config/locales/ko.yml +0 -197
- data/config/locales/mr.yml +0 -178
- data/config/locales/or.yml +0 -181
- data/config/locales/pa.yml +0 -181
- data/config/locales/pt-BR.yml +0 -207
- data/config/locales/pt.yml +0 -207
- data/config/locales/ru.yml +0 -257
- data/config/locales/ta.yml +0 -181
- data/config/locales/te.yml +0 -181
- data/config/locales/update.sh +0 -14
- data/config/locales/zh-CN.yml +0 -199
- data/config/locales/zh-TW.yml +0 -199
- data/engines/bastion/app/assets/javascripts/bastion/bastion-bootstrap.js +0 -17
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/content-access-mode-banner.directive.js +0 -22
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/views/content-access-mode-banner.html +0 -10
- data/webpack/scenes/Subscriptions/Manifest/SimpleContentAccess.js +0 -96
@@ -11,16 +11,4 @@
|
|
11
11
|
:type => :button, :style => 'margin-top: 8px;', :class => 'btn btn-small',
|
12
12
|
'data-url' => "/katello/api/v2/organizations/#{@taxonomy.id}/download_debug_certificate"
|
13
13
|
end %>
|
14
|
-
|
15
|
-
<%= field(f, _('Simple Content Access')) do
|
16
|
-
tag1 = hidden_field_tag 'simple_content_access', '0'
|
17
|
-
tag2 = check_box_tag 'simple_content_access', '1', @taxonomy.simple_content_access?(cached: false)
|
18
|
-
tag1 + tag2
|
19
|
-
end %>
|
20
|
-
|
21
|
-
<div class="alert alert-warning" role="alert">
|
22
|
-
<%= link_to _('Simple Content Access'), 'https://access.redhat.com/articles/transition_of_subscription_services_to_the_hybrid_cloud_console', :rel => "external" %>
|
23
|
-
<%= _(' will be required for all organizations in Katello 4.12.') %>
|
24
|
-
</div>
|
25
|
-
|
26
14
|
<% end %>
|
@@ -3,7 +3,6 @@ class AddUsersFields < ActiveRecord::Migration[4.2]
|
|
3
3
|
add_column :users, :helptips_enabled, :boolean, :default => true
|
4
4
|
add_column :users, :hidden, :boolean, :default => false, :null => false
|
5
5
|
add_column :users, :page_size, :integer, :default => 25, :null => false
|
6
|
-
add_column :users, :disabled, :boolean, :default => false
|
7
6
|
add_column :users, :preferences, :text
|
8
7
|
add_column :users, :remote_id, :string, :limit => 255
|
9
8
|
end
|
@@ -2,7 +2,6 @@ class RemoveUserFields < ActiveRecord::Migration[4.2]
|
|
2
2
|
def up
|
3
3
|
remove_column :users, :helptips_enabled
|
4
4
|
remove_column :users, :page_size
|
5
|
-
remove_column :users, :disabled
|
6
5
|
remove_column :users, :preferences
|
7
6
|
remove_column :users, :remote_id
|
8
7
|
end
|
@@ -11,7 +10,6 @@ class RemoveUserFields < ActiveRecord::Migration[4.2]
|
|
11
10
|
add_column :users, :helptips_enabled, :boolean, :default => true
|
12
11
|
add_column :users, :hidden, :boolean, :default => false, :null => false
|
13
12
|
add_column :users, :page_size, :integer, :default => 25, :null => false
|
14
|
-
add_column :users, :disabled, :boolean, :default => false
|
15
13
|
add_column :users, :preferences, :text
|
16
14
|
add_column :users, :remote_id, :string, :limit => 255
|
17
15
|
end
|
@@ -1,26 +1,8 @@
|
|
1
1
|
class RemoveKatelloFromNotificationName < ActiveRecord::Migration[4.2]
|
2
|
-
class FakeMailNotification < ApplicationRecord
|
3
|
-
self.table_name = 'mail_notifications'
|
4
|
-
end
|
5
|
-
|
6
2
|
def up
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
notification.name = new_name
|
12
|
-
notification.save!
|
13
|
-
end
|
14
|
-
end
|
15
|
-
end
|
16
|
-
|
17
|
-
private
|
18
|
-
|
19
|
-
def notification_names
|
20
|
-
{
|
21
|
-
:katello_promote_errata => 'promote_errata',
|
22
|
-
:katello_sync_errata => 'sync_errata',
|
23
|
-
:katello_host_advisory => 'host_errata_advisory'
|
24
|
-
}.with_indifferent_access
|
3
|
+
# historical placeholder
|
4
|
+
# only required on setups before https://projects.theforeman.org/issues/14459
|
5
|
+
# we can safely assume that fresh installs have the above change already
|
6
|
+
# and existing install had this migration applied back in 2016
|
25
7
|
end
|
26
8
|
end
|
@@ -1,9 +1,9 @@
|
|
1
1
|
class RenameKatelloSettings < ActiveRecord::Migration[4.2]
|
2
2
|
def up
|
3
|
-
Setting.where(category: 'Setting::Katello').update_all(:category => 'Setting::Content')
|
3
|
+
Setting.where(category: 'Setting::Katello').update_all(:category => 'Setting::Content') if column_exists?(:settings, :category)
|
4
4
|
end
|
5
5
|
|
6
6
|
def down
|
7
|
-
Setting.where(category: 'Setting::Content').update_all(:category => 'Setting::Katello')
|
7
|
+
Setting.where(category: 'Setting::Content').update_all(:category => 'Setting::Katello') if column_exists?(:settings, :category)
|
8
8
|
end
|
9
9
|
end
|
@@ -1,12 +1,18 @@
|
|
1
1
|
class UpdateSystemPurposeStatus < ActiveRecord::Migration[6.0]
|
2
2
|
def change
|
3
|
-
purpose_types =
|
3
|
+
purpose_types = [
|
4
|
+
"Katello::PurposeStatus",
|
5
|
+
"Katello::PurposeAddonsStatus",
|
6
|
+
"Katello::PurposeRoleStatus",
|
7
|
+
"Katello::PurposeSlaStatus",
|
8
|
+
"Katello::PurposeUsageStatus"
|
9
|
+
]
|
4
10
|
|
5
11
|
# load both sets of host statuses and *then* update them to make sure we update the correct statuses
|
6
12
|
unknown_statuses = ::HostStatus::Status.where(type: purpose_types, status: 2).pluck(:id)
|
7
13
|
matched_statuses = ::HostStatus::Status.where(type: purpose_types, status: 0).pluck(:id)
|
8
14
|
|
9
|
-
::HostStatus::Status.where(id: unknown_statuses).update_all(status:
|
10
|
-
::HostStatus::Status.where(id: matched_statuses).update_all(status:
|
15
|
+
::HostStatus::Status.where(id: unknown_statuses).update_all(status: 0) # 2 => 0
|
16
|
+
::HostStatus::Status.where(id: matched_statuses).update_all(status: 2) # 0 => 2
|
11
17
|
end
|
12
18
|
end
|
@@ -0,0 +1,16 @@
|
|
1
|
+
class AddIndexToHostInstalledPackages < ActiveRecord::Migration[6.1]
|
2
|
+
def up
|
3
|
+
add_index :katello_host_installed_packages, [:installed_package_id],
|
4
|
+
:name => 'katello_host_installed_packages_ip_id'
|
5
|
+
add_index :katello_host_installed_packages, [:host_id],
|
6
|
+
:name => 'katello_host_installed_packages_host_id'
|
7
|
+
end
|
8
|
+
|
9
|
+
def down
|
10
|
+
remove_index :katello_host_installed_packages,
|
11
|
+
:name => 'katello_host_installed_packages_ip_id'
|
12
|
+
|
13
|
+
remove_index :katello_host_installed_packages,
|
14
|
+
:name => 'katello_host_installed_packages_host_id'
|
15
|
+
end
|
16
|
+
end
|
@@ -0,0 +1,30 @@
|
|
1
|
+
class RemoveEntitlementModeHostStatuses < ActiveRecord::Migration[6.1]
|
2
|
+
class FakeTablePreference < ApplicationRecord
|
3
|
+
self.table_name = 'table_preferences'
|
4
|
+
serialize :columns
|
5
|
+
end
|
6
|
+
|
7
|
+
def up
|
8
|
+
obsolete_statuses = [
|
9
|
+
"Katello::SubscriptionStatus",
|
10
|
+
"Katello::PurposeStatus",
|
11
|
+
"Katello::PurposeAddonsStatus",
|
12
|
+
"Katello::PurposeRoleStatus",
|
13
|
+
"Katello::PurposeSlaStatus",
|
14
|
+
"Katello::PurposeUsageStatus"
|
15
|
+
]
|
16
|
+
|
17
|
+
::HostStatus::Status.where(type: obsolete_statuses).delete_all
|
18
|
+
|
19
|
+
FakeTablePreference.where(name: "hosts").each do |table_preference|
|
20
|
+
next unless table_preference.columns.include?("subscription_status")
|
21
|
+
new_columns = table_preference.columns - ["subscription_status"]
|
22
|
+
if new_columns.present?
|
23
|
+
table_preference.columns = new_columns
|
24
|
+
table_preference.save(validate: false)
|
25
|
+
else
|
26
|
+
table_preference.destroy
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
@@ -9,6 +9,7 @@ UpgradeTask.define_tasks(:katello) do
|
|
9
9
|
{:name => 'katello:upgrades:4.2:remove_checksum_values'},
|
10
10
|
{:name => 'katello:upgrades:4.4:publish_import_cvvs'},
|
11
11
|
{:name => 'katello:upgrades:4.8:fix_incorrect_providers'},
|
12
|
-
{:name => 'katello:upgrades:4.8:regenerate_imported_repository_metadata'}
|
12
|
+
{:name => 'katello:upgrades:4.8:regenerate_imported_repository_metadata'},
|
13
|
+
{:name => 'katello:upgrades:4.12:update_content_access_modes'}
|
13
14
|
]
|
14
15
|
end
|
@@ -10,11 +10,13 @@
|
|
10
10
|
<% end %>
|
11
11
|
|
12
12
|
<% content_for(:javascripts) do %>
|
13
|
-
|
13
|
+
|
14
|
+
<%= javascript_tag("window.tfm.tools.loadPluginModule('/webpack/katello','katello','./common_index');".html_safe) %>
|
15
|
+
<%= javascript_include_tag('bastion/bastion', {type: 'module'})%>
|
14
16
|
<% if File.exist?("#{Bastion::Engine.root}/vendor/assets/javascripts/#{Bastion.localization_path(I18n.locale)}") %>
|
15
17
|
<%= javascript_include_tag(Bastion.localization_path(I18n.locale)) %>
|
16
18
|
<% end %>
|
17
|
-
<script type="
|
19
|
+
<script type="module">
|
18
20
|
angular.module('Bastion.features').value('FeatureSettings', angular.fromJson(<%= SETTINGS[:features].nil? ? {} : SETTINGS[:features].to_json.html_safe %>));
|
19
21
|
angular.module('Bastion').value('currentLocale', '<%= I18n.locale %>');
|
20
22
|
angular.module('Bastion').value('CurrentOrganization', "<%= Organization.current.id if Organization.current %>");
|
@@ -34,6 +36,8 @@
|
|
34
36
|
angular.module('Bastion').value('newHostDetailsUI', "<%= Setting[:host_details_ui] %>");
|
35
37
|
angular.module('Bastion').value('experimentalLabsSetting', "<%= Setting[:lab_features] %>");
|
36
38
|
</script>
|
39
|
+
|
40
|
+
<%= javascript_include_tag('bastion_katello/bastion_katello', {type: 'module'}) %>
|
37
41
|
<% Bastion.plugins.each do |name, plugin| %>
|
38
42
|
<%= include_plugin_js(plugin) %>
|
39
43
|
<% end %>
|
@@ -33,10 +33,6 @@
|
|
33
33
|
<a ng-switch-when="false" ui-sref="content-host.info({hostId: host.id})">{{ host.name }}</a>
|
34
34
|
</span>
|
35
35
|
</td>
|
36
|
-
<td bst-table-cell ng-if="!simpleContentAccessEnabled">
|
37
|
-
<span ng-class="getHostStatusIcon(host.subscription_global_status)">
|
38
|
-
</span>
|
39
|
-
</td>
|
40
36
|
<td bst-table-cell>{{ host.content_facet_attributes.lifecycle_environment.name }}</td>
|
41
37
|
<td bst-table-cell>{{ host.content_facet_attributes.content_view.name || "" }}</td>
|
42
38
|
<td bst-table-cell>{{ host.subscription_facet_attributes.service_level }}</td>
|
data/engines/bastion_katello/app/assets/javascripts/bastion_katello/bastion-katello-bootstrap.js
CHANGED
@@ -1,29 +1,45 @@
|
|
1
|
-
BASTION_MODULES
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
1
|
+
var BASTION_MODULES = [
|
2
|
+
'angular-blocks',
|
3
|
+
'ngAnimate',
|
4
|
+
'ngSanitize',
|
5
|
+
'templates',
|
6
|
+
'ui.bootstrap',
|
7
|
+
'ui.bootstrap.tpls',
|
8
|
+
'Bastion.auth',
|
9
|
+
'Bastion.menu',
|
10
|
+
'Bastion.i18n',
|
11
|
+
'Bastion.features',
|
12
|
+
'Bastion.routing',
|
13
|
+
'Bastion.capsule-content',
|
14
|
+
'Bastion.pulp-primary',
|
15
|
+
'Bastion.activation-keys',
|
16
|
+
'Bastion.architectures',
|
17
|
+
'Bastion.common',
|
18
|
+
'Bastion.content-views',
|
19
|
+
'Bastion.content-views.versions',
|
20
|
+
'Bastion.debs',
|
21
|
+
'Bastion.docker-tags',
|
22
|
+
'Bastion.files',
|
23
|
+
'Bastion.ansible-collections',
|
24
|
+
'Bastion.hosts',
|
25
|
+
'Bastion.module-streams',
|
26
|
+
'Bastion.environments',
|
27
|
+
'Bastion.content-credentials',
|
28
|
+
'Bastion.hosts',
|
29
|
+
'Bastion.capsules',
|
30
|
+
'Bastion.organizations',
|
31
|
+
'Bastion.products',
|
32
|
+
'Bastion.repositories',
|
33
|
+
'Bastion.subscriptions',
|
34
|
+
'Bastion.sync-plans',
|
35
|
+
'Bastion.http-proxies',
|
36
|
+
'Bastion.host-collections',
|
37
|
+
'Bastion.content-hosts',
|
38
|
+
'Bastion.tasks',
|
39
|
+
'Bastion.settings'
|
40
|
+
];
|
41
|
+
|
42
|
+
// Check if the document has already been bootstrapped.
|
43
|
+
if (!angular.element(document).injector()) {
|
44
|
+
angular.bootstrap(document, BASTION_MODULES);
|
45
|
+
}
|
@@ -38,16 +38,6 @@ angular.module('Bastion.content-hosts').service('ContentHostsHelper',
|
|
38
38
|
return icons[globalStatus];
|
39
39
|
};
|
40
40
|
|
41
|
-
this.getHostPurposeStatusIcon = function (statusCode) {
|
42
|
-
var code = parseInt(statusCode);
|
43
|
-
|
44
|
-
if (code === 2) { // matched
|
45
|
-
return 'pficon pficon-ok';
|
46
|
-
} else if (code === 1) { // mismatched
|
47
|
-
return 'pficon pficon-warning-triangle-o';
|
48
|
-
}
|
49
|
-
};
|
50
|
-
|
51
41
|
this.rebootRequired = function(traces) {
|
52
42
|
return traces.some(function(trace) {
|
53
43
|
return trace.reboot_required;
|
@@ -24,7 +24,6 @@ angular.module('Bastion.content-hosts').controller('ContentHostDetailsController
|
|
24
24
|
$scope.menuExpander = MenuExpander;
|
25
25
|
|
26
26
|
$scope.getHostStatusIcon = ContentHostsHelper.getHostStatusIcon;
|
27
|
-
$scope.getHostPurposeStatusIcon = ContentHostsHelper.getHostPurposeStatusIcon;
|
28
27
|
|
29
28
|
$scope.organization = Organization.get({id: CurrentOrganization}, function(org) {
|
30
29
|
$scope.purposeAddonsCount += org.system_purposes.addons.length;
|
@@ -51,8 +51,8 @@
|
|
51
51
|
</button>
|
52
52
|
</dd>
|
53
53
|
|
54
|
-
<dt ng-show="host.subscription_facet_attributes.virtual_guests" translate>Virtual Guests</dt>
|
55
|
-
<dd ng-show="host.subscription_facet_attributes.virtual_guests">
|
54
|
+
<dt ng-show="host.subscription_facet_attributes.virtual_guests.length" translate>Virtual Guests</dt>
|
55
|
+
<dd ng-show="host.subscription_facet_attributes.virtual_guests.length">
|
56
56
|
<a ng-href="/content_hosts?search={{virtualGuestIds(host)}}"
|
57
57
|
translate translate-n="host.subscription_facet_attributes.virtual_guests.length"
|
58
58
|
translate-plural="{{ host.subscription_facet_attributes.virtual_guests.length }} Content Hosts">
|
@@ -74,12 +74,6 @@
|
|
74
74
|
<h4 translate>Subscriptions</h4>
|
75
75
|
|
76
76
|
<dl class="dl-horizontal dl-horizontal-left">
|
77
|
-
<dt translate>Subscription Status</dt>
|
78
|
-
<dd>
|
79
|
-
<i ng-class="getHostStatusIcon(host.subscription_global_status)"></i>
|
80
|
-
{{ host.subscription_status_label }}
|
81
|
-
</dd>
|
82
|
-
|
83
77
|
<dt translate ng-if="!simpleContentAccessEnabled">Details</dt>
|
84
78
|
<dd ng-if="!simpleContentAccessEnabled">
|
85
79
|
<ul class="compliance-reasons">
|
@@ -104,16 +98,9 @@
|
|
104
98
|
<div style="display: inline-block"><i class="pficon-info" title="{{ 'System purpose enables you to set the system\'s intended use on your network and improves reporting accuracy in the Subscriptions service of the Red Hat Hybrid Cloud Console.' | translate }}"></i></div>
|
105
99
|
|
106
100
|
<dl class="dl-horizontal dl-horizontal-left">
|
107
|
-
<dt translate ng-hide="simpleContentAccessEnabled">System Purpose Status</dt>
|
108
|
-
<dd ng-hide="simpleContentAccessEnabled">
|
109
|
-
<i ng-class="getHostPurposeStatusIcon(host.purpose_status)"></i>
|
110
|
-
{{ host.purpose_status_label }}
|
111
|
-
</dd>
|
112
101
|
<dt translate>Service Level (SLA)</dt>
|
113
102
|
<dd bst-edit-select="host.subscription_facet_attributes.service_level"
|
114
103
|
readonly="denied('edit_hosts', host)"
|
115
|
-
icon-class="getHostPurposeStatusIcon(host.purpose_sla_status)"
|
116
|
-
icon-show="host.purpose_sla_status > 0"
|
117
104
|
selector="host.subscription_facet_attributes.service_level"
|
118
105
|
options="serviceLevels()"
|
119
106
|
options-format="option for option in options"
|
@@ -125,8 +112,6 @@
|
|
125
112
|
<dt translate>Usage Type</dt>
|
126
113
|
<dd bst-edit-select="host.subscription_facet_attributes.purpose_usage"
|
127
114
|
readonly="denied('edit_hosts', host)"
|
128
|
-
icon-class="getHostPurposeStatusIcon(host.purpose_usage_status)"
|
129
|
-
icon-show="host.purpose_usage_status > 0"
|
130
115
|
selector="host.subscription_facet_attributes.purpose_usage"
|
131
116
|
options="purposeUsages()"
|
132
117
|
options-format="option for option in options"
|
@@ -138,8 +123,6 @@
|
|
138
123
|
<dt translate>Role</dt>
|
139
124
|
<dd bst-edit-select="host.subscription_facet_attributes.purpose_role"
|
140
125
|
readonly="denied('edit_hosts', host)"
|
141
|
-
icon-class="getHostPurposeStatusIcon(host.purpose_role_status)"
|
142
|
-
icon-show="host.purpose_role_status > 0"
|
143
126
|
selector="host.subscription_facet_attributes.purpose_role"
|
144
127
|
options="purposeRoles()"
|
145
128
|
options-format="option for option in options"
|
@@ -151,8 +134,6 @@
|
|
151
134
|
<dt translate>Add ons</dt>
|
152
135
|
<dd bst-edit-multiselect="host.subscription_facet_attributes.purpose_addons"
|
153
136
|
readonly="denied('edit_hosts', host) || purposeAddonsCount === 0"
|
154
|
-
icon-class="getHostPurposeStatusIcon(host.purpose_addons_status)"
|
155
|
-
icon-show="host.purpose_addons_status > 0"
|
156
137
|
formatter="arrayToString"
|
157
138
|
deletable="true"
|
158
139
|
on-delete="clearAddOns()"
|
@@ -10,11 +10,6 @@
|
|
10
10
|
<h4 translate>Subscription Details</h4>
|
11
11
|
|
12
12
|
<dl class="dl-horizontal dl-horizontal-left">
|
13
|
-
<dt translate>Status</dt>
|
14
|
-
<dd>
|
15
|
-
<i ng-class="getHostStatusIcon(host.subscription_global_status)"></i>
|
16
|
-
{{ host.subscription_status_label | translate }}
|
17
|
-
</dd>
|
18
13
|
|
19
14
|
<dt ng-show="host.subscription_facet_attributes.compliance_reasons.length > 0" translate>Details</dt>
|
20
15
|
<dd ng-show="host.subscription_facet_attributes.compliance_reasons.length > 0">
|
@@ -79,9 +79,6 @@
|
|
79
79
|
<thead>
|
80
80
|
<tr bst-table-head row-select>
|
81
81
|
<th bst-table-column="name" sortable><span translate>Name</span></th>
|
82
|
-
<th bst-table-column="subscription_status" ng-hide="simpleContentAccessEnabled" sortable>
|
83
|
-
{{ 'Subscription Status' | translate }}
|
84
|
-
</th>
|
85
82
|
<th bst-table-column="status">
|
86
83
|
<span translate>Installable Updates</span>
|
87
84
|
</th>
|
@@ -105,10 +102,6 @@
|
|
105
102
|
<a ng-switch-when="false" ui-sref="content-host.info({hostId: host.id})">{{ host.display_name }}</a>
|
106
103
|
</span>
|
107
104
|
</td>
|
108
|
-
<td bst-table-cell ng-hide="simpleContentAccessEnabled">
|
109
|
-
<span ng-class="table.getHostStatusIcon(host.subscription_global_status)">
|
110
|
-
</span>
|
111
|
-
</td>
|
112
105
|
<td>
|
113
106
|
<a ui-sref="content-host.errata.index({hostId: host.id})">
|
114
107
|
<span class="aligned-errata-count" errata-counts="host.content_facet_attributes.errata_counts"></span>
|
data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/bastion_katello.pot
CHANGED
@@ -2100,6 +2100,10 @@ msgstr ""
|
|
2100
2100
|
msgid "Id"
|
2101
2101
|
msgstr ""
|
2102
2102
|
|
2103
|
+
#: app/assets/javascripts/bastion_katello/products/details/repositories/details/views/repository-info.html
|
2104
|
+
msgid "If you want to upload individual packages, create a separate repository with an empty \"Upstream URL\" field."
|
2105
|
+
msgstr ""
|
2106
|
+
|
2103
2107
|
#: app/assets/javascripts/bastion_katello/products/details/repositories/details/views/repository-info.html
|
2104
2108
|
#: app/assets/javascripts/bastion_katello/products/details/repositories/new/views/new-repository.html
|
2105
2109
|
msgid "Ignore SRPMs"
|
@@ -4000,10 +4004,6 @@ msgstr ""
|
|
4000
4004
|
msgid "Subscription UUID"
|
4001
4005
|
msgstr ""
|
4002
4006
|
|
4003
|
-
#: app/assets/javascripts/bastion_katello/activation-keys/details/views/activation-key-info.html
|
4004
|
-
msgid "subscription-manager register --org=\"{{ activationKey.organization.label }}\" --activationkey=\"{{ activationKey.name }}\""
|
4005
|
-
msgstr ""
|
4006
|
-
|
4007
4007
|
#: app/assets/javascripts/bastion_katello/activation-keys/details/views/activation-key-details.html
|
4008
4008
|
#: app/assets/javascripts/bastion_katello/content-hosts/details/views/content-host-details.html
|
4009
4009
|
#: app/assets/javascripts/bastion_katello/content-hosts/details/views/content-host-info.html
|
@@ -4377,7 +4377,7 @@ msgid "This activation key is not associated with any content hosts."
|
|
4377
4377
|
msgstr ""
|
4378
4378
|
|
4379
4379
|
#: app/assets/javascripts/bastion_katello/activation-keys/details/views/activation-key-info.html
|
4380
|
-
msgid "This activation key may be used during
|
4380
|
+
msgid "This activation key may be used during <a href=\"/hosts/register?initialAKSelection={{ activationKey.name }}\">system registration.</a>"
|
4381
4381
|
msgstr ""
|
4382
4382
|
|
4383
4383
|
#: app/assets/javascripts/bastion_katello/content-hosts/bulk/views/content-hosts-bulk-system-purpose-modal.html
|
@@ -517,8 +517,9 @@
|
|
517
517
|
<div class="divider" ng-if="repository.content_type === 'ostree'"/>
|
518
518
|
</section>
|
519
519
|
|
520
|
+
<span ng-hide="(repository.content_type === 'deb' && repository.url)">
|
520
521
|
<section class="well" ng-if="permitted('edit_products', product) && !product.redhat && repository.content_type !== 'docker' && repository.content_type !== 'ostree' && repository.content_type !== 'ansible_collection'">
|
521
|
-
<h5 translate ng-show="repository.content_type === 'yum'">Upload Package</h5>
|
522
|
+
<h5 translate ng-show="repository.content_type === 'yum' || 'deb'">Upload Package</h5>
|
522
523
|
<h5 translate ng-show="repository.content_type === 'file'">Upload File</h5>
|
523
524
|
|
524
525
|
<form role="form"
|
@@ -544,6 +545,13 @@
|
|
544
545
|
|
545
546
|
</form>
|
546
547
|
</section>
|
548
|
+
</span>
|
549
|
+
<span ng-show="(repository.content_type === 'deb' && repository.url)">
|
550
|
+
<section class="well">
|
551
|
+
<h5 translate>Upload Package</h5>
|
552
|
+
<div class="alert alert-info" role="alert" translate>If you want to upload individual packages, create a separate repository with an empty "Upstream URL" field.</div>
|
553
|
+
</section>
|
554
|
+
</span>
|
547
555
|
|
548
556
|
<section ng-show="repository.content_type === 'yum'">
|
549
557
|
<div class="divider"></div>
|
@@ -14,12 +14,6 @@ module BastionKatello
|
|
14
14
|
|
15
15
|
Bastion.register_plugin(
|
16
16
|
:name => 'bastion_katello',
|
17
|
-
:javascript => proc do
|
18
|
-
[
|
19
|
-
javascript_include_tag(*webpack_asset_paths('katello:common', :extension => 'js'), "data-turbolinks-track" => true),
|
20
|
-
javascript_include_tag('bastion_katello/bastion_katello')
|
21
|
-
]
|
22
|
-
end,
|
23
17
|
:stylesheet => 'bastion_katello/bastion_katello',
|
24
18
|
:pages => %w(
|
25
19
|
activation_keys
|
data/lib/katello/engine.rb
CHANGED
@@ -156,7 +156,6 @@ module Katello
|
|
156
156
|
|
157
157
|
#Controller extensions
|
158
158
|
::HostsController.include Katello::Concerns::HostsControllerExtensions
|
159
|
-
::HostsController.include Katello::Concerns::ContentFacetHostsControllerExtensions
|
160
159
|
::SmartProxiesController.include Katello::Concerns::SmartProxiesControllerExtensions
|
161
160
|
::RegistrationCommandsController.prepend Katello::Concerns::RegistrationCommandsControllerExtensions
|
162
161
|
|
@@ -194,7 +193,6 @@ module Katello
|
|
194
193
|
|
195
194
|
#Api controller extensions
|
196
195
|
::Api::V2::HostsController.include Katello::Concerns::Api::V2::HostsControllerExtensions
|
197
|
-
::Api::V2::HostsController.include Katello::Concerns::ContentFacetHostsControllerExtensions
|
198
196
|
::Api::V2::HostsBulkActionsController.include Katello::Concerns::Api::V2::HostsBulkActionsControllerExtensions
|
199
197
|
::Api::V2::HostgroupsController.include Katello::Concerns::Api::V2::HostgroupsControllerExtensions
|
200
198
|
::Api::V2::SmartProxiesController.include Katello::Concerns::Api::V2::SmartProxiesControllerExtensions
|
@@ -203,7 +201,6 @@ module Katello
|
|
203
201
|
::Api::V2::RegistrationCommandsController.include Katello::Concerns::Api::V2::RegistrationCommandsControllerExtensions
|
204
202
|
|
205
203
|
::AuditSearch::ClassMethods.prepend Katello::Concerns::AuditSearch
|
206
|
-
::Widget.singleton_class.prepend Katello::Concerns::WidgetExtensions::ClassMethods
|
207
204
|
|
208
205
|
if ::Katello.with_remote_execution?
|
209
206
|
::RemoteExecutionProxySelector.prepend Katello::Concerns::RemoteExecutionProxySelectorExtensions
|
data/lib/katello/plugin.rb
CHANGED
@@ -246,8 +246,6 @@ Foreman::Plugin.register :katello do
|
|
246
246
|
widget 'errata_widget', :name => 'Latest Errata', :sizey => 1, :sizex => 6
|
247
247
|
widget 'content_views_widget', :name => 'Content Views', :sizey => 1, :sizex => 6
|
248
248
|
widget 'sync_widget', :name => 'Sync Overview', :sizey => 1, :sizex => 6
|
249
|
-
widget 'subscription_widget', :name => 'Host Subscription Status', :sizey => 1, :sizex => 6
|
250
|
-
widget 'subscription_status_widget', :name => 'Subscription Status', :sizey => 1, :sizex => 6
|
251
249
|
widget 'host_collection_widget', :name => 'Host Collections', :sizey => 1, :sizex => 6
|
252
250
|
|
253
251
|
extend_page("smart_proxies/show") do |context|
|
@@ -270,9 +268,6 @@ Foreman::Plugin.register :katello do
|
|
270
268
|
common_class = 'hidden-tablet hidden-xs ellipsis'
|
271
269
|
use_pagelet :hosts_table_column_header, :name
|
272
270
|
use_pagelet :hosts_table_column_content, :name
|
273
|
-
add_pagelet :hosts_table_column_header, key: :subscription_status, label: _('Subscription status'), sortable: true, class: common_class, width: '10%', export_key: 'subscription_global_status'
|
274
|
-
add_pagelet :hosts_table_column_content, key: :subscription_status, class: common_class, callback: ->(host) { host_status_icon(host.subscription_global_status) }
|
275
|
-
|
276
271
|
add_pagelet :hosts_table_column_header, key: :rhel_lifecycle_status, label: _('RHEL Lifecycle status'), sortable: true, class: common_class, width: '10%', export_key: 'rhel_lifecycle_status'
|
277
272
|
add_pagelet :hosts_table_column_content, key: :rhel_lifecycle_status, class: common_class, callback: ->(host) { host_status_icon(host.rhel_lifecycle_global_status) }
|
278
273
|
|
@@ -303,6 +298,7 @@ Foreman::Plugin.register :katello do
|
|
303
298
|
|
304
299
|
extend_rabl_template 'api/v2/smart_proxies/main', 'katello/api/v2/smart_proxies/pulp_info'
|
305
300
|
extend_rabl_template 'api/v2/hosts/show', 'katello/api/v2/hosts/host_collections'
|
301
|
+
extend_rabl_template 'api/v2/hosts/show', 'katello/api/v2/hosts/show'
|
306
302
|
|
307
303
|
# Katello variables for Host Registration
|
308
304
|
extend_allowed_registration_vars :activation_keys
|
@@ -523,12 +519,6 @@ Foreman::Plugin.register :katello do
|
|
523
519
|
description: N_("Default download policy for Smart Proxy syncs (either 'inherit', immediate', or 'on_demand')"),
|
524
520
|
collection: proxy_download_policies
|
525
521
|
|
526
|
-
setting 'pulp_export_destination',
|
527
|
-
type: :string,
|
528
|
-
default: "/var/lib/pulp/katello-export",
|
529
|
-
full_name: N_('Pulp export destination filepath'),
|
530
|
-
description: N_("On-disk location for exported repositories")
|
531
|
-
|
532
522
|
setting 'pulpcore_export_destination',
|
533
523
|
type: :string,
|
534
524
|
default: "/var/lib/pulp/exports",
|
@@ -685,6 +675,7 @@ Foreman::Plugin.register :katello do
|
|
685
675
|
RemoteExecutionFeature.register(:katello_errata_install_by_search, N_("Katello: Install errata by search query"), :description => N_("Install errata using scoped search query"), :provided_inputs => ['Errata search query'])
|
686
676
|
RemoteExecutionFeature.register(:katello_service_restart, N_("Katello: Service Restart"), :description => N_("Restart Services via Katello interface"), :provided_inputs => ['helpers'])
|
687
677
|
RemoteExecutionFeature.register(:katello_host_tracer_resolve, N_("Katello: Resolve Traces"), :description => N_("Resolve traces via Katello interface"), :provided_inputs => ['ids'])
|
678
|
+
RemoteExecutionFeature.register(:katello_change_content_source, N_("Katello: Configure host for new content source"), :description => N_("Replace content source on the target machine"), :provided_inputs => [])
|
688
679
|
RemoteExecutionFeature.register(:katello_module_stream_action, N_("Katello: Module Stream Actions"),
|
689
680
|
:description => N_("Perform a module stream action via Katello interface"),
|
690
681
|
:provided_inputs => ['action', 'module_spec', 'options'])
|
@@ -6,13 +6,4 @@ namespace :katello do
|
|
6
6
|
system("bundle exec rubocop -D #{Katello::Engine.root}")
|
7
7
|
exit($CHILD_STATUS.exitstatus)
|
8
8
|
end
|
9
|
-
|
10
|
-
desc "Runs Rubocop style checker with xml output for Jenkins"
|
11
|
-
task 'rubocop:jenkins' do
|
12
|
-
system("bundle exec rubocop #{Katello::Engine.root} \
|
13
|
-
--require rubocop/formatter/checkstyle_formatter \
|
14
|
-
--format RuboCop::Formatter::CheckstyleFormatter \
|
15
|
-
--no-color --out rubocop.xml")
|
16
|
-
exit($CHILD_STATUS.exitstatus)
|
17
|
-
end
|
18
9
|
end
|