Added optional feature to use Djblet's WebAPIResourceRateLimitMixin to rate limit API calls
Review Request #8868 — Created April 3, 2017 and discarded
Review Board needs the option to allow rate limits for any API
requests (see review request 8839 for more details).
This is done by allowing the user to override Djblet's
WebAPIResourceRateLimitMixin class.
The test for the WebAPIResourceRateLimitMixin class can be found
in review request 8839. However, one test has been added in
webapi/tests/test_base.py
-
-
This isn't immediately useful.
You will want to add a field to the admin settings form that saves whether or not we should ratelimit to siteconfig and return that value here.
-
This isn't immediately useful.
You will want to add a field to the admin settings form that saves whether or not we should ratelimit to siteconfig and return that value here.