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, + } +)