Remove modulestore dependency from Enrollment API
Sets the Enrollment API free of the modulestore by replacing modulestore queries with calls to the CourseOverview model. Course deletion invalidates the corresponding CourseOverview. XCOM-462.
Showing
- common/djangoapps/enrollment/data.py 11 additions, 6 deletionscommon/djangoapps/enrollment/data.py
- common/djangoapps/enrollment/serializers.py 9 additions, 10 deletionscommon/djangoapps/enrollment/serializers.py
- common/djangoapps/enrollment/tests/test_views.py 46 additions, 23 deletionscommon/djangoapps/enrollment/tests/test_views.py
- common/djangoapps/student/models.py 23 additions, 30 deletionscommon/djangoapps/student/models.py
- common/djangoapps/student/tests/test_course_listing.py 14 additions, 11 deletionscommon/djangoapps/student/tests/test_course_listing.py
- common/djangoapps/student/tests/test_recent_enrollments.py 4 additions, 4 deletionscommon/djangoapps/student/tests/test_recent_enrollments.py
- common/djangoapps/student/tests/tests.py 8 additions, 10 deletionscommon/djangoapps/student/tests/tests.py
- common/lib/xmodule/xmodule/modulestore/__init__.py 9 additions, 1 deletioncommon/lib/xmodule/xmodule/modulestore/__init__.py
- common/lib/xmodule/xmodule/modulestore/django.py 3 additions, 1 deletioncommon/lib/xmodule/xmodule/modulestore/django.py
- common/lib/xmodule/xmodule/modulestore/mongo/draft.py 2 additions, 0 deletionscommon/lib/xmodule/xmodule/modulestore/mongo/draft.py
- common/lib/xmodule/xmodule/modulestore/split_mongo/split.py 2 additions, 0 deletionscommon/lib/xmodule/xmodule/modulestore/split_mongo/split.py
- common/lib/xmodule/xmodule/modulestore/tests/test_mixed_modulestore.py 28 additions, 0 deletions...odule/xmodule/modulestore/tests/test_mixed_modulestore.py
- lms/djangoapps/courseware/access.py 55 additions, 49 deletionslms/djangoapps/courseware/access.py
- lms/djangoapps/courseware/tests/test_access.py 7 additions, 1 deletionlms/djangoapps/courseware/tests/test_access.py
- openedx/core/djangoapps/content/course_overviews/migrations/0004_auto__add_field_courseoverview_enrollment_start__add_field_courseoverv.py 94 additions, 0 deletions...courseoverview_enrollment_start__add_field_courseoverv.py
- openedx/core/djangoapps/content/course_overviews/models.py 15 additions, 2 deletionsopenedx/core/djangoapps/content/course_overviews/models.py
- openedx/core/djangoapps/content/course_overviews/signals.py 10 additions, 2 deletionsopenedx/core/djangoapps/content/course_overviews/signals.py
- openedx/core/djangoapps/content/course_overviews/tests.py 41 additions, 19 deletionsopenedx/core/djangoapps/content/course_overviews/tests.py
Please register or sign in to comment