Code suggestions Web IDE feature flag & settings
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.
- Go to any project for the user and click Web IDE
When the user cannot see code suggestions | When the user can see |
---|---|
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 #404428 (closed)
Edited by Alper Akgun