Vulnerability report errors out when users select `Show 100 items` and switch tabs
Summary
Steps to reproduce
- Navigate to a
project => Security & Compliance => Vulnerability Report
- At the bottom of the page, set the number of showing vulnerabilities to
Show 100 items
- Navigate to the
Operational vulnerabilities
tab
Similarly
- Land on the
Operational vulnerabilities
tab - At the bottom of the page, set the number of showing vulnerabilities to
Show 100 items
- Navigate to the
Developmental vulnerabilities
tab
Workaround
- Refresh the page
- Change any filter
Example Project
What is the current bug behavior?
An error occurs on the graphql request for projectVulnerabilities
and says Query has complexity of 252, which exceeds max complexity of 250
What is the expected correct behavior?
An error does not occur
Relevant logs and/or screenshots
How to debug
- Open the developer tools => Network tab
- An error should occur
- In the developer tools, search the Network tab for
graphql
- Find the request with the error
Screenshot | Screen Recording 1 | Screen Recording 2 |
---|---|---|
Screen_Recording_2022-07-05_at_12.38.50 |
Possible causes
- There is a bug where two requests for
projectVulnerabilities
goes off and it seems to be reproducible. Perhaps two queries going to the DB at once is breaking it?
Solutions proposed in #366951 (comment 1018166007).
Edited by Paul Gascou-Vaillancourt