Bug #39423
closedproduct_content_importer do not update the content_label even if it has changed in the source for same content_id
Description
There can be a situation where a redhat repo was enabled in Katello, and say it has a set of properties right now e.g. content_id , repo name, content_label, url etc.
Now, if redhat decides to rename or correct that repo content_label for some reason, Our current code in https://github.com/Katello/katello/blob/master/app/services/katello/product_content_importer.rb#L160-L176 would not care for it and no matter how many times we refresh the manifest or delete and re-enable the repo, the repo would always keep on showing up with the wrong\old content_label.
If we check database, candlepin will have the updated info but not katello ( especially katello_contents ). Hence, it's important that we update the content_label as well via update_content in https://github.com/Katello/katello/blob/master/app/services/katello/product_content_importer.rb#L160-L176 to make sure that katello and Candlepin are in sync and a simple manifest refresh can fix the issue for any affected end-users.
Updated by The Foreman Bot about 1 month ago
- Status changed from New to Ready For Testing
- Pull request https://github.com/Katello/katello/pull/11782 added
Updated by Sayan Das 28 days ago
- Status changed from Ready For Testing to Closed
Applied in changeset katello|a992083213cb6d94316a03dd0d88696f710f3766.
Updated by Ian Ballou 25 days ago
- Target version set to Katello 5.0.0
- Triaged changed from No to Yes