katello 3.10.2 → 3.11.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/registry/registry_proxies_controller.rb +16 -22
- data/app/controllers/katello/api/v2/content_uploads_controller.rb +4 -7
- data/app/controllers/katello/api/v2/content_view_puppet_modules_controller.rb +4 -5
- data/app/controllers/katello/api/v2/content_view_versions_controller.rb +4 -4
- data/app/controllers/katello/api/v2/content_views_controller.rb +3 -3
- data/app/controllers/katello/api/v2/docker_manifests_controller.rb +1 -1
- data/app/controllers/katello/api/v2/errata_controller.rb +2 -2
- data/app/controllers/katello/api/v2/hosts_bulk_actions_controller.rb +1 -3
- data/app/controllers/katello/api/v2/package_groups_controller.rb +3 -3
- data/app/controllers/katello/api/v2/repositories_controller.rb +5 -24
- data/app/controllers/katello/api/v2/repository_sets_controller.rb +1 -1
- data/app/controllers/katello/application_controller.rb +4 -4
- data/app/controllers/katello/concerns/api/v2/repository_content_controller.rb +1 -1
- data/app/controllers/katello/sync_management_controller.rb +1 -1
- data/app/helpers/katello/errata_mailer_helper.rb +1 -1
- data/app/helpers/katello/sync_management_helper.rb +1 -1
- data/app/lib/actions/candlepin/environment/add_content_to_environment.rb +18 -0
- data/app/lib/actions/katello/content_view_puppet_environment/clone.rb +1 -4
- data/app/lib/actions/katello/content_view_puppet_environment/clone_content_for_version.rb +20 -0
- data/app/lib/actions/katello/content_view_puppet_environment/create_for_version.rb +3 -2
- data/app/lib/actions/katello/content_view_version/incremental_update.rb +15 -16
- data/app/lib/actions/katello/host/hypervisors_update.rb +17 -6
- data/app/lib/actions/katello/organization/manifest_delete.rb +1 -3
- data/app/lib/actions/katello/organization/manifest_import.rb +1 -3
- data/app/lib/actions/katello/organization/manifest_refresh.rb +1 -3
- data/app/lib/actions/katello/provider/update.rb +1 -1
- data/app/lib/actions/katello/repository/check_matching_content.rb +8 -2
- data/app/lib/actions/katello/repository/clone_contents.rb +52 -0
- data/app/lib/actions/katello/repository/clone_to_environment.rb +1 -11
- data/app/lib/actions/katello/repository/clone_to_version.rb +19 -29
- data/app/lib/actions/katello/repository/create.rb +3 -4
- data/app/lib/actions/katello/repository/export.rb +1 -2
- data/app/lib/actions/katello/repository/import_upload.rb +7 -5
- data/app/lib/actions/katello/repository/purge_empty_content.rb +16 -0
- data/app/lib/actions/katello/repository/remove_content.rb +2 -2
- data/app/lib/actions/katello/repository/sync.rb +1 -1
- data/app/lib/actions/pulp/content_view_puppet_environment/copy_contents.rb +36 -0
- data/app/lib/actions/pulp/repository/copy_all_units.rb +27 -0
- data/app/lib/actions/pulp/repository/copy_units.rb +29 -0
- data/app/lib/actions/pulp/repository/refresh.rb +3 -7
- data/app/lib/actions/pulp/repository/regenerate_applicability.rb +5 -2
- data/app/lib/katello/concerns/renderer_extensions.rb +1 -1
- data/app/lib/katello/http_resource.rb +5 -1
- data/app/lib/katello/resources/candlepin/consumer.rb +9 -0
- data/app/lib/katello/resources/candlepin/content.rb +2 -3
- data/app/lib/katello/util/cdn_var_substitutor.rb +1 -2
- data/app/lib/katello/util/path_with_substitutions.rb +18 -1
- data/app/lib/katello/validators/content_view_puppet_module_validator.rb +2 -2
- data/app/lib/katello/validators/environment_docker_repositories_validator.rb +7 -5
- data/app/models/katello/concerns/hostgroup_extensions.rb +2 -7
- data/app/models/katello/concerns/organization_extensions.rb +11 -1
- data/app/models/katello/concerns/pulp_database_unit.rb +40 -24
- data/app/models/katello/concerns/redhat_extensions.rb +7 -3
- data/app/models/katello/content_view.rb +5 -7
- data/app/models/katello/content_view_docker_filter.rb +3 -3
- data/app/models/katello/content_view_puppet_environment.rb +1 -1
- data/app/models/katello/content_view_puppet_module.rb +2 -3
- data/app/models/katello/docker_meta_tag.rb +1 -1
- data/app/models/katello/docker_tag.rb +4 -6
- data/app/models/katello/erratum.rb +1 -1
- data/app/models/katello/glue/pulp/repo.rb +3 -0
- data/app/models/katello/glue/pulp/repos.rb +4 -0
- data/app/models/katello/host/info_provider.rb +2 -2
- data/app/models/katello/host/subscription_facet.rb +0 -1
- data/app/models/katello/module_stream.rb +10 -4
- data/app/models/katello/ostree_branch.rb +4 -2
- data/app/models/katello/package_group.rb +2 -2
- data/app/models/katello/ping.rb +1 -1
- data/app/models/katello/puppet_module.rb +3 -3
- data/app/models/katello/repository.rb +15 -2
- data/app/models/katello/root_repository.rb +10 -0
- data/app/models/katello/yum_metadata_file.rb +46 -0
- data/app/services/katello/abstract/pulp/content.rb +19 -0
- data/app/services/katello/applicable_content_helper.rb +5 -5
- data/app/services/katello/pulp/content.rb +17 -0
- data/app/services/katello/pulp/repository.rb +45 -15
- data/app/services/katello/pulp/repository/deb.rb +8 -0
- data/app/services/katello/pulp/repository/docker.rb +19 -0
- data/app/services/katello/pulp/repository/file.rb +10 -0
- data/app/services/katello/pulp/repository/ostree.rb +4 -0
- data/app/services/katello/pulp/repository/puppet.rb +10 -0
- data/app/services/katello/pulp/repository/yum.rb +73 -0
- data/app/services/katello/pulp/yum_metadata_file.rb +7 -0
- data/app/services/katello/repository_type.rb +5 -0
- data/app/views/dashboard/_errata_widget.html.erb +1 -1
- data/app/views/katello/api/v2/debs/base.json.rabl +2 -1
- data/app/views/katello/api/v2/docker_tags/_base.json.rabl +3 -3
- data/app/views/katello/api/v2/errata/show.json.rabl +2 -1
- data/app/views/katello/api/v2/file_units/base.json.rabl +2 -1
- data/app/views/katello/api/v2/module_streams/base.json.rabl +2 -1
- data/app/views/katello/api/v2/ostree_branches/show.json.rabl +3 -2
- data/app/views/katello/api/v2/package_groups/base.json.rabl +2 -1
- data/app/views/katello/api/v2/package_groups/show.json.rabl +1 -1
- data/app/views/katello/api/v2/packages/base.json.rabl +2 -1
- data/app/views/katello/api/v2/packages/show.json.rabl +1 -1
- data/app/views/katello/api/v2/puppet_modules/base.json.rabl +2 -1
- data/app/views/katello/api/v2/puppet_modules/show.json.rabl +1 -1
- data/app/views/katello/api/v2/repositories/base.json.rabl +1 -0
- data/app/views/katello/layouts/react.html.erb +3 -3
- data/db/migrate/20181219205642_create_yum_metadata_file.rb +20 -0
- data/db/migrate/20190107160723_units_uuid_to_backend_ident.rb +8 -0
- data/db/seeds.d/101-locations.rb +11 -13
- data/db/seeds.d/102-organizations.rb +5 -3
- data/db/seeds.d/111-upgrade_tasks.rb +1 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/bastion_katello.js +2 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/common/views/subscription-add-or-remove.html +1 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/bulk/views/content-hosts-bulk-subscriptions-modal.html +2 -2
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content-hosts.module.js +2 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/views/content-host-errata.html +2 -2
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/views/content-host-events.html +1 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/views/content-host-info.html +2 -2
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/views/content-host-provisioning-info.html +1 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/views/content-hosts.html +2 -2
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/content-views.module.js +2 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/views/errata-filter-details.html +2 -2
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/views/filter-repositories.html +2 -2
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/views/filters.html +1 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/histories/views/content-view-history.html +20 -20
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/views/content-view-deb-repositories.html +1 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/views/content-view-docker-repositories.html +1 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/views/content-view-file-repositories.html +1 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/views/content-view-ostree-repositories.html +1 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/views/content-view-repositories.html +1 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/views/content-view-versions.html +1 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/versions/content-view-version-content.controller.js +1 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/versions/views/content-view-version-errata.html +1 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/versions/views/content-view-version-ostree-branches.html +2 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/views/content-views.html +1 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/dates/dates.module.js +50 -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/details/views/environment-details.html +0 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/environments/details/views/environment-errata.html +2 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/environments/details/views/environment-ostree.html +2 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/environments/environments.module.js +2 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/errata/details/views/erratum-info.html +2 -2
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/errata/errata.module.js +2 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/errata/views/errata.html +1 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/ostree-branches/details/views/ostree-branch-info.html +3 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/bulk/views/products-bulk-sync-plan-modal.html +3 -3
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/details/views/repository-info.html +6 -5
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/details/views/repository-manage-ostree-branches.html +4 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/views/product-info.html +5 -4
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/products.controller.js +7 -8
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/views/partials/product-table-sync-status.html +5 -4
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/details/views/subscription-info.html +3 -3
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/manifest/views/manifest-details.html +2 -2
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/manifest/views/manifest-import-history.html +1 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/views/subscription-start-date.html +1 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/views/subscriptions.html +1 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/details/views/sync-plan-info.html +1 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/views/sync-plans.html +2 -2
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/tasks/views/task-details.html +2 -2
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/tasks/views/tasks-table.html +1 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/tasks/views/user-tasks-table.html +1 -1
- data/engines/bastion_katello/lib/bastion_katello/engine.rb +6 -1
- data/lib/katello/engine.rb +3 -3
- data/lib/katello/plugin.rb +3 -3
- data/lib/katello/repository_types/deb.rb +1 -0
- data/lib/katello/repository_types/yum.rb +1 -0
- data/lib/katello/tasks/reimport.rake +1 -0
- data/lib/katello/tasks/repository.rake +1 -1
- data/lib/katello/tasks/upgrades/3.11/import_yum_metadata_file.rake +12 -0
- data/lib/katello/version.rb +1 -1
- data/package.json +3 -1
- data/webpack/__mocks__/foremanReact/components/Pagination/PaginationWrapper.js +2 -0
- data/webpack/__mocks__/foremanReact/components/common/EmptyState.js +8 -0
- data/webpack/common_index.js +6 -0
- data/webpack/containers/Application/config.js +3 -3
- data/webpack/move_to_foreman/components/common/table/components/Table.js +3 -3
- data/webpack/move_to_foreman/components/common/table/components/Table.test.js +2 -0
- data/webpack/move_to_foreman/components/common/table/components/__snapshots__/Table.test.js.snap +1 -17
- data/webpack/redux/actions/RedHatRepositories/helpers.js +19 -10
- data/webpack/scenes/ModuleStreams/Details/Profiles/__tests__/ModuleStreamDetailProfiles.test.js +2 -0
- data/webpack/scenes/ModuleStreams/Details/Repositories/__tests__/ModuleStreamDetailRepositories.test.js +2 -0
- data/webpack/scenes/ModuleStreams/Details/__tests__/ModuleStreamDetails.test.js +2 -0
- data/webpack/scenes/ModuleStreams/__tests__/ModuleStreamPage.test.js +1 -0
- data/webpack/scenes/ModuleStreams/__tests__/ModuleStreamsTable.test.js +1 -0
- data/webpack/scenes/RedHatRepositories/helpers.js +3 -3
- data/webpack/scenes/Subscriptions/Details/__tests__/__snapshots__/SubscriptionDetailProductContent.test.js.snap +1 -0
- data/webpack/scenes/Subscriptions/Manifest/ManageManifestModal.js +1 -1
- data/webpack/scenes/Subscriptions/Manifest/__tests__/ManageManifestModal.test.js +1 -0
- data/webpack/scenes/Subscriptions/Manifest/__tests__/__snapshots__/ManageManifestModal.test.js.snap +1 -1
- data/webpack/scenes/Subscriptions/SubscriptionActions.js +10 -0
- data/webpack/scenes/Subscriptions/SubscriptionConstants.js +6 -0
- data/webpack/scenes/Subscriptions/SubscriptionReducer.js +16 -0
- data/webpack/scenes/Subscriptions/SubscriptionValidations.js +3 -3
- data/webpack/scenes/Subscriptions/SubscriptionsPage.js +28 -25
- data/webpack/scenes/Subscriptions/SubscriptionsSelectors.js +6 -0
- data/webpack/scenes/Subscriptions/UpstreamSubscriptions/UpstreamSubscriptionsPage.js +0 -1
- data/webpack/scenes/Subscriptions/UpstreamSubscriptions/__tests__/UpstreamSubscriptionsPage.test.js +1 -0
- data/webpack/scenes/Subscriptions/UpstreamSubscriptions/__tests__/__snapshots__/UpstreamSubscriptionsPage.test.js.snap +0 -1
- data/webpack/scenes/Subscriptions/__tests__/SubscriptionValidations.test.js +9 -4
- data/webpack/scenes/Subscriptions/__tests__/SubscriptionsActions.test.js +14 -0
- data/webpack/scenes/Subscriptions/__tests__/SubscriptionsPage.test.js +2 -0
- data/webpack/scenes/Subscriptions/__tests__/SubscriptionsReducer.test.js +24 -0
- data/webpack/scenes/Subscriptions/__tests__/SubscriptionsSelectors.test.js +6 -0
- data/webpack/scenes/Subscriptions/__tests__/__snapshots__/SubscriptionsActions.test.js.snap +24 -0
- data/webpack/scenes/Subscriptions/__tests__/__snapshots__/SubscriptionsPage.test.js.snap +1 -1
- data/webpack/scenes/Subscriptions/__tests__/__snapshots__/SubscriptionsReducer.test.js.snap +138 -0
- data/webpack/scenes/Subscriptions/__tests__/__snapshots__/SubscriptionsSelectors.test.js.snap +6 -0
- data/webpack/scenes/Subscriptions/components/SubscriptionsTable/EntitlementsInlineEditFormatter.js +8 -6
- data/webpack/scenes/Subscriptions/components/SubscriptionsTable/SubscriptionsTableHelpers.js +23 -11
- data/webpack/scenes/Subscriptions/components/SubscriptionsTable/__tests__/EntitlementsInlineEditFormatter.test.js +14 -10
- data/webpack/scenes/Subscriptions/components/SubscriptionsTable/__tests__/SubscriptionsTable.fixtures.js +105 -0
- data/webpack/scenes/Subscriptions/components/SubscriptionsTable/__tests__/SubscriptionsTable.test.js +2 -0
- data/webpack/scenes/Subscriptions/components/SubscriptionsTable/__tests__/SubscriptionsTableHelpers.test.js +44 -0
- data/webpack/scenes/Subscriptions/components/SubscriptionsTable/__tests__/__snapshots__/EntitlementsInlineEditFormatter.test.js.snap +3 -3
- data/webpack/scenes/Subscriptions/components/SubscriptionsTable/__tests__/__snapshots__/SubscriptionsTable.test.js.snap +2 -222
- data/webpack/scenes/Subscriptions/index.js +4 -0
- metadata +41 -44
- data/app/lib/actions/katello/content_view_puppet_environment/clone_content.rb +0 -32
- data/app/lib/actions/katello/repository/clone_deb_content.rb +0 -70
- data/app/lib/actions/katello/repository/clone_docker_content.rb +0 -26
- data/app/lib/actions/katello/repository/clone_file_content.rb +0 -17
- data/app/lib/actions/katello/repository/clone_ostree_content.rb +0 -17
- data/app/lib/actions/katello/repository/clone_yum_content.rb +0 -105
- data/app/lib/actions/katello/repository/clone_yum_metadata.rb +0 -36
- data/app/lib/actions/pulp/repository/copy_deb.rb +0 -15
- data/app/lib/actions/pulp/repository/copy_deb_component.rb +0 -11
- data/app/lib/actions/pulp/repository/copy_deb_release.rb +0 -11
- data/app/lib/actions/pulp/repository/copy_distribution.rb +0 -11
- data/app/lib/actions/pulp/repository/copy_docker_manifest.rb +0 -11
- data/app/lib/actions/pulp/repository/copy_docker_tag.rb +0 -11
- data/app/lib/actions/pulp/repository/copy_errata.rb +0 -15
- data/app/lib/actions/pulp/repository/copy_files.rb +0 -11
- data/app/lib/actions/pulp/repository/copy_module_default.rb +0 -11
- data/app/lib/actions/pulp/repository/copy_module_stream.rb +0 -11
- data/app/lib/actions/pulp/repository/copy_ostree_branch.rb +0 -11
- data/app/lib/actions/pulp/repository/copy_package_group.rb +0 -11
- data/app/lib/actions/pulp/repository/copy_puppet_module.rb +0 -15
- data/app/lib/actions/pulp/repository/copy_rpm.rb +0 -15
- data/app/lib/actions/pulp/repository/copy_srpm.rb +0 -16
- data/app/lib/actions/pulp/repository/copy_yum_metadata_file.rb +0 -11
- data/app/lib/actions/pulp/repository/purge_empty_errata.rb +0 -19
- data/app/lib/actions/pulp/repository/purge_empty_package_groups.rb +0 -24
- data/db/migrate/20190326145039_remove_version_date_from_ostree_branch.rb +0 -5
- data/lib/katello/tasks/upgrades/3.10/update_gpg_key_urls.rake +0 -32
- data/webpack/components/PaginationRow/PaginationRow.test.js +0 -25
- data/webpack/components/PaginationRow/__snapshots__/PaginationRow.test.js.snap +0 -35
- data/webpack/components/PaginationRow/index.js +0 -94
- data/webpack/move_to_foreman/components/common/EmptyState/index.js +0 -68
@@ -1,4 +1,4 @@
|
|
1
1
|
object @resource
|
2
2
|
|
3
3
|
extends 'katello/api/v2/puppet_modules/base'
|
4
|
-
extends 'katello/api/v2/puppet_modules/backend', :object => Katello::Pulp::PuppetModule.new(@resource.
|
4
|
+
extends 'katello/api/v2/puppet_modules/backend', :object => Katello::Pulp::PuppetModule.new(@resource.pulp_id)
|
@@ -12,6 +12,7 @@ glue(@object.root) do
|
|
12
12
|
child :product do |_product|
|
13
13
|
attributes :id, :cp_id, :name
|
14
14
|
attributes :orphaned? => :orphaned
|
15
|
+
attributes :redhat? => :redhat
|
15
16
|
node :sync_plan do |_sync_plan|
|
16
17
|
attributes :name, :description, :sync_date, :interval, :next_sync
|
17
18
|
end
|
@@ -1,9 +1,9 @@
|
|
1
1
|
<% content_for(:stylesheets) do %>
|
2
|
-
<%=
|
2
|
+
<%= webpacked_plugins_css_for :katello %>
|
3
3
|
<% end %>
|
4
4
|
|
5
5
|
<% content_for(:javascripts) do %>
|
6
|
-
<%=
|
6
|
+
<%= webpacked_plugins_js_for :katello %>
|
7
7
|
<% end %>
|
8
8
|
|
9
9
|
<% content_for(:content) do %>
|
@@ -11,6 +11,6 @@
|
|
11
11
|
<div id="organization-id" data-id="<%= Organization.current.id if Organization.current %>" ></div>
|
12
12
|
<div id="user-id" data-id="<%= User.current.id if User.current %>" ></div>
|
13
13
|
<div id="reactRoot"></div>
|
14
|
-
<%= mount_react_component('katello', '#reactRoot') %>
|
15
14
|
<% end %>
|
16
15
|
<%= render file: "layouts/base" %>
|
16
|
+
<%= mount_react_component('katello', '#reactRoot') %>
|
@@ -0,0 +1,20 @@
|
|
1
|
+
class CreateYumMetadataFile < ActiveRecord::Migration[5.2]
|
2
|
+
def up
|
3
|
+
create_table :katello_yum_metadata_files do |t|
|
4
|
+
t.string :uuid, null: false
|
5
|
+
t.string :checksum, null: true
|
6
|
+
t.string :name, null: true
|
7
|
+
t.integer :repository_id, null: true
|
8
|
+
t.timestamps
|
9
|
+
end
|
10
|
+
|
11
|
+
add_foreign_key :katello_yum_metadata_files, :katello_repositories, :column => "repository_id"
|
12
|
+
change_column :katello_yum_metadata_files, :created_at, :datetime, :null => true
|
13
|
+
change_column :katello_yum_metadata_files, :updated_at, :datetime, :null => true
|
14
|
+
end
|
15
|
+
|
16
|
+
def down
|
17
|
+
remove_foreign_key :katello_yum_metadata_files, :katello_repositories
|
18
|
+
drop_table :katello_yum_metadata_files
|
19
|
+
end
|
20
|
+
end
|
@@ -0,0 +1,8 @@
|
|
1
|
+
class UnitsUuidToBackendIdent < ActiveRecord::Migration[5.2]
|
2
|
+
def change
|
3
|
+
%w(rpms errata package_groups files yum_metadata_files srpms module_streams debs docker_tags docker_manifests
|
4
|
+
docker_manifest_lists puppet_modules ostree_branches).each do |name|
|
5
|
+
rename_column("katello_#{name}", :uuid, :pulp_id)
|
6
|
+
end
|
7
|
+
end
|
8
|
+
end
|
data/db/seeds.d/101-locations.rb
CHANGED
@@ -4,17 +4,15 @@
|
|
4
4
|
# !!! PLEASE KEEP THIS SCRIPT IDEMPOTENT !!!
|
5
5
|
#
|
6
6
|
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
Setting[:default_location_puppet_content] = default_location.title
|
19
|
-
end
|
7
|
+
# Create a new location to be used as the Katello Default.
|
8
|
+
if ENV['SEED_LOCATION'].blank?
|
9
|
+
default_location = Location.first
|
10
|
+
else
|
11
|
+
default_location = Location.where(:name => ENV['SEED_LOCATION']).first_or_create
|
12
|
+
end
|
13
|
+
if Setting[:default_location_subscribed_hosts].empty?
|
14
|
+
Setting[:default_location_subscribed_hosts] = default_location.title
|
15
|
+
end
|
16
|
+
if Setting[:default_location_puppet_content].empty?
|
17
|
+
Setting[:default_location_puppet_content] = default_location.title
|
20
18
|
end
|
@@ -4,9 +4,11 @@
|
|
4
4
|
# !!! PLEASE KEEP THIS SCRIPT IDEMPOTENT !!!
|
5
5
|
#
|
6
6
|
|
7
|
-
|
8
|
-
|
9
|
-
|
7
|
+
unless Rails.env.test?
|
8
|
+
Organization.all.each do |org|
|
9
|
+
User.as(::User.anonymous_api_admin.login) do
|
10
|
+
ForemanTasks.sync_task(::Actions::Katello::Organization::Create, org) unless org.library
|
11
|
+
end
|
10
12
|
end
|
11
13
|
end
|
12
14
|
|
@@ -6,7 +6,7 @@ UpgradeTask.define_tasks(:katello) do
|
|
6
6
|
{:name => 'katello:upgrades:3.8:clear_checksum_type'},
|
7
7
|
{:name => 'katello:upgrades:3.9:migrate_sync_plans'},
|
8
8
|
{:name => 'katello:upgrades:3.10:clear_invalid_repo_credentials'},
|
9
|
-
{:name => 'katello:upgrades:3.
|
9
|
+
{:name => 'katello:upgrades:3.11:import_yum_metadata'},
|
10
10
|
{:name => 'katello:upgrades:3.11:update_puppet_repos'}
|
11
11
|
]
|
12
12
|
end
|
@@ -94,6 +94,8 @@
|
|
94
94
|
//= require "bastion_katello/architectures/architectures.module.js"
|
95
95
|
//= require_tree "./architectures"
|
96
96
|
|
97
|
+
//= require "bastion_katello/dates/dates.module.js"
|
98
|
+
|
97
99
|
//= require "bastion_katello/i18n/translations.js"
|
98
100
|
|
99
101
|
//= require "bastion_katello/bastion-katello-bootstrap.js"
|
@@ -40,7 +40,7 @@
|
|
40
40
|
</td>
|
41
41
|
<td bst-table-cell><div subscription-type="subscription"></div></td>
|
42
42
|
<td bst-table-cell><div subscription-start-date="subscription"></div></td>
|
43
|
-
<td bst-table-cell
|
43
|
+
<td bst-table-cell><date date="subscription.end_date" /></td>
|
44
44
|
<td bst-table-cell>{{ subscription.support_level }}</td>
|
45
45
|
<td bst-table-cell>{{ subscription.contract_number }}</td>
|
46
46
|
<td bst-table-cell>{{ subscription.account_number }}</td>
|
@@ -101,7 +101,7 @@
|
|
101
101
|
<td bst-table-cell>{{ subscription | subscriptionConsumedFilter }}</td>
|
102
102
|
<td bst-table-cell><div subscription-type="subscription"></div></td>
|
103
103
|
<td bst-table-cell><div subscription-start-date="subscription"></div></td>
|
104
|
-
<td bst-table-cell
|
104
|
+
<td bst-table-cell><date date="subscription.end_date" /></td>
|
105
105
|
<td bst-table-cell>{{ subscription.support_level }}</td>
|
106
106
|
<td bst-table-cell>{{ subscription.contract_number }}</td>
|
107
107
|
<td bst-table-cell>{{ subscription.account_number }}</td>
|
@@ -118,4 +118,4 @@
|
|
118
118
|
Done
|
119
119
|
</button>
|
120
120
|
</div>
|
121
|
-
</div>
|
121
|
+
</div>
|
@@ -137,8 +137,8 @@
|
|
137
137
|
{{ erratum.errata_id }}
|
138
138
|
</a>
|
139
139
|
</td>
|
140
|
-
<td bst-table-cell
|
141
|
-
<td bst-table-cell
|
140
|
+
<td bst-table-cell>{{ erratum.title }}</td>
|
141
|
+
<td bst-table-cell><date date="erratum.updated" /></td>
|
142
142
|
</tr>
|
143
143
|
</tbody>
|
144
144
|
</table>
|
@@ -20,7 +20,7 @@
|
|
20
20
|
<td bst-table-cell>{{ event.type }}</td>
|
21
21
|
<td bst-table-cell>{{ event.target }}</td>
|
22
22
|
<td bst-table-cell>{{ event.messageText }}</td>
|
23
|
-
<td bst-table-cell
|
23
|
+
<td bst-table-cell><short-date-time date="event.timestamp" /></td>
|
24
24
|
</tr>
|
25
25
|
</tbody>
|
26
26
|
</table>
|
@@ -288,7 +288,7 @@
|
|
288
288
|
|
289
289
|
<dl class="dl-horizontal dl-horizontal-left">
|
290
290
|
<dt translate>Registered</dt>
|
291
|
-
<dd
|
291
|
+
<dd><short-date-time date="host.created_at" /></dd>
|
292
292
|
|
293
293
|
<dt translate> Registered By</dt>
|
294
294
|
<dd>
|
@@ -315,7 +315,7 @@
|
|
315
315
|
</dd>
|
316
316
|
|
317
317
|
<dt translate>Last Checkin</dt>
|
318
|
-
<dd
|
318
|
+
<dd><short-date-time date="host.subscription_facet_attributes.last_checkin" default="'Never checked in' | translate" /></dd>
|
319
319
|
</dl>
|
320
320
|
|
321
321
|
<div class="divider"></div>
|
@@ -25,7 +25,7 @@
|
|
25
25
|
<dd>{{ host.puppet_environment_name }}</dd>
|
26
26
|
|
27
27
|
<dt translate>Last Puppet Report</dt>
|
28
|
-
<dd
|
28
|
+
<dd><short-date-time date="host.last_report" /></dd>
|
29
29
|
|
30
30
|
<dt translate>Model</dt>
|
31
31
|
<dd>{{ host.model_name }}</dd>
|
@@ -123,8 +123,8 @@
|
|
123
123
|
<td bst-table-cell>{{ host.operatingsystem_name }}</td>
|
124
124
|
<td bst-table-cell>{{ host.content_facet_attributes.lifecycle_environment.name }}</td>
|
125
125
|
<td bst-table-cell>{{ host.content_facet_attributes.content_view.name || "" }}</td>
|
126
|
-
<td bst-table-cell
|
127
|
-
<td bst-table-cell
|
126
|
+
<td bst-table-cell><short-date-time date="host.subscription_facet_attributes.registered_at" default="'Never registered' | translate" /></td>
|
127
|
+
<td bst-table-cell><short-date-time date="host.subscription_facet_attributes.last_checkin" default="'Never checked in' | translate" /></td>
|
128
128
|
</tr>
|
129
129
|
</tbody>
|
130
130
|
</table>
|
@@ -48,10 +48,10 @@
|
|
48
48
|
{{ errata.type }}
|
49
49
|
</td>
|
50
50
|
<td bst-table-cell>
|
51
|
-
|
51
|
+
<date date="errata.issued" />
|
52
52
|
</td>
|
53
53
|
<td bst-table-cell>
|
54
|
-
|
54
|
+
<date date="errata.updated" />
|
55
55
|
</td>
|
56
56
|
<td bst-table-cell>{{ errata.title }}</td>
|
57
57
|
</tr>
|
@@ -87,7 +87,7 @@
|
|
87
87
|
</span>
|
88
88
|
<span ng-hide="repository.last_sync == null">
|
89
89
|
<a href="/foreman_tasks/tasks/{{repository.last_sync.id}}">{{ repository.last_sync.result | capitalize}}</a>
|
90
|
-
|
90
|
+
<short-date-time date="repository.last_sync.ended_at" />
|
91
91
|
</span>
|
92
92
|
</span>
|
93
93
|
<span ng-hide="repository.url" translate>N/A</span>
|
@@ -113,4 +113,4 @@
|
|
113
113
|
</table>
|
114
114
|
</div>
|
115
115
|
</div>
|
116
|
-
</div>
|
116
|
+
</div>
|
@@ -66,7 +66,7 @@
|
|
66
66
|
</a>
|
67
67
|
</td>
|
68
68
|
<td bst-table-cell>{{ filter.description }}</td>
|
69
|
-
<td bst-table-cell
|
69
|
+
<td bst-table-cell><short-date-time date="filter.updated_at" /></td>
|
70
70
|
<td bst-table-cell>
|
71
71
|
{{ filter.type | filterContentType }}
|
72
72
|
<span ng-if="filter.type === 'erratum' && filter.rules[0].types">{{ '- Date and Type' | translate }}</span>
|
@@ -10,27 +10,27 @@
|
|
10
10
|
|
11
11
|
<div data-block="table">
|
12
12
|
<table class="table table-striped table-bordered" ng-class="{'table-mask': table.working}">
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
13
|
+
<thead>
|
14
|
+
<tr bst-table-head>
|
15
|
+
<th translate>Date</th>
|
16
|
+
<th translate>Version</th>
|
17
|
+
<th translate>Description</th>
|
18
|
+
<th translate>Action</th>
|
19
|
+
<th translate>User</th>
|
20
|
+
<th translate>Status</th>
|
21
|
+
</tr>
|
22
|
+
</thead>
|
23
23
|
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
24
|
+
<tbody>
|
25
|
+
<tr bst-table-row ng-repeat="history in table.rows">
|
26
|
+
<td bst-table-cell><short-date-time date="history.created_at" /></td>
|
27
|
+
<td bst-table-cell>{{ history.version }} </td>
|
28
|
+
<td bst-table-cell class="preserve-newlines">{{ history.description }}</td>
|
29
|
+
<td bst-table-cell>{{ actionText(history) }}</td>
|
30
|
+
<td bst-table-cell>{{ history.user }}</td>
|
31
|
+
<td bst-table-cell>{{ history.task.result }}</td>
|
32
|
+
</tr>
|
33
|
+
</tbody>
|
34
34
|
</table>
|
35
35
|
</div>
|
36
36
|
</div>
|
@@ -38,7 +38,7 @@
|
|
38
38
|
<span ng-show="errata.severity">- {{ errata.severity }}</span>
|
39
39
|
</td>
|
40
40
|
<td bst-table-cell>{{ errata.hosts_available_count || 0 }}</td>
|
41
|
-
<td bst-table-cell
|
41
|
+
<td bst-table-cell><date date="errata.updated" /></td>
|
42
42
|
</tr>
|
43
43
|
</tbody>
|
44
44
|
</table>
|
@@ -9,6 +9,7 @@
|
|
9
9
|
<th bst-table-column translate>Name</th>
|
10
10
|
<th bst-table-column translate>Version</th>
|
11
11
|
<th bst-table-column translate>Commit</th>
|
12
|
+
<th bst-table-column translate>Date</th>
|
12
13
|
</tr>
|
13
14
|
</thead>
|
14
15
|
|
@@ -17,6 +18,7 @@
|
|
17
18
|
<td bst-table-cell>{{ branch.name }}</td>
|
18
19
|
<td bst-table-cell>{{ branch.version }}</td>
|
19
20
|
<td bst-table-cell>{{ branch.commit }}</td>
|
21
|
+
<td bst-table-cell>{{ branch.version_date }}</td>
|
20
22
|
</tr>
|
21
23
|
</tbody>
|
22
24
|
</table>
|
@@ -47,7 +47,7 @@
|
|
47
47
|
<span ng-hide="contentView.composite" translate>No</span>
|
48
48
|
</td>
|
49
49
|
<td bst-table-cell>
|
50
|
-
<span ng-show="contentView.last_published"
|
50
|
+
<span ng-show="contentView.last_published"><long-date-time date="contentView.last_published" /></span>
|
51
51
|
<span ng-hide="contentView.last_published" translate>
|
52
52
|
Not yet published
|
53
53
|
</span>
|