diff --git a/openedx_events/event_bus/avro/tests/schemas/org+openedx+learning+exam+attempt+errored+v1_schema.avsc b/openedx_events/event_bus/avro/tests/schemas/org+openedx+learning+exam+attempt+errored+v1_schema.avsc index 5381100e..eb7c946f 100644 --- a/openedx_events/event_bus/avro/tests/schemas/org+openedx+learning+exam+attempt+errored+v1_schema.avsc +++ b/openedx_events/event_bus/avro/tests/schemas/org+openedx+learning+exam+attempt+errored+v1_schema.avsc @@ -6,7 +6,7 @@ { "name": "exam_attempt", "type": { - "name": "SpecialExamAttemptData", + "name": "ExamAttemptData", "type": "record", "fields": [ { diff --git a/openedx_events/event_bus/avro/tests/schemas/org+openedx+learning+exam+attempt+rejected+v1_schema.avsc b/openedx_events/event_bus/avro/tests/schemas/org+openedx+learning+exam+attempt+rejected+v1_schema.avsc index ab2fd4b5..7d726e63 100644 --- a/openedx_events/event_bus/avro/tests/schemas/org+openedx+learning+exam+attempt+rejected+v1_schema.avsc +++ b/openedx_events/event_bus/avro/tests/schemas/org+openedx+learning+exam+attempt+rejected+v1_schema.avsc @@ -6,7 +6,7 @@ { "name": "exam_attempt", "type": { - "name": "SpecialExamAttemptData", + "name": "ExamAttemptData", "type": "record", "fields": [ { diff --git a/openedx_events/event_bus/avro/tests/schemas/org+openedx+learning+exam+attempt+reset+v1_schema.avsc b/openedx_events/event_bus/avro/tests/schemas/org+openedx+learning+exam+attempt+reset+v1_schema.avsc index 328231db..c226aa0a 100644 --- a/openedx_events/event_bus/avro/tests/schemas/org+openedx+learning+exam+attempt+reset+v1_schema.avsc +++ b/openedx_events/event_bus/avro/tests/schemas/org+openedx+learning+exam+attempt+reset+v1_schema.avsc @@ -6,7 +6,7 @@ { "name": "exam_attempt", "type": { - "name": "SpecialExamAttemptData", + "name": "ExamAttemptData", "type": "record", "fields": [ { diff --git a/openedx_events/event_bus/avro/tests/schemas/org+openedx+learning+exam+attempt+submitted+v1_schema.avsc b/openedx_events/event_bus/avro/tests/schemas/org+openedx+learning+exam+attempt+submitted+v1_schema.avsc index bc487554..286747b8 100644 --- a/openedx_events/event_bus/avro/tests/schemas/org+openedx+learning+exam+attempt+submitted+v1_schema.avsc +++ b/openedx_events/event_bus/avro/tests/schemas/org+openedx+learning+exam+attempt+submitted+v1_schema.avsc @@ -6,7 +6,7 @@ { "name": "exam_attempt", "type": { - "name": "SpecialExamAttemptData", + "name": "ExamAttemptData", "type": "record", "fields": [ { diff --git a/openedx_events/event_bus/avro/tests/schemas/org+openedx+learning+exam+attempt+verified+v1_schema.avsc b/openedx_events/event_bus/avro/tests/schemas/org+openedx+learning+exam+attempt+verified+v1_schema.avsc index eaf00c4f..b6250c9c 100644 --- a/openedx_events/event_bus/avro/tests/schemas/org+openedx+learning+exam+attempt+verified+v1_schema.avsc +++ b/openedx_events/event_bus/avro/tests/schemas/org+openedx+learning+exam+attempt+verified+v1_schema.avsc @@ -6,7 +6,7 @@ { "name": "exam_attempt", "type": { - "name": "SpecialExamAttemptData", + "name": "ExamAttemptData", "type": "record", "fields": [ { diff --git a/openedx_events/learning/data.py b/openedx_events/learning/data.py index 290e0b41..b004cc60 100644 --- a/openedx_events/learning/data.py +++ b/openedx_events/learning/data.py @@ -299,7 +299,7 @@ class ProgramCertificateData: @attr.s(frozen=True) -class SpecialExamAttemptData: +class ExamAttemptData: """ Attributes defined for the Open edX Exam downstream effects. diff --git a/openedx_events/learning/signals.py b/openedx_events/learning/signals.py index ceaeb393..33e18084 100644 --- a/openedx_events/learning/signals.py +++ b/openedx_events/learning/signals.py @@ -15,7 +15,7 @@ CourseEnrollmentData, PersistentCourseGradeData, ProgramCertificateData, - SpecialExamAttemptData, + ExamAttemptData, UserData, UserNotificationData, XBlockSkillVerificationData, @@ -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, } )