Description of problem: Whenever the user changes the git URL on the add page, the browser makes four API calls to GitHub, GitLab, or Bitbucket. One of these calls fetches the same data twice. It looks like the console fetches the git file list twice. Version-Release number of selected component (if applicable): 4.10 How reproducible: Always Steps to Reproduce: 1. Switch to developer perspective 2. Navigate to the add page 3. Open browser network inspector 4. Enter a Git URL or change it Actual results: You can see 4 API calls to the git provider. One of them is called twice. Expected results: In the current situation I would expect 3 API calls. We should avoid calling the same API twice. Additional info: None
Created attachment 1849508 [details] duplicate-call.png
fixed by https://github.com/openshift/console/pull/10769 Verified on OpenShift version 4.10.0-0.nightly-2022-01-13-061145 Kubernetes version v1.23.0+50f645e Channel stable-4.10 Cluster ID 26787444-e326-4bb9-8807-f7f2a362bf27 API server https://api.app-svc-4.10-011707.devcluster.openshift.com:6443
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 (Moderate: OpenShift Container Platform 4.10.3 security update), 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-2022:0056