Project vulnerability errors out when exceed complexity
The project vulnerability errors out:
Error | Request Payload |
---|---|
This error is happening on staging. This happens when I enable all these feature flags that increase the queries of the page.
echo "Feature.enable(:refactor_vulnerability_tool_filter)" | rails c
echo "Feature.enable(:operational_vulnerabilities_filters)" | rails c
echo "Feature.enable(:security_auto_fix)" | rails c
gon.features
operationalVulnerabilitiesFilters: true
refactorVulnerabilityToolFilter: true
securityAutoFix: true
If I disable any of these, it will reduce the complexity and the queries will go through.
/chatops run feature set operational_vulnerabilities_filters false --staging
Note: I have NOT been able to reproduce this locally.
Steps to reproduce
- https://staging.gitlab.com/secure-team-test/security-reports/-/security/vulnerability_report/
- Open the developer tools => Network tab
- An error will occur
Workaround
- If you click on the "Operational vulnerabilities" tab.
- Return to the "Development vulnerabilities" tab.
- The queries will go through and the page will work as expected
project_vulnerability_report_working_when_switching_tabs__1_
Workaround B
- Change the page size to 50 or less
- Refresh the page
- The queries will go through and the page will work as expected
Thanks @dpisek
for the suggestion on this solution!
Edited by Samantha Ming