katello 4.5.1 → 4.6.0.rc1
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of katello might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/app/controllers/katello/api/rhsm/candlepin_dynflow_proxy_controller.rb +10 -0
- data/app/controllers/katello/api/v2/activation_keys_controller.rb +7 -0
- data/app/controllers/katello/api/v2/alternate_content_sources_controller.rb +52 -22
- data/app/controllers/katello/api/v2/content_uploads_controller.rb +2 -0
- data/app/controllers/katello/api/v2/content_view_filter_rules_controller.rb +1 -1
- data/app/controllers/katello/api/v2/content_view_filters_controller.rb +1 -1
- data/app/controllers/katello/api/v2/debs_controller.rb +42 -10
- data/app/controllers/katello/api/v2/host_collections_controller.rb +5 -1
- data/app/controllers/katello/api/v2/host_errata_controller.rb +1 -0
- data/app/controllers/katello/api/v2/host_module_streams_controller.rb +9 -1
- data/app/controllers/katello/api/v2/host_subscriptions_controller.rb +8 -1
- data/app/controllers/katello/api/v2/organizations_controller.rb +3 -1
- data/app/controllers/katello/api/v2/simple_content_access_controller.rb +8 -0
- data/app/controllers/katello/concerns/api/v2/repository_content_controller.rb +34 -11
- data/app/controllers/katello/concerns/organizations_controller_extensions.rb +7 -16
- data/app/lib/actions/katello/alternate_content_source/alternate_content_source_common.rb +16 -0
- data/app/lib/actions/katello/alternate_content_source/create.rb +11 -5
- data/app/lib/actions/katello/alternate_content_source/destroy.rb +3 -4
- data/app/lib/actions/katello/alternate_content_source/refresh.rb +3 -5
- data/app/lib/actions/katello/alternate_content_source/update.rb +57 -13
- data/app/lib/actions/katello/applicability/hosts/bulk_generate.rb +2 -2
- data/app/lib/actions/katello/organization/manifest_refresh.rb +8 -4
- data/app/lib/actions/katello/organization/simple_content_access/toggle.rb +1 -9
- data/app/lib/actions/katello/repository/create.rb +9 -0
- data/app/lib/actions/katello/repository/destroy.rb +21 -0
- data/app/lib/actions/katello/repository/errata_mail.rb +3 -3
- data/app/lib/actions/katello/repository/refresh_repository.rb +3 -0
- data/app/lib/actions/katello/repository/update.rb +33 -0
- data/app/lib/actions/katello/repository/update_redhat_repository.rb +1 -1
- data/app/lib/actions/pulp3/alternate_content_source/create.rb +5 -4
- data/app/lib/actions/pulp3/alternate_content_source/create_remote.rb +5 -4
- data/app/lib/actions/pulp3/alternate_content_source/delete.rb +4 -4
- data/app/lib/actions/pulp3/alternate_content_source/delete_remote.rb +4 -4
- data/app/lib/actions/pulp3/alternate_content_source/refresh.rb +4 -4
- data/app/lib/actions/pulp3/alternate_content_source/update.rb +4 -4
- data/app/lib/actions/pulp3/alternate_content_source/update_remote.rb +5 -5
- data/app/lib/actions/pulp3/capsule_content/reclaim_space.rb +1 -0
- data/app/lib/actions/pulp3/orchestration/alternate_content_source/create.rb +3 -3
- data/app/lib/actions/pulp3/orchestration/alternate_content_source/delete.rb +6 -7
- data/app/lib/actions/pulp3/orchestration/alternate_content_source/refresh.rb +2 -2
- data/app/lib/actions/pulp3/orchestration/alternate_content_source/refresh_remote.rb +18 -0
- data/app/lib/actions/pulp3/orchestration/alternate_content_source/update.rb +3 -3
- data/app/lib/actions/pulp3/orchestration/repository/generate_metadata.rb +1 -1
- data/app/lib/katello/concerns/base_template_scope_extensions.rb +1 -1
- data/app/lib/katello/errors.rb +1 -1
- data/app/lib/katello/resources/candlepin/owner.rb +9 -2
- data/app/lib/katello/validators/alternate_content_source_products_validator.rb +17 -0
- data/app/models/katello/alternate_content_source.rb +39 -8
- data/app/models/katello/alternate_content_source_product.rb +13 -0
- data/app/models/katello/concerns/host_managed_extensions.rb +12 -2
- data/app/models/katello/concerns/pulp_database_unit.rb +2 -2
- data/app/models/katello/concerns/smart_proxy_extensions.rb +5 -6
- data/app/models/katello/content_view.rb +4 -0
- data/app/models/katello/content_view_deb_filter.rb +51 -0
- data/app/models/katello/content_view_deb_filter_rule.rb +24 -0
- data/app/models/katello/content_view_filter.rb +10 -3
- data/app/models/katello/glue/candlepin/owner.rb +0 -1
- data/app/models/katello/installed_package.rb +1 -0
- data/app/models/katello/product.rb +3 -0
- data/app/models/katello/repository.rb +2 -0
- data/app/models/katello/smart_proxy_alternate_content_source.rb +6 -0
- data/app/services/cert/certs.rb +8 -16
- data/app/services/katello/content_unit_indexer.rb +2 -1
- data/app/services/katello/organization_creator.rb +4 -4
- data/app/services/katello/pulp/server.rb +2 -2
- data/app/services/katello/pulp3/alternate_content_source.rb +22 -4
- data/app/services/katello/pulp3/api/apt.rb +12 -0
- data/app/services/katello/pulp3/erratum.rb +1 -4
- data/app/services/katello/pulp3/repository/apt.rb +186 -2
- data/app/services/katello/pulp3/repository.rb +4 -3
- data/app/services/katello/pulp3/service_common.rb +1 -1
- data/app/services/katello/pulp3/smart_proxy_mirror_repository.rb +1 -1
- data/app/views/foreman/smart_proxies/show.html.erb +3 -3
- data/app/views/katello/api/v2/alternate_content_sources/base.json.rabl +18 -3
- data/app/views/katello/api/v2/alternate_content_sources/show.json.rabl +20 -0
- data/app/views/katello/api/v2/ansible_collections/compare.json.rabl +10 -0
- data/app/views/katello/api/v2/content_view_filters/base.json.rabl +5 -0
- data/app/views/katello/api/v2/module_streams/compare.json.rabl +10 -0
- data/app/views/katello/api/v2/repository_sets/show.json.rabl +4 -0
- data/app/views/katello/layouts/foreman_with_bastion.html.erb +1 -1
- data/app/views/katello/layouts/react.html.erb +1 -1
- data/app/views/overrides/organizations/_edit_override.html.erb +5 -8
- data/app/views/overrides/organizations/_index_row_override.html.erb +1 -1
- data/app/views/overrides/organizations/_step_1_override.html.erb +5 -0
- data/ca/redhat-uep.pem +18 -23
- data/config/katello.yaml.example +0 -2
- data/config/routes/api/v2.rb +2 -0
- data/config/routes/overrides.rb +1 -0
- data/db/migrate/20201116161820_create_content_view_deb_filter_rules.rb +17 -0
- data/db/migrate/20220524132259_remove_last_refreshed_from_katello_alternate_content_sources.rb +5 -0
- data/db/migrate/20220601163911_add_vendor_to_katello_installed_packages.rb +5 -0
- data/db/migrate/20220610165621_add_repositories_and_products_to_acs.rb +23 -0
- data/db/seeds.d/102-organizations.rb +1 -1
- data/engines/bastion/app/views/bastion/layouts/application.html.erb +1 -1
- data/engines/bastion/app/views/bastion/layouts/application_ie.html.erb +1 -1
- data/engines/bastion/app/views/bastion/layouts/assets.html.erb +1 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/environments/details/environment-content.controller.js +2 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/environments/details/environment.controller.js +2 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/environments/details/views/environment-content-views.html +1 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/environments/environments.controller.js +1 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/environments/views/environments.html +3 -3
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/bastion_katello.pot +4 -5
- data/engines/bastion_katello/lib/bastion_katello/engine.rb +0 -1
- data/lib/katello/engine.rb +1 -2
- data/lib/katello/permission_creator.rb +2 -2
- data/lib/katello/permissions/host_permissions.rb +1 -0
- data/lib/katello/plugin.rb +6 -12
- data/lib/katello/version.rb +1 -1
- data/locale/action_names.rb +49 -46
- data/locale/bn/katello.po +361 -53
- data/{webpack/scenes/AnsibleCollections/AnsibleCollectionsTables.scss → locale/bn/katello.po.time_stamp} +0 -0
- data/locale/cs/katello.po +361 -53
- data/locale/cs/katello.po.time_stamp +0 -0
- data/locale/de/katello.po +366 -58
- data/locale/de/katello.po.time_stamp +0 -0
- data/locale/en/katello.po +361 -53
- data/locale/en/katello.po.time_stamp +0 -0
- data/locale/es/katello.po +364 -56
- data/locale/es/katello.po.time_stamp +0 -0
- data/locale/fr/katello.po +376 -68
- data/locale/fr/katello.po.time_stamp +0 -0
- data/locale/gu/katello.po +361 -53
- data/locale/gu/katello.po.time_stamp +0 -0
- data/locale/hi/katello.po +361 -53
- data/locale/hi/katello.po.time_stamp +0 -0
- data/locale/it/katello.po +361 -53
- data/locale/it/katello.po.time_stamp +0 -0
- data/locale/ja/katello.po +374 -66
- data/locale/ja/katello.po.time_stamp +0 -0
- data/locale/katello.pot +1626 -1079
- data/locale/kn/katello.po +361 -53
- data/locale/kn/katello.po.time_stamp +0 -0
- data/locale/ko/katello.po +361 -53
- data/locale/ko/katello.po.time_stamp +0 -0
- data/locale/mr/katello.po +361 -53
- data/locale/mr/katello.po.time_stamp +0 -0
- data/locale/or/katello.po +361 -53
- data/locale/or/katello.po.time_stamp +0 -0
- data/locale/pa/katello.po +361 -53
- data/locale/pa/katello.po.time_stamp +0 -0
- data/locale/pt/katello.po +361 -53
- data/locale/pt/katello.po.time_stamp +0 -0
- data/locale/pt_BR/katello.po +364 -56
- data/locale/pt_BR/katello.po.time_stamp +0 -0
- data/locale/ru/katello.po +361 -53
- data/locale/ru/katello.po.time_stamp +0 -0
- data/locale/ta/katello.po +361 -53
- data/locale/ta/katello.po.time_stamp +0 -0
- data/locale/te/katello.po +361 -53
- data/locale/te/katello.po.time_stamp +0 -0
- data/locale/zh_CN/katello.po +374 -66
- data/locale/zh_CN/katello.po.time_stamp +0 -0
- data/locale/zh_TW/katello.po +361 -53
- data/locale/zh_TW/katello.po.time_stamp +0 -0
- data/package.json +0 -3
- data/webpack/components/EditableTextInput/EditableTextInput.js +3 -16
- data/webpack/components/EditableTextInput/PencilEditButton.js +33 -0
- data/webpack/components/Errata/index.js +18 -3
- data/webpack/components/Loading.js +1 -1
- data/webpack/components/RoutedTabs/index.js +1 -17
- data/webpack/components/Search/Search.js +0 -1
- data/webpack/components/Search/__tests__/search.test.js +1 -2
- data/webpack/components/SelectAllCheckbox/index.js +7 -4
- data/webpack/components/SelectableDropdown/SelectableDropdown.js +1 -0
- data/webpack/components/Table/EmptyStateMessage.js +77 -2
- data/webpack/components/Table/MainTable.js +46 -4
- data/webpack/components/Table/TableHooks.js +9 -6
- data/webpack/components/Table/TableWrapper.js +14 -8
- data/webpack/components/TypeAhead/TypeAhead.js +26 -11
- data/webpack/components/TypeAhead/pf3Search/TypeAheadItems.js +1 -1
- data/webpack/components/TypeAhead/pf4Search/TypeAheadInput.js +1 -0
- data/webpack/components/extensions/HostDetails/Cards/ContentViewDetailsCard/ChangeHostCVModal.js +2 -1
- data/webpack/components/extensions/HostDetails/Cards/HostCollectionsCard/HostCollectionsModal.js +9 -4
- data/webpack/components/extensions/HostDetails/Cards/SystemPurposeCard/SystemPurposeActions.js +37 -0
- data/webpack/components/extensions/HostDetails/Cards/SystemPurposeCard/SystemPurposeCard.js +173 -0
- data/webpack/components/extensions/HostDetails/Cards/SystemPurposeCard/SystemPurposeCard.scss +6 -0
- data/webpack/components/extensions/HostDetails/Cards/SystemPurposeCard/SystemPurposeConstants.js +6 -0
- data/webpack/components/extensions/HostDetails/Cards/SystemPurposeCard/SystemPurposeEditModal.js +301 -0
- data/webpack/components/extensions/HostDetails/Cards/SystemPurposeCard/SystemPurposeSelectors.js +25 -0
- data/webpack/components/extensions/HostDetails/Cards/SystemPurposeCard/__tests__/SystemPurposeCard.test.js +108 -0
- data/webpack/components/extensions/HostDetails/Cards/SystemPurposeCard/__tests__/SystemPurposeEditModal.test.js +161 -0
- data/webpack/components/extensions/HostDetails/Cards/__tests__/errataOverviewCard.test.js +12 -12
- data/webpack/components/extensions/HostDetails/DetailsTabCards/HwPropertiesCard.js +100 -0
- data/webpack/components/extensions/HostDetails/DetailsTabCards/SystemPropertiesCardExtensions.js +26 -4
- data/webpack/components/extensions/HostDetails/HostDetailsConstants.js +3 -1
- data/webpack/components/extensions/HostDetails/HostDetailsReducer.js +14 -0
- data/webpack/components/extensions/HostDetails/HostDetailsSelectors.js +8 -2
- data/webpack/components/extensions/HostDetails/Tabs/ErrataTab/ErrataTab.js +8 -12
- data/webpack/components/extensions/HostDetails/Tabs/ModuleStreamsTab/ModuleStreamsTab.js +23 -2
- data/webpack/components/extensions/HostDetails/Tabs/PackagesTab/PackagesTab.js +5 -0
- data/webpack/components/extensions/HostDetails/Tabs/RepositorySetsTab/RepositorySetsTab.js +57 -7
- data/webpack/components/extensions/HostDetails/Tabs/TracesTab/TracesTab.js +2 -0
- data/webpack/components/extensions/HostDetails/Tabs/__tests__/repositorySets.fixtures.json +3 -0
- data/webpack/components/extensions/HostDetails/Tabs/__tests__/repositorySetsTab.test.js +4 -1
- data/webpack/components/extensions/HostDetails/Tabs/__tests__/tracesTab.test.js +1 -10
- data/webpack/components/extensions/HostDetails/hostDetailsHelpers.js +1 -1
- data/webpack/components/extensions/RegistrationCommands/index.js +49 -17
- data/webpack/containers/Application/config.js +5 -10
- data/webpack/global_index.js +19 -7
- data/webpack/global_test_setup.js +14 -2
- data/webpack/ouia_id_check.js +95 -0
- data/webpack/redux/actions/RedHatRepositories/helpers.js +2 -0
- data/webpack/redux/reducers/index.js +2 -4
- data/webpack/scenes/AlternateContentSources/ACSActions.js +36 -3
- data/webpack/scenes/AlternateContentSources/ACSConstants.js +3 -0
- data/webpack/scenes/AlternateContentSources/ACSSelectors.js +15 -6
- data/webpack/scenes/AlternateContentSources/Create/ACSCreateWizard.js +73 -42
- data/webpack/scenes/AlternateContentSources/Create/Steps/ACSCreateFinish.js +26 -10
- data/webpack/scenes/AlternateContentSources/Create/Steps/ACSProducts.js +44 -0
- data/webpack/scenes/AlternateContentSources/Create/Steps/ACSReview.js +59 -45
- data/webpack/scenes/AlternateContentSources/Create/Steps/ACSSmartProxies.js +2 -1
- data/webpack/scenes/AlternateContentSources/Create/Steps/AcsUrlPaths.js +0 -1
- data/webpack/scenes/AlternateContentSources/Create/Steps/SelectSource.js +35 -19
- data/webpack/scenes/AlternateContentSources/Create/__tests__/acsCreate.test.js +120 -13
- data/webpack/scenes/AlternateContentSources/Create/__tests__/products.fixtures.json +92 -0
- data/webpack/scenes/AlternateContentSources/Details/ACSExpandableDetails.js +459 -0
- data/webpack/scenes/AlternateContentSources/Details/EditModals/ACSEditCredentials.js +354 -0
- data/webpack/scenes/AlternateContentSources/Details/EditModals/ACSEditDetails.js +104 -0
- data/webpack/scenes/AlternateContentSources/Details/EditModals/ACSEditProducts.js +120 -0
- data/webpack/scenes/AlternateContentSources/Details/EditModals/ACSEditSmartProxies.js +118 -0
- data/webpack/scenes/AlternateContentSources/Details/EditModals/ACSEditURLPaths.js +118 -0
- data/webpack/scenes/AlternateContentSources/Details/__tests__/ACSEdits.test.js +242 -0
- data/webpack/scenes/AlternateContentSources/Details/__tests__/ACSExpandableDetails.test.js +106 -0
- data/webpack/scenes/AlternateContentSources/Details/__tests__/acsDetails.fixtures.json +49 -0
- data/webpack/scenes/AlternateContentSources/Details/__tests__/acsProducts.fixtures.json +95 -0
- data/webpack/scenes/AlternateContentSources/Details/__tests__/simplifiedAcsDetails.fixtures.json +39 -0
- data/webpack/scenes/AlternateContentSources/MainTable/ACSTable.js +215 -87
- data/webpack/scenes/AlternateContentSources/MainTable/ACSTable.scss +3 -0
- data/webpack/scenes/AlternateContentSources/MainTable/__tests__/acsTable.test.js +1 -2
- data/webpack/scenes/Content/__tests__/contentTable.test.js +1 -2
- data/webpack/scenes/ContentViews/ContentViewsConstants.js +15 -4
- data/webpack/scenes/ContentViews/Delete/__tests__/contentViewDelete.test.js +1 -2
- data/webpack/scenes/ContentViews/Details/ComponentContentViews/ContentViewComponents.js +2 -0
- data/webpack/scenes/ContentViews/Details/ComponentContentViews/__tests__/contentViewComponents.test.js +1 -2
- data/webpack/scenes/ContentViews/Details/ContentViewDetailActions.js +113 -0
- data/webpack/scenes/ContentViews/Details/ContentViewDetailSelectors.js +89 -0
- data/webpack/scenes/ContentViews/Details/Filters/Add/CVFilterAddModal.js +32 -9
- data/webpack/scenes/ContentViews/Details/Filters/Add/__tests__/cvFilterAdd.test.js +13 -3
- data/webpack/scenes/ContentViews/Details/Filters/CVContainerImageFilterContent.js +39 -27
- data/webpack/scenes/ContentViews/Details/Filters/CVDebFilterContent.js +236 -0
- data/webpack/scenes/ContentViews/Details/Filters/CVErrataIDFilterContent.js +1 -0
- data/webpack/scenes/ContentViews/Details/Filters/CVFilterDetailType.js +10 -0
- data/webpack/scenes/ContentViews/Details/Filters/CVModuleStreamFilterContent.js +3 -0
- data/webpack/scenes/ContentViews/Details/Filters/CVPackageGroupFilterContent.js +3 -1
- data/webpack/scenes/ContentViews/Details/Filters/CVRpmFilterContent.js +17 -4
- data/webpack/scenes/ContentViews/Details/Filters/ContentType.js +1 -0
- data/webpack/scenes/ContentViews/Details/Filters/ContentViewFilters.js +34 -22
- data/webpack/scenes/ContentViews/Details/Filters/MatchContentModal/CVDebMatchContentModal.js +97 -0
- data/webpack/scenes/ContentViews/Details/Filters/MatchContentModal/__tests__/CVRpmMatchContentModal.test.js +1 -2
- data/webpack/scenes/ContentViews/Details/Filters/Rules/DebPackage/AddEditDebPackageRuleModal.js +128 -0
- data/webpack/scenes/ContentViews/Details/Filters/__tests__/CVContainerImageFilterContent.test.js +56 -3
- data/webpack/scenes/ContentViews/Details/Filters/__tests__/CVRpmFilterContent.test.js +62 -8
- data/webpack/scenes/ContentViews/Details/Filters/__tests__/ContentViewPackageGroupFilter.test.js +1 -5
- data/webpack/scenes/ContentViews/Details/Filters/__tests__/contentViewFilterDetails.test.js +1 -2
- data/webpack/scenes/ContentViews/Details/Filters/__tests__/contentViewFilters.test.js +32 -2
- data/webpack/scenes/ContentViews/Details/Filters/__tests__/cvErrataIDFilter.test.js +1 -2
- data/webpack/scenes/ContentViews/Details/Filters/__tests__/cvModuleStreamFilter.test.js +1 -2
- data/webpack/scenes/ContentViews/Details/Filters/__tests__/emptyCVContainerImageFilterContent.fixtures.json +13 -0
- data/webpack/scenes/ContentViews/Details/Filters/__tests__/emptyCVPackageFilterRules.fixtures.json +13 -0
- data/webpack/scenes/ContentViews/Details/Filters/__tests__/emptyContentViewFilters.fixtures.json +13 -0
- data/webpack/scenes/ContentViews/Details/Histories/__tests__/contentViewHistory.test.js +1 -2
- data/webpack/scenes/ContentViews/Details/Repositories/ContentViewRepositories.js +5 -1
- data/webpack/scenes/ContentViews/Details/Repositories/__tests__/contentViewAddRemove.test.js +1 -2
- data/webpack/scenes/ContentViews/Details/Versions/BulkDelete/__tests__/BulkDeleteModal.test.js +3 -0
- data/webpack/scenes/ContentViews/Details/Versions/Compare/CVVersionCompare.js +143 -0
- data/webpack/scenes/ContentViews/Details/Versions/Compare/CVVersionCompare.scss +51 -0
- data/webpack/scenes/ContentViews/Details/Versions/Compare/CVVersionCompareConfig.js +314 -0
- data/webpack/scenes/ContentViews/Details/Versions/Compare/CVVersionCompareHeader.js +186 -0
- data/webpack/scenes/ContentViews/Details/Versions/Compare/CVVersionCompareTable.js +74 -0
- data/webpack/scenes/ContentViews/Details/Versions/Compare/__tests__/AnsibleCollectionsCompareAllContentData.fixtures.json +63 -0
- data/webpack/scenes/ContentViews/Details/Versions/Compare/__tests__/CVVersionCompare.test.js +657 -0
- data/webpack/scenes/ContentViews/Details/Versions/Compare/__tests__/CVVersionEmptyContentCompareData.fixtures.json +14 -0
- data/webpack/scenes/ContentViews/Details/Versions/Compare/__tests__/ContainerTagsCompareAllContentData.fixtures.json +95 -0
- data/webpack/scenes/ContentViews/Details/Versions/Compare/__tests__/DebPackagesCompareAllContentData.fixtures.json +87 -0
- data/webpack/scenes/ContentViews/Details/Versions/Compare/__tests__/ErrataCompareAllContentData.fixtures.json +319 -0
- data/webpack/scenes/ContentViews/Details/Versions/Compare/__tests__/ErrataCompareThreeContentTypesData.fixtures.json +131 -0
- data/webpack/scenes/ContentViews/Details/Versions/Compare/__tests__/FilesCompareAllContentData.fixtures.json +51 -0
- data/webpack/scenes/ContentViews/Details/Versions/Compare/__tests__/FilesCompareThreeContentTypesData.fixtures.json +48 -0
- data/webpack/scenes/ContentViews/Details/Versions/Compare/__tests__/ModuleStreamsCompareAllContentData.fixtures.json +239 -0
- data/webpack/scenes/ContentViews/Details/Versions/Compare/__tests__/PackageGroupsCompareAllContentData.fixtures.json +51 -0
- data/webpack/scenes/ContentViews/Details/Versions/Compare/__tests__/PythonPackagesCompareAllContentData.fixtures.json +315 -0
- data/webpack/scenes/ContentViews/Details/Versions/Compare/__tests__/RPMPackagesCompareAllContentData.fixtures.json +470 -0
- data/webpack/scenes/ContentViews/Details/Versions/Compare/__tests__/RPMPackagesCompareThreeContentTypesData.fixtures.json +475 -0
- data/webpack/scenes/ContentViews/Details/Versions/Compare/__tests__/contentViewDetails.fixtures.json +160 -0
- data/webpack/scenes/ContentViews/Details/Versions/Compare/__tests__/contentViewVersionOneDetials.fixtures.json +161 -0
- data/webpack/scenes/ContentViews/Details/Versions/Compare/__tests__/contentViewVersionThreeDetails.fixtures.json +154 -0
- data/webpack/scenes/ContentViews/Details/Versions/Compare/__tests__/contentViewVersionTwoDetails.fixtures.json +211 -0
- data/webpack/scenes/ContentViews/Details/Versions/Compare/__tests__/contentViewVersions.fixtures.json +1013 -0
- data/webpack/scenes/ContentViews/Details/Versions/Compare/__tests__/emptyStateCVVersionOneDetails.fixtures.json +145 -0
- data/webpack/scenes/ContentViews/Details/Versions/Compare/__tests__/emptyStateCVVersionTwoDetails.fixtures.json +145 -0
- data/webpack/scenes/ContentViews/Details/Versions/ContentViewVersions.js +102 -36
- data/webpack/scenes/ContentViews/Details/Versions/Delete/__tests__/cvVersionRemove.test.js +1 -2
- data/webpack/scenes/ContentViews/Details/Versions/VersionDetails/ContentViewVersionDetailConfig.js +4 -2
- data/webpack/scenes/ContentViews/Details/Versions/VersionDetails/__tests__/ContentViewVersionDetails.test.js +1 -2
- data/webpack/scenes/ContentViews/Details/Versions/VersionDetails/__tests__/ContentViewVersionDetailsEmpty.test.js +1 -2
- data/webpack/scenes/ContentViews/Details/Versions/__tests__/contentViewVersions.test.js +113 -40
- data/webpack/scenes/ContentViews/Table/ContentViewsTable.js +96 -81
- data/webpack/scenes/ContentViews/__tests__/contentViewPage.test.js +1 -2
- data/webpack/scenes/ContentViews/__tests__/mockDetails.fixtures.json +7 -2
- data/webpack/scenes/SmartProxy/SmartProxyContentActions.js +1 -1
- data/webpack/scenes/Subscriptions/Manifest/ManageManifestModal.js +0 -30
- data/webpack/test-utils/nockWrapper.js +7 -0
- metadata +100 -145
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/content-views.controller.js +0 -34
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/content-views.routes.js +0 -751
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/deletion/content-view-deletion.controller.js +0 -42
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/deletion/content-view-version-deletion-activation-keys.controller.js +0 -81
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/deletion/content-view-version-deletion-confirm.controller.js +0 -65
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/deletion/content-view-version-deletion-content-hosts.controller.js +0 -82
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/deletion/content-view-version-deletion-environments.controller.js +0 -76
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/deletion/content-view-version-deletion.controller.js +0 -160
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/deletion/views/content-view-deletion.html +0 -58
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/deletion/views/version-deletion-activation-keys.html +0 -94
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/deletion/views/version-deletion-confirm.html +0 -76
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/deletion/views/version-deletion-content-hosts.html +0 -88
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/deletion/views/version-deletion-environments.html +0 -73
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/components/content-view-component.factory.js +0 -32
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/components/content-view-composite-available-content-views.controller.js +0 -75
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/components/content-view-composite-content-views-list.controller.js +0 -68
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/components/views/content-view-composite-available-content-views.html +0 -81
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/components/views/content-view-composite-content-views-list.html +0 -81
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/components/views/content-view-composite.html +0 -24
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/content-view-available-deb-repositories.controller.js +0 -50
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/content-view-available-docker-repositories.controller.js +0 -42
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/content-view-available-file-repositories.controller.js +0 -50
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/content-view-available-ostree-repositories.controller.js +0 -42
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/content-view-available-repositories.controller.js +0 -45
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/content-view-deb-repositories-list.controller.js +0 -48
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/content-view-details.controller.js +0 -100
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/content-view-docker-repositories-list.controller.js +0 -49
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/content-view-file-repositories-list.controller.js +0 -48
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/content-view-ostree-repositories-list.controller.js +0 -49
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/content-view-promotion.controller.js +0 -129
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/content-view-publish.controller.js +0 -46
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/content-view-repositories-list.controller.js +0 -42
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/content-view-repositories.service.js +0 -91
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/content-view-versions.controller.js +0 -240
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/available-errata-filter.controller.js +0 -115
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/available-module-stream-filter.controller.js +0 -68
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/available-package-group-filter.controller.js +0 -66
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/date-type-errata-filter.controller.js +0 -77
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/docker-tag-filter.controller.js +0 -137
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/edit-filter.controller.js +0 -36
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/errata-filter-list.controller.js +0 -78
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/errata-filter.controller.js +0 -74
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/filter-content-type.filter.js +0 -21
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/filter-details.controller.js +0 -34
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/filter-helper.service.js +0 -30
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/filter-repositories.controller.js +0 -86
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/filter-rule-matching-package-modal.controller.js +0 -37
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/filter-type.filter.js +0 -21
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/filter.factory.js +0 -66
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/filters.controller.js +0 -85
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/module-stream-list-filter.controller.js +0 -73
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/new-filter.controller.js +0 -100
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/package-filter.controller.js +0 -179
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/package-group-list-filter.controller.js +0 -75
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/rule.factory.js +0 -21
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/views/date-type-errata-filter.html +0 -9
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/views/date-type-errata.html +0 -75
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/views/docker-filter.html +0 -28
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/views/docker-tag-filter-details.html +0 -65
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/views/edit-filter.html +0 -19
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/views/errata-filter-details.html +0 -63
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/views/errata-filter.html +0 -50
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/views/filter-details.html +0 -9
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/views/filter-repositories.html +0 -121
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/views/filter-rule-matching-package-modal.html +0 -43
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/views/filters.html +0 -85
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/views/module-stream-filter-details.html +0 -58
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/views/module-stream-filter.html +0 -43
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/views/new-filter.html +0 -62
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/views/package-filter-details.html +0 -182
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/views/package-filter.html +0 -28
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/views/package-group-filter-details.html +0 -42
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/views/package-group-filter.html +0 -43
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/views/partials/filter-repositories-count.html +0 -2
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/histories/content-view-history.controller.js +0 -47
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/histories/content-view-history.factory.js +0 -22
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/histories/views/content-view-history.html +0 -36
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/views/content-view-copy.html +0 -20
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/views/content-view-deb-repositories.html +0 -87
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/views/content-view-details-tasks.html +0 -4
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/views/content-view-details.html +0 -144
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/views/content-view-docker-repositories.html +0 -114
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/views/content-view-file-repositories.html +0 -87
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/views/content-view-info.html +0 -63
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/views/content-view-ostree-repositories.html +0 -87
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/views/content-view-promotion.html +0 -59
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/views/content-view-publish.html +0 -58
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/views/content-view-repositories.html +0 -116
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/views/content-view-versions.html +0 -126
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/new/content-view-new.controller.js +0 -78
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/new/views/content-view-new.html +0 -127
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/versions/content-view-version-content.controller.js +0 -138
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/versions/content-view-version.controller.js +0 -59
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/versions/views/content-view-version-apt.html +0 -25
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/versions/views/content-view-version-components.html +0 -19
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/versions/views/content-view-version-deb.html +0 -19
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/versions/views/content-view-version-details.html +0 -15
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/versions/views/content-view-version-docker.html +0 -23
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/versions/views/content-view-version-errata.html +0 -48
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/versions/views/content-view-version-file.html +0 -21
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/versions/views/content-view-version-module-streams.html +0 -8
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/versions/views/content-view-version-package-groups.html +0 -21
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/versions/views/content-view-version-packages.html +0 -27
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/versions/views/content-view-version-yum.html +0 -42
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/versions/views/content-view-version.html +0 -83
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/views/content-views.html +0 -74
- data/webpack/components/Table/__test__/useBulkSelect.test.js +0 -99
- data/webpack/scenes/AnsibleCollections/AnsibleCollectionsActions.js +0 -30
- data/webpack/scenes/AnsibleCollections/AnsibleCollectionsConstants.js +0 -3
- data/webpack/scenes/AnsibleCollections/AnsibleCollectionsPage.js +0 -80
- data/webpack/scenes/AnsibleCollections/AnsibleCollectionsReducer.js +0 -39
- data/webpack/scenes/AnsibleCollections/AnsibleCollectionsTableSchema.js +0 -60
- data/webpack/scenes/AnsibleCollections/Details/AnsibleCollectionDetails.js +0 -94
- data/webpack/scenes/AnsibleCollections/Details/AnsibleCollectionDetailsActions.js +0 -23
- data/webpack/scenes/AnsibleCollections/Details/AnsibleCollectionDetailsConstants.js +0 -3
- data/webpack/scenes/AnsibleCollections/Details/AnsibleCollectionDetailsReducer.js +0 -30
- data/webpack/scenes/AnsibleCollections/Details/AnsibleCollectionsSchema.js +0 -35
- data/webpack/scenes/AnsibleCollections/Details/__tests__/AnsibleCollectionDetailInfo.test.js +0 -16
- data/webpack/scenes/AnsibleCollections/Details/__tests__/AnsibleCollectionDetails.fixtures.js +0 -25
- data/webpack/scenes/AnsibleCollections/Details/__tests__/AnsibleCollectionDetails.test.js +0 -27
- data/webpack/scenes/AnsibleCollections/Details/__tests__/AnsibleCollectionDetailsActions.test.js +0 -41
- data/webpack/scenes/AnsibleCollections/Details/__tests__/AnsibleCollectionDetailsReducer.test.js +0 -33
- data/webpack/scenes/AnsibleCollections/Details/__tests__/__snapshots__/AnsibleCollectionDetailInfo.test.js.snap +0 -83
- data/webpack/scenes/AnsibleCollections/Details/__tests__/__snapshots__/AnsibleCollectionDetails.test.js.snap +0 -190
- data/webpack/scenes/AnsibleCollections/Details/__tests__/__snapshots__/AnsibleCollectionDetailsActions.test.js.snap +0 -58
- data/webpack/scenes/AnsibleCollections/Details/__tests__/__snapshots__/AnsibleCollectionDetailsReducer.test.js.snap +0 -50
- data/webpack/scenes/AnsibleCollections/Details/index.js +0 -17
- data/webpack/scenes/AnsibleCollections/__tests__/AnsibleCollectionPage.test.js +0 -23
- data/webpack/scenes/AnsibleCollections/__tests__/AnsibleCollections.fixtures.js +0 -52
- data/webpack/scenes/AnsibleCollections/__tests__/AnsibleCollectionsActions.test.js +0 -48
- data/webpack/scenes/AnsibleCollections/__tests__/AnsibleCollectionsReducer.test.js +0 -46
- data/webpack/scenes/AnsibleCollections/__tests__/AnsibleCollectionsTable.test.js +0 -25
- data/webpack/scenes/AnsibleCollections/__tests__/__snapshots__/AnsibleCollectionPage.test.js.snap +0 -73
- data/webpack/scenes/AnsibleCollections/__tests__/__snapshots__/AnsibleCollectionsTable.test.js.snap +0 -81
- data/webpack/scenes/AnsibleCollections/index.js +0 -17
- data/webpack/scenes/Subscriptions/Manifest/__tests__/ManageManifestModal.test.js +0 -123
@@ -0,0 +1,459 @@
|
|
1
|
+
import React, { useState } from 'react';
|
2
|
+
import useDeepCompareEffect from 'use-deep-compare-effect';
|
3
|
+
import { useDispatch, useSelector } from 'react-redux';
|
4
|
+
import { useParams } from 'react-router-dom';
|
5
|
+
import { isEmpty } from 'lodash';
|
6
|
+
import {
|
7
|
+
Button,
|
8
|
+
ExpandableSection,
|
9
|
+
ExpandableSectionToggle,
|
10
|
+
List,
|
11
|
+
ListItem,
|
12
|
+
Split,
|
13
|
+
SplitItem,
|
14
|
+
Stack,
|
15
|
+
StackItem,
|
16
|
+
TextContent,
|
17
|
+
TextList,
|
18
|
+
TextListItem,
|
19
|
+
TextListItemVariants,
|
20
|
+
TextListVariants,
|
21
|
+
} from '@patternfly/react-core';
|
22
|
+
import { PencilAltIcon } from '@patternfly/react-icons';
|
23
|
+
import { STATUS } from 'foremanReact/constants';
|
24
|
+
import { urlBuilder } from 'foremanReact/common/urlHelpers';
|
25
|
+
import { translate as __ } from 'foremanReact/common/I18n';
|
26
|
+
import { getACSDetails } from '../ACSActions';
|
27
|
+
import { selectACSDetails, selectACSDetailsStatus } from '../ACSSelectors';
|
28
|
+
import Loading from '../../../components/Loading';
|
29
|
+
import InactiveText from '../../ContentViews/components/InactiveText';
|
30
|
+
import ACSEditDetails from './EditModals/ACSEditDetails';
|
31
|
+
import ACSEditURLPaths from './EditModals/ACSEditURLPaths';
|
32
|
+
import ACSEditSmartProxies from './EditModals/ACSEditSmartProxies';
|
33
|
+
import ACSEditCredentials from './EditModals/ACSEditCredentials';
|
34
|
+
import ACSEditProducts from './EditModals/ACSEditProducts';
|
35
|
+
|
36
|
+
const ACSExpandableDetails = () => {
|
37
|
+
const { id } = useParams();
|
38
|
+
const acsId = Number(id);
|
39
|
+
const details = useSelector(state => selectACSDetails(state, acsId));
|
40
|
+
const status = useSelector(state => selectACSDetailsStatus(state, acsId));
|
41
|
+
const dispatch = useDispatch();
|
42
|
+
const [showDetails, setShowDetails] = useState(true);
|
43
|
+
const [showSmartProxies, setShowSmartProxies] = useState(false);
|
44
|
+
const [showProducts, setShowProducts] = useState(false);
|
45
|
+
const [showUrlPaths, setShowUrlPaths] = useState(false);
|
46
|
+
const [showCredentials, setShowCredentials] = useState(false);
|
47
|
+
const [editDetailsModalOpen, setEditDetailsModalOpen] = useState(false);
|
48
|
+
const [editUrlModalOpen, setEditUrlModalOpen] = useState(false);
|
49
|
+
const [editSmartProxiesModalOpen, setEditSmartProxiesModalOpen] = useState(false);
|
50
|
+
const [editProductsModalOpen, setEditProductsModalOpen] = useState(false);
|
51
|
+
const [editCredentialsModalOpen, setEditCredentialsModalOpen] = useState(false);
|
52
|
+
|
53
|
+
useDeepCompareEffect(() => {
|
54
|
+
if (isEmpty(details)) {
|
55
|
+
dispatch(getACSDetails(acsId));
|
56
|
+
}
|
57
|
+
}, [acsId, details, dispatch]);
|
58
|
+
|
59
|
+
if (status === STATUS.PENDING) return <Loading />;
|
60
|
+
|
61
|
+
const {
|
62
|
+
name,
|
63
|
+
alternate_content_source_type: acsType,
|
64
|
+
content_type: contentType,
|
65
|
+
subpaths,
|
66
|
+
description,
|
67
|
+
base_url: url,
|
68
|
+
smart_proxies: smartProxies,
|
69
|
+
verify_ssl: verifySsl,
|
70
|
+
ssl_ca_cert: sslCaCert,
|
71
|
+
ssl_client_cert: sslClientCert,
|
72
|
+
ssl_client_key: sslClientKey,
|
73
|
+
upstream_username: username,
|
74
|
+
products,
|
75
|
+
} = details;
|
76
|
+
return (
|
77
|
+
<>
|
78
|
+
<Stack>
|
79
|
+
<StackItem>
|
80
|
+
<Split>
|
81
|
+
<SplitItem isFilled>
|
82
|
+
<ExpandableSectionToggle
|
83
|
+
isExpanded={showDetails}
|
84
|
+
onToggle={(expanded) => {
|
85
|
+
setShowDetails(expanded);
|
86
|
+
setShowSmartProxies(false);
|
87
|
+
setShowProducts(false);
|
88
|
+
setShowUrlPaths(false);
|
89
|
+
setShowCredentials(false);
|
90
|
+
}}
|
91
|
+
contentId="showDetails"
|
92
|
+
>
|
93
|
+
{showDetails ? __('Hide details') : __('Show details')}
|
94
|
+
</ExpandableSectionToggle>
|
95
|
+
</SplitItem>
|
96
|
+
<SplitItem>
|
97
|
+
<Button
|
98
|
+
ouiaId="edit-details-pencil-edit"
|
99
|
+
aria-label="edit-details-pencil-edit"
|
100
|
+
variant="link"
|
101
|
+
isSmall
|
102
|
+
icon={<PencilAltIcon />}
|
103
|
+
onClick={() => setEditDetailsModalOpen(true)}
|
104
|
+
>{__('Edit Details')}
|
105
|
+
</Button>
|
106
|
+
</SplitItem>
|
107
|
+
</Split>
|
108
|
+
</StackItem>
|
109
|
+
<StackItem>
|
110
|
+
<ExpandableSection
|
111
|
+
isExpanded={showDetails}
|
112
|
+
isDetached
|
113
|
+
contentId="showDetails"
|
114
|
+
>
|
115
|
+
<TextContent className="margin-0-24">
|
116
|
+
<TextList component={TextListVariants.dl}>
|
117
|
+
<TextListItem component={TextListItemVariants.dt}>
|
118
|
+
{__('Name')}
|
119
|
+
</TextListItem>
|
120
|
+
<TextListItem
|
121
|
+
aria-label="name_text_value"
|
122
|
+
component={TextListItemVariants.dd}
|
123
|
+
>
|
124
|
+
{name}
|
125
|
+
</TextListItem>
|
126
|
+
<TextListItem component={TextListItemVariants.dt}>
|
127
|
+
{__('Description')}
|
128
|
+
</TextListItem>
|
129
|
+
<TextListItem
|
130
|
+
aria-label="name_text_value"
|
131
|
+
component={TextListItemVariants.dd}
|
132
|
+
>
|
133
|
+
{description}
|
134
|
+
</TextListItem>
|
135
|
+
<TextListItem component={TextListItemVariants.dt}>
|
136
|
+
{__('Type')}
|
137
|
+
</TextListItem>
|
138
|
+
<TextListItem
|
139
|
+
aria-label="type_text_value"
|
140
|
+
component={TextListItemVariants.dd}
|
141
|
+
>
|
142
|
+
{acsType}
|
143
|
+
</TextListItem>
|
144
|
+
<TextListItem component={TextListItemVariants.dt}>
|
145
|
+
{__('Content type')}
|
146
|
+
</TextListItem>
|
147
|
+
<TextListItem
|
148
|
+
aria-label="content_type_text_value"
|
149
|
+
component={TextListItemVariants.dd}
|
150
|
+
>
|
151
|
+
{contentType}
|
152
|
+
</TextListItem>
|
153
|
+
</TextList>
|
154
|
+
</TextContent>
|
155
|
+
</ExpandableSection>
|
156
|
+
</StackItem>
|
157
|
+
<StackItem>
|
158
|
+
<Split>
|
159
|
+
<SplitItem isFilled>
|
160
|
+
<ExpandableSectionToggle
|
161
|
+
isExpanded={showSmartProxies}
|
162
|
+
onToggle={(expanded) => {
|
163
|
+
setShowDetails(false);
|
164
|
+
setShowSmartProxies(expanded);
|
165
|
+
setShowUrlPaths(false);
|
166
|
+
setShowCredentials(false);
|
167
|
+
}}
|
168
|
+
contentId="showSmartProxies"
|
169
|
+
>
|
170
|
+
{showSmartProxies ? 'Hide smart proxies' : 'Show smart proxies'}
|
171
|
+
</ExpandableSectionToggle>
|
172
|
+
</SplitItem>
|
173
|
+
<SplitItem>
|
174
|
+
<Button
|
175
|
+
ouiaId="edit-smart-proxies-pencil-edit"
|
176
|
+
aria-label="edit-smart-proxies-pencil-edit"
|
177
|
+
variant="link"
|
178
|
+
isSmall
|
179
|
+
icon={<PencilAltIcon />}
|
180
|
+
onClick={() => setEditSmartProxiesModalOpen(true)}
|
181
|
+
>{__('Edit smart proxies')}
|
182
|
+
</Button>
|
183
|
+
</SplitItem>
|
184
|
+
</Split>
|
185
|
+
</StackItem>
|
186
|
+
<StackItem>
|
187
|
+
<ExpandableSection
|
188
|
+
isDetached
|
189
|
+
contentId="showSmartProxies"
|
190
|
+
isExpanded={showSmartProxies}
|
191
|
+
>
|
192
|
+
<List className="margin-0-24" isPlain isBordered>
|
193
|
+
{smartProxies?.length > 0 && smartProxies.map(sp =>
|
194
|
+
(
|
195
|
+
<ListItem key={sp?.id} aria-label="smartproxy_value">
|
196
|
+
<a href={urlBuilder(`smart_proxies/${sp?.id}`, '')}><b>{sp?.name}</b></a>
|
197
|
+
</ListItem>
|
198
|
+
))}
|
199
|
+
{smartProxies?.length === 0 &&
|
200
|
+
<InactiveText text="N/A" />
|
201
|
+
}
|
202
|
+
</List>
|
203
|
+
</ExpandableSection>
|
204
|
+
</StackItem>
|
205
|
+
{acsType === 'simplified' &&
|
206
|
+
<>
|
207
|
+
<StackItem>
|
208
|
+
<Split>
|
209
|
+
<SplitItem isFilled>
|
210
|
+
<ExpandableSectionToggle
|
211
|
+
onToggle={(expanded) => {
|
212
|
+
setShowDetails(false);
|
213
|
+
setShowSmartProxies(false);
|
214
|
+
setShowProducts(expanded);
|
215
|
+
setShowUrlPaths(false);
|
216
|
+
setShowCredentials(false);
|
217
|
+
}}
|
218
|
+
isExpanded={showProducts}
|
219
|
+
contentId="showProducts"
|
220
|
+
>
|
221
|
+
{showProducts ? 'Hide products' : 'Show products'}
|
222
|
+
</ExpandableSectionToggle>
|
223
|
+
</SplitItem>
|
224
|
+
<SplitItem>
|
225
|
+
<Button
|
226
|
+
ouiaId="edit-products-pencil-edit"
|
227
|
+
aria-label="edit-products-pencil-edit"
|
228
|
+
variant="link"
|
229
|
+
isSmall
|
230
|
+
icon={<PencilAltIcon />}
|
231
|
+
onClick={() => setEditProductsModalOpen(true)}
|
232
|
+
>{__('Edit products')}
|
233
|
+
</Button>
|
234
|
+
</SplitItem>
|
235
|
+
</Split>
|
236
|
+
</StackItem>
|
237
|
+
<StackItem>
|
238
|
+
<ExpandableSection
|
239
|
+
isDetached
|
240
|
+
contentId="showProducts"
|
241
|
+
isExpanded={showProducts}
|
242
|
+
>
|
243
|
+
<List className="margin-0-24" isPlain isBordered>
|
244
|
+
{products.map(product =>
|
245
|
+
(
|
246
|
+
<ListItem key={product?.id} aria-label="product_value">
|
247
|
+
<a href={urlBuilder(`products/${product?.id}`, '')}><b>{product?.name}</b></a>
|
248
|
+
</ListItem>
|
249
|
+
))}
|
250
|
+
</List>
|
251
|
+
</ExpandableSection>
|
252
|
+
</StackItem>
|
253
|
+
</>
|
254
|
+
}
|
255
|
+
{acsType === 'custom' &&
|
256
|
+
<>
|
257
|
+
<StackItem>
|
258
|
+
<Split>
|
259
|
+
<SplitItem isFilled>
|
260
|
+
<ExpandableSectionToggle
|
261
|
+
onToggle={(expanded) => {
|
262
|
+
setShowDetails(false);
|
263
|
+
setShowSmartProxies(false);
|
264
|
+
setShowUrlPaths(expanded);
|
265
|
+
setShowCredentials(false);
|
266
|
+
}}
|
267
|
+
isExpanded={showUrlPaths}
|
268
|
+
contentId="showUrlPaths"
|
269
|
+
>
|
270
|
+
{showUrlPaths ? 'Hide URL and subpaths' : 'Show URL and subpaths'}
|
271
|
+
</ExpandableSectionToggle>
|
272
|
+
</SplitItem>
|
273
|
+
<SplitItem>
|
274
|
+
<Button
|
275
|
+
ouiaId="edit-urls-pencil-edit"
|
276
|
+
aria-label="edit-urls-pencil-edit"
|
277
|
+
variant="link"
|
278
|
+
isSmall
|
279
|
+
icon={<PencilAltIcon />}
|
280
|
+
onClick={() => setEditUrlModalOpen(true)}
|
281
|
+
>{__('Edit URL and subpaths')}
|
282
|
+
</Button>
|
283
|
+
</SplitItem>
|
284
|
+
</Split>
|
285
|
+
</StackItem>
|
286
|
+
<StackItem>
|
287
|
+
<ExpandableSection
|
288
|
+
contentId="showUrlPaths"
|
289
|
+
isDetached
|
290
|
+
isExpanded={showUrlPaths}
|
291
|
+
>
|
292
|
+
<TextContent className="margin-0-24">
|
293
|
+
<TextList component={TextListVariants.dl}>
|
294
|
+
<TextListItem component={TextListItemVariants.dt}>
|
295
|
+
{__('URL')}
|
296
|
+
</TextListItem>
|
297
|
+
<TextListItem
|
298
|
+
aria-label="url_text_value"
|
299
|
+
component={TextListItemVariants.dd}
|
300
|
+
>
|
301
|
+
{url}
|
302
|
+
</TextListItem>
|
303
|
+
<TextListItem component={TextListItemVariants.dt}>
|
304
|
+
{__('Subpaths')}
|
305
|
+
</TextListItem>
|
306
|
+
<TextListItem
|
307
|
+
aria-label="subpaths_text_value"
|
308
|
+
component={TextListItemVariants.dd}
|
309
|
+
>
|
310
|
+
{subpaths.join()}
|
311
|
+
</TextListItem>
|
312
|
+
</TextList>
|
313
|
+
</TextContent>
|
314
|
+
</ExpandableSection>
|
315
|
+
</StackItem>
|
316
|
+
<StackItem>
|
317
|
+
<Split>
|
318
|
+
<SplitItem isFilled>
|
319
|
+
<ExpandableSectionToggle
|
320
|
+
onToggle={(expanded) => {
|
321
|
+
setShowDetails(false);
|
322
|
+
setShowSmartProxies(false);
|
323
|
+
setShowUrlPaths(false);
|
324
|
+
setShowCredentials(expanded);
|
325
|
+
}}
|
326
|
+
isExpanded={showCredentials}
|
327
|
+
contentId="showCredentials"
|
328
|
+
>
|
329
|
+
{showCredentials ? 'Hide credentials' : 'Show credentials'}
|
330
|
+
</ExpandableSectionToggle>
|
331
|
+
</SplitItem>
|
332
|
+
<SplitItem>
|
333
|
+
<Button
|
334
|
+
ouiaId="edit-credentials-pencil-edit"
|
335
|
+
aria-label="edit-credentials-pencil-edit"
|
336
|
+
variant="link"
|
337
|
+
isSmall
|
338
|
+
icon={<PencilAltIcon />}
|
339
|
+
onClick={() => setEditCredentialsModalOpen(true)}
|
340
|
+
>{__('Edit credentials')}
|
341
|
+
</Button>
|
342
|
+
</SplitItem>
|
343
|
+
</Split>
|
344
|
+
</StackItem>
|
345
|
+
<StackItem>
|
346
|
+
<ExpandableSection
|
347
|
+
isExpanded={showCredentials}
|
348
|
+
contentId="showCredentials"
|
349
|
+
isDetached
|
350
|
+
>
|
351
|
+
<TextContent className="margin-0-24">
|
352
|
+
<TextList component={TextListVariants.dl}>
|
353
|
+
<TextListItem component={TextListItemVariants.dt}>
|
354
|
+
{__('Verify SSL')}
|
355
|
+
</TextListItem>
|
356
|
+
<TextListItem
|
357
|
+
aria-label="verifySSL_value"
|
358
|
+
component={TextListItemVariants.dd}
|
359
|
+
>
|
360
|
+
{verifySsl ? 'true' : 'false'}
|
361
|
+
</TextListItem>
|
362
|
+
<TextListItem component={TextListItemVariants.dt}>
|
363
|
+
{__('SSL CA certificate')}
|
364
|
+
</TextListItem>
|
365
|
+
<TextListItem
|
366
|
+
aria-label="sslCaCert_value"
|
367
|
+
component={TextListItemVariants.dd}
|
368
|
+
>
|
369
|
+
{sslCaCert ?
|
370
|
+
<a href={urlBuilder(`content_credentials/${sslCaCert?.id}`, '')}>{sslCaCert?.name}</a> :
|
371
|
+
<InactiveText text="N/A" />}
|
372
|
+
</TextListItem>
|
373
|
+
<TextListItem component={TextListItemVariants.dt}>
|
374
|
+
{__('SSL client certificate')}
|
375
|
+
</TextListItem>
|
376
|
+
<TextListItem
|
377
|
+
aria-label="sslClientCert_value"
|
378
|
+
component={TextListItemVariants.dd}
|
379
|
+
>
|
380
|
+
{sslClientCert ?
|
381
|
+
<a href={urlBuilder(`content_credentials/${sslClientCert?.id}`, '')}>{sslClientCert?.name}</a> :
|
382
|
+
<InactiveText text="N/A" />}
|
383
|
+
</TextListItem>
|
384
|
+
<TextListItem component={TextListItemVariants.dt}>
|
385
|
+
{__('SSL client key')}
|
386
|
+
</TextListItem>
|
387
|
+
<TextListItem
|
388
|
+
aria-label="sslClientKey_value"
|
389
|
+
component={TextListItemVariants.dd}
|
390
|
+
>
|
391
|
+
{sslClientKey ?
|
392
|
+
<a href={urlBuilder(`content_credentials/${sslClientKey?.id}`, '')}>{sslClientKey?.name}</a> :
|
393
|
+
<InactiveText text="N/A" />}
|
394
|
+
</TextListItem>
|
395
|
+
<TextListItem component={TextListItemVariants.dt}>
|
396
|
+
{__('Username')}
|
397
|
+
</TextListItem>
|
398
|
+
<TextListItem
|
399
|
+
aria-label="username_value"
|
400
|
+
component={TextListItemVariants.dd}
|
401
|
+
>
|
402
|
+
{username || <InactiveText text="N/A" />}
|
403
|
+
</TextListItem>
|
404
|
+
<TextListItem component={TextListItemVariants.dt}>
|
405
|
+
{__('Password')}
|
406
|
+
</TextListItem>
|
407
|
+
<TextListItem
|
408
|
+
aria-label="password_value"
|
409
|
+
component={TextListItemVariants.dd}
|
410
|
+
>
|
411
|
+
{username ? '****' : <InactiveText text="N/A" />}
|
412
|
+
</TextListItem>
|
413
|
+
</TextList>
|
414
|
+
</TextContent>
|
415
|
+
</ExpandableSection>
|
416
|
+
</StackItem>
|
417
|
+
</>
|
418
|
+
}
|
419
|
+
</Stack>
|
420
|
+
{editDetailsModalOpen &&
|
421
|
+
<ACSEditDetails
|
422
|
+
acsId={acsId}
|
423
|
+
acsDetails={details}
|
424
|
+
onClose={() => setEditDetailsModalOpen(false)}
|
425
|
+
/>
|
426
|
+
}
|
427
|
+
{editUrlModalOpen &&
|
428
|
+
<ACSEditURLPaths
|
429
|
+
acsId={acsId}
|
430
|
+
acsDetails={details}
|
431
|
+
onClose={() => setEditUrlModalOpen(false)}
|
432
|
+
/>
|
433
|
+
}
|
434
|
+
{editSmartProxiesModalOpen &&
|
435
|
+
<ACSEditSmartProxies
|
436
|
+
acsId={acsId}
|
437
|
+
acsDetails={details}
|
438
|
+
onClose={() => setEditSmartProxiesModalOpen(false)}
|
439
|
+
/>
|
440
|
+
}
|
441
|
+
{editProductsModalOpen &&
|
442
|
+
<ACSEditProducts
|
443
|
+
acsId={acsId}
|
444
|
+
acsDetails={details}
|
445
|
+
onClose={() => setEditProductsModalOpen(false)}
|
446
|
+
/>
|
447
|
+
}
|
448
|
+
{editCredentialsModalOpen &&
|
449
|
+
<ACSEditCredentials
|
450
|
+
acsId={acsId}
|
451
|
+
acsDetails={details}
|
452
|
+
onClose={() => setEditCredentialsModalOpen(false)}
|
453
|
+
/>
|
454
|
+
}
|
455
|
+
</>
|
456
|
+
);
|
457
|
+
};
|
458
|
+
|
459
|
+
export default ACSExpandableDetails;
|