Skip to content

Send to FE whether explain code functionality is available

Igor Drozdov requested to merge id-send-explain-code-available-to-fe into master

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_code is available for the project (Ultimate)
  • explain_code_snippet feature flag is enabled for the user
  • The user is a member of the project
  • openai_experimentation feature flag is enabled

Merge request reports