Clear AI availability check when members get added or removed
What does this MR do and why?
Related to #425141 (closed)
Clear AI availability check when members get added or removed
We now clear the cache for each user of a group or project when they get added as a member or remoevd. As an additional optimization, we return early when the Namespace has no AI features available.
Screenshots or screen recordings
Screen_Recording_2023-10-17_at_12.41.46
Before | After |
---|---|
How to set up and validate locally
- AI features enabled, and running gitlab in SAAS mode
- Add a user to a group or project who had no AI access beforehand
- Make sure the user now has access e.g. the chat shows up
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.
Edited by Nicolas Dular