Skip to content

Automatically test connection on admin page

Jan Provaznik requested to merge jp-ai-check into master

What does this MR do and why?

Related to #458164 (closed)

Automatically test connection on admin page

When admin visits "GitLab Duo Pro" admin page, we automatically run a simple test completion request to check if code suggestions request work as expected and show this result as a flash message.

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

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Screenshots of success and error messages:

success

error

How to set up and validate locally

  1. Set code suggestions add-on locally
  2. In web UI. go to Admin -> Gitlab Duo Pro page, flash message with a test result should be displayed
Edited by Jan Provaznik

Merge request reports