katello 5.0.0.rc2 → 5.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/assets/javascripts/katello/locale/bn/katello.js +63 -15
- data/app/assets/javascripts/katello/locale/bn_IN/katello.js +62 -14
- data/app/assets/javascripts/katello/locale/ca/katello.js +62 -14
- data/app/assets/javascripts/katello/locale/cs/katello.js +63 -15
- data/app/assets/javascripts/katello/locale/cs_CZ/katello.js +64 -16
- data/app/assets/javascripts/katello/locale/de/katello.js +66 -18
- data/app/assets/javascripts/katello/locale/de_AT/katello.js +62 -14
- data/app/assets/javascripts/katello/locale/de_DE/katello.js +63 -15
- data/app/assets/javascripts/katello/locale/el/katello.js +62 -14
- data/app/assets/javascripts/katello/locale/en/katello.js +63 -15
- data/app/assets/javascripts/katello/locale/en_GB/katello.js +62 -14
- data/app/assets/javascripts/katello/locale/en_US/katello.js +62 -14
- data/app/assets/javascripts/katello/locale/es/katello.js +66 -18
- data/app/assets/javascripts/katello/locale/et_EE/katello.js +62 -14
- data/app/assets/javascripts/katello/locale/fr/katello.js +300 -252
- data/app/assets/javascripts/katello/locale/gl/katello.js +62 -14
- data/app/assets/javascripts/katello/locale/gu/katello.js +62 -14
- data/app/assets/javascripts/katello/locale/he_IL/katello.js +62 -14
- data/app/assets/javascripts/katello/locale/hi/katello.js +62 -14
- data/app/assets/javascripts/katello/locale/id/katello.js +62 -14
- data/app/assets/javascripts/katello/locale/it/katello.js +64 -16
- data/app/assets/javascripts/katello/locale/ja/katello.js +378 -330
- data/app/assets/javascripts/katello/locale/ka/katello.js +67 -19
- data/app/assets/javascripts/katello/locale/kn/katello.js +62 -14
- data/app/assets/javascripts/katello/locale/ko/katello.js +297 -249
- data/app/assets/javascripts/katello/locale/ml_IN/katello.js +62 -14
- data/app/assets/javascripts/katello/locale/mr/katello.js +62 -14
- data/app/assets/javascripts/katello/locale/nl_NL/katello.js +62 -14
- data/app/assets/javascripts/katello/locale/or/katello.js +62 -14
- data/app/assets/javascripts/katello/locale/pa/katello.js +62 -14
- data/app/assets/javascripts/katello/locale/pl/katello.js +62 -14
- data/app/assets/javascripts/katello/locale/pl_PL/katello.js +62 -14
- data/app/assets/javascripts/katello/locale/pt/katello.js +62 -14
- data/app/assets/javascripts/katello/locale/pt_BR/katello.js +66 -18
- data/app/assets/javascripts/katello/locale/ro/katello.js +62 -14
- data/app/assets/javascripts/katello/locale/ro_RO/katello.js +62 -14
- data/app/assets/javascripts/katello/locale/ru/katello.js +64 -16
- data/app/assets/javascripts/katello/locale/sl/katello.js +62 -14
- data/app/assets/javascripts/katello/locale/sv_SE/katello.js +62 -14
- data/app/assets/javascripts/katello/locale/ta/katello.js +63 -15
- data/app/assets/javascripts/katello/locale/ta_IN/katello.js +62 -14
- data/app/assets/javascripts/katello/locale/te/katello.js +62 -14
- data/app/assets/javascripts/katello/locale/tr/katello.js +62 -14
- data/app/assets/javascripts/katello/locale/vi/katello.js +62 -14
- data/app/assets/javascripts/katello/locale/vi_VN/katello.js +62 -14
- data/app/assets/javascripts/katello/locale/zh/katello.js +62 -14
- data/app/assets/javascripts/katello/locale/zh_CN/katello.js +285 -237
- data/app/assets/javascripts/katello/locale/zh_TW/katello.js +64 -16
- data/app/controllers/katello/api/registry/registry_proxies_controller.rb +29 -26
- data/app/controllers/katello/api/v2/content_view_histories_controller.rb +1 -1
- data/app/controllers/katello/concerns/api/v2/hosts_controller_extensions.rb +10 -10
- data/app/controllers/katello/concerns/registration_commands_controller_extensions.rb +1 -1
- data/app/lib/katello/concerns/base_template_scope_extensions.rb +61 -2
- data/app/models/katello/concerns/smart_proxy_extensions.rb +1 -1
- data/app/views/katello/api/v2/activation_keys/base.json.rabl +18 -18
- data/app/views/katello/api/v2/content_facet/base.json.rabl +19 -19
- data/app/views/katello/api/v2/content_view_environments/show.json.rabl +10 -10
- data/app/views/katello/api/v2/content_view_versions/base.json.rabl +2 -2
- data/db/migrate/20220929204746_add_content_view_environment_content_facet.rb +5 -5
- data/db/migrate/20240730163043_add_content_view_environment_activation_key.rb +5 -5
- data/db/migrate/20260402151630_add_content_view_environment_to_hostgroup_content_facet.rb +4 -4
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/views/activation-key-info.html +1 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/new/views/activation-key-new.html +1 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/bn.po +0 -12
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/bn_IN.po +0 -12
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/ca.po +0 -12
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/cs_CZ.po +0 -12
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/de.po +0 -12
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/de_AT.po +0 -12
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/de_DE.po +0 -12
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/el.po +0 -12
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/en_GB.po +0 -12
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/en_US.po +0 -12
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/es.po +0 -12
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/et_EE.po +0 -12
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/fr.po +23 -24
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/gl.po +0 -12
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/gu.po +0 -12
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/he_IL.po +0 -12
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/hi.po +0 -12
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/id.po +0 -12
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/it.po +0 -12
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/ja.po +20 -30
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/ka.po +0 -12
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/kn.po +0 -12
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/ko.po +31 -39
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/ml_IN.po +0 -12
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/mr.po +0 -12
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/nl_NL.po +0 -12
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/or.po +0 -12
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/pa.po +0 -12
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/pl.po +0 -12
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/pl_PL.po +0 -12
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/pt.po +0 -12
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/pt_BR.po +0 -12
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/ro.po +0 -12
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/ro_RO.po +0 -12
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/ru.po +0 -12
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/sl.po +0 -12
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/sv_SE.po +0 -12
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/ta.po +0 -12
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/ta_IN.po +0 -12
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/te.po +0 -12
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/tr.po +0 -12
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/vi.po +0 -12
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/vi_VN.po +0 -12
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/zh.po +0 -12
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/zh_CN.po +8 -17
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/zh_TW.po +0 -12
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/translations.js +8 -8
- data/lib/katello/tasks/upgrades/4.20/clean_cve_with_no_cvv.rake +4 -4
- data/lib/katello/version.rb +1 -1
- data/lib/rubocop/cop/katello/cve_abbreviation.rb +82 -0
- data/locale/bn/LC_MESSAGES/katello.mo +0 -0
- data/locale/bn/katello.po +63 -15
- data/locale/bn_IN/LC_MESSAGES/katello.mo +0 -0
- data/locale/bn_IN/katello.po +62 -14
- data/locale/ca/LC_MESSAGES/katello.mo +0 -0
- data/locale/ca/katello.po +62 -14
- data/locale/cs/LC_MESSAGES/katello.mo +0 -0
- data/locale/cs/katello.po +64 -15
- data/locale/cs_CZ/LC_MESSAGES/katello.mo +0 -0
- data/locale/cs_CZ/katello.po +65 -17
- data/locale/de/LC_MESSAGES/katello.mo +0 -0
- data/locale/de/katello.po +67 -19
- data/locale/de_AT/LC_MESSAGES/katello.mo +0 -0
- data/locale/de_AT/katello.po +62 -14
- data/locale/de_DE/LC_MESSAGES/katello.mo +0 -0
- data/locale/de_DE/katello.po +64 -16
- data/locale/el/LC_MESSAGES/katello.mo +0 -0
- data/locale/el/katello.po +62 -14
- data/locale/en/LC_MESSAGES/katello.mo +0 -0
- data/locale/en/katello.po +64 -15
- data/locale/en_GB/LC_MESSAGES/katello.mo +0 -0
- data/locale/en_GB/katello.po +62 -14
- data/locale/en_US/LC_MESSAGES/katello.mo +0 -0
- data/locale/en_US/katello.po +62 -14
- data/locale/es/LC_MESSAGES/katello.mo +0 -0
- data/locale/es/katello.po +68 -21
- data/locale/et_EE/LC_MESSAGES/katello.mo +0 -0
- data/locale/et_EE/katello.po +62 -14
- data/locale/fr/LC_MESSAGES/katello.mo +0 -0
- data/locale/fr/katello.po +304 -256
- data/locale/gl/LC_MESSAGES/katello.mo +0 -0
- data/locale/gl/katello.po +62 -14
- data/locale/gu/LC_MESSAGES/katello.mo +0 -0
- data/locale/gu/katello.po +62 -14
- data/locale/he_IL/LC_MESSAGES/katello.mo +0 -0
- data/locale/he_IL/katello.po +62 -14
- data/locale/hi/LC_MESSAGES/katello.mo +0 -0
- data/locale/hi/katello.po +62 -14
- data/locale/id/LC_MESSAGES/katello.mo +0 -0
- data/locale/id/katello.po +62 -14
- data/locale/it/LC_MESSAGES/katello.mo +0 -0
- data/locale/it/katello.po +64 -16
- data/locale/ja/LC_MESSAGES/katello.mo +0 -0
- data/locale/ja/katello.po +379 -331
- data/locale/ka/LC_MESSAGES/katello.mo +0 -0
- data/locale/ka/katello.po +67 -19
- data/locale/katello.pot +457 -393
- data/locale/kn/LC_MESSAGES/katello.mo +0 -0
- data/locale/kn/katello.po +62 -14
- data/locale/ko/LC_MESSAGES/katello.mo +0 -0
- data/locale/ko/katello.po +300 -251
- data/locale/ml_IN/LC_MESSAGES/katello.mo +0 -0
- data/locale/ml_IN/katello.po +62 -14
- data/locale/mr/LC_MESSAGES/katello.mo +0 -0
- data/locale/mr/katello.po +62 -14
- data/locale/nl_NL/LC_MESSAGES/katello.mo +0 -0
- data/locale/nl_NL/katello.po +62 -14
- data/locale/or/LC_MESSAGES/katello.mo +0 -0
- data/locale/or/katello.po +62 -14
- data/locale/pa/LC_MESSAGES/katello.mo +0 -0
- data/locale/pa/katello.po +62 -14
- data/locale/pl/LC_MESSAGES/katello.mo +0 -0
- data/locale/pl/katello.po +62 -14
- data/locale/pl_PL/LC_MESSAGES/katello.mo +0 -0
- data/locale/pl_PL/katello.po +62 -14
- data/locale/pt/LC_MESSAGES/katello.mo +0 -0
- data/locale/pt/katello.po +62 -14
- data/locale/pt_BR/LC_MESSAGES/katello.mo +0 -0
- data/locale/pt_BR/katello.po +68 -20
- data/locale/ro/LC_MESSAGES/katello.mo +0 -0
- data/locale/ro/katello.po +62 -14
- data/locale/ro_RO/LC_MESSAGES/katello.mo +0 -0
- data/locale/ro_RO/katello.po +62 -14
- data/locale/ru/LC_MESSAGES/katello.mo +0 -0
- data/locale/ru/katello.po +64 -16
- data/locale/sl/LC_MESSAGES/katello.mo +0 -0
- data/locale/sl/katello.po +62 -14
- data/locale/sv_SE/LC_MESSAGES/katello.mo +0 -0
- data/locale/sv_SE/katello.po +62 -14
- data/locale/ta/LC_MESSAGES/katello.mo +0 -0
- data/locale/ta/katello.po +63 -15
- data/locale/ta_IN/LC_MESSAGES/katello.mo +0 -0
- data/locale/ta_IN/katello.po +62 -14
- data/locale/te/LC_MESSAGES/katello.mo +0 -0
- data/locale/te/katello.po +62 -14
- data/locale/tr/LC_MESSAGES/katello.mo +0 -0
- data/locale/tr/katello.po +62 -14
- data/locale/vi/LC_MESSAGES/katello.mo +0 -0
- data/locale/vi/katello.po +62 -14
- data/locale/vi_VN/LC_MESSAGES/katello.mo +0 -0
- data/locale/vi_VN/katello.po +62 -14
- data/locale/zh/LC_MESSAGES/katello.mo +0 -0
- data/locale/zh/katello.po +62 -14
- data/locale/zh_CN/LC_MESSAGES/katello.mo +0 -0
- data/locale/zh_CN/katello.po +286 -238
- data/locale/zh_TW/LC_MESSAGES/katello.mo +0 -0
- data/locale/zh_TW/katello.po +64 -16
- data/package.json +2 -2
- data/webpack/ForemanColumnExtensions/index.js +1 -1
- data/webpack/components/extensions/HostDetails/Cards/ContentViewDetailsCard/AssignHostCVModal.js +3 -3
- data/webpack/components/extensions/HostDetails/Cards/ContentViewDetailsCard/ContentViewDetailsCard.js +5 -5
- data/webpack/components/extensions/HostDetails/Cards/ContentViewDetailsCard/OrderableAssignments.js +5 -5
- data/webpack/components/extensions/HostDetails/Cards/ContentViewDetailsCard/__tests__/AssignHostCVModal.test.js +17 -17
- data/webpack/components/extensions/Hosts/BulkActions/BulkAssignCVEnvsModal/BulkAssignCVEnvsModal.js +4 -8
- data/webpack/components/extensions/Hosts/BulkActions/BulkAssignCVEnvsModal/__tests__/BulkAssignCVEnvsModal.test.js +1 -1
- data/webpack/components/extensions/Hosts/BulkActions/BulkAssignCVEnvsModal/index.js +2 -1
- data/webpack/components/extensions/Hosts/BulkActions/BulkChangeHostCollectionsModal/BulkChangeHostCollectionsModal.js +5 -10
- data/webpack/components/extensions/Hosts/BulkActions/BulkChangeHostCollectionsModal/__tests__/BulkChangeHostCollectionsModal.test.js +6 -24
- data/webpack/components/extensions/Hosts/BulkActions/BulkChangeHostCollectionsModal/index.js +2 -1
- data/webpack/components/extensions/Hosts/BulkActions/BulkErrataWizard/04_ReviewFooter.js +2 -0
- data/webpack/components/extensions/Hosts/BulkActions/BulkErrataWizard/BulkErrataWizard.js +2 -1
- data/webpack/components/extensions/Hosts/BulkActions/BulkManageTracesModal/BulkManageTracesModal.js +4 -0
- data/webpack/components/extensions/Hosts/BulkActions/BulkManageTracesModal/index.js +2 -1
- data/webpack/components/extensions/Hosts/BulkActions/BulkPackagesWizard/04_ReviewFooter.js +2 -0
- data/webpack/components/extensions/Hosts/BulkActions/BulkPackagesWizard/BulkPackagesWizard.js +2 -1
- data/webpack/components/extensions/Hosts/BulkActions/BulkRepositorySetsWizard/03_ReviewFooter.js +2 -0
- data/webpack/components/extensions/Hosts/BulkActions/BulkRepositorySetsWizard/BulkRepositorySetsWizard.js +2 -1
- data/webpack/components/extensions/Hosts/BulkActions/BulkSystemPurposeModal/BulkSystemPurposeModal.js +5 -0
- data/webpack/components/extensions/Hosts/BulkActions/BulkSystemPurposeModal/index.js +2 -1
- data/webpack/components/extensions/Hosts/BulkActions/__tests__/bulkSystemPurposeModal.test.js +6 -1
- data/webpack/components/extensions/RegistrationCommands/__tests__/ActivationKeys.test.js +6 -6
- data/webpack/components/extensions/RegistrationCommands/fields/ActivationKeys.js +1 -1
- data/webpack/containers/Application/config.js +1 -1
- data/webpack/eslint-rules/no-cve-abbreviation.js +121 -0
- data/webpack/global_index.js +6 -6
- data/webpack/redux/reducers/index.js +0 -2
- data/webpack/scenes/ActivationKeys/Details/ActivationKeyDetails.js +2 -2
- data/webpack/scenes/ActivationKeys/Details/components/AssignAKCVModal.js +3 -3
- data/webpack/scenes/ActivationKeys/Details/components/CreateAKCVModal.js +1 -1
- data/webpack/scenes/ActivationKeys/Details/components/{CVEDetailsCard.js → CvEnvDetailsCard.js} +9 -9
- data/webpack/scenes/ActivationKeys/Details/components/{CVEDetailsCreateCard.js → CvEnvDetailsCreateCard.js} +10 -10
- data/webpack/scenes/ActivationKeys/Details/components/__tests__/{CVEDetailsCreateCard.test.js → CvEnvDetailsCreateCard.test.js} +8 -8
- data/webpack/scenes/ContainerImages/Booted/BootedContainerImagesPage.js +2 -2
- data/webpack/scenes/ContainerImages/ContainerImagesPage.js +59 -52
- data/webpack/scenes/ContainerImages/ContainerImagesPage.scss +27 -4
- data/webpack/scenes/ContainerImages/Synced/SyncedContainerImagesPage.js +1 -1
- data/webpack/scenes/ContentViews/Details/Versions/ContentViewVersionContent.js +1 -11
- data/webpack/scenes/ContentViews/Details/Versions/Delete/RemoveSteps/CVVersionRemoveReview.js +9 -9
- data/webpack/scenes/ContentViews/Details/Versions/VersionDetails/ContentViewVersionDetailConfig.js +0 -28
- data/webpack/scenes/ContentViews/Details/Versions/VersionDetails/__tests__/ContentViewVersionDetails.test.js +46 -1
- data/webpack/scenes/ContentViews/Details/Versions/__tests__/contentViewVersionContent.test.js +41 -0
- data/webpack/scenes/Hosts/ChangeContentSource/actions.js +2 -2
- data/webpack/scenes/Subscriptions/Manifest/CdnTabContent.js +44 -0
- data/webpack/scenes/Subscriptions/Manifest/ManageManifestModal.js +179 -307
- data/webpack/scenes/Subscriptions/Manifest/ManageManifestModalConstants.js +5 -0
- data/webpack/scenes/Subscriptions/Manifest/ManifestActions.js +64 -70
- data/webpack/scenes/Subscriptions/Manifest/ManifestConstants.js +5 -0
- data/webpack/scenes/Subscriptions/Manifest/ManifestHistoryContent.js +61 -0
- data/webpack/scenes/Subscriptions/Manifest/ManifestHistoryReducer.js +1 -1
- data/webpack/scenes/Subscriptions/Manifest/ManifestTabContent.js +357 -0
- data/webpack/scenes/Subscriptions/Manifest/__tests__/ManageManifestModal.test.js +129 -0
- data/webpack/scenes/Subscriptions/Manifest/__tests__/ManifestActions.test.js +69 -110
- data/webpack/scenes/Subscriptions/Manifest/__tests__/ManifestHistoryReducer.test.js +6 -2
- data/webpack/scenes/Subscriptions/Manifest/index.js +16 -1
- data/webpack/scenes/Subscriptions/SubscriptionActions.js +79 -145
- data/webpack/scenes/Subscriptions/SubscriptionConstants.js +4 -35
- data/webpack/scenes/Subscriptions/SubscriptionsColumns.js +90 -0
- data/webpack/scenes/Subscriptions/SubscriptionsPage.js +297 -217
- data/webpack/scenes/Subscriptions/SubscriptionsPage.scss +40 -30
- data/webpack/scenes/Subscriptions/UpstreamSubscriptions/UpstreamSubscriptionsActions.js +11 -8
- data/webpack/scenes/Subscriptions/UpstreamSubscriptions/UpstreamSubscriptionsConstants.js +0 -1
- data/webpack/scenes/Subscriptions/__tests__/SubscriptionsPage.test.js +104 -205
- data/webpack/scenes/Subscriptions/__tests__/subscriptions.fixtures.js +12 -8
- data/webpack/scenes/Subscriptions/components/SubscriptionsTable/SubscriptionsTable.js +245 -241
- data/webpack/scenes/Subscriptions/components/SubscriptionsTable/__tests__/SubscriptionsTable.test.js +61 -27
- data/webpack/scenes/Subscriptions/components/SubscriptionsTable/components/Table.js +487 -73
- data/webpack/scenes/Subscriptions/components/SubscriptionsToolbar/SubscriptionsToolbar.js +22 -4
- data/webpack/utils/contentViewEnvironmentLabel.js +3 -3
- data/webpack/utils/helpers.js +2 -2
- metadata +22 -20
- data/webpack/scenes/Subscriptions/Manifest/ManageManifestModal.scss +0 -39
- data/webpack/scenes/Subscriptions/Manifest/ManifestHistoryTableSchema.js +0 -47
- data/webpack/scenes/Subscriptions/SubscriptionReducer.js +0 -223
- data/webpack/scenes/Subscriptions/SubscriptionsSelectors.js +0 -31
- data/webpack/scenes/Subscriptions/__tests__/SubscriptionsActions.test.js +0 -297
- data/webpack/scenes/Subscriptions/__tests__/SubscriptionsReducer.test.js +0 -244
- data/webpack/scenes/Subscriptions/__tests__/SubscriptionsSelectors.test.js +0 -47
- data/webpack/scenes/Subscriptions/components/SubscriptionsTable/SubscriptionNameFormatter.js +0 -23
- data/webpack/scenes/Subscriptions/components/SubscriptionsTable/SubscriptionTypeFormatter.js +0 -32
- data/webpack/scenes/Subscriptions/components/SubscriptionsTable/SubscriptionsTableSchema.js +0 -169
- data/webpack/scenes/Subscriptions/components/SubscriptionsTable/__tests__/SubscriptionTypeFormatter.test.js +0 -41
- data/webpack/scenes/Subscriptions/components/SubscriptionsTable/index.js +0 -2
- data/webpack/scenes/Subscriptions/index.js +0 -57
|
Binary file
|
data/locale/zh_TW/katello.po
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
#
|
|
11
11
|
msgid ""
|
|
12
12
|
msgstr ""
|
|
13
|
-
"Project-Id-Version: katello 5.0.0
|
|
13
|
+
"Project-Id-Version: katello 5.0.0\n"
|
|
14
14
|
"Report-Msgid-Bugs-To: \n"
|
|
15
15
|
"PO-Revision-Date: 2017-12-19 20:14+0000\n"
|
|
16
16
|
"Last-Translator: Bryan Kearney <bryan.kearney@gmail.com>, 2026\n"
|
|
@@ -1374,6 +1374,9 @@ msgstr ""
|
|
|
1374
1374
|
msgid "Clean Backend Objects"
|
|
1375
1375
|
msgstr ""
|
|
1376
1376
|
|
|
1377
|
+
msgid "Clear"
|
|
1378
|
+
msgstr ""
|
|
1379
|
+
|
|
1377
1380
|
msgid "Clear any previous registration and run subscription-manager with --force."
|
|
1378
1381
|
msgstr ""
|
|
1379
1382
|
|
|
@@ -1410,6 +1413,9 @@ msgstr "全部收回"
|
|
|
1410
1413
|
msgid "Collapse all"
|
|
1411
1414
|
msgstr ""
|
|
1412
1415
|
|
|
1416
|
+
msgid "Collapse group"
|
|
1417
|
+
msgstr ""
|
|
1418
|
+
|
|
1413
1419
|
msgid "Comma-separated list of content view environment labels associated with the activation key, in the format of 'lifecycle_environment_label/content_view_label'. Ignored if content_view_environment_ids is specified. Requires allow_multiple_content_views setting to be on."
|
|
1414
1420
|
msgstr ""
|
|
1415
1421
|
|
|
@@ -1473,6 +1479,9 @@ msgstr ""
|
|
|
1473
1479
|
msgid "Configuration updated on Foreman"
|
|
1474
1480
|
msgstr ""
|
|
1475
1481
|
|
|
1482
|
+
msgid "Confirm"
|
|
1483
|
+
msgstr "確認"
|
|
1484
|
+
|
|
1476
1485
|
msgid "Confirm Deletion"
|
|
1477
1486
|
msgstr ""
|
|
1478
1487
|
|
|
@@ -1740,6 +1749,9 @@ msgstr ""
|
|
|
1740
1749
|
msgid "Content view environment ID"
|
|
1741
1750
|
msgstr ""
|
|
1742
1751
|
|
|
1752
|
+
msgid "Content view environment identifier"
|
|
1753
|
+
msgstr ""
|
|
1754
|
+
|
|
1743
1755
|
msgid "Content view environments"
|
|
1744
1756
|
msgstr ""
|
|
1745
1757
|
|
|
@@ -2577,6 +2589,9 @@ msgstr "下載除錯憑證"
|
|
|
2577
2589
|
msgid "Download rate limit"
|
|
2578
2590
|
msgstr ""
|
|
2579
2591
|
|
|
2592
|
+
msgid "Drag here"
|
|
2593
|
+
msgstr ""
|
|
2594
|
+
|
|
2580
2595
|
msgid "Due to a change in your organizations, this container name has become ambiguous (org name '%{org_label}'). If you wish to continue using this container name, destroy the organization in conflict with '%{o_name} (id %{o_id}). If you wish to keep both orgs, destroy '%{o_label}/%{prod_label}/%{root_repo_label}' and retry your push using the id format."
|
|
2581
2596
|
msgstr ""
|
|
2582
2597
|
|
|
@@ -2628,6 +2643,9 @@ msgstr ""
|
|
|
2628
2643
|
msgid "Edit details"
|
|
2629
2644
|
msgstr ""
|
|
2630
2645
|
|
|
2646
|
+
msgid "Edit entitlements"
|
|
2647
|
+
msgstr ""
|
|
2648
|
+
|
|
2631
2649
|
msgid "Edit filter rule"
|
|
2632
2650
|
msgstr ""
|
|
2633
2651
|
|
|
@@ -2859,6 +2877,9 @@ msgstr ""
|
|
|
2859
2877
|
msgid "Expand All"
|
|
2860
2878
|
msgstr "全部展開"
|
|
2861
2879
|
|
|
2880
|
+
msgid "Expand group"
|
|
2881
|
+
msgstr ""
|
|
2882
|
+
|
|
2862
2883
|
msgid "Expire soon days"
|
|
2863
2884
|
msgstr ""
|
|
2864
2885
|
|
|
@@ -3201,7 +3222,7 @@ msgid "Generate RHUI certificates for the desired repositories as necessary."
|
|
|
3201
3222
|
msgstr ""
|
|
3202
3223
|
|
|
3203
3224
|
msgid "Generate and Download"
|
|
3204
|
-
msgstr "
|
|
3225
|
+
msgstr ""
|
|
3205
3226
|
|
|
3206
3227
|
msgid "Generate containerfile install command (%s package selected)"
|
|
3207
3228
|
msgid_plural "Generate containerfile install command (%s packages selected)"
|
|
@@ -3274,8 +3295,8 @@ msgstr ""
|
|
|
3274
3295
|
msgid "Greater than"
|
|
3275
3296
|
msgstr ""
|
|
3276
3297
|
|
|
3277
|
-
msgid "Guests of"
|
|
3278
|
-
msgstr "
|
|
3298
|
+
msgid "Guests of %s"
|
|
3299
|
+
msgstr ""
|
|
3279
3300
|
|
|
3280
3301
|
msgid "HTTP Proxies"
|
|
3281
3302
|
msgstr ""
|
|
@@ -3400,6 +3421,9 @@ msgstr ""
|
|
|
3400
3421
|
msgid "Host group IDs"
|
|
3401
3422
|
msgstr "主機群組 ID"
|
|
3402
3423
|
|
|
3424
|
+
msgid "Host group identifier"
|
|
3425
|
+
msgstr ""
|
|
3426
|
+
|
|
3403
3427
|
msgid "Host groups"
|
|
3404
3428
|
msgstr "主機群組"
|
|
3405
3429
|
|
|
@@ -4694,6 +4718,9 @@ msgstr ""
|
|
|
4694
4718
|
msgid "Manifest expiring soon"
|
|
4695
4719
|
msgstr ""
|
|
4696
4720
|
|
|
4721
|
+
msgid "Manifest history table"
|
|
4722
|
+
msgstr ""
|
|
4723
|
+
|
|
4697
4724
|
msgid "Manifest imported"
|
|
4698
4725
|
msgstr ""
|
|
4699
4726
|
|
|
@@ -5461,6 +5488,9 @@ msgstr ""
|
|
|
5461
5488
|
msgid "One or more processes require restarting"
|
|
5462
5489
|
msgstr ""
|
|
5463
5490
|
|
|
5491
|
+
msgid "Only .zip manifest files are accepted"
|
|
5492
|
+
msgstr ""
|
|
5493
|
+
|
|
5464
5494
|
msgid "Only On Demand repositories may have space reclaimed."
|
|
5465
5495
|
msgstr ""
|
|
5466
5496
|
|
|
@@ -5503,9 +5533,6 @@ msgstr "組織不能是空的。"
|
|
|
5503
5533
|
msgid "Organization id"
|
|
5504
5534
|
msgstr "組織 ID"
|
|
5505
5535
|
|
|
5506
|
-
msgid "Organization id not found: '%s'"
|
|
5507
|
-
msgstr ""
|
|
5508
|
-
|
|
5509
5536
|
msgid "Organization identifier"
|
|
5510
5537
|
msgstr "組織識別子"
|
|
5511
5538
|
|
|
@@ -5521,9 +5548,6 @@ msgstr ""
|
|
|
5521
5548
|
msgid "Organization not found"
|
|
5522
5549
|
msgstr ""
|
|
5523
5550
|
|
|
5524
|
-
msgid "Organization not found: '%s'"
|
|
5525
|
-
msgstr ""
|
|
5526
|
-
|
|
5527
5551
|
msgid "Organization required"
|
|
5528
5552
|
msgstr "需要的組織"
|
|
5529
5553
|
|
|
@@ -5817,9 +5841,6 @@ msgid ""
|
|
|
5817
5841
|
" this is not the same product id as the products api returns"
|
|
5818
5842
|
msgstr ""
|
|
5819
5843
|
|
|
5820
|
-
msgid "Product id not found: '%s'"
|
|
5821
|
-
msgstr ""
|
|
5822
|
-
|
|
5823
5844
|
msgid "Product label"
|
|
5824
5845
|
msgstr ""
|
|
5825
5846
|
|
|
@@ -5835,9 +5856,6 @@ msgstr "產品名稱"
|
|
|
5835
5856
|
msgid "Product name as listed from a host's installed products"
|
|
5836
5857
|
msgstr "來自主機已安裝產品的產品名稱"
|
|
5837
5858
|
|
|
5838
|
-
msgid "Product not found: '%s'"
|
|
5839
|
-
msgstr ""
|
|
5840
|
-
|
|
5841
5859
|
msgid "Product the repository belongs to"
|
|
5842
5860
|
msgstr "產品的軟體庫屬於"
|
|
5843
5861
|
|
|
@@ -6546,6 +6564,9 @@ msgstr ""
|
|
|
6546
6564
|
msgid "Requested access to '%s' is denied"
|
|
6547
6565
|
msgstr ""
|
|
6548
6566
|
|
|
6567
|
+
msgid "Requested repository name is unknown to the registry."
|
|
6568
|
+
msgstr ""
|
|
6569
|
+
|
|
6549
6570
|
msgid "Requirements is not valid yaml."
|
|
6550
6571
|
msgstr ""
|
|
6551
6572
|
|
|
@@ -6828,6 +6849,12 @@ msgstr ""
|
|
|
6828
6849
|
msgid "Saving alternate content source..."
|
|
6829
6850
|
msgstr ""
|
|
6830
6851
|
|
|
6852
|
+
msgid "Saving subscription quantities..."
|
|
6853
|
+
msgstr ""
|
|
6854
|
+
|
|
6855
|
+
msgid "Saving..."
|
|
6856
|
+
msgstr "正在儲存…"
|
|
6857
|
+
|
|
6831
6858
|
msgid "Scan"
|
|
6832
6859
|
msgstr ""
|
|
6833
6860
|
|
|
@@ -7164,6 +7191,9 @@ msgstr "顯示內容視域"
|
|
|
7164
7191
|
msgid "Show a content view component"
|
|
7165
7192
|
msgstr ""
|
|
7166
7193
|
|
|
7194
|
+
msgid "Show a content view environment"
|
|
7195
|
+
msgstr ""
|
|
7196
|
+
|
|
7167
7197
|
msgid "Show a content view's history"
|
|
7168
7198
|
msgstr "顯示內容視域的歷史紀錄"
|
|
7169
7199
|
|
|
@@ -8759,6 +8789,9 @@ msgstr ""
|
|
|
8759
8789
|
msgid "Upgrade via remote execution"
|
|
8760
8790
|
msgstr ""
|
|
8761
8791
|
|
|
8792
|
+
msgid "Upload"
|
|
8793
|
+
msgstr "上傳"
|
|
8794
|
+
|
|
8762
8795
|
msgid "Upload Content Credential contents"
|
|
8763
8796
|
msgstr ""
|
|
8764
8797
|
|
|
@@ -8768,6 +8801,9 @@ msgstr "上傳一組檔案內容"
|
|
|
8768
8801
|
msgid "Upload a subscription manifest"
|
|
8769
8802
|
msgstr "上傳訂閱清單"
|
|
8770
8803
|
|
|
8804
|
+
msgid "Upload a zip file"
|
|
8805
|
+
msgstr ""
|
|
8806
|
+
|
|
8771
8807
|
msgid "Upload content"
|
|
8772
8808
|
msgstr ""
|
|
8773
8809
|
|
|
@@ -9140,6 +9176,9 @@ msgstr ""
|
|
|
9140
9176
|
msgid "You currently have no content views to display"
|
|
9141
9177
|
msgstr ""
|
|
9142
9178
|
|
|
9179
|
+
msgid "You do not have permission to view this organization."
|
|
9180
|
+
msgstr ""
|
|
9181
|
+
|
|
9143
9182
|
msgid "You do not have permissions to delete %s"
|
|
9144
9183
|
msgstr "您沒有刪除 %s 的權限"
|
|
9145
9184
|
|
|
@@ -9572,6 +9611,12 @@ msgstr "已被使用"
|
|
|
9572
9611
|
msgid "has already been taken for a product in this organization."
|
|
9573
9612
|
msgstr "已經為此組織的產品使用。"
|
|
9574
9613
|
|
|
9614
|
+
msgid "has already been taken for this activation key"
|
|
9615
|
+
msgstr ""
|
|
9616
|
+
|
|
9617
|
+
msgid "has already been taken for this host"
|
|
9618
|
+
msgstr ""
|
|
9619
|
+
|
|
9575
9620
|
msgid "has already been taken for this product."
|
|
9576
9621
|
msgstr "已經為此產品使用。"
|
|
9577
9622
|
|
|
@@ -9659,6 +9704,9 @@ msgstr "環境的標籤"
|
|
|
9659
9704
|
msgid "label of the repository"
|
|
9660
9705
|
msgstr ""
|
|
9661
9706
|
|
|
9707
|
+
msgid "latest"
|
|
9708
|
+
msgstr ""
|
|
9709
|
+
|
|
9662
9710
|
msgid "limit to only repositories with this download policy"
|
|
9663
9711
|
msgstr ""
|
|
9664
9712
|
|
data/package.json
CHANGED
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
"test:current": "npx jest webpack --watch",
|
|
11
11
|
"format": "prettier --single-quote --trailing-comma es5 --write 'webpack/**/*.js'",
|
|
12
12
|
"build": "npm run format && npm run lint",
|
|
13
|
-
"lint": "npx eslint webpack/",
|
|
14
|
-
"lint:fix": "npx eslint --fix webpack/",
|
|
13
|
+
"lint": "npx eslint --rulesdir webpack/eslint-rules webpack/",
|
|
14
|
+
"lint:fix": "npx eslint --rulesdir webpack/eslint-rules --fix webpack/",
|
|
15
15
|
"lint:test": "npm run lint && npm test",
|
|
16
16
|
"coveralls": "cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js"
|
|
17
17
|
},
|
|
@@ -213,7 +213,7 @@ const hostsIndexColumnExtensions = [
|
|
|
213
213
|
}
|
|
214
214
|
>
|
|
215
215
|
<Button variant="plain" style={{ padding: 0, color: 'inherit' }} ouiaId="content-view-environments-button">
|
|
216
|
-
{truncate(contentViewEnvironments.map(
|
|
216
|
+
{truncate(contentViewEnvironments.map(cvEnv => cvEnv.label).join(', '), 35)}
|
|
217
217
|
</Button>
|
|
218
218
|
</Popover>
|
|
219
219
|
</Flex>
|
data/webpack/components/extensions/HostDetails/Cards/ContentViewDetailsCard/AssignHostCVModal.js
CHANGED
|
@@ -130,15 +130,15 @@ const AssignHostCVModal = ({
|
|
|
130
130
|
|
|
131
131
|
const handleSave = () => {
|
|
132
132
|
// Build array of content view environment labels for all assignments
|
|
133
|
-
// Use the existing
|
|
133
|
+
// Use the existing content view environment label if available (for existing assignments),
|
|
134
134
|
// otherwise construct it from env/cv labels (for new assignments)
|
|
135
|
-
const
|
|
135
|
+
const cvEnvLabels = assignments.map(buildContentViewEnvironmentLabel).filter(Boolean);
|
|
136
136
|
|
|
137
137
|
const requestBody = {
|
|
138
138
|
id: hostId,
|
|
139
139
|
host: {
|
|
140
140
|
content_facet_attributes: {
|
|
141
|
-
content_view_environments:
|
|
141
|
+
content_view_environments: cvEnvLabels,
|
|
142
142
|
},
|
|
143
143
|
},
|
|
144
144
|
};
|
|
@@ -103,7 +103,7 @@ ContentViewEnvironmentDisplay.propTypes = {
|
|
|
103
103
|
}).isRequired,
|
|
104
104
|
};
|
|
105
105
|
|
|
106
|
-
export const
|
|
106
|
+
export const CvEnvDetailsBareCard = ({
|
|
107
107
|
contentViewEnvironments, hostPermissions, permissions, dropdownItems,
|
|
108
108
|
isDropdownOpen, toggleKebab, openModal, allowMultipleContentViews,
|
|
109
109
|
}) => {
|
|
@@ -185,7 +185,7 @@ export const CVEDetailsBareCard = ({
|
|
|
185
185
|
);
|
|
186
186
|
};
|
|
187
187
|
|
|
188
|
-
|
|
188
|
+
CvEnvDetailsBareCard.propTypes = {
|
|
189
189
|
contentViewEnvironments: PropTypes.arrayOf(PropTypes.shape({
|
|
190
190
|
content_view: PropTypes.shape({
|
|
191
191
|
name: PropTypes.string,
|
|
@@ -212,7 +212,7 @@ CVEDetailsBareCard.propTypes = {
|
|
|
212
212
|
allowMultipleContentViews: PropTypes.bool,
|
|
213
213
|
};
|
|
214
214
|
|
|
215
|
-
|
|
215
|
+
CvEnvDetailsBareCard.defaultProps = {
|
|
216
216
|
contentViewEnvironments: [],
|
|
217
217
|
hostPermissions: {},
|
|
218
218
|
permissions: {},
|
|
@@ -258,12 +258,12 @@ export const ContentViewEnvironmentDetails = ({
|
|
|
258
258
|
const existingAssignments = contentViewEnvironments.map(env => ({
|
|
259
259
|
contentView: env.content_view,
|
|
260
260
|
environment: env.lifecycle_environment,
|
|
261
|
-
|
|
261
|
+
cvEnvLabel: env.label, // Use the content view environment label from the API
|
|
262
262
|
}));
|
|
263
263
|
|
|
264
264
|
return (
|
|
265
265
|
<GridItem rowSpan={1} md={6} lg={4} xl2={3} >
|
|
266
|
-
<
|
|
266
|
+
<CvEnvDetailsBareCard
|
|
267
267
|
isDropdownOpen={isDropdownOpen}
|
|
268
268
|
toggleKebab={toggleKebab}
|
|
269
269
|
contentViewEnvironments={contentViewEnvironments}
|
data/webpack/components/extensions/HostDetails/Cards/ContentViewDetailsCard/OrderableAssignments.js
CHANGED
|
@@ -49,7 +49,7 @@ const AssignmentShape = PropTypes.shape({
|
|
|
49
49
|
id: PropTypes.string.isRequired,
|
|
50
50
|
contentView: ContentViewShape,
|
|
51
51
|
environment: EnvironmentShape,
|
|
52
|
-
|
|
52
|
+
cvEnvLabel: PropTypes.string,
|
|
53
53
|
isExpanded: PropTypes.bool,
|
|
54
54
|
cvSelectOpen: PropTypes.bool,
|
|
55
55
|
selectedEnv: PropTypes.arrayOf(EnvironmentShape),
|
|
@@ -60,7 +60,7 @@ const AssignmentShape = PropTypes.shape({
|
|
|
60
60
|
const ExistingAssignmentShape = PropTypes.shape({
|
|
61
61
|
contentView: ContentViewShape,
|
|
62
62
|
environment: EnvironmentShape,
|
|
63
|
-
|
|
63
|
+
cvEnvLabel: PropTypes.string,
|
|
64
64
|
});
|
|
65
65
|
|
|
66
66
|
const AssignmentSection = ({
|
|
@@ -307,7 +307,7 @@ export const OrderableAssignmentList = ({
|
|
|
307
307
|
id: `existing-${index}`,
|
|
308
308
|
contentView: assignment.contentView,
|
|
309
309
|
environment: assignment.environment,
|
|
310
|
-
|
|
310
|
+
cvEnvLabel: assignment.cvEnvLabel, // Preserve the content view environment label from API
|
|
311
311
|
isExpanded: !shouldCollapseByDefault,
|
|
312
312
|
cvSelectOpen: false,
|
|
313
313
|
selectedEnv: assignment.environment ? [assignment.environment] : [],
|
|
@@ -419,7 +419,7 @@ export const OrderableAssignmentList = ({
|
|
|
419
419
|
selectedCV: null,
|
|
420
420
|
environment: selection[0] || null,
|
|
421
421
|
contentView: null,
|
|
422
|
-
|
|
422
|
+
cvEnvLabel: null, // Clear CVEnv label when environment changes
|
|
423
423
|
});
|
|
424
424
|
};
|
|
425
425
|
|
|
@@ -451,7 +451,7 @@ export const OrderableAssignmentList = ({
|
|
|
451
451
|
selectedCV: selection,
|
|
452
452
|
cvSelectOpen: false,
|
|
453
453
|
contentView: contentViewWithVersion,
|
|
454
|
-
|
|
454
|
+
cvEnvLabel: null, // Clear CVEnv label when CV changes
|
|
455
455
|
});
|
|
456
456
|
};
|
|
457
457
|
|
|
@@ -570,7 +570,7 @@ describe('AssignHostCVModal', () => {
|
|
|
570
570
|
{
|
|
571
571
|
contentView: { id: 2, name: 'cv_1', label: 'cv_1' },
|
|
572
572
|
environment: { id: 1, name: 'Library', label: 'Library' },
|
|
573
|
-
|
|
573
|
+
cvEnvLabel: 'Library/cv_1',
|
|
574
574
|
},
|
|
575
575
|
];
|
|
576
576
|
|
|
@@ -602,12 +602,12 @@ describe('AssignHostCVModal', () => {
|
|
|
602
602
|
{
|
|
603
603
|
contentView: { id: 2, name: 'cv_1', label: 'cv_1' },
|
|
604
604
|
environment: { id: 1, name: 'Library', label: 'Library' },
|
|
605
|
-
|
|
605
|
+
cvEnvLabel: 'Library/cv_1',
|
|
606
606
|
},
|
|
607
607
|
{
|
|
608
608
|
contentView: { id: 3, name: 'cv_2', label: 'cv_2' },
|
|
609
609
|
environment: { id: 2, name: 'dev', label: 'dev' },
|
|
610
|
-
|
|
610
|
+
cvEnvLabel: 'dev/cv_2',
|
|
611
611
|
},
|
|
612
612
|
];
|
|
613
613
|
|
|
@@ -654,7 +654,7 @@ describe('AssignHostCVModal', () => {
|
|
|
654
654
|
{
|
|
655
655
|
contentView: { id: 2, name: 'cv_1', label: 'cv_1' },
|
|
656
656
|
environment: { id: 1, name: 'Library', label: 'Library' },
|
|
657
|
-
|
|
657
|
+
cvEnvLabel: 'Library/cv_1',
|
|
658
658
|
},
|
|
659
659
|
];
|
|
660
660
|
|
|
@@ -706,12 +706,12 @@ describe('AssignHostCVModal', () => {
|
|
|
706
706
|
{
|
|
707
707
|
contentView: { id: 2, name: 'cv_1', label: 'cv_1' },
|
|
708
708
|
environment: { id: 1, name: 'Library', label: 'Library' },
|
|
709
|
-
|
|
709
|
+
cvEnvLabel: 'Library/cv_1',
|
|
710
710
|
},
|
|
711
711
|
{
|
|
712
712
|
contentView: { id: 3, name: 'cv_2', label: 'cv_2' },
|
|
713
713
|
environment: { id: 2, name: 'dev', label: 'dev' },
|
|
714
|
-
|
|
714
|
+
cvEnvLabel: 'dev/cv_2',
|
|
715
715
|
},
|
|
716
716
|
];
|
|
717
717
|
|
|
@@ -746,7 +746,7 @@ describe('AssignHostCVModal', () => {
|
|
|
746
746
|
{
|
|
747
747
|
contentView: { id: 2, name: 'cv_1', label: 'cv_1' },
|
|
748
748
|
environment: { id: 1, name: 'Library', label: 'Library' },
|
|
749
|
-
|
|
749
|
+
cvEnvLabel: 'Library/cv_1',
|
|
750
750
|
},
|
|
751
751
|
];
|
|
752
752
|
|
|
@@ -805,7 +805,7 @@ describe('AssignHostCVModal', () => {
|
|
|
805
805
|
jest.restoreAllMocks();
|
|
806
806
|
});
|
|
807
807
|
|
|
808
|
-
test('Save with existing assignment preserves
|
|
808
|
+
test('Save with existing assignment preserves cvEnvLabel', async () => {
|
|
809
809
|
const existingAssignments = [
|
|
810
810
|
{
|
|
811
811
|
contentView: {
|
|
@@ -821,7 +821,7 @@ describe('AssignHostCVModal', () => {
|
|
|
821
821
|
label: 'Library',
|
|
822
822
|
library: true,
|
|
823
823
|
},
|
|
824
|
-
|
|
824
|
+
cvEnvLabel: 'Library/cv_1', // Existing label from API
|
|
825
825
|
},
|
|
826
826
|
{
|
|
827
827
|
contentView: {
|
|
@@ -837,7 +837,7 @@ describe('AssignHostCVModal', () => {
|
|
|
837
837
|
label: 'Library',
|
|
838
838
|
library: true,
|
|
839
839
|
},
|
|
840
|
-
|
|
840
|
+
cvEnvLabel: 'Library', // Default CV in Library uses just env label
|
|
841
841
|
},
|
|
842
842
|
];
|
|
843
843
|
|
|
@@ -877,7 +877,7 @@ describe('AssignHostCVModal', () => {
|
|
|
877
877
|
userEvent.click(saveButton);
|
|
878
878
|
});
|
|
879
879
|
|
|
880
|
-
// Verify API was called with existing
|
|
880
|
+
// Verify API was called with existing cvEnvLabel preserved for first assignment
|
|
881
881
|
await patientlyWaitFor(() => {
|
|
882
882
|
expect(mockAssignHostCVEnvironments).toHaveBeenCalledWith(
|
|
883
883
|
expect.objectContaining({
|
|
@@ -1048,17 +1048,17 @@ describe('AssignHostCVModal', () => {
|
|
|
1048
1048
|
{
|
|
1049
1049
|
contentView: { id: 2, name: 'cv_1', label: 'cv_1' },
|
|
1050
1050
|
environment: { id: 1, name: 'Library', label: 'Library' },
|
|
1051
|
-
|
|
1051
|
+
cvEnvLabel: 'Library/cv_1',
|
|
1052
1052
|
},
|
|
1053
1053
|
{
|
|
1054
1054
|
contentView: { id: 3, name: 'composite_cv', label: 'composite_cv' },
|
|
1055
1055
|
environment: { id: 2, name: 'dev', label: 'dev' },
|
|
1056
|
-
|
|
1056
|
+
cvEnvLabel: 'dev/composite_cv',
|
|
1057
1057
|
},
|
|
1058
1058
|
{
|
|
1059
1059
|
contentView: { id: 4, name: 'cv_2', label: 'cv_2' },
|
|
1060
1060
|
environment: { id: 3, name: 'prod', label: 'prod' },
|
|
1061
|
-
|
|
1061
|
+
cvEnvLabel: 'prod/cv_2',
|
|
1062
1062
|
},
|
|
1063
1063
|
];
|
|
1064
1064
|
|
|
@@ -1126,7 +1126,7 @@ describe('AssignHostCVModal', () => {
|
|
|
1126
1126
|
});
|
|
1127
1127
|
});
|
|
1128
1128
|
|
|
1129
|
-
test('Changing CV in existing assignment builds new label instead of reusing old
|
|
1129
|
+
test('Changing CV in existing assignment builds new label instead of reusing old cvEnvLabel', async () => {
|
|
1130
1130
|
const existingAssignments = [
|
|
1131
1131
|
{
|
|
1132
1132
|
contentView: {
|
|
@@ -1142,7 +1142,7 @@ describe('AssignHostCVModal', () => {
|
|
|
1142
1142
|
label: 'Library',
|
|
1143
1143
|
library: true,
|
|
1144
1144
|
},
|
|
1145
|
-
|
|
1145
|
+
cvEnvLabel: 'Library/cv_1', // User currently has cv_1
|
|
1146
1146
|
},
|
|
1147
1147
|
];
|
|
1148
1148
|
|
|
@@ -1203,7 +1203,7 @@ describe('AssignHostCVModal', () => {
|
|
|
1203
1203
|
});
|
|
1204
1204
|
|
|
1205
1205
|
// Verify API was called with NEW label (Library/composite_cv),
|
|
1206
|
-
// NOT the old
|
|
1206
|
+
// NOT the old cvEnvLabel (Library/cv_1)
|
|
1207
1207
|
await patientlyWaitFor(() => {
|
|
1208
1208
|
expect(mockAssignHostCVEnvironments).toHaveBeenCalledWith(
|
|
1209
1209
|
expect.objectContaining({
|
data/webpack/components/extensions/Hosts/BulkActions/BulkAssignCVEnvsModal/BulkAssignCVEnvsModal.js
CHANGED
|
@@ -6,9 +6,6 @@ import { Modal, Button, TextContent, Text, TextVariants } from '@patternfly/reac
|
|
|
6
6
|
import { PlusCircleIcon } from '@patternfly/react-icons';
|
|
7
7
|
import { translate as __ } from 'foremanReact/common/I18n';
|
|
8
8
|
import { STATUS } from 'foremanReact/constants';
|
|
9
|
-
import { foremanUrl } from 'foremanReact/common/helpers';
|
|
10
|
-
import { APIActions } from 'foremanReact/redux/API';
|
|
11
|
-
import { HOSTS_API_PATH, API_REQUEST_KEY } from 'foremanReact/routes/Hosts/constants';
|
|
12
9
|
import { useAPI } from 'foremanReact/common/hooks/API/APIHooks';
|
|
13
10
|
import { selectAPIStatus } from 'foremanReact/redux/API/APISelectors';
|
|
14
11
|
import { ENVIRONMENT_PATHS_KEY } from '../../../../../scenes/ContentViews/components/EnvironmentPaths/EnvironmentPathConstants';
|
|
@@ -28,6 +25,7 @@ const BulkAssignCVEnvsModal = ({
|
|
|
28
25
|
orgId,
|
|
29
26
|
fetchBulkParams,
|
|
30
27
|
allowMultipleContentViews,
|
|
28
|
+
refreshTableData,
|
|
31
29
|
}) => {
|
|
32
30
|
const [assignments, setAssignments] = useState([]);
|
|
33
31
|
const dispatch = useDispatch();
|
|
@@ -42,11 +40,7 @@ const BulkAssignCVEnvsModal = ({
|
|
|
42
40
|
};
|
|
43
41
|
|
|
44
42
|
const handleSuccess = () => {
|
|
45
|
-
|
|
46
|
-
dispatch(APIActions.get({
|
|
47
|
-
key: API_REQUEST_KEY,
|
|
48
|
-
url: foremanUrl(HOSTS_API_PATH),
|
|
49
|
-
}));
|
|
43
|
+
refreshTableData();
|
|
50
44
|
handleModalClose();
|
|
51
45
|
};
|
|
52
46
|
|
|
@@ -178,12 +172,14 @@ BulkAssignCVEnvsModal.propTypes = {
|
|
|
178
172
|
orgId: PropTypes.number.isRequired,
|
|
179
173
|
fetchBulkParams: PropTypes.func.isRequired,
|
|
180
174
|
allowMultipleContentViews: PropTypes.bool,
|
|
175
|
+
refreshTableData: PropTypes.func,
|
|
181
176
|
};
|
|
182
177
|
|
|
183
178
|
BulkAssignCVEnvsModal.defaultProps = {
|
|
184
179
|
isOpen: false,
|
|
185
180
|
closeModal: () => {},
|
|
186
181
|
allowMultipleContentViews: true,
|
|
182
|
+
refreshTableData: () => {},
|
|
187
183
|
};
|
|
188
184
|
|
|
189
185
|
export default BulkAssignCVEnvsModal;
|
|
@@ -272,7 +272,7 @@ test('builds correct payload for multiple CVEs preserving order', () => {
|
|
|
272
272
|
},
|
|
273
273
|
};
|
|
274
274
|
|
|
275
|
-
// Verify request payload contains all
|
|
275
|
+
// Verify request payload contains all content view environment labels in correct order
|
|
276
276
|
expect(requestBody).toEqual({
|
|
277
277
|
content_view_environments: [
|
|
278
278
|
'library_label/test_cv_1',
|
|
@@ -6,7 +6,7 @@ import BulkAssignCVEnvsModal from './BulkAssignCVEnvsModal';
|
|
|
6
6
|
|
|
7
7
|
const BulkAssignCVEnvsModalScene = () => {
|
|
8
8
|
const orgId = useForemanOrganization()?.id;
|
|
9
|
-
const { selectedCount, fetchBulkParams } = useContext(ForemanActionsBarContext);
|
|
9
|
+
const { selectedCount, fetchBulkParams, refreshTableData } = useContext(ForemanActionsBarContext);
|
|
10
10
|
const { isOpen, close: closeModal } = useBulkModalOpen('bulk-assign-cves-modal');
|
|
11
11
|
const foremanContext = useForemanContext();
|
|
12
12
|
const allowMultipleContentViews =
|
|
@@ -24,6 +24,7 @@ const BulkAssignCVEnvsModalScene = () => {
|
|
|
24
24
|
closeModal={closeModal}
|
|
25
25
|
orgId={orgId}
|
|
26
26
|
allowMultipleContentViews={allowMultipleContentViews}
|
|
27
|
+
refreshTableData={refreshTableData}
|
|
27
28
|
/>
|
|
28
29
|
);
|
|
29
30
|
};
|
|
@@ -22,12 +22,7 @@ import { ExclamationTriangleIcon, PlusCircleIcon } from '@patternfly/react-icons
|
|
|
22
22
|
import { addToast } from 'foremanReact/components/ToastsList';
|
|
23
23
|
import { translate as __ } from 'foremanReact/common/I18n';
|
|
24
24
|
import { STATUS } from 'foremanReact/constants';
|
|
25
|
-
import {
|
|
26
|
-
import { APIActions } from 'foremanReact/redux/API';
|
|
27
|
-
import {
|
|
28
|
-
HOSTS_API_PATH,
|
|
29
|
-
API_REQUEST_KEY,
|
|
30
|
-
} from 'foremanReact/routes/Hosts/constants';
|
|
25
|
+
import { noop } from 'foremanReact/common/helpers';
|
|
31
26
|
import { useForemanOrganization } from 'foremanReact/Root/Context/ForemanContext';
|
|
32
27
|
import { useTableIndexAPIResponse, useSetParamsAndApiAndSearch } from 'foremanReact/components/PF4/TableIndexPage/Table/TableIndexHooks';
|
|
33
28
|
import { useBulkSelect } from 'foremanReact/components/PF4/TableIndexPage/Table/TableHooks';
|
|
@@ -46,6 +41,7 @@ const BulkChangeHostCollectionsModal = ({
|
|
|
46
41
|
closeModal,
|
|
47
42
|
fetchBulkParams,
|
|
48
43
|
selectedCount: selectedHostsCount,
|
|
44
|
+
refreshTableData,
|
|
49
45
|
}) => {
|
|
50
46
|
const dispatch = useDispatch();
|
|
51
47
|
const [addRadioChecked, setAddRadioChecked] = useState(true);
|
|
@@ -165,10 +161,7 @@ const BulkChangeHostCollectionsModal = ({
|
|
|
165
161
|
: __('Host collections updated');
|
|
166
162
|
|
|
167
163
|
dispatch(addToast({ type: 'success', message }));
|
|
168
|
-
|
|
169
|
-
key: API_REQUEST_KEY,
|
|
170
|
-
url: foremanUrl(HOSTS_API_PATH),
|
|
171
|
-
}));
|
|
164
|
+
refreshTableData();
|
|
172
165
|
handleModalClose();
|
|
173
166
|
};
|
|
174
167
|
|
|
@@ -417,6 +410,7 @@ BulkChangeHostCollectionsModal.propTypes = {
|
|
|
417
410
|
closeModal: PropTypes.func,
|
|
418
411
|
fetchBulkParams: PropTypes.func,
|
|
419
412
|
selectedCount: PropTypes.number,
|
|
413
|
+
refreshTableData: PropTypes.func,
|
|
420
414
|
};
|
|
421
415
|
|
|
422
416
|
BulkChangeHostCollectionsModal.defaultProps = {
|
|
@@ -424,6 +418,7 @@ BulkChangeHostCollectionsModal.defaultProps = {
|
|
|
424
418
|
closeModal: () => {},
|
|
425
419
|
fetchBulkParams: () => '',
|
|
426
420
|
selectedCount: 0,
|
|
421
|
+
refreshTableData: () => {},
|
|
427
422
|
};
|
|
428
423
|
|
|
429
424
|
export default BulkChangeHostCollectionsModal;
|