Removed EnterpriseMiddleware
EnterpriseMiddleware set value of user's enterprise customer in session. In order to get value of enterprise customer it calls `enterprise/api/v1/enterprise-learner` API. Sometimes this middleware is called many times which result in many call to the under lying API and throttling of API causes 429 http errors. We are not removing that middleware and storing value of user's enterprise customer in session inside underlying method. ENT-1849 Removed pdb statement
Showing
- lms/envs/common.py 0 additions, 3 deletionslms/envs/common.py
- openedx/features/enterprise_support/api.py 3 additions, 1 deletionopenedx/features/enterprise_support/api.py
- openedx/features/enterprise_support/middleware.py 0 additions, 30 deletionsopenedx/features/enterprise_support/middleware.py
- openedx/features/enterprise_support/tests/test_api.py 31 additions, 0 deletionsopenedx/features/enterprise_support/tests/test_api.py
- openedx/features/enterprise_support/tests/test_middleware.py 0 additions, 51 deletionsopenedx/features/enterprise_support/tests/test_middleware.py
Please register or sign in to comment