-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Added forum thread interaction events (#318)
feat: forum thread interaction events
- Loading branch information
Showing
16 changed files
with
633 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 40 additions & 0 deletions
40
event_routing_backends/processors/tests/fixtures/current/edx.forum.thread.created.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
{ | ||
"name": "edx.forum.thread.created", | ||
"timestamp": "2023-07-10T09:23:10.354202+00:00", | ||
"data": { | ||
"commentable_id": "856d38cd-a139-4346-bef9-4147a2e4b7bf", | ||
"group_id": null, | ||
"thread_type": "discussion", | ||
"anonymous": false, | ||
"anonymous_to_peers": false, | ||
"options": { | ||
"followed": true | ||
}, | ||
"from_mfe_sidebar": false, | ||
"title_truncated": false, | ||
"title": "Another thread in test topic", | ||
"truncated": false, | ||
"body": "<p>Description of another thread in test topic</p>", | ||
"id": "64abcdfee68f35002fd013c6", | ||
"url": "http://apps.local.overhang.io:2002/", | ||
"user_forums_roles": [ | ||
"Student" | ||
], | ||
"user_course_roles": [] | ||
}, | ||
"context": { | ||
"session": "054c9ddcb76d2096f862e66bda3bc308", | ||
"user_id": 16, | ||
"username": "xiajul10", | ||
"ip": "172.18.0.1", | ||
"host": "local.overhang.io:8000", | ||
"agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:109.0) Gecko/20100101 Firefox/114.0", | ||
"path": "/api/discussion/v1/threads/", | ||
"referer": "http://apps.local.overhang.io:2002/", | ||
"accept_language": "en-US,en;q=0.5", | ||
"client_id": null, | ||
"course_id": "course-v1:testX+XAPI101+2019_T2", | ||
"org_id": "testX", | ||
"enterprise_uuid": "" | ||
} | ||
} |
34 changes: 34 additions & 0 deletions
34
event_routing_backends/processors/tests/fixtures/current/edx.forum.thread.deleted.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
{ | ||
"name": "edx.forum.thread.deleted", | ||
"timestamp": "2023-07-10T09:23:10.354202+00:00", | ||
"data": { | ||
"body": "<p>Description of another thread in test topic</p>", | ||
"content_type": "Post", | ||
"own_content": true, | ||
"commentable_id": "856d38cd-a139-4346-bef9-4147a2e4b7bf", | ||
"target_username": "xiajul10", | ||
"title_truncated": false, | ||
"title": "Another thread in test topic", | ||
"id": "64abcdfee68f35002fd013c6", | ||
"url": "http://apps.local.overhang.io:2002/", | ||
"user_forums_roles": [ | ||
"Student" | ||
], | ||
"user_course_roles": [] | ||
}, | ||
"context": { | ||
"session": "054c9ddcb76d2096f862e66bda3bc308", | ||
"user_id": 16, | ||
"username": "xiajul10", | ||
"ip": "172.18.0.1", | ||
"host": "local.overhang.io:8000", | ||
"agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:109.0) Gecko/20100101 Firefox/114.0", | ||
"path": "/api/discussion/v1/threads/64abcdfee68f35002fd013c6/", | ||
"referer": "http://apps.local.overhang.io:2002/", | ||
"accept_language": "en-US,en;q=0.5", | ||
"client_id": null, | ||
"course_id": "course-v1:testX+XAPI101+2019_T2", | ||
"org_id": "testX", | ||
"enterprise_uuid": "" | ||
} | ||
} |
32 changes: 32 additions & 0 deletions
32
event_routing_backends/processors/tests/fixtures/current/edx.forum.thread.edited.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
{ | ||
"name": "edx.forum.thread.edited", | ||
"timestamp": "2023-07-10T09:23:10.354202+00:00", | ||
"data": { | ||
"target_username": "xiajul7", | ||
"content_type": "Post", | ||
"own_content": true, | ||
"edit_reason": null, | ||
"commentable_id": "856d38cd-a139-4346-bef9-4147a2e4b7bf", | ||
"id": "64a817fce68f35002fd013c3", | ||
"url": "http://apps.local.overhang.io:2002/", | ||
"user_forums_roles": [ | ||
"Student" | ||
], | ||
"user_course_roles": [] | ||
}, | ||
"context": { | ||
"session": "054c9ddcb76d2096f862e66bda3bc308", | ||
"user_id": 15, | ||
"username": "xiajul7", | ||
"ip": "172.18.0.1", | ||
"host": "local.overhang.io:8000", | ||
"agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:109.0) Gecko/20100101 Firefox/114.0", | ||
"path": "/api/discussion/v1/threads/64a817fce68f35002fd013c3/", | ||
"referer": "http://apps.local.overhang.io:2002/", | ||
"accept_language": "en-US,en;q=0.5", | ||
"client_id": null, | ||
"course_id": "course-v1:testX+XAPI101+2019_T2", | ||
"org_id": "testX", | ||
"enterprise_uuid": "" | ||
} | ||
} |
32 changes: 32 additions & 0 deletions
32
event_routing_backends/processors/tests/fixtures/current/edx.forum.thread.viewed.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
{ | ||
"name": "edx.forum.thread.viewed", | ||
"timestamp": "2023-07-10T09:23:10.354202+00:00", | ||
"data": { | ||
"commentable_id": "856d38cd-a139-4346-bef9-4147a2e4b7bf", | ||
"from_mfe_sidebar": false, | ||
"target_username": "xiajul7", | ||
"title_truncated": false, | ||
"title": "This is first post", | ||
"id": "64a817fce68f35002fd013c3", | ||
"url": "http://apps.local.overhang.io:2002/", | ||
"user_forums_roles": [ | ||
"Student" | ||
], | ||
"user_course_roles": [] | ||
}, | ||
"context": { | ||
"session": "054c9ddcb76d2096f862e66bda3bc308", | ||
"user_id": 15, | ||
"username": "xiajul7", | ||
"ip": "172.18.0.1", | ||
"host": "local.overhang.io:8000", | ||
"agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:109.0) Gecko/20100101 Firefox/114.0", | ||
"path": "/api/discussion/v1/comments/", | ||
"referer": "http://apps.local.overhang.io:2002/", | ||
"accept_language": "en-US,en;q=0.5", | ||
"client_id": null, | ||
"course_id": "course-v1:testX+XAPI101+2019_T2", | ||
"org_id": "testX", | ||
"enterprise_uuid": "" | ||
} | ||
} |
31 changes: 31 additions & 0 deletions
31
event_routing_backends/processors/tests/fixtures/current/edx.forum.thread.voted.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{ | ||
"name": "edx.forum.thread.voted", | ||
"timestamp": "2023-07-10T09:23:10.354202+00:00", | ||
"data": { | ||
"commentable_id": "856d38cd-a139-4346-bef9-4147a2e4b7bf", | ||
"target_username": "xiajul7", | ||
"undo_vote": false, | ||
"vote_value": "up", | ||
"id": "64a817fce68f35002fd013c3", | ||
"url": "http://apps.local.overhang.io:2002/", | ||
"user_forums_roles": [ | ||
"Student" | ||
], | ||
"user_course_roles": [] | ||
}, | ||
"context": { | ||
"session": "054c9ddcb76d2096f862e66bda3bc308", | ||
"user_id": 16, | ||
"username": "xiajul10", | ||
"ip": "172.18.0.1", | ||
"host": "local.overhang.io:8000", | ||
"agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:109.0) Gecko/20100101 Firefox/114.0", | ||
"path": "/api/discussion/v1/threads/64a817fce68f35002fd013c3/", | ||
"referer": "http://apps.local.overhang.io:2002/", | ||
"accept_language": "en-US,en;q=0.5", | ||
"client_id": null, | ||
"course_id": "course-v1:testX+XAPI101+2019_T2", | ||
"org_id": "testX", | ||
"enterprise_uuid": "" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.