Description of problem: When we filter out "RPM" repos, still we can see Beta repositories on Red Hat Repositories page. We have a separate filter for "Beta" repos, unless user use it those beta repos should not be listed. Example: On Red Hat Repositories page, Click on "Nothing Selected" -> Select only "RPM" , You will see many Beta repositories also listed. If we limit the search results for "RPM" to non-beta repos then the search result will look good and it will be easy to find and enable the required repository.
Created attachment 1471484 [details] Beta repos listed even when we have seleceted RPM filter
Created redmine issue https://projects.theforeman.org/issues/24680 from this bug
Any idea if we need to provide something other than RPM as a content type? The search we're providing currently is: /katello/api/v2/repository_sets?organization_id=1&with_active_subscription=true&per_page=20&search=(((name+!~+source+rpm)+and+(name+!~+debug+rpm)+and+(content_type+%3D+yum))) Trying to figure out if this issue is on the API or UI side.
I am going to switch the needinfo to Michael. He picked up the card yesterday afternoon to begin investigating. I suspect that this will involve both server-side and UI. The UI side may be simply updating the query when Beta is selected. (If you can point Michael to that code, that would be great.) The server-side might be creating a custom search (if not supported by default). That said, it needs to be investigated to identify the proper solution. On the old page (Sat 6.3), the app was able to differentiate types based upon: RPMs, Kickstarts, Source RPMs, Debug RPMs, Beta, ISOs, OSTree and Other That page was using the following action: katello/providers/redhat_provider_tab?tab=beta
(In reply to Brad Buckingham from comment #5) > I am going to switch the needinfo to Michael. He picked up the card > yesterday afternoon to begin investigating. I suspect that this will > involve both server-side and UI. The UI side may be simply updating the > query when Beta is selected. (If you can point Michael to that code, that > would be great.) The server-side might be creating a custom search (if not > supported by default). That said, it needs to be investigated to identify > the proper solution. > > On the old page (Sat 6.3), the app was able to differentiate types based > upon: > RPMs, Kickstarts, Source RPMs, Debug RPMs, Beta, ISOs, OSTree and Other > > That page was using the following action: > katello/providers/redhat_provider_tab?tab=beta https://github.com/Katello/katello/blob/master/webpack/redux/actions/RedHatRepositories/helpers.js#L7
Moving this bug to POST for triage into Satellite 6 since the upstream issue https://projects.theforeman.org/issues/24680 has been resolved.
Verified on Satellite 6.4 snap 2O, repository search limited to RPM type does not include beta repositories
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2018:2927