Project

General

Profile

« Previous | Next » 

Revision 16595c29

Added by David Davis over 10 years ago

Content Views: Worked more on publishing content

Fixed places where repos had no environments. Also, changed the task type to
publish instead of refresh. Lastly, fixed publish for versions 2+ and
generating metadata for version repos so the env clones aren't empty.

View differences:

app/models/katello/content_view_version.rb
self.repos(nil)
end
def non_archive_repos
self.repositories.select { |repo| repo.environment.present? }
end
def products(env = nil)
if env
repos(env).map(&:product).uniq(&:id)
......
end
def trigger_repository_changes(options = {})
Repository.trigger_contents_changed(self.repositories, :wait => true, :reindex => true,
repos_changed = options[:non_archive] ? non_archive_repos : repositories
Repository.trigger_contents_changed(repos_changed, :wait => true, :reindex => true,
:cloned_repo_overrides => options.fetch(:cloned_repo_overrides, []))
end

Also available in: Unified diff