Skip to content

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
Screenshot_2024-09-18_at_11.33.26_AM Screenshot_2024-09-18_at_11.34.15_AM

How to set up and validate locally

  1. Import https://gitlab.com/gitlab-examples/security/security-reports\
  2. DO NOT RUN PIPELINE AGAINST MASTER
  3. Create an MR by changing the readme file
  4. Run pipeline for the MR
  5. Click on a vulnerability
  6. The "Resolve with AI" button should not show
  7. Enable FF (echo 'Feature.enable(:resolve_vulnerability_in_mr)' | rails c)
  8. The "Resolve with AI" button should show

Related to #481782 (closed)

Edited by David Pisek

Merge request reports

Loading