Invalidate namespace_user_cap_reached Cache
What does this MR do and why?
Invalidate the cache for the namespace user cap reached alert banner.
This will make the banner display more accurate sooner rather than waiting for the cache to expire when users are added or removed from a group.
This work is all behind a feature flag. The flag is disabled.
Issue: #332595 (closed)
Screen Recording
In the screen recordings below, the namespace has a new_user_signups_cap
of 2
set.
The first page load does not display the banner. Adding a member busts the cache and so the banner is displayed. Removing the member busts the cache again, and the banner is removed.
Screen_Recording_2021-10-19_at_7.40.16_PM
Updating the user's role from Developer to Guest busts the cache, and the banner is removed. Updating it again from Guest to Developer also busts the cache and the banner is displayed again.
Screen_Recording_2021-10-20_at_2.12.53_PM
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.