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
@@ -77,18 +77,6 @@
|
|
77
77
|
"build_status_label": "Installed",
|
78
78
|
"errata_status": 0,
|
79
79
|
"errata_status_label": "All errata applied",
|
80
|
-
"subscription_status": 5,
|
81
|
-
"subscription_status_label": "Simple Content Access",
|
82
|
-
"purpose_sla_status": 0,
|
83
|
-
"purpose_sla_status_label": "Unknown",
|
84
|
-
"purpose_role_status": 0,
|
85
|
-
"purpose_role_status_label": "Unknown",
|
86
|
-
"purpose_usage_status": 0,
|
87
|
-
"purpose_usage_status_label": "Unknown",
|
88
|
-
"purpose_addons_status": 0,
|
89
|
-
"purpose_addons_status_label": "Unknown",
|
90
|
-
"purpose_status": 0,
|
91
|
-
"purpose_status_label": "Unknown",
|
92
80
|
"name": "affectedHost.example.com",
|
93
81
|
"id": 1,
|
94
82
|
"puppet_proxy_id": null,
|
@@ -134,7 +122,6 @@
|
|
134
122
|
"content_source": null,
|
135
123
|
"kickstart_repository": null
|
136
124
|
},
|
137
|
-
"subscription_global_status": 0,
|
138
125
|
"subscription_facet_attributes": {
|
139
126
|
"id": 2,
|
140
127
|
"uuid": "457997e1-ac07-40e4-85b7-e382a3563e4a",
|
@@ -47,6 +47,7 @@ import {
|
|
47
47
|
MODULE_STREAMS_CONTENT,
|
48
48
|
DEB_PACKAGES_CONTENT,
|
49
49
|
DOCKER_TAGS_CONTENT,
|
50
|
+
CONTAINER_MANIFEST_LIST_CONTENT,
|
50
51
|
generatedContentKey,
|
51
52
|
STATUS_TRANSLATIONS_ENUM,
|
52
53
|
bulkRemoveVersionKey,
|
@@ -58,7 +59,7 @@ import {
|
|
58
59
|
cvDebPackagesCompareKey,
|
59
60
|
filesCompareKey,
|
60
61
|
genericContentCompareKey,
|
61
|
-
cvRepositoriesCompareKey,
|
62
|
+
cvRepositoriesCompareKey, cvContainerManifestListsCompareKey,
|
62
63
|
} from '../ContentViewsConstants';
|
63
64
|
import api, { foremanApi, orgId } from '../../../services/api';
|
64
65
|
import { getResponseErrorMsgs } from '../../../utils/helpers';
|
@@ -179,6 +180,19 @@ export const getDockerTagsComparison = (versionOne, versionTwo, viewBy, params)
|
|
179
180
|
});
|
180
181
|
};
|
181
182
|
|
183
|
+
export const getContainerManifestListsComparison = (versionOne, versionTwo, viewBy, params) => {
|
184
|
+
const versions = { content_view_version_ids: [versionOne, versionTwo] };
|
185
|
+
const restrictComparison = { restrict_comparison: viewBy };
|
186
|
+
const apiParams = { ...versions, ...restrictComparison, ...params };
|
187
|
+
const apiUrl = '/docker_manifest_lists/compare';
|
188
|
+
return get({
|
189
|
+
key: cvContainerManifestListsCompareKey(versionOne, versionTwo, viewBy),
|
190
|
+
params: apiParams,
|
191
|
+
errorToast: error => __(`Something went wrong while retrieving the container tags! ${getResponseErrorMsgs(error.response)}`),
|
192
|
+
url: api.getApiUrl(apiUrl),
|
193
|
+
});
|
194
|
+
};
|
195
|
+
|
182
196
|
export const getFilesComparison = (versionOne, versionTwo, viewBy, params) => {
|
183
197
|
const versions = { content_view_version_ids: [versionOne, versionTwo] };
|
184
198
|
const restrictComparison = { restrict_comparison: viewBy };
|
@@ -268,6 +282,14 @@ export const getDockerTags = params => get({
|
|
268
282
|
errorToast: error => __(`Something went wrong while getting container tags! ${getResponseErrorMsgs(error.response)}`),
|
269
283
|
});
|
270
284
|
|
285
|
+
export const getContainerManifestLists = params => get({
|
286
|
+
type: API_OPERATIONS.GET,
|
287
|
+
key: CONTAINER_MANIFEST_LIST_CONTENT,
|
288
|
+
url: api.getApiUrl('/docker_manifest_lists'),
|
289
|
+
params,
|
290
|
+
errorToast: error => __(`Something went wrong while getting container manifest lists! ${getResponseErrorMsgs(error.response)}`),
|
291
|
+
});
|
292
|
+
|
271
293
|
export const getErrata = params => get({
|
272
294
|
type: API_OPERATIONS.GET,
|
273
295
|
key: ERRATA_CONTENT,
|
@@ -44,7 +44,10 @@ import {
|
|
44
44
|
cvDockerTagsCompareKey,
|
45
45
|
cvDebPackagesCompareKey,
|
46
46
|
filesCompareKey,
|
47
|
-
genericContentCompareKey,
|
47
|
+
genericContentCompareKey,
|
48
|
+
cvRepositoriesCompareKey,
|
49
|
+
CONTAINER_MANIFEST_LIST_CONTENT,
|
50
|
+
cvContainerManifestListsCompareKey,
|
48
51
|
} from '../ContentViewsConstants';
|
49
52
|
|
50
53
|
export const selectCVDetails = (state, cvId) =>
|
@@ -191,6 +194,15 @@ export const selectDockerTagsComparisonStatus = (state, versionOne, versionTwo,
|
|
191
194
|
export const selectDockerTagsComparisonError = (state, versionOne, versionTwo, viewBy) =>
|
192
195
|
selectAPIError(state, cvDockerTagsCompareKey(versionOne, versionTwo, viewBy));
|
193
196
|
|
197
|
+
export const selectContainerManifestListsComparison = (state, versionOne, versionTwo, viewBy) =>
|
198
|
+
selectAPIResponse(state, cvContainerManifestListsCompareKey(versionOne, versionTwo, viewBy))
|
199
|
+
|| {};
|
200
|
+
|
201
|
+
export const selectContainerManifestListsComparisonStatus =
|
202
|
+
(state, versionOne, versionTwo, viewBy) =>
|
203
|
+
selectAPIStatus(state, cvContainerManifestListsCompareKey(versionOne, versionTwo, viewBy))
|
204
|
+
|| STATUS.PENDING;
|
205
|
+
|
194
206
|
export const selectDebPackagesComparison = (state, versionOne, versionTwo, viewBy) =>
|
195
207
|
selectAPIResponse(state, cvDebPackagesCompareKey(versionOne, versionTwo, viewBy)) || {};
|
196
208
|
|
@@ -243,6 +255,12 @@ export const selectDockerTags = state =>
|
|
243
255
|
export const selectDockerTagsStatus = state =>
|
244
256
|
selectAPIStatus(state, DOCKER_TAGS_CONTENT) || STATUS.PENDING;
|
245
257
|
|
258
|
+
export const selectContainerManifestLists = state =>
|
259
|
+
selectAPIResponse(state, CONTAINER_MANIFEST_LIST_CONTENT);
|
260
|
+
|
261
|
+
export const selectContainerManifestListsStatus = state =>
|
262
|
+
selectAPIStatus(state, CONTAINER_MANIFEST_LIST_CONTENT) || STATUS.PENDING;
|
263
|
+
|
246
264
|
export const selectRepositories = state =>
|
247
265
|
selectAPIResponse(state, REPOSITORY_CONTENT);
|
248
266
|
|
@@ -77,18 +77,6 @@
|
|
77
77
|
"build_status_label": "Installed",
|
78
78
|
"errata_status": 3,
|
79
79
|
"errata_status_label": "Security errata applicable",
|
80
|
-
"subscription_status": 0,
|
81
|
-
"subscription_status_label": "Fully entitled",
|
82
|
-
"purpose_sla_status": 3,
|
83
|
-
"purpose_sla_status_label": "Not Specified",
|
84
|
-
"purpose_role_status": 3,
|
85
|
-
"purpose_role_status_label": "Not Specified",
|
86
|
-
"purpose_usage_status": 3,
|
87
|
-
"purpose_usage_status_label": "Not Specified",
|
88
|
-
"purpose_addons_status": 3,
|
89
|
-
"purpose_addons_status_label": "Not Specified",
|
90
|
-
"purpose_status": 3,
|
91
|
-
"purpose_status_label": "Not Specified",
|
92
80
|
"name": "steve8.satellite.lab.eng.rdu2.redhat.com",
|
93
81
|
"id": 1,
|
94
82
|
"puppet_proxy_id": null,
|
@@ -138,7 +126,6 @@
|
|
138
126
|
},
|
139
127
|
"kickstart_repository": null
|
140
128
|
},
|
141
|
-
"subscription_global_status": 0,
|
142
129
|
"subscription_facet_attributes": {
|
143
130
|
"id": 1,
|
144
131
|
"uuid": "435a8c86-0df4-4333-9d9f-82149c20612e",
|
@@ -21,6 +21,8 @@ import {
|
|
21
21
|
selectDebPackagesComparisonStatus,
|
22
22
|
selectDockerTagsComparison,
|
23
23
|
selectDockerTagsComparisonStatus,
|
24
|
+
selectContainerManifestListsComparison,
|
25
|
+
selectContainerManifestListsComparisonStatus,
|
24
26
|
selectGenericContentComparison,
|
25
27
|
selectGenericContentComparisonStatus,
|
26
28
|
selectRepositoriesComparison,
|
@@ -34,6 +36,7 @@ import {
|
|
34
36
|
getModuleStreamsComparison,
|
35
37
|
getDebPackagesComparison,
|
36
38
|
getDockerTagsComparison,
|
39
|
+
getContainerManifestListsComparison,
|
37
40
|
getGenericContentComparison,
|
38
41
|
getRepositoriesComparison,
|
39
42
|
} from '../../ContentViewDetailActions';
|
@@ -361,10 +364,10 @@ export default ({
|
|
361
364
|
</a>),
|
362
365
|
},
|
363
366
|
{
|
364
|
-
title: __('Available
|
367
|
+
title: __('Available schema versions'),
|
365
368
|
getProperty: (item) => {
|
366
|
-
if (item?.manifest_schema1) return __('Schema
|
367
|
-
return __('Schema
|
369
|
+
if (item?.manifest_schema1) return __('Schema version 1');
|
370
|
+
return __('Schema version 2');
|
368
371
|
},
|
369
372
|
},
|
370
373
|
{
|
@@ -382,6 +385,37 @@ export default ({
|
|
382
385
|
[__('Name')]: 'name',
|
383
386
|
},
|
384
387
|
},
|
388
|
+
{
|
389
|
+
name: __('Container manifest lists'),
|
390
|
+
getCountKey: (itemVersionOne, itemVersionTwo) =>
|
391
|
+
itemVersionOne?.docker_manifest_list_count || itemVersionTwo?.docker_manifest_list_count,
|
392
|
+
responseSelector: state =>
|
393
|
+
selectContainerManifestListsComparison(state, versionOneId, versionTwoId, viewBy),
|
394
|
+
statusSelector: state =>
|
395
|
+
selectContainerManifestListsComparisonStatus(state, versionOneId, versionTwoId, viewBy),
|
396
|
+
autocompleteEndpoint: '/katello/api/v2/docker_manifest_lists',
|
397
|
+
bookmarkController: 'katello_content_view_components',
|
398
|
+
fetchItems: params =>
|
399
|
+
getContainerManifestListsComparison(versionOneId, versionTwoId, viewBy, params),
|
400
|
+
columnHeaders: [
|
401
|
+
{
|
402
|
+
title: __('Digest'),
|
403
|
+
getProperty: item => item?.digest,
|
404
|
+
},
|
405
|
+
{
|
406
|
+
title: __('Available schema versions'),
|
407
|
+
getProperty: (item) => {
|
408
|
+
if (item?.manifest_schema1) return __('Schema version 1');
|
409
|
+
return __('Schema version 2');
|
410
|
+
},
|
411
|
+
},
|
412
|
+
{ title: __(`Version ${versionOne}`), getProperty: item => compareContent(item, versionOneId) },
|
413
|
+
{ title: __(`Version ${versionTwo}`), getProperty: item => compareContent(item, versionTwoId) },
|
414
|
+
],
|
415
|
+
sortConfig: {
|
416
|
+
[__('Digest')]: 'digest',
|
417
|
+
},
|
418
|
+
},
|
385
419
|
...ContentConfig.filter(config => !(config.names.pluralLabel === 'ostree_refs')).map(({
|
386
420
|
names: { pluralLowercase, pluralLabel, singularLabel },
|
387
421
|
columnHeaders,
|
@@ -11,13 +11,13 @@ const ContentViewVersionContent = ({ cvId, versionId, cvVersion }) => {
|
|
11
11
|
const {
|
12
12
|
deb_count: debCount = 0,
|
13
13
|
docker_manifest_count: dockerManifestCount = 0,
|
14
|
+
docker_manifest_list_count: dockerManifestListCount = 0,
|
14
15
|
docker_tag_count: dockerTagCount = 0,
|
15
16
|
file_count: fileCount = 0,
|
16
17
|
module_stream_count: moduleStreamCount = 0,
|
17
18
|
ansible_collection_count: ansibleCollectionCount = 0,
|
18
19
|
} = cvVersion;
|
19
20
|
|
20
|
-
|
21
21
|
const contentConfigTypes = ContentConfig.filter(({ names: { singularLabel } }) =>
|
22
22
|
!!cvVersion[`${singularLabel}_count`])
|
23
23
|
.map(({
|
@@ -37,7 +37,7 @@ const ContentViewVersionContent = ({ cvId, versionId, cvVersion }) => {
|
|
37
37
|
const noCounts =
|
38
38
|
!Number(debCount) && !Number(dockerManifestCount) && !Number(dockerTagCount) &&
|
39
39
|
!Number(fileCount) && !Number(moduleStreamCount) && !Number(ansibleCollectionCount) &&
|
40
|
-
!contentConfigTypes?.length;
|
40
|
+
!Number(dockerManifestListCount) && !contentConfigTypes?.length;
|
41
41
|
|
42
42
|
if (noCounts) {
|
43
43
|
return <InactiveText text={__('No content')} />;
|
@@ -67,6 +67,13 @@ const ContentViewVersionContent = ({ cvId, versionId, cvVersion }) => {
|
|
67
67
|
<a href={urlBuilder(`content_views/${cvId}#/versions/${versionId}/dockerTags`, '')}>{`${dockerManifestCount} Container manifests`}</a><br />
|
68
68
|
</>
|
69
69
|
}
|
70
|
+
{dockerManifestListCount > 0 &&
|
71
|
+
<>
|
72
|
+
<Link to={`/versions/${versionId}/dockerManifestList`}>
|
73
|
+
{`${dockerManifestListCount} Container manifest lists`}
|
74
|
+
</Link><br />
|
75
|
+
</>
|
76
|
+
}
|
70
77
|
{fileCount > 0 &&
|
71
78
|
<>
|
72
79
|
<a href={urlBuilder(`content_views/${cvId}#/versions/${versionId}/files`, '')}>{`${fileCount} Files`}</a><br />
|
@@ -90,6 +97,7 @@ ContentViewVersionContent.propTypes = {
|
|
90
97
|
cvVersion: PropTypes.shape({
|
91
98
|
deb_count: PropTypes.number,
|
92
99
|
docker_manifest_count: PropTypes.number,
|
100
|
+
docker_manifest_list_count: PropTypes.number,
|
93
101
|
docker_tag_count: PropTypes.number,
|
94
102
|
file_count: PropTypes.number,
|
95
103
|
module_stream_count: PropTypes.number,
|
data/webpack/scenes/ContentViews/Details/Versions/Delete/__tests__/cvAffectedHosts.fixture.json
CHANGED
@@ -77,18 +77,6 @@
|
|
77
77
|
"build_status_label": "Installed",
|
78
78
|
"errata_status": 1,
|
79
79
|
"errata_status_label": "No installed packages and/or enabled repositories have been reported by subscription-manager.",
|
80
|
-
"subscription_status": 0,
|
81
|
-
"subscription_status_label": "Fully entitled",
|
82
|
-
"purpose_sla_status": 3,
|
83
|
-
"purpose_sla_status_label": "Not Specified",
|
84
|
-
"purpose_role_status": 3,
|
85
|
-
"purpose_role_status_label": "Not Specified",
|
86
|
-
"purpose_usage_status": 3,
|
87
|
-
"purpose_usage_status_label": "Not Specified",
|
88
|
-
"purpose_addons_status": 3,
|
89
|
-
"purpose_addons_status_label": "Not Specified",
|
90
|
-
"purpose_status": 3,
|
91
|
-
"purpose_status_label": "Not Specified",
|
92
80
|
"name": "affectedHost.example.com",
|
93
81
|
"id": 1,
|
94
82
|
"puppet_proxy_id": null,
|
@@ -132,7 +120,6 @@
|
|
132
120
|
"content_source": null,
|
133
121
|
"kickstart_repository": null
|
134
122
|
},
|
135
|
-
"subscription_global_status": 0,
|
136
123
|
"subscription_facet_attributes": {
|
137
124
|
"id": 2,
|
138
125
|
"uuid": "de7dd78f-8eee-4308-90ce-c0e951da83f7",
|
data/webpack/scenes/ContentViews/Details/Versions/VersionDetails/ContentViewVersionDetailConfig.js
CHANGED
@@ -20,7 +20,7 @@ import {
|
|
20
20
|
getPackageGroups,
|
21
21
|
getRepositories,
|
22
22
|
getRPMPackages,
|
23
|
-
getContent,
|
23
|
+
getContent, getContainerManifestLists,
|
24
24
|
} from '../../ContentViewDetailActions';
|
25
25
|
import {
|
26
26
|
selectCVVersions,
|
@@ -42,7 +42,7 @@ import {
|
|
42
42
|
selectRPMPackages,
|
43
43
|
selectRPMPackagesStatus,
|
44
44
|
selectContent,
|
45
|
-
selectContentStatus,
|
45
|
+
selectContentStatus, selectContainerManifestLists, selectContainerManifestListsStatus,
|
46
46
|
} from '../../ContentViewDetailSelectors';
|
47
47
|
import ContentViewVersionRepositoryCell from './ContentViewVersionRepositoryCell';
|
48
48
|
import ContentConfig from '../../../../Content/ContentConfig';
|
@@ -324,10 +324,10 @@ export default ({ cvId, versionId }) => [
|
|
324
324
|
</a>),
|
325
325
|
},
|
326
326
|
{
|
327
|
-
title: __('Available
|
327
|
+
title: __('Available schema versions'),
|
328
328
|
getProperty: (item) => {
|
329
|
-
if (item?.manifest_schema1) return __('Schema
|
330
|
-
return __('Schema
|
329
|
+
if (item?.manifest_schema1) return __('Schema version 1');
|
330
|
+
return __('Schema version 2');
|
331
331
|
},
|
332
332
|
},
|
333
333
|
{
|
@@ -340,6 +340,32 @@ export default ({ cvId, versionId }) => [
|
|
340
340
|
{ title: __('Image'), getProperty: item => item?.upstream_name },
|
341
341
|
],
|
342
342
|
},
|
343
|
+
{
|
344
|
+
name: __('Container manifest lists'),
|
345
|
+
route: 'dockerManifestList',
|
346
|
+
repoType: 'docker',
|
347
|
+
getCountKey: item => item?.docker_manifest_list_count,
|
348
|
+
responseSelector: state => selectContainerManifestLists(state),
|
349
|
+
statusSelector: state => selectContainerManifestListsStatus(state),
|
350
|
+
autocompleteEndpoint: '/katello/api/v2/docker_manifest_lists',
|
351
|
+
autocompleteQueryParams: { content_view_version_id: versionId },
|
352
|
+
bookmarkController: 'katello_content_view_components',
|
353
|
+
fetchItems: params =>
|
354
|
+
getContainerManifestLists({ content_view_version_id: versionId, ...params }),
|
355
|
+
columnHeaders: [
|
356
|
+
{
|
357
|
+
title: __('Digest'),
|
358
|
+
getProperty: item => item?.digest,
|
359
|
+
},
|
360
|
+
{
|
361
|
+
title: __('Available schema versions'),
|
362
|
+
getProperty: (item) => {
|
363
|
+
if (item?.manifest_schema1) return __('Schema version 1');
|
364
|
+
return __('Schema version 2');
|
365
|
+
},
|
366
|
+
},
|
367
|
+
],
|
368
|
+
},
|
343
369
|
...ContentConfig.map(({
|
344
370
|
names: { pluralTitle, pluralLabel, singularLabel },
|
345
371
|
columnHeaders,
|
@@ -25,9 +25,6 @@ export const selectManifestHref = state =>
|
|
25
25
|
export const selectIsManifestImported = state =>
|
26
26
|
!!selectOrganizationState(state).owner_details?.upstreamConsumer?.webUrl;
|
27
27
|
|
28
|
-
export const selectSimpleContentAccessEnabled = state =>
|
29
|
-
selectOrganizationState(state).simple_content_access;
|
30
|
-
|
31
28
|
export const selectCdnConfigurationUpdateStatus = state =>
|
32
29
|
selectAPIStatus(state, UPDATE_CDN_CONFIGURATION_KEY);
|
33
30
|
|
@@ -8,11 +8,10 @@ import * as contentCredentialActions from '../../ContentCredentials/ContentCrede
|
|
8
8
|
import * as tasksActions from '../../Tasks/TaskActions';
|
9
9
|
import history from './ManifestHistoryReducer';
|
10
10
|
import {
|
11
|
-
selectSimpleContentAccessEnabled,
|
12
11
|
selectIsManifestImported,
|
13
12
|
selectUpdatingCdnConfiguration,
|
14
13
|
} from '../../Organizations/OrganizationSelectors';
|
15
|
-
import { selectManifestActionStarted
|
14
|
+
import { selectManifestActionStarted } from '../SubscriptionsSelectors';
|
16
15
|
import { selectContentCredentials } from '../../ContentCredentials/ContentCredentialSelectors';
|
17
16
|
|
18
17
|
import ManifestModal from './ManageManifestModal';
|
@@ -21,11 +20,9 @@ import ManifestModal from './ManageManifestModal';
|
|
21
20
|
const mapStateToProps = state => ({
|
22
21
|
organization: state.katello.organization,
|
23
22
|
manifestHistory: state.katello.manifestHistory,
|
24
|
-
simpleContentAccess: selectSimpleContentAccessEnabled(state),
|
25
23
|
isManifestImported: selectIsManifestImported(state),
|
26
24
|
deleteManifestModalExists: !!state.foremanModals.deleteManifestModal,
|
27
25
|
manifestActionStarted: selectManifestActionStarted(state),
|
28
|
-
simpleContentAccessEligible: selectSimpleContentAccessEligible(state),
|
29
26
|
updatingCdnConfiguration: selectUpdatingCdnConfiguration(state),
|
30
27
|
contentCredentials: selectContentCredentials(state),
|
31
28
|
});
|
@@ -5,7 +5,7 @@ import Immutable from 'seamless-immutable';
|
|
5
5
|
import { translate as __ } from 'foremanReact/common/I18n';
|
6
6
|
import { propsToCamelCase } from 'foremanReact/common/helpers';
|
7
7
|
import { isEmpty } from 'lodash';
|
8
|
-
import { Grid, Row, Col
|
8
|
+
import { Grid, Row, Col } from 'patternfly-react';
|
9
9
|
import { Popover, Flex, FlexItem } from '@patternfly/react-core';
|
10
10
|
import { OutlinedQuestionCircleIcon } from '@patternfly/react-icons';
|
11
11
|
import ModalProgressBar from 'foremanReact/components/common/ModalProgressBar';
|
@@ -18,7 +18,7 @@ import { filterRHSubscriptions } from './SubscriptionHelpers';
|
|
18
18
|
import api, { orgId } from '../../services/api';
|
19
19
|
|
20
20
|
import { createSubscriptionParams } from './SubscriptionActions.js';
|
21
|
-
import { SUBSCRIPTION_TABLE_NAME, SUBSCRIPTIONS_SERVICE_DOC_URL
|
21
|
+
import { SUBSCRIPTION_TABLE_NAME, SUBSCRIPTIONS_SERVICE_DOC_URL } from './SubscriptionConstants';
|
22
22
|
import './SubscriptionsPage.scss';
|
23
23
|
|
24
24
|
class SubscriptionsPage extends Component {
|
@@ -52,7 +52,6 @@ class SubscriptionsPage extends Component {
|
|
52
52
|
pingUpstreamSubscriptions,
|
53
53
|
subscriptions,
|
54
54
|
task,
|
55
|
-
checkSimpleContentAccessEligible,
|
56
55
|
} = this.props;
|
57
56
|
|
58
57
|
if (task) {
|
@@ -76,10 +75,6 @@ class SubscriptionsPage extends Component {
|
|
76
75
|
}
|
77
76
|
|
78
77
|
if (hasUpstreamConnection) {
|
79
|
-
if (hasUpstreamConnection !== prevProps.hasUpstreamConnection) {
|
80
|
-
checkSimpleContentAccessEligible();
|
81
|
-
}
|
82
|
-
|
83
78
|
const subscriptionsChanged = subscriptions.results !== prevProps.subscriptions.results;
|
84
79
|
if (subscriptionsChanged || !this.state.availableQuantitiesLoaded) {
|
85
80
|
const poolIds = filterRHSubscriptions(subscriptions.results).map(subs => subs.id);
|
@@ -140,7 +135,7 @@ class SubscriptionsPage extends Component {
|
|
140
135
|
const {
|
141
136
|
deleteModalOpened, openDeleteModal, closeDeleteModal,
|
142
137
|
deleteButtonDisabled, disableDeleteButton, enableDeleteButton,
|
143
|
-
searchQuery, updateSearchQuery,
|
138
|
+
searchQuery, updateSearchQuery, hasUpstreamConnection,
|
144
139
|
task, activePermissions, subscriptions, subscriptionTableSettings, isManifestImported,
|
145
140
|
} = this.props;
|
146
141
|
// Basic permissions - should we even show this page?
|
@@ -221,18 +216,6 @@ class SubscriptionsPage extends Component {
|
|
221
216
|
},
|
222
217
|
};
|
223
218
|
|
224
|
-
const SCAAlert = (
|
225
|
-
<Alert type="warning">
|
226
|
-
<FormattedMessage
|
227
|
-
id="sca-alert"
|
228
|
-
values={{
|
229
|
-
scaLink: <a href={SCA_URL} target="_blank" rel="noreferrer">{__('Simple Content Access')}</a>,
|
230
|
-
}}
|
231
|
-
defaultMessage={__('This organization is not using {scaLink}. Entitlement-based subscription management is deprecated and will be removed in Katello 4.12.')}
|
232
|
-
/>
|
233
|
-
</Alert>
|
234
|
-
);
|
235
|
-
|
236
219
|
const SCAPopoverContent = (
|
237
220
|
<FormattedMessage
|
238
221
|
id="sca-popover-content"
|
@@ -290,7 +273,6 @@ class SubscriptionsPage extends Component {
|
|
290
273
|
canImportManifest={canImportManifest}
|
291
274
|
canDeleteManifest={canDeleteManifest}
|
292
275
|
canEditOrganizations={canEditOrganizations}
|
293
|
-
simpleContentAccess={simpleContentAccess}
|
294
276
|
taskInProgress={!!task}
|
295
277
|
disableManifestActions={disableManifestActions}
|
296
278
|
disabledReason={this.getDisabledReason()}
|
@@ -300,7 +282,6 @@ class SubscriptionsPage extends Component {
|
|
300
282
|
/>
|
301
283
|
|
302
284
|
<div id="subscriptions-table" className="modal-container">
|
303
|
-
{!this.props.organization?.loading && !simpleContentAccess ? SCAAlert : null}
|
304
285
|
<SubscriptionsTable
|
305
286
|
canManageSubscriptionAllocations={canManageSubscriptionAllocations}
|
306
287
|
loadSubscriptions={this.props.loadSubscriptions}
|
@@ -333,7 +314,6 @@ class SubscriptionsPage extends Component {
|
|
333
314
|
|
334
315
|
SubscriptionsPage.propTypes = {
|
335
316
|
pingUpstreamSubscriptions: PropTypes.func.isRequired,
|
336
|
-
checkSimpleContentAccessEligible: PropTypes.func.isRequired,
|
337
317
|
loadSubscriptions: PropTypes.func.isRequired,
|
338
318
|
loadAvailableQuantities: PropTypes.func.isRequired,
|
339
319
|
uploadManifest: PropTypes.func.isRequired,
|
@@ -341,7 +321,6 @@ SubscriptionsPage.propTypes = {
|
|
341
321
|
resetTasks: PropTypes.func.isRequired,
|
342
322
|
updateQuantity: PropTypes.func.isRequired,
|
343
323
|
loadTableColumns: PropTypes.func.isRequired,
|
344
|
-
simpleContentAccess: PropTypes.bool,
|
345
324
|
isManifestImported: PropTypes.bool,
|
346
325
|
subscriptions: PropTypes.shape({
|
347
326
|
// Disabling rule as existing code failed due to an eslint-plugin-react update
|
@@ -408,7 +387,6 @@ SubscriptionsPage.defaultProps = {
|
|
408
387
|
deleteModalOpened: false,
|
409
388
|
deleteButtonDisabled: true,
|
410
389
|
subscriptionTableSettings: {},
|
411
|
-
simpleContentAccess: false,
|
412
390
|
isManifestImported: false,
|
413
391
|
hasUpstreamConnection: false,
|
414
392
|
activePermissions: {
|
@@ -29,6 +29,3 @@ export const selectManifestActionStarted = state =>
|
|
29
29
|
|
30
30
|
export const selectHasUpstreamConnection = state =>
|
31
31
|
selectSubscriptionsState(state).hasUpstreamConnection;
|
32
|
-
|
33
|
-
export const selectSimpleContentAccessEligible = state =>
|
34
|
-
selectSubscriptionsState(state).simpleContentAccessEligible;
|
@@ -6,7 +6,6 @@ import {
|
|
6
6
|
selectDeleteButtonDisabled,
|
7
7
|
selectSubscriptionsTask,
|
8
8
|
selectHasUpstreamConnection,
|
9
|
-
selectSimpleContentAccessEligible,
|
10
9
|
} from '../SubscriptionsSelectors';
|
11
10
|
|
12
11
|
const state = {
|
@@ -17,7 +16,6 @@ const state = {
|
|
17
16
|
taskModalOpened: false,
|
18
17
|
deleteButtonDisabled: true,
|
19
18
|
hasUpstreamConnection: false,
|
20
|
-
simpleContentAccessEligible: false,
|
21
19
|
task: {},
|
22
20
|
},
|
23
21
|
},
|
@@ -30,7 +28,6 @@ const fixtures = {
|
|
30
28
|
'should select delete-button-disabled': () => selectDeleteButtonDisabled(state),
|
31
29
|
'should select subscriptions task': () => selectSubscriptionsTask(state),
|
32
30
|
'should select whether we have an upstream connection': () => selectHasUpstreamConnection(state),
|
33
|
-
'should select whether we are simple content access eligible': () => selectSimpleContentAccessEligible(state),
|
34
31
|
};
|
35
32
|
|
36
33
|
describe('Subscriptions selectors', () => testSelectorsSnapshotWithFixtures(fixtures));
|
@@ -67,7 +67,6 @@ exports[`subscriptions page should render 1`] = `
|
|
67
67
|
disableManifestActions={true}
|
68
68
|
disabledReason="This is disabled because no connection could be made to the upstream Manifest."
|
69
69
|
refresh={[Function]}
|
70
|
-
simpleContentAccess={false}
|
71
70
|
taskInProgress={false}
|
72
71
|
upload={[Function]}
|
73
72
|
/>
|
@@ -75,27 +74,6 @@ exports[`subscriptions page should render 1`] = `
|
|
75
74
|
className="modal-container"
|
76
75
|
id="subscriptions-table"
|
77
76
|
>
|
78
|
-
<Alert
|
79
|
-
className=""
|
80
|
-
onDismiss={null}
|
81
|
-
type="warning"
|
82
|
-
>
|
83
|
-
<FormattedMessage
|
84
|
-
defaultMessage="This organization is not using {scaLink}. Entitlement-based subscription management is deprecated and will be removed in Katello 4.12."
|
85
|
-
id="sca-alert"
|
86
|
-
values={
|
87
|
-
Object {
|
88
|
-
"scaLink": <a
|
89
|
-
href="https://access.redhat.com/articles/simple-content-access"
|
90
|
-
rel="noreferrer"
|
91
|
-
target="_blank"
|
92
|
-
>
|
93
|
-
Simple Content Access
|
94
|
-
</a>,
|
95
|
-
}
|
96
|
-
}
|
97
|
-
/>
|
98
|
-
</Alert>
|
99
77
|
<SubscriptionsTable
|
100
78
|
canManageSubscriptionAllocations={false}
|
101
79
|
emptyState={
|
data/webpack/scenes/Subscriptions/__tests__/__snapshots__/SubscriptionsSelectors.test.js.snap
CHANGED
@@ -14,12 +14,9 @@ Object {
|
|
14
14
|
"deleteModalOpened": false,
|
15
15
|
"hasUpstreamConnection": false,
|
16
16
|
"searchQuery": "some-query",
|
17
|
-
"simpleContentAccessEligible": false,
|
18
17
|
"task": Object {},
|
19
18
|
"taskModalOpened": false,
|
20
19
|
}
|
21
20
|
`;
|
22
21
|
|
23
|
-
exports[`Subscriptions selectors should select whether we are simple content access eligible 1`] = `false`;
|
24
|
-
|
25
22
|
exports[`Subscriptions selectors should select whether we have an upstream connection 1`] = `false`;
|
@@ -19,7 +19,7 @@ import {
|
|
19
19
|
} from './SubscriptionsSelectors';
|
20
20
|
import { selectTableSettings } from '../../scenes/Settings/SettingsSelectors';
|
21
21
|
import { selectIsPollingTask } from '../Tasks/TaskSelectors';
|
22
|
-
import { selectOrganizationState,
|
22
|
+
import { selectOrganizationState, selectIsManifestImported } from '../Organizations/OrganizationSelectors';
|
23
23
|
import { pingUpstreamSubscriptions } from './UpstreamSubscriptions/UpstreamSubscriptionsActions';
|
24
24
|
import reducer from './SubscriptionReducer';
|
25
25
|
import { SUBSCRIPTION_TABLE_NAME, SUBSCRIPTIONS } from './SubscriptionConstants';
|
@@ -34,7 +34,6 @@ const mapStateToProps = (state) => {
|
|
34
34
|
subscriptions,
|
35
35
|
subscriptionTableSettings,
|
36
36
|
activePermissions: selectActivePermissions(state),
|
37
|
-
simpleContentAccess: selectSimpleContentAccessEnabled(state),
|
38
37
|
isManifestImported: selectIsManifestImported(state),
|
39
38
|
hasUpstreamConnection: selectHasUpstreamConnection(state),
|
40
39
|
task: selectSubscriptionsTask(state),
|