refactor: reduce certificate django apps dependence on the modulestore (generation_handler)
[MICROBA-1178] - remove modulestore usage in `generation_handler.py` - add duplicate functions that utilize a CourseKey or CourseOverview to remove dependence on modulestore (this will be cleaned up (if possible) at a later part of this refactor) - add python API function to `content`/`course_overview` app that will retrieve a single CourseOverview (rather than a serialized list of dicts of CourseOverview data)
Showing
- lms/djangoapps/certificates/generation_handler.py 34 additions, 50 deletionslms/djangoapps/certificates/generation_handler.py
- lms/djangoapps/certificates/tests/test_generation_handler.py 1 addition, 1 deletionlms/djangoapps/certificates/tests/test_generation_handler.py
- lms/djangoapps/certificates/tests/test_utils.py 45 additions, 0 deletionslms/djangoapps/certificates/tests/test_utils.py
- lms/djangoapps/certificates/utils.py 13 additions, 0 deletionslms/djangoapps/certificates/utils.py
- lms/djangoapps/instructor/access.py 16 additions, 0 deletionslms/djangoapps/instructor/access.py
- lms/djangoapps/instructor/tests/test_access.py 11 additions, 1 deletionlms/djangoapps/instructor/tests/test_access.py
- lms/djangoapps/instructor/tests/test_api.py 4 additions, 3 deletionslms/djangoapps/instructor/tests/test_api.py
- openedx/core/djangoapps/content/course_overviews/api.py 7 additions, 1 deletionopenedx/core/djangoapps/content/course_overviews/api.py
- openedx/core/djangoapps/content/course_overviews/tests/test_api.py 9 additions, 1 deletion...ore/djangoapps/content/course_overviews/tests/test_api.py
Loading
Please register or sign in to comment