Skip to content

Commit

Permalink
feat: [ACI-75] new public events
Browse files Browse the repository at this point in the history
  • Loading branch information
kyrylo-kh committed Dec 13, 2023
1 parent 1a5f9ca commit 755b566
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions openedx_events/learning/signals.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}
)

0 comments on commit 755b566

Please sign in to comment.