Bug #38699
closedDebian repos are shown multiple times on the new host details page in repo sets for multi-cves
Description
Reproducer:
Add multiple Deb CVs with repositories to a host, e.g with hammer. Then look at the Host details → content → repo sets page.
E.g. hammer host update --id 20 --content-view-environments "development/Ubuntu_22_04_CV,test/Ubuntu_22_04_CV,test/CCV_Debian_11"
Problematic code: https://github.com/Katello/katello/blob/dac6836079633c0a546ac35d932e85ba6992ddd3/app/services/katello/product_content_finder.rb#L30
The query is searching for content views and lifecycle environments, independently, and giving a mixed combination of all available environments and content view ids instead of grouping the search by the corresponding content view/environment. In addition, the search result should be filtered by library instance id to really get rid of multiple repos.