From 755b566ba9e0eb15af0b6e6e830aa36e5399d233 Mon Sep 17 00:00:00 2001 From: Kyrylo Kholodenko Date: Thu, 14 Dec 2023 00:34:18 +0200 Subject: [PATCH] feat: [ACI-75] new public events --- openedx_events/learning/signals.py | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/openedx_events/learning/signals.py b/openedx_events/learning/signals.py index 9ec57e0b..dd6cfbed 100644 --- a/openedx_events/learning/signals.py +++ b/openedx_events/learning/signals.py @@ -327,3 +327,25 @@ "course_notification_data": CourseNotificationData, } ) + +# .. event_type: org.openedx.learning.course.grade.now.passed.v1 +# .. event_name: COURSE_GRADE_NOW_PASSED +# .. event_description: Emmited when course grade is passed. +# .. event_data: PersistentCourseGradeData +COURSE_GRADE_NOW_PASSED = OpenEdxPublicSignal( + event_type="org.openedx.learning.course.grade.now.passed.v1", + data={ + "grade": PersistentCourseGradeData, + } +) + +# .. event_type: org.openedx.learning.course.grade.now.failed.v1 +# .. event_name: COURSE_GRADE_NOW_FAILED +# .. event_description: Emmited when course grade is failed. +# .. event_data: PersistentCourseGradeData +COURSE_GRADE_NOW_FAILED = OpenEdxPublicSignal( + event_type="org.openedx.learning.course.grade.now.failed.v1", + data={ + "grade": PersistentCourseGradeData, + } +)