Bug #26767
closedEmpty repository list when using bulk action for Manage Repository Sets
Description
The repository list in the bulk/select action for Manage Repository Sets is empty if user have only custom products (CentOS, EPEL, ...)
How reproducible: 100%
Steps to Reproduce:
1. Create a custom product
2. Create a repository in a custom product
3. Goto Hosts -> Content Hosts
4. Select one or more hosts with checkbox
5. Select Action (Dropdown) -> Manage Repository Sets
Actual results:
Repository list is empty with the message 'No enabled Repository Sets provided through subscriptions.'
Expected results:
Ability to change Repository Sets for hosts selected, like in Host -> Content Hosts -> HOST -> Repository Sets
Updated by John Mitsch over 5 years ago
- Target version set to Katello 3.13.0
- Triaged changed from No to Yes
Updated by The Foreman Bot over 5 years ago
- Status changed from New to Ready For Testing
- Assignee set to Samir Jha
- Pull request https://github.com/Katello/katello/pull/8191 added
Updated by Marco G over 5 years ago
I've applied the changes on my Katello 3.10.1, but I'm not able to see any repositories. Using the API 'repository_set' I get 0 results:
-> https://katello.example.com/katello/api/v2/repository_sets
<- {"total":0,"subtotal":0,"page":1,"per_page":20,"error":null,"search":null,"sort":{"by":"name","order":"asc"},"results":[]}
Maybe the problem is that I don't have any redhat repos nor any redhat repository sets. Does your patch return "custom repository sets along with redhat repos" and "custom repository sets even without any redhat repos" ?
Thanks,
Marco
Updated by Samir Jha over 5 years ago
Hey Marco,
Could you check this endpoint:
https://katello.example.com/katello/api/v2/repository_sets?with_custom=true
Updated by Marco G over 5 years ago
Using that endpoint, I get all my repositories:
{"total":24,"subtotal":24,"page":1,"per_page":20,"error":null,"search":null,"sort":{"by":"name","order":"asc"},"results":[{"enabled":null,"product":{"id":1,"name":"CentOS"},"repositories":[{"id":8,"name":"CentOS 7.3.1611 Base ....
Maybe do I have to do something else after modifying 'content-hosts-bulk-repository-sets-modal.controller.js' file ?
Updated by The Foreman Bot over 5 years ago
- Fixed in Releases Katello 3.14.0 added
Updated by Anonymous over 5 years ago
- Status changed from Ready For Testing to Closed
Applied in changeset katello|8765d1599e244eb6d3162c0bd49c474b8b659937.