Project

General

Profile

« Previous | Next » 

Revision a08ecd79

Added by Justin Sherrill about 10 years ago

fixes for CV promote and publish

  • When copying errata and package groups, do not pass package clone filters * This means all package groups and errata are cloned
  • Add support for purging empty errata and package groups
  • Fixing indexed_errata_ids to properly pass a repoid filter
  • Fixing issue where promotion would select the Library environments repo
    instead of creating a new one

View differences:

app/lib/actions/katello/repository/clone_to_environment.rb
else
plan_action(Repository::Clear, clone)
end
plan_action(Repository::CloneContent, repository, clone, [])
plan_action(Repository::CloneContent, repository, clone, [], false)
concurrence do
plan_action(Katello::Repository::NodeMetadataGenerate, clone)
plan_action(Pulp::Repository::RegenerateApplicability, pulp_id: clone.pulp_id)
......
# visible for the systems in the environment
def find_or_build_environment_clone(repository, environment)
version = repository.content_view_version
library = repository.organization.library
clone = version.content_view.get_repo_clone(library, repository).first
clone = version.content_view.get_repo_clone(environment, repository).first
if clone
clone = ::Katello::Repository.find(clone.id) # reload readonly object
clone.update_attributes!(content_view_version_id: version.id)

Also available in: Unified diff