Skip to content

Code suggestions Web IDE feature flag & settings

Alper Akgun requested to merge 404428-code-suggestions-feature-flag-control into master

What does this MR do and why?

Code suggestions Web IDE: feature flag control & settings

  • Respects a feature flag
  • Respects user and group admin settings (policy)
  • Only a feature flag protects self managed not to receive any web IDE code suggestions. This can be a desired feature for self managed roadmap.

How to set up and validate locally

Enable the feature flag

# bin/rails c
Feature.enable(:ai_assist_web_ide)

Enable code_suggestions group settings for all root groups as well as profile setting.

user = User.find(42)
user.groups.by_parent(nil).map { |g| g.update(code_suggestions: true) }
user.namespace.update(code_suggestions: true)

How to see the code suggestion extension is loaded into the web IDE.

  1. Go to any project for the user and click Web IDE

image

When the user cannot see code suggestions When the user can see
image image

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #404428 (closed)

Edited by Alper Akgun

Merge request reports