From 8255b711dd8afe82f08bb50d89bd138edf9f417a 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 696dd8bf2ebd..bc9835ed2f96 100644 --- a/cms/envs/common.py +++ b/cms/envs/common.py @@ -2712,6 +2712,7 @@ 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. @@ -2731,7 +2732,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 ebd3ec8b6115..ca8e44706e65 100644 --- a/lms/envs/common.py +++ b/lms/envs/common.py @@ -5298,7 +5298,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, }, },