Skip to content

Commit

Permalink
refactor: [ACI-814] update course passing events types (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
wowkalucky authored and kyrylo-kh committed Apr 14, 2024
1 parent 6aa6c90 commit da07adf
Showing 1 changed file with 20 additions and 5 deletions.
25 changes: 20 additions & 5 deletions openedx_events/learning/signals.py
Original file line number Diff line number Diff line change
Expand Up @@ -354,24 +354,39 @@
},
)

# .. event_type: org.openedx.learning.course.passing.status.v1

# .. event_type: org.openedx.learning.ora.submission.created.v1
# .. event_name: ORA_SUBMISSION_CREATED
# .. event_description: Emitted when a new ORA submission is created
# .. event_data: ORASubmissionData
# Warning: This event is currently incompatible with the event bus, list/dict cannot be serialized yet
ORA_SUBMISSION_CREATED = OpenEdxPublicSignal(
event_type="org.openedx.learning.ora.submission.created.v1",
data={
"submission": ORASubmissionData,
},
)



# .. event_type: org.openedx.learning.course.passing.status.updated.v1
# .. event_name: COURSE_PASSING_STATUS_UPDATED
# .. event_description: Emitted when course grade updates.
# .. event_data: CoursePassingStatusData
COURSE_PASSING_STATUS_UPDATED = OpenEdxPublicSignal(
event_type="org.openedx.learning.course.passing.status.v1",
event_type="org.openedx.learning.course.passing.status.updated.v1",
data={
"course_passing_status": CoursePassingStatusData,
}
)


# .. event_type: org.openedx.learning.ccx.course.passing.status.v1
# .. event_type: org.openedx.learning.ccx.course.passing.status.updated.v1
# .. event_name: CCX_COURSE_PASSING_STATUS_UPDATED
# .. event_description: Emitted when a CCX course grade updates.
# .. event_data: CcxCoursePassingStatusData
CCX_COURSE_PASSING_STATUS_UPDATED = OpenEdxPublicSignal(
event_type="org.openedx.learning.ccx.course.passing.status.v1",
event_type="org.openedx.learning.ccx.course.passing.status.updated.v1",
data={
"course_passing_status": CcxCoursePassingStatusData,
}
Expand Down Expand Up @@ -399,4 +414,4 @@
data={
"badge": BadgeData,
}
)
)

0 comments on commit da07adf

Please sign in to comment.