Skip to content

Commit

Permalink
feat: removed "Special" from data name
Browse files Browse the repository at this point in the history
  • Loading branch information
ilee2u committed Sep 29, 2023
1 parent cac610f commit 270c6d6
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
{
"name": "exam_attempt",
"type": {
"name": "SpecialExamAttemptData",
"name": "ExamAttemptData",
"type": "record",
"fields": [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
{
"name": "exam_attempt",
"type": {
"name": "SpecialExamAttemptData",
"name": "ExamAttemptData",
"type": "record",
"fields": [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
{
"name": "exam_attempt",
"type": {
"name": "SpecialExamAttemptData",
"name": "ExamAttemptData",
"type": "record",
"fields": [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
{
"name": "exam_attempt",
"type": {
"name": "SpecialExamAttemptData",
"name": "ExamAttemptData",
"type": "record",
"fields": [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
{
"name": "exam_attempt",
"type": {
"name": "SpecialExamAttemptData",
"name": "ExamAttemptData",
"type": "record",
"fields": [
{
Expand Down
2 changes: 1 addition & 1 deletion openedx_events/learning/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ class ProgramCertificateData:


@attr.s(frozen=True)
class SpecialExamAttemptData:
class ExamAttemptData:
"""
Attributes defined for the Open edX Exam downstream effects.
Expand Down
22 changes: 11 additions & 11 deletions openedx_events/learning/signals.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
CourseEnrollmentData,
PersistentCourseGradeData,
ProgramCertificateData,
SpecialExamAttemptData,
ExamAttemptData,
UserData,
UserNotificationData,
XBlockSkillVerificationData,
Expand Down Expand Up @@ -201,54 +201,54 @@
# .. event_type: org.openedx.learning.exam.attempt.submitted.v1
# .. event_name: EXAM_ATTEMPT_SUBMITTED
# .. event_description: Emitted when an exam attempt is submitted by a learner in edx-exams.
# .. event_data: SpecialExamAttemptData
# .. event_data: ExamAttemptData
EXAM_ATTEMPT_SUBMITTED = OpenEdxPublicSignal(
event_type="org.openedx.learning.exam.attempt.submitted.v1",
data={
"exam_attempt": SpecialExamAttemptData,
"exam_attempt": ExamAttemptData,
}
)

# .. event_type: org.openedx.learning.exam.attempt.rejected.v1
# .. event_name: EXAM_ATTEMPT_REJECTED
# .. event_description: Emitted when an exam attempt is marked rejected in edx-exams.
# .. event_data: SpecialExamAttemptData
# .. event_data: ExamAttemptData
EXAM_ATTEMPT_REJECTED = OpenEdxPublicSignal(
event_type="org.openedx.learning.exam.attempt.rejected.v1",
data={
"exam_attempt": SpecialExamAttemptData,
"exam_attempt": ExamAttemptData,
}
)

# .. event_type: org.openedx.learning.exam.attempt.verified.v1
# .. event_name: EXAM_ATTEMPT_VERIFIED
# .. event_description: Emitted when an exam attempt is marked verified in edx-exams.
# .. event_data: SpecialExamAttemptData
# .. event_data: ExamAttemptData
EXAM_ATTEMPT_VERIFIED = OpenEdxPublicSignal(
event_type="org.openedx.learning.exam.attempt.verified.v1",
data={
"exam_attempt": SpecialExamAttemptData,
"exam_attempt": ExamAttemptData,
}
)

# .. event_type: org.openedx.learning.exam.attempt.errored.v1
# .. event_name: EXAM_ATTEMPT_ERRORED
# .. event_description: Emitted when a learner's exam attempt errors out in edx-exams.
# .. event_data: SpecialExamAttemptData
# .. event_data: ExamAttemptData
EXAM_ATTEMPT_ERRORED = OpenEdxPublicSignal(
event_type="org.openedx.learning.exam.attempt.errored.v1",
data={
"exam_attempt": SpecialExamAttemptData,
"exam_attempt": ExamAttemptData,
}
)

# .. event_type: org.openedx.learning.exam.attempt.reset.v1
# .. event_name: EXAM_ATTEMPT_RESET
# .. event_description: Emitted when an exam attempt is reset in edx-exams.
# .. event_data: SpecialExamAttemptData
# .. event_data: ExamAttemptData
EXAM_ATTEMPT_RESET = OpenEdxPublicSignal(
event_type="org.openedx.learning.exam.attempt.reset.v1",
data={
"exam_attempt": SpecialExamAttemptData,
"exam_attempt": ExamAttemptData,
}
)

0 comments on commit 270c6d6

Please sign in to comment.