From ae46de45004b582e086215f6c45064c1f34a4f75 Mon Sep 17 00:00:00 2001 From: wowkalucky Date: Sat, 30 Mar 2024 23:28:56 +0200 Subject: [PATCH] refactor: [ACI-814] simplify grade status events --- lms/djangoapps/grades/events.py | 4 ---- lms/envs/common.py | 4 ++-- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/lms/djangoapps/grades/events.py b/lms/djangoapps/grades/events.py index 9e648fa04ec7..59c72e896e20 100644 --- a/lms/djangoapps/grades/events.py +++ b/lms/djangoapps/grades/events.py @@ -208,8 +208,6 @@ def course_grade_now_passed(user, course_id): course=CourseData( course_key=course_id, ), - update_timestamp=None, - grading_policy_hash=None, ) ) @@ -248,8 +246,6 @@ def course_grade_now_failed(user, course_id): course=CourseData( course_key=course_id, ), - update_timestamp=None, - grading_policy_hash=None, ) ) diff --git a/lms/envs/common.py b/lms/envs/common.py index 72e83bfa8e54..aeaf8e1b1ef8 100644 --- a/lms/envs/common.py +++ b/lms/envs/common.py @@ -5277,13 +5277,13 @@ def _make_locale_paths(settings): # pylint: disable=missing-function-docstring # Note: The topic names should not include environment prefix as it will be dynamically added based on # EVENT_BUS_TOPIC_PREFIX setting. EVENT_BUS_PRODUCER_CONFIG = { - "org.openedx.learning.course.passing.status.v1": { + "org.openedx.learning.course.passing.status.updated.v1": { "learning-badges-lifecycle": { "event_key_field": "course_passing_status.course.course_key", "enabled": True, }, }, - "org.openedx.learning.ccx.course.passing.status.v1": { + "org.openedx.learning.ccx.course.passing.status.updated.v1": { "learning-badges-lifecycle": { "event_key_field": "course_passing_status.course.course_key", "enabled": True,