-
Bug
-
Resolution: Duplicate
-
Undefined
-
None
-
2.4
-
False
-
-
False
-
-
Problem Description:
The UI uses an api endpoint to lookup the distros associated with a repo. When multiple distros exist, and the UI wants to display a single distro, it will pick the first one in the list. Many systems will have many distros for a repo (like `inbound-<namespace>` distros that point to the `staging` repo). This results in:
- UI uploads make a POST to a random distro associated to the `staging` repo, like `inbound-infra` for CRC. This resulted in issue
AAH-2440, which has a workaround resolution.
- Repositories page "Copy CLI configuration" button for `staging` repo can give for example`url=<host>/api/automation-hub/content/inbound-autohubtest2/` which is confusing (and could have rbac implications?)
-
- For CRC this page is not commonly used, but users can find it by clicking repo link in the collection list: https://console.redhat.com/ansible/automation-hub/ansible/repositories/published/ which lists a synclist distro under the "Copy CLI configuration".
Proposed Solution:
- UI gets the entire list of distros and filters out anything we don't want displayed
- Add a filter to pulp-ansible that allows the user to search for distros that do not include the pattern that we don't want displayed