-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add event bus support to forum events V2
- Loading branch information
1 parent
a0e1f1e
commit 03e7c78
Showing
5 changed files
with
462 additions
and
0 deletions.
There are no files selected for viewing
137 changes: 137 additions & 0 deletions
137
...o/tests/schemas/org+openedx+learning+forum+thread+response+comment+created+v2_schema.avsc
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,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" | ||
} |
137 changes: 137 additions & 0 deletions
137
..._bus/avro/tests/schemas/org+openedx+learning+forum+thread+response+created+v2_schema.avsc
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,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" | ||
} |
Oops, something went wrong.