Skip to content

Add tooltip to resolve with ai split button

Samantha Ming requested to merge 435808-add-ai-tooltip-split-button into master

What does this MR do and why?

This MR adds a legal requirement to include the text as a tooltip to our Resolve with AI split button

This is an experiment feature that uses AI to provide recommendations for resolving this vulnerability. Use this feature with caution.

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

image

How to set up and validate locally

  1. Have the related FF enabled: echo "Feature.enable(:resolve_vulnerability_ai)" | rails c
  2. In order to run a pipeline to generate a Vulnerability report, you'll need an EE license.
  3. Fork https://gitlab.com/gitlab-org/govern/demos/sandbox/minac/test-remediations
  4. Run a pipeline against the default branch. It will generate vulnerabilities.
  5. Go to the project vulnerability report page
  6. Click on the SAST vulnerability
  7. In the dropdown down select the "Resolve with AI" button
  8. Hover on it to display the tooltip
  9. The tooltip should display the correct text

Note: the demo repo doesn't contain real vulnerabilities, so if you try to click on it, it will successfully make the request but you will get an error when trying to generate AI MR. This is okay. We're only testing the UI here.

Related to #435808 (closed)

Edited by Samantha Ming

Merge request reports