Unify request rate limiting logic
What does this MR do and why?
This is a refactoring MR which unifies request rate limiting logic usage. It will be helpful for second MR which actually fixes related issue.
Basically this MR improves check_rate_limit!
helper method for controllers and API and converts existing usages where possible.
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 #346140
Edited by Pavel Shutsin