New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixes #28189 - Refresh repo when needed #8415
Conversation
Issues: #28189 |
To test this
Now check out the PR
|
[test katello] |
@parthaa is there a test case where the |
https://github.com/Katello/katello/pull/8415/files#diff-9a8be58a012da76042ea5e21ad94e40aR160 I test if refresh_if_needed does not call refresh |
@@ -199,6 +201,10 @@ def proxy_host_importer_value | |||
root.ignore_global_proxy ? "" : nil | |||
end | |||
|
|||
def refresh_if_needed | |||
refresh if needs_importer_updates? || needs_distributor_updates? | |||
end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is the same logic as mirror_needs_updates? maybe we could combine those into one method?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated
When a manifest refresh is triggered all the RH repos update their distributors and importers, even if those repos did not change. This commit makes a repo update its importers and distributors only if needed.
b90d55e
to
07b8cf6
Compare
[test katello] |
2 similar comments
[test katello] |
[test katello] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* Fixes #28189 - Refresh repo when needed When a manifest refresh is triggered all the RH repos update their distributors and importers, even if those repos did not change. This commit makes a repo update its importers and distributors only if needed. (cherry picked from commit 1237135)
* Fixes #28189 - Refresh repo when needed When a manifest refresh is triggered all the RH repos update their distributors and importers, even if those repos did not change. This commit makes a repo update its importers and distributors only if needed. (cherry picked from commit 1237135)
* Fixes #28189 - Refresh repo when needed When a manifest refresh is triggered all the RH repos update their distributors and importers, even if those repos did not change. This commit makes a repo update its importers and distributors only if needed. (cherry picked from commit 1237135)
When a manifest refresh is triggered all the RH repos update their
distributors and importers, even if those repos did not change. This
commit makes a repo update its importers and distributors only if
needed.