Project

General

Profile

Actions

Bug #39423

closed

product_content_importer do not update the content_label even if it has changed in the source for same content_id

Added by Sayan Das 2 months ago. Updated about 2 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Repositories
Target version:
Difficulty:
medium
Triaged:
Yes
Fixed in Releases:
Found in Releases:

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.

Actions

Also available in: Atom PDF