Replace experimentation API with GraphQL endpoint for Explain Code
What does this MR do and why?
This replaces the current experimentation API for Explain Code with the Abstraction layer (GraphQL endpoint for AI Explain Code) on the frontend.
Screenshots or screen recordings
How to set up and validate locally
- Enable the following feature flags:
explain_code
explain_code_snippet
openai_experimentation
ai_experimentation_api
- Add an OpenAI API key by following the steps in !116364 (merged)
- Run the following command in the root of your project:
curl https://gitlab.com/gitlab-org/gitlab/-/merge_requests/117358.diff | git apply
- This will apply changes from !117358 (merged) on which this MR relies.
- Open a file containing Source Code (Note, this file should not be from the GitLab codebase).
- Highlight some of the Source Code.
- Click on the
(?)
button in the gutter to the left of the source code. - A popup should appear and the response should load once we receive a notification from the backend.
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #406783
Edited by Jacques Erasmus