One group with CS enabled is enough for a user
requested to merge 431820-user-can-use-code-suggestion-when-1-namespace-they-belong-to-has-cs-enabled into master
What does this MR do and why?
Previously, if any namespace a user belongs to had disabled code suggestions, we disabled it for that user. We're now changing it so that as long as one namespace has it enabled, it's enough to enable it for that user
How to set up and validate locally
- Setup code suggestions for your instance
- Enable code suggestions for one group for a user (Group >> Settings >> General >> Permissions and Group Features)
- Disable code suggestions for another group for the same user
- That user should now be able to use the
/api/v4/code_suggestions/completions
endpoint
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 #431820 (closed)
Edited by Allen Cook