Provide more context to calls to Segment.
Implementation for DE-1089. Centralize the definition of context into a single method. This is in common/djangoapps/track because the context is originally set there by middleware.
Showing
- common/djangoapps/student/models.py 12 additions, 22 deletionscommon/djangoapps/student/models.py
- common/djangoapps/student/tests/test_activate_account.py 4 additions, 4 deletionscommon/djangoapps/student/tests/test_activate_account.py
- common/djangoapps/third_party_auth/pipeline.py 7 additions, 19 deletionscommon/djangoapps/third_party_auth/pipeline.py
- common/djangoapps/third_party_auth/tests/specs/base.py 4 additions, 4 deletionscommon/djangoapps/third_party_auth/tests/specs/base.py
- common/djangoapps/track/segment.py 57 additions, 0 deletionscommon/djangoapps/track/segment.py
- common/djangoapps/track/tests/test_segment.py 149 additions, 0 deletionscommon/djangoapps/track/tests/test_segment.py
- lms/djangoapps/course_goals/tests/test_api.py 4 additions, 4 deletionslms/djangoapps/course_goals/tests/test_api.py
- lms/djangoapps/course_goals/views.py 4 additions, 19 deletionslms/djangoapps/course_goals/views.py
- lms/djangoapps/courseware/field_overrides.py 3 additions, 2 deletionslms/djangoapps/courseware/field_overrides.py
- lms/djangoapps/courseware/tests/test_views.py 2 additions, 7 deletionslms/djangoapps/courseware/tests/test_views.py
- lms/djangoapps/courseware/views/views.py 6 additions, 19 deletionslms/djangoapps/courseware/views/views.py
- lms/djangoapps/shoppingcart/models.py 14 additions, 20 deletionslms/djangoapps/shoppingcart/models.py
- lms/djangoapps/shoppingcart/tests/test_models.py 4 additions, 6 deletionslms/djangoapps/shoppingcart/tests/test_models.py
- lms/djangoapps/verify_student/views.py 3 additions, 11 deletionslms/djangoapps/verify_student/views.py
- openedx/core/djangoapps/schedules/signals.py 4 additions, 4 deletionsopenedx/core/djangoapps/schedules/signals.py
- openedx/core/djangoapps/schedules/tests/test_signals.py 2 additions, 2 deletionsopenedx/core/djangoapps/schedules/tests/test_signals.py
- openedx/core/djangoapps/user_api/preferences/api.py 2 additions, 11 deletionsopenedx/core/djangoapps/user_api/preferences/api.py
- openedx/core/djangoapps/user_authn/views/login.py 23 additions, 33 deletionsopenedx/core/djangoapps/user_authn/views/login.py
- openedx/core/djangoapps/user_authn/views/register.py 4 additions, 13 deletionsopenedx/core/djangoapps/user_authn/views/register.py
- openedx/core/djangoapps/user_authn/views/tests/test_register.py 2 additions, 2 deletions...x/core/djangoapps/user_authn/views/tests/test_register.py
Please register or sign in to comment