Skip to content

Commit 807ba91

Browse files
fix: use correct event type for forum events (#437)
1 parent 3d95cea commit 807ba91

File tree

4 files changed

+14
-7
lines changed

4 files changed

+14
-7
lines changed

CHANGELOG.rst

+7
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,13 @@ Unreleased
1717
__________
1818

1919

20+
[9.15.1] - 2024-12-20
21+
---------------------
22+
23+
Changed
24+
~~~~~~~
25+
26+
* Fixed ``event_type`` field in ``FORUM_THREAD_CREATED``, ``FORUM_THREAD_RESPONSE_CREATED``, and ``FORUM_RESPONSE_COMMENT_CREATED`` events in learning.
2027

2128
[9.15.0] - 2024-10-10
2229
---------------------

openedx_events/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55
more information about the project.
66
"""
77

8-
__version__ = "9.15.0"
8+
__version__ = "9.15.1"

openedx_events/learning/signals.py

+3-3
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

+3-3
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)