Skip to content

Commit 367d7d1

Browse files
docs: update inline code annotations following reviews
1 parent 931db62 commit 367d7d1

File tree

1 file changed

+45
-70
lines changed

1 file changed

+45
-70
lines changed

openedx_events/learning/signals.py

Lines changed: 45 additions & 70 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,11 @@
1111
from openedx_events.learning.data import CertificateData, CohortData, CourseEnrollmentData, UserData
1212
from openedx_events.tooling import OpenEdxPublicSignal
1313

14-
# ..event_type: org.openedx.learning.student.registration.completed.v1
15-
# ..event_name: STUDENT_REGISTRATION_COMPLETED
16-
# ..event_version: V1
17-
# ..event_implementation: OpenEdxPublicSignal(DjangoSignal)
18-
# ..event_description: emitted when the user registration process in the LMS
19-
# is completed.
20-
# ..event_data: UserData
21-
# ..event_creation_date: 2020-22-07
14+
# .. event_type: org.openedx.learning.student.registration.completed.v1
15+
# .. event_name: STUDENT_REGISTRATION_COMPLETED
16+
# .. event_description: emitted when the user registration process in the LMS is completed.
17+
# .. event_data: UserData
18+
# .. event_creation_date: 2020-22-07
2219
STUDENT_REGISTRATION_COMPLETED = OpenEdxPublicSignal(
2320
event_type="org.openedx.learning.student.registration.completed.v1",
2421
data={
@@ -27,14 +24,11 @@
2724
)
2825

2926

30-
# ..event_type: org.openedx.learning.auth.session.login.completed.v1
31-
# ..event_name: SESSION_LOGIN_COMPLETED
32-
# ..event_version: V1
33-
# ..event_implementation: OpenEdxPublicSignal(DjangoSignal)
34-
# ..event_description: emitted when the user's login process in the LMS is
35-
# completed.
36-
# ..event_data: UserData
37-
# ..event_creation_date: 2020-22-07
27+
# .. event_type: org.openedx.learning.auth.session.login.completed.v1
28+
# .. event_name: SESSION_LOGIN_COMPLETED
29+
# .. event_description: emitted when the user's login process in the LMS is completed.
30+
# .. event_data: UserData
31+
# .. event_creation_date: 2020-22-07
3832
SESSION_LOGIN_COMPLETED = OpenEdxPublicSignal(
3933
event_type="org.openedx.learning.auth.session.login.completed.v1",
4034
data={
@@ -43,13 +37,11 @@
4337
)
4438

4539

46-
# ..event_type: org.openedx.learning.course.enrollment.created.v1
47-
# ..event_name: COURSE_ENROLLMENT_CREATED
48-
# ..event_version: V1
49-
# ..event_implementation: OpenEdxPublicSignal(DjangoSignal)
50-
# ..event_description: emitted when the user's enrollment process is completed.
51-
# ..event_data: CourseEnrollmentData
52-
# ..event_creation_date: 2020-22-07
40+
# .. event_type: org.openedx.learning.course.enrollment.created.v1
41+
# .. event_name: COURSE_ENROLLMENT_CREATED
42+
# .. event_description: emitted when the user's enrollment process is completed.
43+
# .. event_data: CourseEnrollmentData
44+
# .. event_creation_date: 2020-22-07
5345
COURSE_ENROLLMENT_CREATED = OpenEdxPublicSignal(
5446
event_type="org.openedx.learning.course.enrollment.created.v1",
5547
data={
@@ -58,14 +50,11 @@
5850
)
5951

6052

61-
# ..event_type: org.openedx.learning.course.enrollment.changed.v1
62-
# ..event_name: COURSE_ENROLLMENT_CHANGED
63-
# ..event_version: V1
64-
# ..event_implementation: OpenEdxPublicSignal(DjangoSignal)
65-
# ..event_description: emitted when the user's enrollment update process is
66-
# completed.
67-
# ..event_data: CourseEnrollmentData
68-
# ..event_creation_date: 2020-22-07
53+
# .. event_type: org.openedx.learning.course.enrollment.changed.v1
54+
# .. event_name: COURSE_ENROLLMENT_CHANGED
55+
# .. event_description: emitted when the user's enrollment update process is completed.
56+
# .. event_data: CourseEnrollmentData
57+
# .. event_creation_date: 2020-22-07
6958
COURSE_ENROLLMENT_CHANGED = OpenEdxPublicSignal(
7059
event_type="org.openedx.learning.course.enrollment.changed.v1",
7160
data={
@@ -74,14 +63,11 @@
7463
)
7564

7665

77-
# ..event_type: org.openedx.learning.course.unenrollment.completed.v1
78-
# ..event_name: COURSE_ENROLLMENT_CHANGED
79-
# ..event_version: V1
80-
# ..event_implementation: OpenEdxPublicSignal(DjangoSignal)
81-
# ..event_description: emitted when the user's unenrollment process is
82-
# completed.
83-
# ..event_data: CourseEnrollmentData
84-
# ..event_creation_date: 2020-22-07
66+
# .. event_type: org.openedx.learning.course.unenrollment.completed.v1
67+
# .. event_name: COURSE_ENROLLMENT_CHANGED
68+
# .. event_description: emitted when the user's unenrollment process is completed.
69+
# .. event_data: CourseEnrollmentData
70+
# .. event_creation_date: 2020-22-07
8571
COURSE_UNENROLLMENT_COMPLETED = OpenEdxPublicSignal(
8672
event_type="org.openedx.learning.course.unenrollment.completed.v1",
8773
data={
@@ -90,14 +76,11 @@
9076
)
9177

9278

93-
# ..event_type: org.openedx.learning.certificate.created.v1
94-
# ..event_name: CERTIFICATE_CREATED
95-
# ..event_version: V1
96-
# ..event_implementation: OpenEdxPublicSignal(DjangoSignal)
97-
# ..event_description: emitted when the user's certificate creation process is
98-
# completed.
99-
# ..event_data: CertificateData
100-
# ..event_creation_date: 2020-22-07
79+
# .. event_type: org.openedx.learning.certificate.created.v1
80+
# .. event_name: CERTIFICATE_CREATED
81+
# .. event_description: emitted when the user's certificate creation process is completed.
82+
# .. event_data: CertificateData
83+
# .. event_creation_date: 2020-22-07
10184
CERTIFICATE_CREATED = OpenEdxPublicSignal(
10285
event_type="org.openedx.learning.certificate.created.v1",
10386
data={
@@ -106,14 +89,11 @@
10689
)
10790

10891

109-
# ..event_type: org.openedx.learning.certificate.created.v1
110-
# ..event_name: CERTIFICATE_CREATED
111-
# ..event_version: V1
112-
# ..event_implementation: OpenEdxPublicSignal(DjangoSignal)
113-
# ..event_description: emitted when the user's certificate creation process is
114-
# completed.
115-
# ..event_data: CertificateData
116-
# ..event_creation_date: 2020-22-07
92+
# .. event_type: org.openedx.learning.certificate.created.v1
93+
# .. event_name: CERTIFICATE_CREATED
94+
# .. event_description: emitted when the user's certificate creation process is completed.
95+
# .. event_data: CertificateData
96+
# .. event_creation_date: 2020-22-07
11797
CERTIFICATE_CHANGED = OpenEdxPublicSignal(
11898
event_type="org.openedx.learning.certificate.changed.v1",
11999
data={
@@ -122,14 +102,11 @@
122102
)
123103

124104

125-
# ..event_type: org.openedx.learning.certificate.revoked.v1
126-
# ..event_name: CERTIFICATE_REVOKED
127-
# ..event_version: V1
128-
# ..event_implementation: OpenEdxPublicSignal(DjangoSignal)
129-
# ..event_description: emitted when the user's certificate annulation process
130-
# is completed.
131-
# ..event_data: CertificateData
132-
# ..event_creation_date: 2020-22-07
105+
# .. event_type: org.openedx.learning.certificate.revoked.v1
106+
# .. event_name: CERTIFICATE_REVOKED
107+
# .. event_description: emitted when the user's certificate annulation process is completed.
108+
# .. event_data: CertificateData
109+
# .. event_creation_date: 2020-22-07
133110
CERTIFICATE_REVOKED = OpenEdxPublicSignal(
134111
event_type="org.openedx.learning.certificate.revoked.v1",
135112
data={
@@ -138,13 +115,11 @@
138115
)
139116

140117

141-
# ..event_type: org.openedx.learning.cohort_membership.changed.v1
142-
# ..event_name: COHORT_MEMBERSHIP_CHANGED
143-
# ..event_version: V1
144-
# ..event_implementation: OpenEdxPublicSignal(DjangoSignal)
145-
# ..event_description: emitted when the user's cohort update is completed.
146-
# ..event_data: CohortData
147-
# ..event_creation_date: 2020-22-07
118+
# .. event_type: org.openedx.learning.cohort_membership.changed.v1
119+
# .. event_name: COHORT_MEMBERSHIP_CHANGED
120+
# .. event_description: emitted when the user's cohort update is completed.
121+
# .. event_data: CohortData
122+
# .. event_creation_date: 2020-22-07
148123
COHORT_MEMBERSHIP_CHANGED = OpenEdxPublicSignal(
149124
event_type="org.openedx.learning.cohort_membership.changed.v1",
150125
data={

0 commit comments

Comments
 (0)