-
Notifications
You must be signed in to change notification settings - Fork 300
Fixes #38484 - Incremental CCV updates no longer update all components to latest version #11411
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
base: master
Are you sure you want to change the base?
Conversation
Reviewer's GuideRefactors component override inclusion in content view publishing to respect incremental updates—restricting component upgrades to the previous version’s components for minor bumps rather than always using the latest. Sequence Diagram for Conditional Component Fetching in
|
Change | Details | Files |
---|---|---|
Forward version parameters to include_other_components in the publish plan |
|
app/lib/actions/katello/content_view/publish.rb |
Enhance include_other_components to support incremental update semantics |
|
app/lib/actions/katello/content_view/publish.rb |
Tips and commands
Interacting with Sourcery
- Trigger a new review: Comment
@sourcery-ai review
on the pull request. - Continue discussions: Reply directly to Sourcery's review comments.
- Generate a GitHub issue from a review comment: Ask Sourcery to create an
issue from a review comment by replying to it. You can also reply to a
review comment with@sourcery-ai issue
to create an issue from it. - Generate a pull request title: Write
@sourcery-ai
anywhere in the pull
request title to generate a title at any time. You can also comment
@sourcery-ai title
on the pull request to (re-)generate the title at any time. - Generate a pull request summary: Write
@sourcery-ai summary
anywhere in
the pull request body to generate a PR summary at any time exactly where you
want it. You can also comment@sourcery-ai summary
on the pull request to
(re-)generate the summary at any time. - Generate reviewer's guide: Comment
@sourcery-ai guide
on the pull
request to (re-)generate the reviewer's guide at any time. - Resolve all Sourcery comments: Comment
@sourcery-ai resolve
on the
pull request to resolve all Sourcery comments. Useful if you've already
addressed all the comments and don't want to see them anymore. - Dismiss all Sourcery reviews: Comment
@sourcery-ai dismiss
on the pull
request to dismiss all existing Sourcery reviews. Especially useful if you
want to start fresh with a new review - don't forget to comment
@sourcery-ai review
to trigger a new review!
Customizing Your Experience
Access your dashboard to:
- Enable or disable review features such as the Sourcery-generated pull request
summary, the reviewer's guide, and others. - Change the review language.
- Add, remove or edit custom review instructions.
- Adjust other review settings.
Getting Help
- Contact our support team for questions or feedback.
- Visit our documentation for detailed guides and information.
- Keep in touch with the Sourcery team by following us on X/Twitter, LinkedIn or GitHub.
I still need to fill in the PR description and create a test case. I needed to move this issue to review ASAP so this PR is going up tonight. |
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.
Hey @qcjames53 - I've reviewed your changes and they look great!
Here's what I looked at during the review
- 🟡 General issues: 1 issue found
- 🟢 Security: all looks good
- 🟢 Testing: all looks good
- 🟢 Documentation: all looks good
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
b0ee5ed
to
1895e98
Compare
This PR is ready for review. I can't locate the trailing whitespace Rubocop is talking about; why is it not returning the problematic file? |
…s to latest version
React test failures unrelated. Please re-run when reviewing as they will probably be fixed by then. |
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.
Looks good to me and useful comments.
I wonder why assertions are seeing the new unfiltered CVV (B-v2.0), showing in the Composite (v1.1) after incremental update, but before publishing the Composite again (v2.0).
What are the changes introduced in this pull request?
When running an update on a content view inside of a composite content view with the
--propagate-all-composites
flag set to true, we include all un-overridden child components in the new composite content view. When this is a major update (e.g. 1.0 -> 2.0) these components follow the `always update to latest version' checkbox. When this is a minor update (e.g. 1.0 -> 1.1), these components now maintain their original version.Considerations taken when implementing this change?
This change in behavior is being introduced because users were applying one or two errata and finding that large swaths of otherwise unaffected products were being updated. Users will now have to manually create a major version if they would like to update other repositories after applying errata.
What are the testing steps for this pull request?
--propagate-all-composites
. This will create A v1.1 and X v1.1. If the bug still exists, X v1.1 will contain A v1.1 and B v2.0. If the bug is fixed, X v1.1 will contain A 1.1 and B v1.0.