From c14b5f543adca6facd5e333f5fde5def2de94035 Mon Sep 17 00:00:00 2001 From: Glib Glugovskiy Date: Thu, 9 May 2024 17:44:29 +0300 Subject: [PATCH] fix: correct course key for ccx event --- cms/envs/common.py | 3 ++- lms/envs/common.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/cms/envs/common.py b/cms/envs/common.py index c7f9d4bb5ab9..e505f8245726 100644 --- a/cms/envs/common.py +++ b/cms/envs/common.py @@ -2892,6 +2892,7 @@ def _should_send_xblock_events(settings): def _should_send_learning_badge_events(settings): return settings.FEATURES['BADGES_ENABLED'] + # .. setting_name: EVENT_BUS_PRODUCER_CONFIG # .. setting_default: all events disabled # .. setting_description: Dictionary of event_types mapped to dictionaries of topic to topic-related configuration. @@ -2949,7 +2950,7 @@ def _should_send_learning_badge_events(settings): }, "org.openedx.learning.ccx.course.passing.status.updated.v1": { "learning-badges-lifecycle": { - "event_key_field": "course_passing_status.course.course_key", + "event_key_field": "course_passing_status.course.ccx_course_key", "enabled": _should_send_learning_badge_events, }, }, diff --git a/lms/envs/common.py b/lms/envs/common.py index 74c0e252afb4..5f8714ca9cf7 100644 --- a/lms/envs/common.py +++ b/lms/envs/common.py @@ -5542,7 +5542,7 @@ def _should_send_learning_badge_events(settings): }, "org.openedx.learning.ccx.course.passing.status.updated.v1": { "learning-badges-lifecycle": { - "event_key_field": "course_passing_status.course.course_key", + "event_key_field": "course_passing_status.course.ccx_course_key", "enabled": _should_send_learning_badge_events, }, },