Skip to content

One group with CS enabled is enough for a user

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

  1. Setup code suggestions for your instance
  2. Enable code suggestions for one group for a user (Group >> Settings >> General >> Permissions and Group Features)
  3. Disable code suggestions for another group for the same user
  4. 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.

Related to #431820 (closed)

Edited by Allen Cook

Merge request reports