Fixes #36256 - Allow user to force profile upload when changing host content view #10501
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What are the changes introduced in this pull request?
When changing a host's content view, normally the host's package and errata information isn't updated until the next package action or host check-in. This PR adds a checkbox allowing the user to force that update immediately, by running a subscription-manager command on the host via remote execution.
https://www.awesomescreenshot.com/video/16089294?key=99f6cd115d69a6ed97698284c4074dfe
Considerations taken when implementing this change?
Does this also require a change to the 'Change content source' workflow? I don't think so, because the job invocation that it provides already includes 'subscription-manager facts' which also updates the host. But double-check this to be safe :)
What are the testing steps for this pull request?
Check out the Foreman Remote Execution PR: theforeman/foreman_remote_execution#803
Load the updated job template: In rails console, run
Then run
bundle exec rails db:seed
and restart the server.Check out this PR and go to the new host detail page > Content view card > Edit content view assignment
Test the following: