Add Resolve-AI to finding modal
What does this MR do and why?
Adds "Resolve with AI" button to the MR-Security-Widget's finding modal.
Note: There will be more logic added in separate MRs, once some additional GraphQL fields are available: #481533 (closed)
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Screenshots or screen recordings
Before | After |
---|---|
How to set up and validate locally
- Import https://gitlab.com/gitlab-examples/security/security-reports\
- DO NOT RUN PIPELINE AGAINST MASTER
- Create an MR by changing the readme file
- Run pipeline for the MR
- Click on a vulnerability
- The "Resolve with AI" button should not show
- Enable FF (
echo 'Feature.enable(:resolve_vulnerability_in_mr)' | rails c
) - The "Resolve with AI" button should show
Related to #481782 (closed)
Edited by David Pisek