Draft: Refine the quota limitation logic for inviting members
What does this MR do and why?
For quota limits - try to avoid the expensive Member query by...
- change quota query logic so that it considers all members(invites) for the day excluding access request types.
- correctly observe the
daily_invites
limit as0
means unlimited and is the default(column can't beNULL
)
See discussion in https://gitlab.com/gitlab-org/gitlab/-/issues/359960#note_918770266
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 #359960
Related to #360933
Edited by Doug Stull