Display the correct Direct Connections value in Duo admin page

What does this MR do and why?

The Duo admin page (<gitlab_url>/admin/gitlab_duo) is displaying the inverse value of the "Direct Connections" status. IE, if "Direct Connections" is enabled, the admin page shows "Not enabled" and vice versa.

The change in this MR ensures that the Duo admin page is displaying the correct "Direct Connections" status

References

Please include cross links to any resources that are relevant to this MR. This will give reviewers and future readers helpful context to give an efficient review of the changes introduced.

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

See screenshots in issue GitLab Duo overview in admin area is always wro... (#510766 - closed)

After

Direct Connections enabled

Screenshot_2025-02-07_at_12.45.47

Direct Connections disabled

Screenshot_2025-02-07_at_12.46.06

How to set up and validate locally

  1. Enable Duo Code Suggestions on your GDK

  2. As the admin user (root), go to the Duo Admin page

    Navigate to Admin Area -> GitLab Duo or <gitlab_url>/admin/gitlab_duo

  3. Confirm that "Direct Connections" status is displayed correctly. (See screenshots above.)

Related to #510766 (closed)

Edited by Pam Artiaga

Merge request reports

Loading