Make course ids and usage ids opaque to LMS and Studio [partial commit]
This commit updates common/djangoapps. These keys are now objects with a limited interface, and the particular internal representation is managed by the data storage layer (the modulestore). For the LMS, there should be no outward-facing changes to the system. The keys are, for now, a change to internal representation only. For Studio, the new serialized form of the keys is used in urls, to allow for further migration in the future. Co-Author: Andy Armstrong <andya@edx.org> Co-Author: Christina Roberts <christina@edx.org> Co-Author: David Baumgold <db@edx.org> Co-Author: Diana Huang <dkh@edx.org> Co-Author: Don Mitchell <dmitchell@edx.org> Co-Author: Julia Hansbrough <julia@edx.org> Co-Author: Nimisha Asthagiri <nasthagiri@edx.org> Co-Author: Sarina Canelake <sarina@edx.org> [LMS-2370]
Showing
- common/djangoapps/contentserver/middleware.py 6 additions, 4 deletionscommon/djangoapps/contentserver/middleware.py
- common/djangoapps/contentserver/tests/test.py 13 additions, 16 deletionscommon/djangoapps/contentserver/tests/test.py
- common/djangoapps/course_groups/cohorts.py 61 additions, 51 deletionscommon/djangoapps/course_groups/cohorts.py
- common/djangoapps/course_groups/models.py 3 additions, 1 deletioncommon/djangoapps/course_groups/models.py
- common/djangoapps/course_groups/tests/test_cohorts.py 13 additions, 13 deletionscommon/djangoapps/course_groups/tests/test_cohorts.py
- common/djangoapps/course_groups/views.py 32 additions, 30 deletionscommon/djangoapps/course_groups/views.py
- common/djangoapps/course_modes/models.py 3 additions, 1 deletioncommon/djangoapps/course_modes/models.py
- common/djangoapps/course_modes/tests/test_models.py 18 additions, 17 deletionscommon/djangoapps/course_modes/tests/test_models.py
- common/djangoapps/course_modes/views.py 19 additions, 15 deletionscommon/djangoapps/course_modes/views.py
- common/djangoapps/django_comment_common/models.py 11 additions, 5 deletionscommon/djangoapps/django_comment_common/models.py
- common/djangoapps/django_comment_common/tests.py 5 additions, 4 deletionscommon/djangoapps/django_comment_common/tests.py
- common/djangoapps/django_comment_common/utils.py 10 additions, 10 deletionscommon/djangoapps/django_comment_common/utils.py
- common/djangoapps/embargo/forms.py 15 additions, 3 deletionscommon/djangoapps/embargo/forms.py
- common/djangoapps/embargo/models.py 6 additions, 2 deletionscommon/djangoapps/embargo/models.py
- common/djangoapps/embargo/tests/test_forms.py 4 additions, 4 deletionscommon/djangoapps/embargo/tests/test_forms.py
- common/djangoapps/embargo/tests/test_middleware.py 2 additions, 2 deletionscommon/djangoapps/embargo/tests/test_middleware.py
- common/djangoapps/embargo/tests/test_models.py 2 additions, 1 deletioncommon/djangoapps/embargo/tests/test_models.py
- common/djangoapps/external_auth/tests/test_shib.py 7 additions, 6 deletionscommon/djangoapps/external_auth/tests/test_shib.py
- common/djangoapps/external_auth/tests/test_ssl.py 12 additions, 10 deletionscommon/djangoapps/external_auth/tests/test_ssl.py
- common/djangoapps/external_auth/views.py 5 additions, 12 deletionscommon/djangoapps/external_auth/views.py
Please register or sign in to comment