Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
edx-platform-release
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Hsin-Yu Chien
edx-platform-release
Commits
f2ee173a
Commit
f2ee173a
authored
7 years ago
by
Albert St. Aubin
Browse files
Options
Downloads
Patches
Plain Diff
Increase the Throttle on the enrollments API to allow ecommerce to request more frequently
[LEARNER-4676]
parent
855c4e42
Loading
Loading
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
common/djangoapps/enrollment/views.py
+4
-1
4 additions, 1 deletion
common/djangoapps/enrollment/views.py
with
4 additions
and
1 deletion
common/djangoapps/enrollment/views.py
+
4
−
1
View file @
f2ee173a
...
...
@@ -74,9 +74,12 @@ class ApiKeyPermissionMixIn(object):
class
EnrollmentUserThrottle
(
UserRateThrottle
,
ApiKeyPermissionMixIn
):
"""
Limit the number of requests users can make to the enrollment API.
"""
# The staff Throttle rate is currently being adjusted to meet the needs of the eCommerce API calls.
# This should be reviewed for performance and we should determine the optimum throttle for the needs of this API.
# https://openedx.atlassian.net/wiki/spaces/LEARNER/pages/645923004/eCommerce+Guild
THROTTLE_RATES
=
{
'
user
'
:
'
40/minute
'
,
'
staff
'
:
'
1
200/minute
'
,
'
staff
'
:
'
2
0
00/minute
'
,
# Decided on by looking at number of API calls to the Enrollment API from Staff users
}
def
allow_request
(
self
,
request
,
view
):
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment