-
Notifications
You must be signed in to change notification settings - Fork 296
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes #35848 - Handles content move during manifest (#10388)
* Fixes #35848 - Handles content move during manifest Whenever a manifest is uploaded the candlepin instance refreshes its products and contents accordingly. Katello then refreshes its tables based on candlepin data. This works well if new content is added. But in some instances the provided manifest content may have moved from one product to another. The sat indexing logic was not handling this scenario causing duplicate repository sets. This commit addresses the move aspect. It tries to find the actual product that the content belonged to and moves over the product connected to the root repository. * Refs #35848 - handled no root repo with that content * Refs #35848 - Fixed rubocop errors * Refs #35848 - rubocop * Refs #35848 - Do not create product content if not needed * removed unnecessary lines
- Loading branch information
Showing
5 changed files
with
66 additions
and
8 deletions.
There are no files selected for viewing
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