Skip to content

Commit 51e6921

Browse files
fix: use correct event type for forum events
1 parent 9be965f commit 51e6921

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

openedx_events/learning/signals.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@
297297
# .. event_data: DiscussionThreadData
298298
# .. event_warning: This event is currently incompatible with the event bus, list/dict cannot be serialized yet
299299
FORUM_THREAD_CREATED = OpenEdxPublicSignal(
300-
event_type="org.openedx.learning.thread.created.v1",
300+
event_type="org.openedx.learning.forum.thread.created.v1",
301301
data={
302302
"thread": DiscussionThreadData,
303303
}
@@ -309,7 +309,7 @@
309309
# .. event_data: DiscussionThreadData
310310
# .. event_warning: This event is currently incompatible with the event bus, list/dict cannot be serialized yet
311311
FORUM_THREAD_RESPONSE_CREATED = OpenEdxPublicSignal(
312-
event_type="org.openedx.learning.response.created.v1",
312+
event_type="org.openedx.learning.forum.thread.response.created.v1",
313313
data={
314314
"thread": DiscussionThreadData,
315315
}
@@ -321,7 +321,7 @@
321321
# .. event_data: DiscussionThreadData
322322
# .. event_warning: This event is currently incompatible with the event bus, list/dict cannot be serialized yet
323323
FORUM_RESPONSE_COMMENT_CREATED = OpenEdxPublicSignal(
324-
event_type="org.openedx.learning.response.created.v1",
324+
event_type="org.openedx.learning.forum.thread.response.comment.created.v1",
325325
data={
326326
"thread": DiscussionThreadData,
327327
}

openedx_events/tooling.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@
2424
"org.openedx.content_authoring.course.certificate_config.changed.v1",
2525
"org.openedx.content_authoring.course.certificate_config.deleted.v1",
2626
"org.openedx.learning.user.notification.requested.v1",
27-
"org.openedx.learning.thread.created.v1",
28-
"org.openedx.learning.response.created.v1",
29-
"org.openedx.learning.comment.created.v1",
27+
"org.openedx.learning.forum.thread.created.v1",
28+
"org.openedx.learning.forum.thread.response.created.v1",
29+
"org.openedx.learning.forum.thread.response.comment.created.v1",
3030
"org.openedx.learning.course.notification.requested.v1",
3131
"org.openedx.learning.ora.submission.created.v1",
3232
]

0 commit comments

Comments
 (0)