katello 4.11.1 → 4.12.0.rc2
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/content_views_controller.rb +1 -1
- 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/host_subscriptions_controller.rb +13 -0
- 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/capsule_content/sync.rb +1 -1
- data/app/lib/actions/katello/content_view/promote.rb +1 -1
- data/app/lib/actions/katello/content_view/publish.rb +4 -4
- 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 +3 -5
- 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 +74 -94
- data/app/models/katello/concerns/hostgroup_extensions.rb +9 -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 +34 -47
- 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 +13 -0
- data/app/models/katello/repository.rb +7 -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/content_views/base.json.rabl +0 -1
- data/app/views/katello/api/v2/content_views/show.json.rabl +1 -0
- 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 +7 -5
- 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/activation-key-repository-sets.controller.js +3 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/views/activation-key-associations-content-hosts.html +2 -6
- 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/errata/details/views/erratum-content-hosts.html +2 -2
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/details/views/host-collection-add-hosts.html +2 -2
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/details/views/host-collection-hosts-list.html +2 -2
- 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 +3 -12
- 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_IN/katello.po +19 -28
- data/locale/ca/LC_MESSAGES/katello.mo +0 -0
- data/locale/ca/katello.po +20 -29
- data/locale/cs/katello.po +19 -29
- data/locale/cs_CZ/LC_MESSAGES/katello.mo +0 -0
- data/locale/cs_CZ/katello.po +20 -29
- data/locale/de/LC_MESSAGES/katello.mo +0 -0
- data/locale/de/katello.po +20 -29
- data/locale/de_AT/katello.po +19 -28
- data/locale/de_DE/katello.po +19 -28
- data/locale/el/LC_MESSAGES/katello.mo +0 -0
- data/locale/el/katello.po +20 -29
- data/locale/en/katello.po +19 -28
- data/locale/en_GB/LC_MESSAGES/katello.mo +0 -0
- data/locale/en_GB/katello.po +19 -28
- data/locale/en_US/katello.po +19 -28
- data/locale/es/LC_MESSAGES/katello.mo +0 -0
- data/locale/es/katello.po +20 -29
- data/locale/et_EE/katello.po +19 -28
- data/locale/fr/LC_MESSAGES/katello.mo +0 -0
- data/locale/fr/katello.po +20 -29
- data/locale/gl/LC_MESSAGES/katello.mo +0 -0
- data/locale/gl/katello.po +20 -29
- data/locale/gu/katello.po +19 -28
- data/locale/he_IL/katello.po +19 -28
- data/locale/hi/katello.po +19 -28
- data/locale/id/katello.po +19 -28
- data/locale/it/LC_MESSAGES/katello.mo +0 -0
- data/locale/it/katello.po +20 -29
- data/locale/ja/LC_MESSAGES/katello.mo +0 -0
- data/locale/ja/katello.po +20 -29
- data/locale/ka/LC_MESSAGES/katello.mo +0 -0
- data/locale/ka/katello.po +20 -29
- data/locale/katello.pot +363 -348
- data/locale/kn/katello.po +19 -28
- data/locale/ko/LC_MESSAGES/katello.mo +0 -0
- data/locale/ko/katello.po +20 -29
- data/locale/ml_IN/katello.po +19 -28
- data/locale/mr/katello.po +19 -28
- data/locale/nl_NL/katello.po +19 -28
- data/locale/or/katello.po +19 -28
- data/locale/pa/katello.po +19 -28
- data/locale/pl/katello.po +19 -28
- data/locale/pl_PL/katello.po +19 -28
- data/locale/pt/katello.po +19 -28
- data/locale/pt_BR/LC_MESSAGES/katello.mo +0 -0
- data/locale/pt_BR/katello.po +20 -29
- data/locale/ro/katello.po +19 -28
- data/locale/ro_RO/katello.po +19 -28
- data/locale/ru/LC_MESSAGES/katello.mo +0 -0
- data/locale/ru/katello.po +20 -29
- data/locale/sl/katello.po +19 -28
- data/locale/sv_SE/LC_MESSAGES/katello.mo +0 -0
- data/locale/sv_SE/katello.po +20 -29
- data/locale/ta/katello.po +19 -28
- data/locale/ta_IN/katello.po +19 -28
- data/locale/te/katello.po +19 -28
- data/locale/tr/katello.po +19 -28
- data/locale/vi/katello.po +19 -28
- data/locale/vi_VN/katello.po +19 -28
- data/locale/zh/katello.po +19 -28
- data/locale/zh_CN/LC_MESSAGES/katello.mo +0 -0
- data/locale/zh_CN/katello.po +20 -29
- data/locale/zh_TW/LC_MESSAGES/katello.mo +0 -0
- data/locale/zh_TW/katello.po +20 -29
- 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/RepositorySetsActions.js +2 -0
- data/webpack/components/extensions/HostDetails/Tabs/RepositorySetsTab/RepositorySetsTab.js +6 -19
- 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__/repositorySetsTab.test.js +34 -5
- 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 +48 -195
- 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
@@ -73,18 +73,27 @@ module Katello
|
|
73
73
|
"/pulp/deb/#{repo.relative_path}/".sub('//', '/')
|
74
74
|
end
|
75
75
|
|
76
|
-
def multi_copy_units(repo_id_map,
|
76
|
+
def multi_copy_units(repo_id_map, _dependency_solving)
|
77
77
|
tasks = []
|
78
78
|
|
79
79
|
if repo_id_map.values.pluck(:content_unit_hrefs).flatten.any?
|
80
80
|
data = PulpDebClient::Copy.new
|
81
|
-
data.dependency_solving =
|
81
|
+
data.dependency_solving = false
|
82
82
|
data.config = []
|
83
83
|
repo_id_map.each do |source_repo_ids, dest_repo_id_map|
|
84
84
|
dest_repo = ::Katello::Repository.find(dest_repo_id_map[:dest_repo])
|
85
85
|
dest_repo_href = ::Katello::Pulp3::Repository::Apt.new(dest_repo, SmartProxy.pulp_primary).repository_reference.repository_href
|
86
86
|
content_unit_hrefs = dest_repo_id_map[:content_unit_hrefs]
|
87
87
|
# Not needed during incremental update due to dest_base_version
|
88
|
+
# -> Unless incrementally updating a CV repo that is a soft copy of its library instance.
|
89
|
+
# -> I.e. no filters and not an incremental version.
|
90
|
+
unless dest_repo_id_map[:base_version]
|
91
|
+
# Don't perform extra content actions if the repo is a soft copy of its library instance.
|
92
|
+
# Taken care of by the IncrementalUpdate action.
|
93
|
+
unless dest_repo.soft_copy_of_library?
|
94
|
+
tasks << remove_all_content_from_repo(dest_repo_href)
|
95
|
+
end
|
96
|
+
end
|
88
97
|
source_repo_ids.each do |source_repo_id|
|
89
98
|
source_repo_version = ::Katello::Repository.find(source_repo_id).version_href
|
90
99
|
config = { source_repo_version: source_repo_version, dest_repo: dest_repo_href, content: content_unit_hrefs }
|
@@ -203,9 +212,9 @@ module Katello
|
|
203
212
|
filter_list_map
|
204
213
|
end
|
205
214
|
|
206
|
-
def copy_content_from_mapping(repo_id_map,
|
215
|
+
def copy_content_from_mapping(repo_id_map, _options = {})
|
207
216
|
repo_id_map.each do |source_repo_ids, dest_repo_map|
|
208
|
-
filters = ContentViewDebFilter.where(:id =>
|
217
|
+
filters = ContentViewDebFilter.where(:id => dest_repo_map[:filter_ids])
|
209
218
|
|
210
219
|
filter_list_map = { whitelist_ids: [], blacklist_ids: [] }
|
211
220
|
filter_list_map = add_filter_content(source_repo_ids, filters, filter_list_map)
|
@@ -218,7 +227,7 @@ module Katello
|
|
218
227
|
dest_repo_map[:content_unit_hrefs] = content_unit_hrefs.uniq.sort
|
219
228
|
end
|
220
229
|
|
221
|
-
dependency_solving =
|
230
|
+
dependency_solving = false
|
222
231
|
|
223
232
|
multi_copy_units(repo_id_map, dependency_solving)
|
224
233
|
end
|
@@ -233,7 +242,8 @@ module Katello
|
|
233
242
|
tasks << add_content(slice, first_slice)
|
234
243
|
first_slice = false
|
235
244
|
end
|
236
|
-
|
245
|
+
# If we're merging composite cv repositories, don't clear out the Pulp repository.
|
246
|
+
elsif remove_all
|
237
247
|
tasks << remove_all_content
|
238
248
|
end
|
239
249
|
tasks
|
@@ -148,7 +148,7 @@ module Katello
|
|
148
148
|
end
|
149
149
|
end
|
150
150
|
|
151
|
-
def register_host(host, consumer_params, content_view_environments, activation_keys = [])
|
151
|
+
def register_host(host, consumer_params, content_view_environments, activation_keys = [])
|
152
152
|
new_host = host.new_record?
|
153
153
|
unless new_host
|
154
154
|
host.save!
|
@@ -172,7 +172,6 @@ module Katello
|
|
172
172
|
host.content_facet.cves_changed = false # prevent backend_update_needed from triggering an update on a nonexistent consumer
|
173
173
|
host.subscription_facet = populate_subscription_facet(host, activation_keys, consumer_params, host_uuid)
|
174
174
|
host.save! # the host has content and subscription facets at this point
|
175
|
-
create_initial_subscription_status(host)
|
176
175
|
|
177
176
|
User.as_anonymous_admin do
|
178
177
|
begin
|
@@ -219,10 +218,6 @@ module Katello
|
|
219
218
|
destroy_host_record(host.id)
|
220
219
|
end
|
221
220
|
|
222
|
-
def create_initial_subscription_status(host)
|
223
|
-
host.subscription_facet.update_subscription_status(::Katello::SubscriptionStatus::UNKNOWN)
|
224
|
-
end
|
225
|
-
|
226
221
|
def create_in_candlepin(host, content_view_environments, consumer_params, activation_keys)
|
227
222
|
# if CP fails, nothing to clean up yet w.r.t. backend services
|
228
223
|
cp_create = ::Katello::Resources::Candlepin::Consumer.create(content_view_environments.map(&:cp_id), consumer_params, activation_keys.map(&:cp_name), host.organization)
|
@@ -243,7 +238,6 @@ module Katello
|
|
243
238
|
host.subscription_facet.save!
|
244
239
|
host.refresh_statuses([
|
245
240
|
::Katello::ErrataStatus,
|
246
|
-
::Katello::SubscriptionStatus,
|
247
241
|
::Katello::RhelLifecycleStatus
|
248
242
|
])
|
249
243
|
end
|
@@ -314,12 +308,6 @@ module Katello
|
|
314
308
|
end
|
315
309
|
|
316
310
|
host.get_status(::Katello::ErrataStatus).destroy
|
317
|
-
host.get_status(::Katello::PurposeSlaStatus).destroy
|
318
|
-
host.get_status(::Katello::PurposeRoleStatus).destroy
|
319
|
-
host.get_status(::Katello::PurposeUsageStatus).destroy
|
320
|
-
host.get_status(::Katello::PurposeAddonsStatus).destroy
|
321
|
-
host.get_status(::Katello::PurposeStatus).destroy
|
322
|
-
host.get_status(::Katello::SubscriptionStatus).destroy
|
323
311
|
host.get_status(::Katello::TraceStatus).destroy
|
324
312
|
host.installed_packages.delete_all
|
325
313
|
|
@@ -4,6 +4,15 @@ object @resource
|
|
4
4
|
@facet = @resource.content_facet
|
5
5
|
|
6
6
|
attributes :id, :name, :description
|
7
|
+
|
8
|
+
node :operatingsystem_family do |resource|
|
9
|
+
resource.operatingsystem&.family
|
10
|
+
end
|
11
|
+
|
12
|
+
node :operatingsystem_major do |resource|
|
13
|
+
resource.operatingsystem&.major
|
14
|
+
end
|
15
|
+
|
7
16
|
if @facet
|
8
17
|
node :content_view do
|
9
18
|
content_view = @facet&.single_content_view
|
@@ -1,6 +1,3 @@
|
|
1
1
|
child :subscription_facet => :subscription_facet_attributes do
|
2
2
|
extends 'katello/api/v2/subscription_facet/base'
|
3
3
|
end
|
4
|
-
|
5
|
-
attributes :subscription_status, :subscription_status_label, :subscription_global_status,
|
6
|
-
:if => @object.get_status(Katello::SubscriptionStatus).relevant?
|
@@ -1,17 +1,18 @@
|
|
1
|
-
|
1
|
+
<% content_for(:katello_javascripts) do -%>
|
2
|
+
<%= javascript_include_tag 'katello/sync_management' %>
|
3
|
+
<script>
|
4
|
+
localize({
|
5
|
+
"cancel": "<%= escape_javascript(_('Cancel')) %>",
|
6
|
+
"cancelled": "<%= escape_javascript(_('Sync Canceled')) %>",
|
7
|
+
"error": "<%= escape_javascript(_('Error')) %>",
|
8
|
+
"complete": "<%= escape_javascript(_('Sync complete.')) %>",
|
9
|
+
"no_start_time": "<%= escape_javascript(_('No start time currently available.')) %>"
|
10
|
+
});
|
2
11
|
|
3
|
-
<%=
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
"error": "<%= escape_javascript(_('Error')) %>",
|
8
|
-
"complete": "<%= escape_javascript(_('Sync complete.')) %>",
|
9
|
-
"no_start_time": "<%= escape_javascript(_('No start time currently available.')) %>"
|
10
|
-
});
|
11
|
-
|
12
|
-
KT.repo_status = $.parseJSON('<%= escape_javascript(@repo_status.to_json.html_safe) %>');
|
13
|
-
KT.permissions = { "syncable" : <%= any_syncable? %> };
|
14
|
-
<% end %>
|
12
|
+
KT.repo_status = $.parseJSON('<%= escape_javascript(@repo_status.to_json.html_safe) %>');
|
13
|
+
KT.permissions = { "syncable" : <%= any_syncable? %> };
|
14
|
+
</script>
|
15
|
+
<% end -%>
|
15
16
|
|
16
17
|
<% if Organization.current -%>
|
17
18
|
<%= hidden_field_tag :organization_id, Organization.current.id%>
|
@@ -29,23 +29,27 @@ end %>
|
|
29
29
|
<% env_select_name = using_hostgroups_page? ? 'hostgroup[lifecycle_environment_id]' : 'host[content_facet_attributes][lifecycle_environment_id]' %>
|
30
30
|
<% env_select_attr = using_hostgroups_page? ? 'lifecycle_environment' : 'content_facet.single_lifecycle_environment' %>
|
31
31
|
|
32
|
-
<%= field(f, env_select_attr, {:label => _("Lifecycle Environment")}) do
|
33
|
-
if using_hostgroups_page?
|
34
|
-
select_tag env_select_id, lifecycle_environment_options(@hostgroup, :include_blank => blank_or_inherit_with_id(f, :lifecycle_environment)),
|
35
|
-
|
36
|
-
|
37
|
-
select_tag env_select_id, lifecycle_environment_options(@host, :selected_host_group => @hostgroup || @host.hostgroup, :include_blank => blank_or_inherit_with_id(f, :lifecycle_environment)), :class => 'form-control', :name => env_select_name, :disabled =>
|
38
|
-
|
39
|
-
|
32
|
+
<%= field(f, env_select_attr, {:label => _("Lifecycle Environment")}) do %>
|
33
|
+
<% if using_hostgroups_page? %>
|
34
|
+
<%= select_tag env_select_id, lifecycle_environment_options(@hostgroup, :include_blank => blank_or_inherit_with_id(f, :lifecycle_environment)), :class => 'form-control', :name => env_select_name %>
|
35
|
+
<% elsif cv_lce_disabled? %>
|
36
|
+
<%= hidden_field_tag 'host[content_facet_attributes][lifecycle_environment_id]', fetch_lifecycle_environment(@host).try(:id) %>
|
37
|
+
<%= select_tag env_select_id, lifecycle_environment_options(@host, :selected_host_group => @hostgroup || @host.hostgroup, :include_blank => blank_or_inherit_with_id(f, :lifecycle_environment)), :class => 'form-control', :name => env_select_name, :disabled => true %>
|
38
|
+
<% else %>
|
39
|
+
<%= select_tag env_select_id, lifecycle_environment_options(@host, :selected_host_group => @hostgroup || @host.hostgroup, :include_blank => blank_or_inherit_with_id(f, :lifecycle_environment)), :class => 'form-control', :name => env_select_name %>
|
40
|
+
<% end %>
|
41
|
+
<% end %>
|
40
42
|
|
41
43
|
<% cv_select_id = using_hostgroups_page? ? :hostgroup_content_view_id : :host_content_view_id %>
|
42
44
|
<% cv_select_name = using_hostgroups_page? ? 'hostgroup[content_view_id]' : 'host[content_facet_attributes][content_view_id]' %>
|
43
45
|
<% cv_select_attr = using_hostgroups_page? ? 'content_view' : 'content_facet.single_content_view' %>
|
44
|
-
<%= field(f, cv_select_attr, {:label => _("Content View")}) do
|
45
|
-
if using_hostgroups_page?
|
46
|
-
select_tag cv_select_id, content_views_for_host(@hostgroup, :include_blank => blank_or_inherit_with_id(f, :content_view)), :data => {"spinner_path" => spinner_path},
|
47
|
-
|
48
|
-
|
49
|
-
select_tag cv_select_id, content_views_for_host(@host, :selected_host_group => @hostgroup || @host.hostgroup, :include_blank => blank_or_inherit_with_id(f, :content_view)), :data => {"spinner_path" => spinner_path}, :class => 'form-control', :name => cv_select_name, :disabled =>
|
50
|
-
|
51
|
-
|
46
|
+
<%= field(f, cv_select_attr, {:label => _("Content View")}) do %>
|
47
|
+
<% if using_hostgroups_page? %>
|
48
|
+
<%= select_tag cv_select_id, content_views_for_host(@hostgroup, :include_blank => blank_or_inherit_with_id(f, :content_view)), :data => {"spinner_path" => spinner_path}, :class => 'form-control', :name => cv_select_name %>
|
49
|
+
<% elsif cv_lce_disabled? %>
|
50
|
+
<%= hidden_field_tag 'host[content_facet_attributes][content_view_id]', fetch_content_view(@host).try(:id) %>
|
51
|
+
<%= select_tag cv_select_id, content_views_for_host(@host, :selected_host_group => @hostgroup || @host.hostgroup, :include_blank => blank_or_inherit_with_id(f, :content_view)), :data => {"spinner_path" => spinner_path}, :class => 'form-control', :name => cv_select_name, :disabled => true %>
|
52
|
+
<% else %>
|
53
|
+
<%= select_tag cv_select_id, content_views_for_host(@host, :selected_host_group => @hostgroup || @host.hostgroup, :include_blank => blank_or_inherit_with_id(f, :content_view)), :data => {"spinner_path" => spinner_path}, :class => 'form-control', :name => cv_select_name %>
|
54
|
+
<% end %>
|
55
|
+
<% end %>
|
@@ -3,7 +3,7 @@
|
|
3
3
|
kickstart_repo_id = kickstart_repository_id(@host, :selected_host_group => @host&.hostgroup)
|
4
4
|
kickstart_options = kickstart_repository_options(@host, :selected_host_group => @host&.hostgroup)
|
5
5
|
elsif using_hostgroups_page?
|
6
|
-
kickstart_repo_id = kickstart_repository_id(@
|
6
|
+
kickstart_repo_id = kickstart_repository_id(@hostgroup, :selected_host_group => @host&.hostgroup)
|
7
7
|
kickstart_options = kickstart_repository_options(@hostgroup)
|
8
8
|
else
|
9
9
|
kickstart_repo_id = kickstart_repository_id(@host, :selected_host_group => @hostgroup)
|
@@ -23,7 +23,9 @@
|
|
23
23
|
:class => 'form-control', :name => ks_repo_select_name, :disabled => kickstart_options.empty?
|
24
24
|
end %>
|
25
25
|
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
26
|
+
<% content_for(:javascripts) do -%>
|
27
|
+
<script>
|
28
|
+
KT.hosts.set_media_selection_bindings();
|
29
|
+
KT.hosts.update_media_enablement();
|
30
|
+
</script>
|
31
|
+
<% end -%>
|
@@ -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 %>
|
@@ -39,7 +39,7 @@ angular.module('Bastion.activation-keys').controller('ActivationKeyRepositorySet
|
|
39
39
|
|
40
40
|
$scope.contentAccessModes = {
|
41
41
|
contentAccessModeAll: $scope.simpleContentAccessEnabled,
|
42
|
-
contentAccessModeEnv:
|
42
|
+
contentAccessModeEnv: true
|
43
43
|
};
|
44
44
|
|
45
45
|
$scope.selectRepositoryType = function () {
|
@@ -56,6 +56,8 @@ angular.module('Bastion.activation-keys').controller('ActivationKeyRepositorySet
|
|
56
56
|
$scope.nutupane.refresh();
|
57
57
|
};
|
58
58
|
|
59
|
+
$scope.toggleFilters();
|
60
|
+
|
59
61
|
success = function () {
|
60
62
|
$scope.table.working = false;
|
61
63
|
Notification.setSuccessMessage(translate('Repository Sets settings saved successfully.'));
|
@@ -29,12 +29,8 @@
|
|
29
29
|
ng-controller="ContentHostStatusController">
|
30
30
|
<td bst-table-cell>
|
31
31
|
<span ng-switch="newHostDetailsUI">
|
32
|
-
<a ng-switch-when="true" ng-href="/new/hosts/{{host.name}}">{{ host.
|
33
|
-
<a ng-switch-when="false" ui-sref="content-host.info({hostId: host.id})">{{ host.
|
34
|
-
</span>
|
35
|
-
</td>
|
36
|
-
<td bst-table-cell ng-if="!simpleContentAccessEnabled">
|
37
|
-
<span ng-class="getHostStatusIcon(host.subscription_global_status)">
|
32
|
+
<a ng-switch-when="true" ng-href="/new/hosts/{{host.name}}">{{ host.display_name }}</a>
|
33
|
+
<a ng-switch-when="false" ui-sref="content-host.info({hostId: host.id})">{{ host.display_name }}</a>
|
38
34
|
</span>
|
39
35
|
</td>
|
40
36
|
<td bst-table-cell>{{ host.content_facet_attributes.lifecycle_environment.name }}</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;
|