Fix: Update duo issue to mr with status check

What does this MR do and why?

This MR hides the Generate MR with Duo button when the status checks fail.

References

Related GitLab Issue: #558237 (closed)

Screenshots or screen recordings

Before After
Screenshot_2025-08-11_at_2.15.48_PM Screenshot_2025-08-11_at_2.18.49_PM
Screen Recording FFs
Screen_Recording_2025-08-11_at_2.38.53_PM
Screen Recording Settings
Screen_Recording_2025-08-11_at_2.45.23_PM

How to set up and validate locally

Local Setup

  1. Enable duo_workflow and duo_workflow_in_ci FF. You may go to: http://gdk.test:3000/rails/features/ to enable. (Note: There may be some lag after enabling/disabling the FFs if something doesn't show/hide right away).

Testing FFs

  1. Go to a project that has Duo Agent Platform enabled (Go to Admin > GitLab Duo to enable).
  2. Go to your Project > Issues.
  3. Select and Issue and validate that Generate MR with Duo button appears.
  4. In your rails console or with the rails/features link above, disable the duo_workflow_in_ci FF.
  5. Validate the Generate MR with Duo button does not appear. Re-enable the duo_workflow_in_ci FF.
  6. In your rails console or with the rails/features link above, disable the duo_workflow FF.
  7. Validate the Generate MR with Duo button does not appear. Re-enable the duo_workflow FF.

Testing Settings

  1. Go to a project that has Duo Agent Platform.
  2. Go to your project settings (Settings > General) and go to GitLab Duo and disable.
  3. Go to your Project > Issues.
  4. Select and Issue and validate that Generate MR with Duo button doesn't appear.
  5. Go back to your Project Settings (as noted above), and re-enable GitLab Duo.
  6. Go to your GitLab Duo Settings (In SaaS, go to the top-level group > Settings > GitLab Duo. In SM, go to Admin > GitLab Duo) and select Change configuration. Unselect Feature preview and click Save changes.
    1. Go to your Project > Issues.
  7. Select and Issue and validate that Generate MR with Duo button doesn't appear.

MR acceptance checklist

Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #558237 (closed)

Edited by Lindsey Shelton

Merge request reports

Loading