Automatically test connection on admin page
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:
How to set up and validate locally
- Set code suggestions add-on locally
- In web UI. go to Admin -> Gitlab Duo Pro page, flash message with a test result should be displayed
Edited by Jan Provaznik