katello 4.9.2 → 4.10.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/README.md +4 -7
- data/app/assets/javascripts/katello/locale/bn/katello.js +8967 -1
- data/app/assets/javascripts/katello/locale/bn_IN/katello.js +8967 -0
- data/app/assets/javascripts/katello/locale/ca/katello.js +8967 -0
- data/app/assets/javascripts/katello/locale/cs/katello.js +8967 -1
- data/app/assets/javascripts/katello/locale/cs_CZ/katello.js +8969 -0
- data/app/assets/javascripts/katello/locale/de/katello.js +8991 -1
- data/app/assets/javascripts/katello/locale/de_AT/katello.js +8966 -0
- data/app/assets/javascripts/katello/locale/de_DE/katello.js +8967 -0
- data/app/assets/javascripts/katello/locale/el/katello.js +8967 -0
- data/app/assets/javascripts/katello/locale/en/katello.js +8967 -1
- data/app/assets/javascripts/katello/locale/en_GB/katello.js +8967 -0
- data/app/assets/javascripts/katello/locale/en_US/katello.js +8966 -0
- data/app/assets/javascripts/katello/locale/es/katello.js +8984 -1
- data/app/assets/javascripts/katello/locale/et_EE/katello.js +8966 -0
- data/app/assets/javascripts/katello/locale/fr/katello.js +9008 -1
- data/app/assets/javascripts/katello/locale/gl/katello.js +8967 -0
- data/app/assets/javascripts/katello/locale/gu/katello.js +8967 -1
- data/app/assets/javascripts/katello/locale/he_IL/katello.js +8967 -0
- data/app/assets/javascripts/katello/locale/hi/katello.js +8967 -1
- data/app/assets/javascripts/katello/locale/id/katello.js +8966 -0
- data/app/assets/javascripts/katello/locale/it/katello.js +8974 -1
- data/app/assets/javascripts/katello/locale/ja/katello.js +9004 -1
- data/app/assets/javascripts/katello/locale/ka/katello.js +8976 -1
- data/app/assets/javascripts/katello/locale/kn/katello.js +8967 -1
- data/app/assets/javascripts/katello/locale/ko/katello.js +8972 -1
- data/app/assets/javascripts/katello/locale/locale/katello.js +3070 -1
- data/app/assets/javascripts/katello/locale/ml_IN/katello.js +8966 -0
- data/app/assets/javascripts/katello/locale/mr/katello.js +8967 -1
- data/app/assets/javascripts/katello/locale/nl_NL/katello.js +8967 -0
- data/app/assets/javascripts/katello/locale/or/katello.js +8967 -1
- data/app/assets/javascripts/katello/locale/pa/katello.js +8967 -1
- data/app/assets/javascripts/katello/locale/pl/katello.js +8967 -0
- data/app/assets/javascripts/katello/locale/pl_PL/katello.js +8966 -0
- data/app/assets/javascripts/katello/locale/pt/katello.js +8967 -1
- data/app/assets/javascripts/katello/locale/pt_BR/katello.js +8984 -1
- data/app/assets/javascripts/katello/locale/ro/katello.js +8966 -0
- data/app/assets/javascripts/katello/locale/ro_RO/katello.js +8966 -0
- data/app/assets/javascripts/katello/locale/ru/katello.js +8973 -1
- data/app/assets/javascripts/katello/locale/sl/katello.js +8967 -0
- data/app/assets/javascripts/katello/locale/sv_SE/katello.js +8967 -0
- data/app/assets/javascripts/katello/locale/ta/katello.js +8967 -1
- data/app/assets/javascripts/katello/locale/ta_IN/katello.js +8967 -0
- data/app/assets/javascripts/katello/locale/te/katello.js +8967 -1
- data/app/assets/javascripts/katello/locale/tr/katello.js +8967 -0
- data/app/assets/javascripts/katello/locale/vi/katello.js +8966 -0
- data/app/assets/javascripts/katello/locale/vi_VN/katello.js +8966 -0
- data/app/assets/javascripts/katello/locale/zh/katello.js +8966 -0
- data/app/assets/javascripts/katello/locale/zh_CN/katello.js +9004 -1
- data/app/assets/javascripts/katello/locale/zh_TW/katello.js +8972 -1
- data/app/controllers/katello/api/rhsm/candlepin_proxies_controller.rb +1 -1
- data/app/controllers/katello/api/v2/alternate_content_sources_bulk_actions_controller.rb +22 -1
- data/app/controllers/katello/api/v2/api_controller.rb +0 -15
- data/app/controllers/katello/api/v2/content_view_versions_controller.rb +13 -4
- data/app/controllers/katello/api/v2/host_errata_controller.rb +0 -12
- data/app/controllers/katello/api/v2/host_packages_controller.rb +0 -55
- data/app/controllers/katello/api/v2/hosts_bulk_actions_controller.rb +0 -77
- data/app/controllers/katello/api/v2/organizations_controller.rb +2 -1
- data/app/controllers/katello/api/v2/repositories_controller.rb +6 -10
- data/app/controllers/katello/api/v2/sync_controller.rb +0 -1
- data/app/controllers/katello/concerns/api/api_controller.rb +0 -10
- data/app/controllers/katello/concerns/hosts_controller_extensions.rb +1 -1
- data/app/lib/actions/katello/alternate_content_source/update.rb +1 -1
- data/app/lib/actions/katello/content_view/capsule_sync.rb +1 -1
- data/app/lib/actions/katello/content_view/incremental_updates.rb +3 -9
- data/app/lib/actions/katello/content_view_version/republish_repositories.rb +8 -2
- data/app/lib/actions/katello/repository/capsule_sync.rb +1 -1
- data/app/lib/actions/katello/repository/update_metadata_sync.rb +1 -1
- data/app/lib/katello/concerns/base_template_scope_extensions.rb +4 -9
- data/app/lib/katello/resources/cdn.rb +4 -0
- data/app/lib/katello/validators/alternate_content_source_products_validator.rb +1 -1
- data/app/models/katello/cdn_configuration.rb +4 -0
- data/app/models/katello/concerns/host_managed_extensions.rb +2 -1
- data/app/models/katello/content_view.rb +5 -1
- data/app/models/katello/content_view_component.rb +1 -1
- data/app/models/katello/content_view_version.rb +4 -0
- data/app/models/katello/host/content_facet.rb +4 -5
- data/app/models/katello/ping.rb +0 -19
- data/app/models/katello/repository.rb +5 -1
- data/app/models/katello/root_repository.rb +2 -8
- data/app/services/katello/applicability/applicable_content_helper.rb +2 -2
- data/app/services/katello/registration_manager.rb +2 -12
- data/app/views/foreman/job_templates/configure_host_for_new_content_source.erb +25 -0
- data/app/views/katello/api/v2/capsule_content/sync_status.json.rabl +1 -1
- data/app/views/katello/api/v2/content_facet/show.json.rabl +0 -12
- data/app/views/katello/api/v2/content_view_components/show.json.rabl +4 -1
- data/app/views/katello/api/v2/content_views/base.json.rabl +6 -2
- data/app/views/katello/api/v2/repositories/show.json.rabl +0 -1
- data/config/initializers/monkeys.rb +1 -0
- data/config/katello.yaml.example +0 -4
- data/config/routes/api/v2.rb +3 -0
- data/config/routes/overrides.rb +0 -11
- data/db/migrate/20230609155411_add_custom_cdn_auth_enabled_to_katello_cdn_configurations.rb +5 -0
- data/db/migrate/20230710190626_remove_relative_path_limit.rb +5 -0
- data/db/migrate/20230717150442_change_change_content_source_job_template_name.rb +20 -0
- data/db/migrate/20230828143236_remove_katello_agent_dispatch_history.rb +15 -0
- data/db/seeds.d/111-upgrade_tasks.rb +1 -2
- data/engines/bastion/app/views/bastion/layouts/assets.html.erb +1 -1
- data/engines/bastion_katello/README.md +2 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/activation-keys.controller.js +4 -2
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/views/activation-key-associations-content-hosts.html +2 -2
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/views/activation-keys.html +8 -3
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/bulk/content-hosts-bulk-errata-modal.controller.js +3 -44
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/bulk/content-hosts-bulk-module-streams-modal.controller.js +0 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/bulk/content-hosts-bulk-packages-modal.controller.js +1 -65
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/bulk/views/content-hosts-bulk-errata-modal.html +1 -3
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/bulk/views/content-hosts-bulk-packages-modal.html +1 -6
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/content-host-debs-applicable.controller.js +1 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/content-host-errata.controller.js +1 -16
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/content-host-module-streams.controller.js +0 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/content-host-packages-actions.controller.js +0 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/content-host-packages-applicable.controller.js +2 -11
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/content-host-packages-installed.controller.js +0 -2
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/content-host-packages.controller.js +1 -39
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/views/content-host-debs-applicable.html +2 -2
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/views/content-host-errata.html +1 -2
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/views/content-host-packages-actions.html +2 -3
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/views/content-host-packages-applicable.html +4 -5
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/views/content-host-packages-installed.html +1 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content-hosts.controller.js +2 -4
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/content-host-details.controller.js +2 -4
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/views/content-host-details.html +0 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/views/content-host-info.html +0 -14
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/views/content-hosts.html +0 -4
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/errata/apply-errata.controller.js +1 -2
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/files/details/file-content-views.controller.js +2 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/files/details/views/file-content-views.html +1 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/bastion_katello.pot +235 -521
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/details/views/repository-manage-packages.html +13 -2
- data/engines/bastion_katello/lib/bastion_katello/engine.rb +1 -3
- data/lib/katello/engine.rb +0 -18
- data/lib/katello/permission_creator.rb +1 -1
- data/lib/katello/plugin.rb +0 -25
- data/lib/katello/version.rb +1 -1
- data/lib/monkeys/remove_hidden_distribution.rb +383 -0
- data/locale/action_names.rb +3 -1
- data/locale/bn/katello.po +130 -39
- data/locale/bn_IN/katello.po +130 -39
- data/locale/ca/katello.po +130 -39
- data/locale/cs/katello.po +130 -39
- data/locale/cs_CZ/katello.po +130 -39
- data/locale/de/LC_MESSAGES/katello.mo +0 -0
- data/locale/de/katello.po +134 -43
- data/locale/de_AT/katello.po +130 -39
- data/locale/de_DE/katello.po +130 -39
- data/locale/el/katello.po +130 -39
- data/locale/en/katello.po +130 -39
- data/locale/en_GB/katello.po +130 -39
- data/locale/en_US/katello.po +130 -39
- data/locale/es/LC_MESSAGES/katello.mo +0 -0
- data/locale/es/katello.po +133 -42
- data/locale/et_EE/katello.po +130 -39
- data/locale/fr/LC_MESSAGES/katello.mo +0 -0
- data/locale/fr/katello.po +138 -47
- data/locale/gl/katello.po +130 -39
- data/locale/gu/katello.po +130 -39
- data/locale/he_IL/katello.po +130 -39
- data/locale/hi/katello.po +130 -39
- data/locale/id/katello.po +130 -39
- data/locale/it/LC_MESSAGES/katello.mo +0 -0
- data/locale/it/katello.po +131 -40
- data/locale/ja/LC_MESSAGES/katello.mo +0 -0
- data/locale/ja/katello.po +138 -47
- data/locale/ka/LC_MESSAGES/katello.mo +0 -0
- data/locale/ka/katello.po +131 -40
- data/locale/katello.pot +805 -642
- data/locale/kn/katello.po +130 -39
- data/locale/ko/LC_MESSAGES/katello.mo +0 -0
- data/locale/ko/katello.po +131 -40
- data/locale/ml_IN/katello.po +130 -39
- data/locale/mr/katello.po +130 -39
- data/locale/nl_NL/katello.po +130 -39
- data/locale/or/katello.po +130 -39
- data/locale/pa/katello.po +130 -39
- data/locale/pl/katello.po +130 -39
- data/locale/pl_PL/katello.po +130 -39
- data/locale/pt/katello.po +130 -39
- data/locale/pt_BR/LC_MESSAGES/katello.mo +0 -0
- data/locale/pt_BR/katello.po +133 -42
- data/locale/ro/katello.po +130 -39
- data/locale/ro_RO/katello.po +130 -39
- data/locale/ru/LC_MESSAGES/katello.mo +0 -0
- data/locale/ru/katello.po +131 -40
- data/locale/sl/katello.po +130 -39
- data/locale/sv_SE/katello.po +130 -39
- data/locale/ta/katello.po +130 -39
- data/locale/ta_IN/katello.po +130 -39
- data/locale/te/katello.po +130 -39
- data/locale/tr/katello.po +130 -39
- data/locale/vi/katello.po +130 -39
- data/locale/vi_VN/katello.po +130 -39
- data/locale/zh/katello.po +130 -39
- data/locale/zh_CN/LC_MESSAGES/katello.mo +0 -0
- data/locale/zh_CN/katello.po +138 -47
- data/locale/zh_TW/LC_MESSAGES/katello.mo +0 -0
- data/locale/zh_TW/katello.po +131 -40
- data/webpack/components/extensions/HostDetails/Cards/HostCollectionsCard/HostCollectionsModal.js +0 -5
- data/webpack/components/extensions/HostDetails/Tabs/ContentTab/index.js +9 -3
- data/webpack/components/extensions/HostDetails/Tabs/ErrataTab/ErrataTab.js +7 -58
- data/webpack/components/extensions/HostDetails/Tabs/ErrataTab/HostErrataActions.js +2 -11
- data/webpack/components/extensions/HostDetails/Tabs/PackagesTab/HostPackagesActions.js +1 -40
- data/webpack/components/extensions/HostDetails/Tabs/PackagesTab/HostPackagesConstants.js +0 -3
- data/webpack/components/extensions/HostDetails/Tabs/PackagesTab/PackageInstallModal.js +5 -40
- data/webpack/components/extensions/HostDetails/Tabs/PackagesTab/PackagesTab.js +6 -65
- data/webpack/components/extensions/HostDetails/Tabs/RepositorySetsTab/RepositorySetsTab.js +5 -4
- data/webpack/components/extensions/HostDetails/Tabs/__tests__/errataTab.test.js +0 -212
- data/webpack/components/extensions/HostDetails/Tabs/__tests__/packageInstallModal.test.js +2 -157
- data/webpack/components/extensions/HostDetails/hostDetailsHelpers.js +0 -20
- data/webpack/containers/Application/config.js +5 -0
- data/webpack/scenes/ActivationKeys/Details/ActivationKeyActions.js +31 -0
- data/webpack/scenes/ActivationKeys/Details/ActivationKeyConstants.js +3 -0
- data/webpack/scenes/ActivationKeys/Details/ActivationKeyDetails.js +127 -0
- data/webpack/scenes/ActivationKeys/Details/ActivationKeyDetails.scss +37 -0
- data/webpack/scenes/ActivationKeys/Details/ActivationKeyDetailsSelectors.js +16 -0
- data/webpack/scenes/ActivationKeys/Details/__tests__/activationKeyDetails.test.js +117 -0
- data/webpack/scenes/ActivationKeys/Details/components/DeleteMenu.js +77 -0
- data/webpack/scenes/ActivationKeys/Details/components/DeleteModal.js +63 -0
- data/webpack/scenes/ActivationKeys/Details/components/EditModal.js +199 -0
- data/webpack/scenes/ActivationKeys/Details/index.js +3 -0
- data/webpack/scenes/AlternateContentSources/Details/EditModals/ACSEditCredentials.js +10 -5
- data/webpack/scenes/AlternateContentSources/Details/EditModals/ACSEditProducts.js +8 -3
- data/webpack/scenes/AlternateContentSources/Details/EditModals/ACSEditSmartProxies.js +8 -3
- data/webpack/scenes/AlternateContentSources/Details/__tests__/ACSEdits.test.js +2 -2
- data/webpack/scenes/AlternateContentSources/MainTable/ACSTable.js +1 -1
- data/webpack/scenes/ContentViews/Details/ComponentContentViews/ComponentContentViewAddModal.js +37 -29
- data/webpack/scenes/ContentViews/Details/ComponentContentViews/ComponentContentViewBulkAddModal.js +53 -37
- data/webpack/scenes/ContentViews/Details/ComponentContentViews/ContentViewComponents.js +7 -0
- data/webpack/scenes/ContentViews/Details/ComponentContentViews/__tests__/contentViewComponents.fixtures.json +15 -6
- data/webpack/scenes/ContentViews/Details/ComponentContentViews/__tests__/contentViewComponents.test.js +6 -5
- data/webpack/scenes/ContentViews/Details/ComponentContentViews/__tests__/publishedContentViewDetails.fixtures.json +43 -197
- data/webpack/scenes/ContentViews/Details/Filters/CVErrataDateFilterContent.js +1 -1
- data/webpack/scenes/ContentViews/Details/Filters/Rules/Package/AddEditPackageRuleModal.js +1 -1
- data/webpack/scenes/ContentViews/Details/Promote/ContentViewVersionPromote.js +2 -2
- data/webpack/scenes/ContentViews/Details/Versions/__tests__/contentViewVersions.fixtures.json +0 -98
- data/webpack/scenes/ContentViews/Details/Versions/__tests__/contentViewVersions.test.js +103 -1
- data/webpack/scenes/ContentViews/Details/Versions/__tests__/contentViewVersionsLatestEnvironment.fixtures.json +634 -0
- data/webpack/scenes/ContentViews/components/ContentViewSelect/helpers.js +1 -1
- data/webpack/scenes/Hosts/ChangeContentSource/actions.js +14 -12
- data/webpack/scenes/Hosts/ChangeContentSource/components/ContentSourceForm.js +45 -6
- data/webpack/scenes/Hosts/ChangeContentSource/components/ContentSourceTemplate.js +42 -7
- data/webpack/scenes/Hosts/ChangeContentSource/index.js +37 -10
- data/webpack/scenes/Hosts/ChangeContentSource/styles.scss +5 -0
- data/webpack/scenes/RedHatRepositories/index.scss +1 -1
- data/webpack/scenes/Subscriptions/Manifest/ManageManifestModal.js +2 -2
- metadata +85 -81
- data/app/lib/actions/katello/agent/dispatch_history_presenter.rb +0 -64
- data/app/lib/actions/katello/agent_action.rb +0 -120
- data/app/lib/actions/katello/bulk_agent_action.rb +0 -37
- data/app/lib/actions/katello/host/erratum/applicable_errata_install.rb +0 -44
- data/app/lib/actions/katello/host/erratum/install.rb +0 -38
- data/app/lib/actions/katello/host/package/install.rb +0 -34
- data/app/lib/actions/katello/host/package/remove.rb +0 -48
- data/app/lib/actions/katello/host/package/update.rb +0 -42
- data/app/lib/actions/katello/host/package_group/install.rb +0 -30
- data/app/lib/actions/katello/host/package_group/remove.rb +0 -30
- data/app/lib/katello/agent/base_message.rb +0 -41
- data/app/lib/katello/agent/client_message_handler.rb +0 -69
- data/app/lib/katello/agent/connection.rb +0 -38
- data/app/lib/katello/agent/install_errata_message.rb +0 -25
- data/app/lib/katello/agent/install_package_group_message.rb +0 -25
- data/app/lib/katello/agent/install_package_message.rb +0 -28
- data/app/lib/katello/agent/remove_package_group_message.rb +0 -25
- data/app/lib/katello/agent/remove_package_message.rb +0 -28
- data/app/lib/katello/agent/update_package_message.rb +0 -33
- data/app/lib/katello/event_daemon/services/agent_event_receiver.rb +0 -59
- data/app/lib/katello/qpid/connection.rb +0 -149
- data/app/lib/katello/util/default_enablement_migrator.rb +0 -183
- data/app/models/katello/agent/dispatch_history.rb +0 -19
- data/app/models/katello/events/delete_host_agent_queue.rb +0 -19
- data/app/services/katello/agent/dispatcher.rb +0 -60
- data/app/views/foreman/job_templates/change_content_source.erb +0 -18
- data/app/views/katello/api/v2/sync/index.json.rabl +0 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/common/views/katello-agent-notice.html +0 -8
- data/lib/katello/tasks/upgrades/4.9/update_custom_products_enablement.rake +0 -13
- data/webpack/components/extensions/HostDetails/common/KatelloAgentDeprecationAlert.js +0 -23
@@ -0,0 +1,634 @@
|
|
1
|
+
{
|
2
|
+
"total": 4,
|
3
|
+
"subtotal": 4,
|
4
|
+
"page": "1",
|
5
|
+
"per_page": "20",
|
6
|
+
"error": null,
|
7
|
+
"search": null,
|
8
|
+
"sort": {
|
9
|
+
"by": "version",
|
10
|
+
"order": "desc"
|
11
|
+
},
|
12
|
+
"results": [
|
13
|
+
{
|
14
|
+
"version": "4.0",
|
15
|
+
"major": 4,
|
16
|
+
"minor": 0,
|
17
|
+
"composite_content_view_ids": [
|
18
|
+
5
|
19
|
+
],
|
20
|
+
"published_in_composite_content_view_ids": [],
|
21
|
+
"content_view_id": 3,
|
22
|
+
"default": false,
|
23
|
+
"description": "Dummy text",
|
24
|
+
"id": 11,
|
25
|
+
"name": "component1 4.0",
|
26
|
+
"created_at": "2021-04-15 11:14:42 -0400",
|
27
|
+
"updated_at": "2021-04-15 11:14:52 -0400",
|
28
|
+
"content_view": {
|
29
|
+
"id": 3,
|
30
|
+
"name": "component1",
|
31
|
+
"label": "component1"
|
32
|
+
},
|
33
|
+
"composite_content_views": [
|
34
|
+
{
|
35
|
+
"id": 5,
|
36
|
+
"name": "composite1",
|
37
|
+
"label": "composite1"
|
38
|
+
}
|
39
|
+
],
|
40
|
+
"composite_content_view_versions": [],
|
41
|
+
"published_in_composite_content_views": [],
|
42
|
+
"environments": [
|
43
|
+
{
|
44
|
+
"id": 1,
|
45
|
+
"name": "Library",
|
46
|
+
"label": "Library",
|
47
|
+
"publish_date": "5 days",
|
48
|
+
"permissions": {
|
49
|
+
"readable": true,
|
50
|
+
"promotable_or_removable": true,
|
51
|
+
"all_hosts_editable": true,
|
52
|
+
"all_keys_editable": true
|
53
|
+
},
|
54
|
+
"host_count": 0,
|
55
|
+
"activation_key_count": 0
|
56
|
+
},
|
57
|
+
{
|
58
|
+
"id": 3,
|
59
|
+
"name": "test",
|
60
|
+
"label": "test",
|
61
|
+
"publish_date": "4 days",
|
62
|
+
"permissions": {
|
63
|
+
"readable": true,
|
64
|
+
"promotable_or_removable": true,
|
65
|
+
"all_hosts_editable": true,
|
66
|
+
"all_keys_editable": true
|
67
|
+
},
|
68
|
+
"host_count": 0,
|
69
|
+
"activation_key_count": 0
|
70
|
+
}
|
71
|
+
],
|
72
|
+
"repositories": [
|
73
|
+
{
|
74
|
+
"id": 25,
|
75
|
+
"name": "test",
|
76
|
+
"label": "test",
|
77
|
+
"content_type": "yum",
|
78
|
+
"library_instance_id": 1
|
79
|
+
},
|
80
|
+
{
|
81
|
+
"id": 27,
|
82
|
+
"name": "fileRepo1",
|
83
|
+
"label": "fileRepo1",
|
84
|
+
"content_type": "file",
|
85
|
+
"library_instance_id": 17
|
86
|
+
},
|
87
|
+
{
|
88
|
+
"id": 26,
|
89
|
+
"name": "fileRepo",
|
90
|
+
"label": "fileRepo",
|
91
|
+
"content_type": "file",
|
92
|
+
"library_instance_id": 16
|
93
|
+
}
|
94
|
+
],
|
95
|
+
"last_event": {
|
96
|
+
"user": "admin",
|
97
|
+
"status": "successful",
|
98
|
+
"description": null,
|
99
|
+
"action": "promotion",
|
100
|
+
"created_at": "2021-04-16 10:43:20 -0400",
|
101
|
+
"updated_at": "2021-04-16 10:43:26 -0400",
|
102
|
+
"environment": {
|
103
|
+
"id": 8,
|
104
|
+
"name": "test3"
|
105
|
+
},
|
106
|
+
"task": {
|
107
|
+
"id": "812f23fa-c11e-446b-8ad5-24d7b03a6c55",
|
108
|
+
"label": "Actions::Katello::ContentView::Promote",
|
109
|
+
"pending": false,
|
110
|
+
"action": "Promote content view 'component1'; organization 'Default Organization'",
|
111
|
+
"username": "admin",
|
112
|
+
"started_at": "2021-04-16 10:43:20 -0400",
|
113
|
+
"ended_at": "2021-04-16 10:43:27 -0400",
|
114
|
+
"state": "stopped",
|
115
|
+
"result": "success",
|
116
|
+
"progress": 1,
|
117
|
+
"input": {
|
118
|
+
"content_view": {
|
119
|
+
"id": 3,
|
120
|
+
"name": "component1",
|
121
|
+
"label": "component1"
|
122
|
+
},
|
123
|
+
"organization": {
|
124
|
+
"id": 1,
|
125
|
+
"name": "Default Organization",
|
126
|
+
"label": "Default_Organization"
|
127
|
+
},
|
128
|
+
"environments": [
|
129
|
+
"test3"
|
130
|
+
],
|
131
|
+
"services_checked": [
|
132
|
+
"candlepin",
|
133
|
+
"candlepin_auth",
|
134
|
+
"pulp3"
|
135
|
+
],
|
136
|
+
"locale": "en",
|
137
|
+
"current_request_id": "1da0d6da-a42a-4ed5-a360-b77069842861",
|
138
|
+
"current_timezone": "America/New_York",
|
139
|
+
"current_organization_id": 1,
|
140
|
+
"current_location_id": 2,
|
141
|
+
"current_user_id": 4
|
142
|
+
},
|
143
|
+
"output": {},
|
144
|
+
"humanized": {
|
145
|
+
"action": "Promote",
|
146
|
+
"input": [
|
147
|
+
[
|
148
|
+
"content_view",
|
149
|
+
{
|
150
|
+
"text": "content view 'component1'",
|
151
|
+
"link": "/content_views/3/versions"
|
152
|
+
}
|
153
|
+
],
|
154
|
+
[
|
155
|
+
"organization",
|
156
|
+
{
|
157
|
+
"text": "organization 'Default Organization'",
|
158
|
+
"link": "/organizations/1/edit"
|
159
|
+
}
|
160
|
+
]
|
161
|
+
],
|
162
|
+
"output": "",
|
163
|
+
"errors": []
|
164
|
+
},
|
165
|
+
"cli_example": null,
|
166
|
+
"start_at": "2021-04-16 10:43:20 -0400",
|
167
|
+
"available_actions": {
|
168
|
+
"cancellable": false,
|
169
|
+
"resumable": false
|
170
|
+
}
|
171
|
+
},
|
172
|
+
"version": "4.0",
|
173
|
+
"publish": false,
|
174
|
+
"version_id": 11,
|
175
|
+
"triggered_by": null,
|
176
|
+
"triggered_by_id": null
|
177
|
+
},
|
178
|
+
"active_history": [],
|
179
|
+
"ostree_count": 0,
|
180
|
+
"ansible_collection_count": 0,
|
181
|
+
"deb_count": 1,
|
182
|
+
"docker_manifest_count": 0,
|
183
|
+
"docker_manifest_list_count": 0,
|
184
|
+
"docker_tag_count": 0,
|
185
|
+
"file_count": 3,
|
186
|
+
"rpm_count": 8,
|
187
|
+
"modulemd_count": 0,
|
188
|
+
"erratum_count": 15,
|
189
|
+
"package_group_count": 0,
|
190
|
+
"srpm_count": 0,
|
191
|
+
"module_stream_count": 0,
|
192
|
+
"package_count": 8,
|
193
|
+
"ostree_ref_count": 2,
|
194
|
+
"python_package_count": 80,
|
195
|
+
"errata_counts": {
|
196
|
+
"security": 5,
|
197
|
+
"bugfix": 3,
|
198
|
+
"enhancement": 7,
|
199
|
+
"total": 15
|
200
|
+
},
|
201
|
+
"permissions": {
|
202
|
+
"deletable": true
|
203
|
+
},
|
204
|
+
"filters_applied": true
|
205
|
+
},
|
206
|
+
{
|
207
|
+
"version": "3.0",
|
208
|
+
"major": 3,
|
209
|
+
"minor": 0,
|
210
|
+
"composite_content_view_ids": [],
|
211
|
+
"published_in_composite_content_view_ids": [],
|
212
|
+
"content_view_id": 3,
|
213
|
+
"default": false,
|
214
|
+
"description": null,
|
215
|
+
"id": 10,
|
216
|
+
"name": "component1 3.0",
|
217
|
+
"created_at": "2021-04-12 13:23:47 -0400",
|
218
|
+
"updated_at": "2021-04-12 13:23:57 -0400",
|
219
|
+
"content_view": {
|
220
|
+
"id": 3,
|
221
|
+
"name": "component1",
|
222
|
+
"label": "component1"
|
223
|
+
},
|
224
|
+
"composite_content_views": [],
|
225
|
+
"composite_content_view_versions": [],
|
226
|
+
"published_in_composite_content_views": [],
|
227
|
+
"environments": [],
|
228
|
+
"repositories": [
|
229
|
+
{
|
230
|
+
"id": 18,
|
231
|
+
"name": "test",
|
232
|
+
"label": "test",
|
233
|
+
"content_type": "yum",
|
234
|
+
"library_instance_id": 1
|
235
|
+
},
|
236
|
+
{
|
237
|
+
"id": 19,
|
238
|
+
"name": "fileRepo",
|
239
|
+
"label": "fileRepo",
|
240
|
+
"content_type": "file",
|
241
|
+
"library_instance_id": 16
|
242
|
+
},
|
243
|
+
{
|
244
|
+
"id": 20,
|
245
|
+
"name": "fileRepo1",
|
246
|
+
"label": "fileRepo1",
|
247
|
+
"content_type": "file",
|
248
|
+
"library_instance_id": 17
|
249
|
+
}
|
250
|
+
],
|
251
|
+
"last_event": {
|
252
|
+
"user": "admin",
|
253
|
+
"status": "successful",
|
254
|
+
"description": null,
|
255
|
+
"action": "promotion",
|
256
|
+
"created_at": "2021-04-14 11:34:03 -0400",
|
257
|
+
"updated_at": "2021-04-14 11:34:17 -0400",
|
258
|
+
"environment": {
|
259
|
+
"id": 2,
|
260
|
+
"name": "dev"
|
261
|
+
},
|
262
|
+
"task": {
|
263
|
+
"id": "8f213c52-1a58-4ea0-8c49-7a135fa812c6",
|
264
|
+
"label": "Actions::Katello::ContentView::Promote",
|
265
|
+
"pending": false,
|
266
|
+
"action": "Promote content view 'component1'; organization 'Default Organization'",
|
267
|
+
"username": "admin",
|
268
|
+
"started_at": "2021-04-14 11:34:02 -0400",
|
269
|
+
"ended_at": "2021-04-14 11:34:17 -0400",
|
270
|
+
"state": "stopped",
|
271
|
+
"result": "success",
|
272
|
+
"progress": 1,
|
273
|
+
"input": {
|
274
|
+
"content_view": {
|
275
|
+
"id": 3,
|
276
|
+
"name": "component1",
|
277
|
+
"label": "component1"
|
278
|
+
},
|
279
|
+
"organization": {
|
280
|
+
"id": 1,
|
281
|
+
"name": "Default Organization",
|
282
|
+
"label": "Default_Organization"
|
283
|
+
},
|
284
|
+
"environments": [
|
285
|
+
"dev"
|
286
|
+
],
|
287
|
+
"services_checked": [
|
288
|
+
"pulp3",
|
289
|
+
"candlepin",
|
290
|
+
"candlepin_auth"
|
291
|
+
],
|
292
|
+
"locale": "en",
|
293
|
+
"current_request_id": "a907fb78-8849-49fa-98d8-f35fa2bd7123",
|
294
|
+
"current_timezone": "America/New_York",
|
295
|
+
"current_organization_id": 1,
|
296
|
+
"current_location_id": 2,
|
297
|
+
"current_user_id": 4
|
298
|
+
},
|
299
|
+
"output": {},
|
300
|
+
"humanized": {
|
301
|
+
"action": "Promote",
|
302
|
+
"input": [
|
303
|
+
[
|
304
|
+
"content_view",
|
305
|
+
{
|
306
|
+
"text": "content view 'component1'",
|
307
|
+
"link": "/content_views/3/versions"
|
308
|
+
}
|
309
|
+
],
|
310
|
+
[
|
311
|
+
"organization",
|
312
|
+
{
|
313
|
+
"text": "organization 'Default Organization'",
|
314
|
+
"link": "/organizations/1/edit"
|
315
|
+
}
|
316
|
+
]
|
317
|
+
],
|
318
|
+
"output": "",
|
319
|
+
"errors": []
|
320
|
+
},
|
321
|
+
"cli_example": null,
|
322
|
+
"start_at": "2021-04-14 11:34:02 -0400",
|
323
|
+
"available_actions": {
|
324
|
+
"cancellable": false,
|
325
|
+
"resumable": false
|
326
|
+
}
|
327
|
+
},
|
328
|
+
"version": "3.0",
|
329
|
+
"publish": false,
|
330
|
+
"version_id": 10,
|
331
|
+
"triggered_by": null,
|
332
|
+
"triggered_by_id": null
|
333
|
+
},
|
334
|
+
"active_history": [],
|
335
|
+
"ostree_count": 0,
|
336
|
+
"ansible_collection_count": 0,
|
337
|
+
"deb_count": 0,
|
338
|
+
"docker_manifest_count": 0,
|
339
|
+
"docker_manifest_list_count": 0,
|
340
|
+
"docker_tag_count": 0,
|
341
|
+
"file_count": 0,
|
342
|
+
"rpm_count": 8,
|
343
|
+
"modulemd_count": 0,
|
344
|
+
"erratum_count": 2,
|
345
|
+
"package_group_count": 0,
|
346
|
+
"srpm_count": 0,
|
347
|
+
"module_stream_count": 0,
|
348
|
+
"package_count": 8,
|
349
|
+
"errata_counts": {
|
350
|
+
"security": null,
|
351
|
+
"bugfix": 0,
|
352
|
+
"enhancement": 0,
|
353
|
+
"total": 2
|
354
|
+
},
|
355
|
+
"permissions": {
|
356
|
+
"deletable": true
|
357
|
+
},
|
358
|
+
"filters_applied": true
|
359
|
+
},
|
360
|
+
{
|
361
|
+
"version": "2.0",
|
362
|
+
"major": 2,
|
363
|
+
"minor": 0,
|
364
|
+
"composite_content_view_ids": [],
|
365
|
+
"published_in_composite_content_view_ids": [],
|
366
|
+
"content_view_id": 3,
|
367
|
+
"default": false,
|
368
|
+
"description": null,
|
369
|
+
"id": 9,
|
370
|
+
"name": "component1 2.0",
|
371
|
+
"created_at": "2021-04-12 11:03:14 -0400",
|
372
|
+
"updated_at": "2021-04-12 11:03:20 -0400",
|
373
|
+
"content_view": {
|
374
|
+
"id": 3,
|
375
|
+
"name": "component1",
|
376
|
+
"label": "component1"
|
377
|
+
},
|
378
|
+
"composite_content_views": [],
|
379
|
+
"composite_content_view_versions": [],
|
380
|
+
"published_in_composite_content_views": [],
|
381
|
+
"environments": [],
|
382
|
+
"repositories": [
|
383
|
+
{
|
384
|
+
"id": 13,
|
385
|
+
"name": "test",
|
386
|
+
"label": "test",
|
387
|
+
"content_type": "yum",
|
388
|
+
"library_instance_id": 1
|
389
|
+
}
|
390
|
+
],
|
391
|
+
"last_event": {
|
392
|
+
"user": "admin",
|
393
|
+
"status": "successful",
|
394
|
+
"description": null,
|
395
|
+
"action": "promotion",
|
396
|
+
"created_at": "2021-04-12 13:14:40 -0400",
|
397
|
+
"updated_at": "2021-04-12 13:14:43 -0400",
|
398
|
+
"environment": {
|
399
|
+
"id": 2,
|
400
|
+
"name": "dev"
|
401
|
+
},
|
402
|
+
"task": {
|
403
|
+
"id": "8757fa9b-3a2b-44dd-95a4-7561cfcf738f",
|
404
|
+
"label": "Actions::Katello::ContentView::Promote",
|
405
|
+
"pending": false,
|
406
|
+
"action": "Promote content view 'component1'; organization 'Default Organization'",
|
407
|
+
"username": "admin",
|
408
|
+
"started_at": "2021-04-12 13:14:40 -0400",
|
409
|
+
"ended_at": "2021-04-12 13:14:43 -0400",
|
410
|
+
"state": "stopped",
|
411
|
+
"result": "success",
|
412
|
+
"progress": 1,
|
413
|
+
"input": {
|
414
|
+
"content_view": {
|
415
|
+
"id": 3,
|
416
|
+
"name": "component1",
|
417
|
+
"label": "component1"
|
418
|
+
},
|
419
|
+
"organization": {
|
420
|
+
"id": 1,
|
421
|
+
"name": "Default Organization",
|
422
|
+
"label": "Default_Organization"
|
423
|
+
},
|
424
|
+
"environments": [
|
425
|
+
"dev"
|
426
|
+
],
|
427
|
+
"services_checked": [
|
428
|
+
"pulp3",
|
429
|
+
"candlepin",
|
430
|
+
"candlepin_auth"
|
431
|
+
],
|
432
|
+
"locale": "en",
|
433
|
+
"current_request_id": "b8df3b2b-4795-402a-aaa5-94db4ffcb4ee",
|
434
|
+
"current_timezone": "America/New_York",
|
435
|
+
"current_organization_id": 1,
|
436
|
+
"current_location_id": 2,
|
437
|
+
"current_user_id": 4
|
438
|
+
},
|
439
|
+
"output": {},
|
440
|
+
"humanized": {
|
441
|
+
"action": "Promote",
|
442
|
+
"input": [
|
443
|
+
[
|
444
|
+
"content_view",
|
445
|
+
{
|
446
|
+
"text": "content view 'component1'",
|
447
|
+
"link": "/content_views/3/versions"
|
448
|
+
}
|
449
|
+
],
|
450
|
+
[
|
451
|
+
"organization",
|
452
|
+
{
|
453
|
+
"text": "organization 'Default Organization'",
|
454
|
+
"link": "/organizations/1/edit"
|
455
|
+
}
|
456
|
+
]
|
457
|
+
],
|
458
|
+
"output": "",
|
459
|
+
"errors": []
|
460
|
+
},
|
461
|
+
"cli_example": null,
|
462
|
+
"start_at": "2021-04-12 13:14:40 -0400",
|
463
|
+
"available_actions": {
|
464
|
+
"cancellable": false,
|
465
|
+
"resumable": false
|
466
|
+
}
|
467
|
+
},
|
468
|
+
"version": "2.0",
|
469
|
+
"publish": false,
|
470
|
+
"version_id": 9,
|
471
|
+
"triggered_by": null,
|
472
|
+
"triggered_by_id": null
|
473
|
+
},
|
474
|
+
"active_history": [],
|
475
|
+
"ostree_count": 0,
|
476
|
+
"ansible_collection_count": 0,
|
477
|
+
"deb_count": 0,
|
478
|
+
"docker_manifest_count": 0,
|
479
|
+
"docker_manifest_list_count": 0,
|
480
|
+
"docker_tag_count": 0,
|
481
|
+
"file_count": 0,
|
482
|
+
"rpm_count": 8,
|
483
|
+
"modulemd_count": 0,
|
484
|
+
"erratum_count": 2,
|
485
|
+
"package_group_count": 0,
|
486
|
+
"srpm_count": 0,
|
487
|
+
"module_stream_count": 0,
|
488
|
+
"package_count": 8,
|
489
|
+
"errata_counts": {
|
490
|
+
"security": null,
|
491
|
+
"bugfix": 0,
|
492
|
+
"enhancement": 0,
|
493
|
+
"total": 2
|
494
|
+
},
|
495
|
+
"permissions": {
|
496
|
+
"deletable": true
|
497
|
+
},
|
498
|
+
"filters_applied": true
|
499
|
+
},
|
500
|
+
{
|
501
|
+
"version": "1.0",
|
502
|
+
"major": 1,
|
503
|
+
"minor": 0,
|
504
|
+
"composite_content_view_ids": [],
|
505
|
+
"published_in_composite_content_view_ids": [],
|
506
|
+
"content_view_id": 3,
|
507
|
+
"default": false,
|
508
|
+
"description": null,
|
509
|
+
"id": 7,
|
510
|
+
"name": "component1 1.0",
|
511
|
+
"created_at": "2021-04-12 09:34:15 -0400",
|
512
|
+
"updated_at": "2021-04-12 09:34:16 -0400",
|
513
|
+
"content_view": {
|
514
|
+
"id": 3,
|
515
|
+
"name": "component1",
|
516
|
+
"label": "component1"
|
517
|
+
},
|
518
|
+
"composite_content_views": [],
|
519
|
+
"composite_content_view_versions": [],
|
520
|
+
"published_in_composite_content_views": [],
|
521
|
+
"environments": [],
|
522
|
+
"repositories": [],
|
523
|
+
"last_event": {
|
524
|
+
"user": "admin",
|
525
|
+
"status": "successful",
|
526
|
+
"description": null,
|
527
|
+
"action": "promotion",
|
528
|
+
"created_at": "2021-04-12 10:27:52 -0400",
|
529
|
+
"updated_at": "2021-04-12 10:27:53 -0400",
|
530
|
+
"environment": {
|
531
|
+
"id": 2,
|
532
|
+
"name": "dev"
|
533
|
+
},
|
534
|
+
"task": {
|
535
|
+
"id": "cfad0c5c-e42d-4228-9f37-5a747125561c",
|
536
|
+
"label": "Actions::Katello::ContentView::Promote",
|
537
|
+
"pending": false,
|
538
|
+
"action": "Promote content view 'component1'; organization 'Default Organization'",
|
539
|
+
"username": "admin",
|
540
|
+
"started_at": "2021-04-12 10:27:52 -0400",
|
541
|
+
"ended_at": "2021-04-12 10:27:53 -0400",
|
542
|
+
"state": "stopped",
|
543
|
+
"result": "success",
|
544
|
+
"progress": 1,
|
545
|
+
"input": {
|
546
|
+
"content_view": {
|
547
|
+
"id": 3,
|
548
|
+
"name": "component1",
|
549
|
+
"label": "component1"
|
550
|
+
},
|
551
|
+
"organization": {
|
552
|
+
"id": 1,
|
553
|
+
"name": "Default Organization",
|
554
|
+
"label": "Default_Organization"
|
555
|
+
},
|
556
|
+
"environments": [
|
557
|
+
"dev"
|
558
|
+
],
|
559
|
+
"services_checked": [
|
560
|
+
"candlepin",
|
561
|
+
"candlepin_auth"
|
562
|
+
],
|
563
|
+
"locale": "en",
|
564
|
+
"current_request_id": "70451c63-7415-4697-9ff8-599060cadfe5",
|
565
|
+
"current_timezone": "America/New_York",
|
566
|
+
"current_organization_id": 1,
|
567
|
+
"current_location_id": 2,
|
568
|
+
"current_user_id": 4
|
569
|
+
},
|
570
|
+
"output": {},
|
571
|
+
"humanized": {
|
572
|
+
"action": "Promote",
|
573
|
+
"input": [
|
574
|
+
[
|
575
|
+
"content_view",
|
576
|
+
{
|
577
|
+
"text": "content view 'component1'",
|
578
|
+
"link": "/content_views/3/versions"
|
579
|
+
}
|
580
|
+
],
|
581
|
+
[
|
582
|
+
"organization",
|
583
|
+
{
|
584
|
+
"text": "organization 'Default Organization'",
|
585
|
+
"link": "/organizations/1/edit"
|
586
|
+
}
|
587
|
+
]
|
588
|
+
],
|
589
|
+
"output": "",
|
590
|
+
"errors": []
|
591
|
+
},
|
592
|
+
"cli_example": null,
|
593
|
+
"start_at": "2021-04-12 10:27:52 -0400",
|
594
|
+
"available_actions": {
|
595
|
+
"cancellable": false,
|
596
|
+
"resumable": false
|
597
|
+
}
|
598
|
+
},
|
599
|
+
"version": "1.0",
|
600
|
+
"publish": false,
|
601
|
+
"version_id": 7,
|
602
|
+
"triggered_by": null,
|
603
|
+
"triggered_by_id": null
|
604
|
+
},
|
605
|
+
"active_history": [],
|
606
|
+
"ostree_count": 0,
|
607
|
+
"ansible_collection_count": 0,
|
608
|
+
"deb_count": 0,
|
609
|
+
"docker_manifest_count": 0,
|
610
|
+
"docker_manifest_list_count": 0,
|
611
|
+
"docker_tag_count": 0,
|
612
|
+
"file_count": 0,
|
613
|
+
"rpm_count": 0,
|
614
|
+
"modulemd_count": 0,
|
615
|
+
"erratum_count": 0,
|
616
|
+
"package_group_count": 0,
|
617
|
+
"srpm_count": 0,
|
618
|
+
"module_stream_count": 0,
|
619
|
+
"package_count": 0,
|
620
|
+
"ostree_ref_count": 0,
|
621
|
+
"python_package_count": 0,
|
622
|
+
"errata_counts": {
|
623
|
+
"security": null,
|
624
|
+
"bugfix": 0,
|
625
|
+
"enhancement": 0,
|
626
|
+
"total": null
|
627
|
+
},
|
628
|
+
"permissions": {
|
629
|
+
"deletable": true
|
630
|
+
},
|
631
|
+
"filters_applied": true
|
632
|
+
}
|
633
|
+
]
|
634
|
+
}
|
@@ -8,7 +8,7 @@ export const getCVPlaceholderText = ({
|
|
8
8
|
cvSelectOptions = [],
|
9
9
|
}) => {
|
10
10
|
if (contentSourceId === '') return __('Select a content source first');
|
11
|
-
if (environments.length === 0) return __('Select
|
11
|
+
if (environments.length === 0) return __('Select a lifecycle environment first');
|
12
12
|
if (contentViewsStatus === STATUS.PENDING) return __('Loading...');
|
13
13
|
if (contentViewsStatus === STATUS.ERROR) return __('Error loading content views');
|
14
14
|
if (cvSelectOptions.length === 0) return __('No content views available');
|
@@ -17,18 +17,20 @@ export const getFormData = (hostIds, search) => (post({
|
|
17
17
|
errorToast: () => __('Something went wrong while getting the data. See the logs for more information'),
|
18
18
|
}));
|
19
19
|
|
20
|
-
export const changeContentSource =
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
20
|
+
export const changeContentSource =
|
21
|
+
(environmentId, contentViewId, contentSourceId, hostIds, handleSuccess) =>
|
22
|
+
put({
|
23
|
+
key: CHANGE_CONTENT_SOURCE,
|
24
|
+
url: foremanUrl('/api/v2/hosts/bulk/change_content_source'),
|
25
|
+
params: {
|
26
|
+
environment_id: environmentId,
|
27
|
+
content_view_id: contentViewId,
|
28
|
+
content_source_id: contentSourceId,
|
29
|
+
host_ids: hostIds,
|
30
|
+
},
|
31
|
+
errorToast: () => __('Something went wrong while updating the content source. See the logs for more information'),
|
32
|
+
handleSuccess,
|
33
|
+
});
|
32
34
|
|
33
35
|
export const getProxy = id =>
|
34
36
|
get({
|