Skip to content

Draft: Refine the quota limitation logic for inviting members

Doug Stull requested to merge 359960-quota-limit-refinement into master

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 as 0 means unlimited and is the default(column can't be NULL)

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.

Related to #359960

Related to #360933

Edited by Doug Stull

Merge request reports