Description of problem: When the user opens the Pipeline Builder and searches for a task, the quick search modal makes a 'version' API call to show the details on the right side for a task. When typing quickly into the search input, the modal makes multiple API calls for the same 'version' resource. For example when typing 'build' quickly it makes 5 API calls. Version-Release number of selected component (if applicable): 4.9-4.11 How reproducible: Always Steps to Reproduce: 1. Install OpenShift Pipelines operator 2. Switch to the Developer Perspective, navigate to Pipelines > Create Pipeline 3. Open the browser network inspector 4. Click on "Add task" and type "build" into the search Actual results: The same resource (/versions/7 at the moment) is fetched multiple times. Expected results: Each resource should only be fetched once. An in-flight API call should not be fetched again just because the search input is changed. Additional info: Looks like the API is called again because the first request is not fulfilled and the user input change triggers a rerender that results in an API call.
Created attachment 1873484 [details] multiple-api-calls.mp4
Verified on 4.11.0-0.nightly-2022-05-20-213928
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 (Important: OpenShift Container Platform 4.11.0 bug fix and 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:5069