-
Notifications
You must be signed in to change notification settings - Fork 295
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 #36083 - Remove remote_execution_by_default setting #10688
Fixes #36083 - Remove remote_execution_by_default setting #10688
Conversation
Issues: #36083 |
def plan(version_environments, composite_version_environments, content, dep_solve, hosts, description, | ||
use_remote_execution = false) | ||
def plan(version_environments, composite_version_environments, content, dep_solve, hosts, description) # rubocop:disable Metrics/MethodLength | ||
use_remote_execution = true # TODO: remove this when we remove katello-agent dynflow actions |
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 makes code on line 38-40 would never run.
Do we really need it?
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.
I didn't want to get too deep into editing Dynflow actions here, since Dynflow actions will be in another PR.
4993bb5
to
4339741
Compare
@lfu Removed |
@@ -43,7 +43,6 @@ class Engine < ::Rails::Engine | |||
'katelloAgentPresent' => ::Katello.with_katello_agent?, | |||
'remoteExecutionPresent' => ::Katello.with_remote_execution?, | |||
'hostToolingEnabled' => (::Katello.with_katello_agent? || ::Katello.with_remote_execution?) ? true : false, | |||
'remoteExecutionByDefault' => ::Katello.remote_execution_by_default? |
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.
remoteExecutionByDefault
is used by angular code. Maybe this line should be removed by the PR that cleans up angular code.
For this one, we can keep it as:
'remoteExecutionByDefault' => true
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.
@chris1984 If you can move this change to your PR, I'll remove it here.
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.
👍
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.
actually, If I remove this line but keep the method removed, it will break all the tests on this PR. @lfu I plan to merge the Angular PR first. I'm thinking it may be easier to just keep this PR the way it is.. @chris1984
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.
Lol that's fine, I'll take it out of mine
4339741
to
d7b0fc0
Compare
fixed rubocop |
@@ -42,8 +42,7 @@ class Engine < ::Rails::Engine | |||
'defaultDownloadPolicy' => !Foreman.in_rake? && db_migrated && Setting['default_download_policy'], | |||
'katelloAgentPresent' => ::Katello.with_katello_agent?, | |||
'remoteExecutionPresent' => ::Katello.with_remote_execution?, | |||
'hostToolingEnabled' => (::Katello.with_katello_agent? || ::Katello.with_remote_execution?) ? true : false, | |||
'remoteExecutionByDefault' => ::Katello.remote_execution_by_default? | |||
'hostToolingEnabled' => (::Katello.with_katello_agent? || ::Katello.with_remote_execution?) ? true : false |
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 line should be taken care of as well by some PR.
Tests went well with hammer incremental update. |
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.
LGTM 👍🏻
What are the changes introduced in this pull request?
Considerations taken when implementing this change?
Should probably wait to merge this one until any UI changes that depend on it are merged.
What are the testing steps for this pull request?