-
Notifications
You must be signed in to change notification settings - Fork 291
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CP] - Cherry picks for 4.6rc2 (#10255)
* Fixes #35336 - System purpose card should not show when host is unregistered (#10224) * Fixes #35336 - System purpose card should not show when host is unregistered * Refs #35336 - fix tests * Refs #35336 - also hide HW Properties card (cherry picked from commit 64d5fb7) * Fixes #35290 - Katello rpm search via nvra also (#10214) Add scoped_search on nvra. This helps user experience when filename does not follow NVRA pattern. Signed-off-by: Pavel Moravec <[email protected]> (cherry picked from commit d4188e5) * Fixes #35295 - Details tab cards - Switch to masonry card layout instead of square grid (#10216) (cherry picked from commit bc1304b) * Fixes #35367 - Add legacy ch host ui button to new host page (#10235) (cherry picked from commit dc10b82) * Fixes #35369 - Moved the syncable repo exports to a different cv (#10237) Whenever we do an export repository or library we would 1) Find or Create the associated repo/library cv 2) Publish the version 3) Export the published version in a syncable format With the addition of syncable format we do the same. This has some unintended consequences For example 1) Export the repository in an importable format 2) Update the repository contents 3) Now export the same repo in syncable format 4) Finally do an incremental export of the same repo Notice that it has 0 content to export. That is because it is incrementally exporting between the repo state in 3 and 4 instead of 1 and 4 This commit fixes this by making the syncable exports happen in an entirely different content view, so that syncable and non syncable exports are not mixed. (cherry picked from commit 7195abf) * Fixes #35247 - Can Import/Export docker content (#10204) (cherry picked from commit 877546b) * Fixes #35368 - Prevent multiple envs in host registration (#10236) (cherry picked from commit bb5d05d) * Fixes #35382 - Add rake task to refresh repos on all pulp proxies (#10242) Co-authored-by: Joniel Pasqualetto [email protected] (cherry picked from commit 21107ca) * Fixes #35341 - Unpin faraday (#10226) This reverts commit 64b10e9. The individual pulp gems have Faraday pins and makes this redundant. It only hinders updating to Faraday. (cherry picked from commit 9558eb9) * Update release to 4.6.rc2 * Update Changelog Co-authored-by: Jeremy Lenz <[email protected]> Co-authored-by: Pavel Moravec <[email protected]> Co-authored-by: Chris Roberts <[email protected]> Co-authored-by: Partha Aji <[email protected]> Co-authored-by: Ewoud Kohl van Wijngaarden <[email protected]>
- Loading branch information
1 parent
447ea2f
commit 91030e1
Showing
26 changed files
with
219 additions
and
93 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
namespace :katello do | ||
desc 'Refresh all repositories in all smart proxies and main server' | ||
task :refresh_repos => ["environment", "dynflow:client"] do | ||
User.current = User.anonymous_api_admin | ||
::ForemanTasks.async_task(::Actions::BulkAction, ::Actions::Pulp3::Orchestration::Repository::RefreshRepos, SmartProxy.all) | ||
puts _("Repos are being refreshed in the background.") | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
module Katello | ||
VERSION = "4.6.0.rc1".freeze | ||
VERSION = "4.6.0.rc2".freeze | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
require 'katello_test_helper' | ||
require 'rake' | ||
|
||
module Katello | ||
class RefreshReposTest < ActiveSupport::TestCase | ||
def setup | ||
Rake.application.rake_require 'katello/tasks/refresh_repos' | ||
Rake::Task['katello:refresh_repos'].reenable | ||
Rake::Task.define_task(:environment) | ||
Rake::Task.define_task('dynflow:client') | ||
end | ||
|
||
def test_refresh_repos_on_smart_proxies | ||
::ForemanTasks.expects(:async_task).with(::Actions::BulkAction, ::Actions::Pulp3::Orchestration::Repository::RefreshRepos, SmartProxy.all) | ||
Rake.application.invoke_task('katello:refresh_repos') | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.