Send to FE whether explain code functionality is available
What does this MR do and why?
This MR sends explain_code_available/explainCodeAvailable to FE.
::Llm::ExplainCodeService.new(current_user, project).valid? is SSoT that performs all the necessary checks:
- Project is public
- Project repo is public
- License feature
explain_codeis available for the project (Ultimate) -
explain_code_snippetfeature flag is enabled for the user - The user is a member of the project
-
openai_experimentationfeature flag is enabled