feat: add explicit courserun_key parameter to /event endpoint
We add 'courserun_key' (aka "course_id" though that's technically a misnomer) as an optional parameter to the /event endpoint url. If it is not present, it will still be parsed out of the url, if the url is of the right format. Additionally, Logger.log() in js adds this parameter to its /event call, pulling it from the $$course_id global. This provides opportunity for MFEs to (separately) provide the key without concern about url parsing. TNL-7752
Showing
- common/djangoapps/track/contexts.py 17 additions, 8 deletionscommon/djangoapps/track/contexts.py
- common/djangoapps/track/tests/test_contexts.py 17 additions, 0 deletionscommon/djangoapps/track/tests/test_contexts.py
- common/djangoapps/track/views/__init__.py 4 additions, 2 deletionscommon/djangoapps/track/views/__init__.py
- common/djangoapps/track/views/tests/test_views.py 25 additions, 0 deletionscommon/djangoapps/track/views/tests/test_views.py
- common/static/js/spec/logger_spec.js 5 additions, 0 deletionscommon/static/js/spec/logger_spec.js
- common/static/js/src/logger.js 1 addition, 0 deletionscommon/static/js/src/logger.js
Please register or sign in to comment