Skip to content

Commit

Permalink
feat: add event bus support to forum events V2
Browse files Browse the repository at this point in the history
  • Loading branch information
mariajgrimaldi committed Dec 12, 2024
1 parent a0e1f1e commit 03e7c78
Show file tree
Hide file tree
Showing 5 changed files with 462 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,137 @@
{
"name": "CloudEvent",
"type": "record",
"doc": "Avro Event Format for CloudEvents created with openedx_events/schema",
"fields": [
{
"name": "thread",
"type": {
"name": "DiscussionThreadDataV2",
"type": "record",
"fields": [
{
"name": "anonymous",
"type": "boolean"
},
{
"name": "anonymous_to_peers",
"type": "boolean"
},
{
"name": "body",
"type": "string"
},
{
"name": "category_id",
"type": "long"
},
{
"name": "category_name",
"type": "string"
},
{
"name": "commentable_id",
"type": "string"
},
{
"name": "group_id",
"type": "long"
},
{
"name": "id",
"type": "long"
},
{
"name": "team_id",
"type": "long"
},
{
"name": "thread_type",
"type": "string"
},
{
"name": "title",
"type": "string"
},
{
"name": "title_truncated",
"type": "boolean"
},
{
"name": "truncated",
"type": "boolean"
},
{
"name": "url",
"type": "string"
},
{
"name": "user",
"type": {
"name": "UserData",
"type": "record",
"fields": [
{
"name": "id",
"type": "long"
},
{
"name": "is_active",
"type": "boolean"
},
{
"name": "pii",
"type": {
"name": "UserPersonalData",
"type": "record",
"fields": [
{
"name": "username",
"type": "string"
},
{
"name": "email",
"type": "string"
},
{
"name": "name",
"type": "string"
}
]
}
}
]
}
},
{
"name": "course_id",
"type": "string"
},
{
"name": "user_course_roles",
"type": {
"type": "array",
"items": "string"
}
},
{
"name": "user_forums_roles",
"type": {
"type": "array",
"items": "string"
}
},
{
"name": "discussion",
"type": "string"
},
{
"name": "options",
"type": "string"
}
]
}
}
],
"namespace": "org.openedx.learning.forum.thread.response.comment.created.v2"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,137 @@
{
"name": "CloudEvent",
"type": "record",
"doc": "Avro Event Format for CloudEvents created with openedx_events/schema",
"fields": [
{
"name": "thread",
"type": {
"name": "DiscussionThreadDataV2",
"type": "record",
"fields": [
{
"name": "anonymous",
"type": "boolean"
},
{
"name": "anonymous_to_peers",
"type": "boolean"
},
{
"name": "body",
"type": "string"
},
{
"name": "category_id",
"type": "long"
},
{
"name": "category_name",
"type": "string"
},
{
"name": "commentable_id",
"type": "string"
},
{
"name": "group_id",
"type": "long"
},
{
"name": "id",
"type": "long"
},
{
"name": "team_id",
"type": "long"
},
{
"name": "thread_type",
"type": "string"
},
{
"name": "title",
"type": "string"
},
{
"name": "title_truncated",
"type": "boolean"
},
{
"name": "truncated",
"type": "boolean"
},
{
"name": "url",
"type": "string"
},
{
"name": "user",
"type": {
"name": "UserData",
"type": "record",
"fields": [
{
"name": "id",
"type": "long"
},
{
"name": "is_active",
"type": "boolean"
},
{
"name": "pii",
"type": {
"name": "UserPersonalData",
"type": "record",
"fields": [
{
"name": "username",
"type": "string"
},
{
"name": "email",
"type": "string"
},
{
"name": "name",
"type": "string"
}
]
}
}
]
}
},
{
"name": "course_id",
"type": "string"
},
{
"name": "user_course_roles",
"type": {
"type": "array",
"items": "string"
}
},
{
"name": "user_forums_roles",
"type": {
"type": "array",
"items": "string"
}
},
{
"name": "discussion",
"type": "string"
},
{
"name": "options",
"type": "string"
}
]
}
}
],
"namespace": "org.openedx.learning.forum.thread.response.created.v2"
}
Loading

0 comments on commit 03e7c78

Please sign in to comment.