Skip to content

Fix simultaneous requests for vulnerabilities on pipeline security tab

Daniel Tian requested to merge 287762-fix-multiple-vulnerabilities-requests into master

What does this MR do?

On the pipeline details page, the security tab shows a list of vulnerabilities with selectable filters:

ksnip_20201124-112312

When clicking rapidly on the dropdown options, multiple network requests will be initiated simultaneously:

Peek_2020-11-24_11-25

Because the last request that completes will set the vulnerability list rather than the last request that was initiated, there's an issue where the vulnerability list may not match with what's selected in the filter:

ksnip_20201124-113310

This MR fixes that behavior by cancelling any in-flight network requests for vulnerabilities so that only one can be active at a time:

Screenshot_from_2020-11-24_11-38-45

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Edited by Daniel Tian

Merge request reports