-
Notifications
You must be signed in to change notification settings - Fork 27
feat: add support for complex types in dicts and lists #483
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
mariajgrimaldi
merged 16 commits into
openedx:main
from
eduNEXT:bav/complex-types-in-dicts-and-lists-support
Dec 1, 2025
Merged
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
3815c12
feat: support complex types of dicts and lists in avro schema
BryanttV b6d763f
feat: support complex types of dicts and lists in deserialization
BryanttV 3727d96
feat: support complex types of dicts and lists in test functions
BryanttV 3d273dc
test: remove tests according new changes
BryanttV b322475
feat: update data attributes to support complex types
BryanttV 432c264
chore: fix quality checks
BryanttV 2fffdcf
test: add tests for deserialization of complex types in dicts and lists
BryanttV b85b797
chore: add no cover statement in test function
BryanttV 91dade8
test: add test for unsupported types in deserialization
BryanttV 8bf6151
test: add test for complex types of list and dict for deserializer an…
BryanttV b6b3edb
chore: remove changes in data attrs
BryanttV ed76221
chore: improve inline comments and move code
BryanttV 595ade6
chore: update data attrs
BryanttV b691a9e
chore: uncomment unserializable signals
BryanttV 61bc52b
docs: enhance event bus documentation with support for type-annotated…
BryanttV c80f47a
chore: update CHANGELOG
BryanttV File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
50 changes: 50 additions & 0 deletions
50
..._bus/avro/tests/schemas/org+openedx+learning+course+notification+requested+v1_schema.avsc
This file contains hidden or 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,50 @@ | ||
| { | ||
| "name": "CloudEvent", | ||
| "type": "record", | ||
| "doc": "Avro Event Format for CloudEvents created with openedx_events/schema", | ||
| "fields": [ | ||
| { | ||
| "name": "course_notification_data", | ||
| "type": { | ||
| "name": "CourseNotificationData", | ||
| "type": "record", | ||
| "fields": [ | ||
| { | ||
| "name": "course_key", | ||
| "type": "string" | ||
| }, | ||
| { | ||
| "name": "app_name", | ||
| "type": "string" | ||
| }, | ||
| { | ||
| "name": "notification_type", | ||
| "type": "string" | ||
| }, | ||
| { | ||
| "name": "content_url", | ||
| "type": "string" | ||
| }, | ||
| { | ||
| "name": "content_context", | ||
| "type": { | ||
| "type": "map", | ||
| "values": "string" | ||
| } | ||
| }, | ||
| { | ||
| "name": "audience_filters", | ||
| "type": { | ||
| "type": "map", | ||
| "values": { | ||
| "type": "array", | ||
| "items": "string" | ||
| } | ||
| } | ||
| } | ||
| ] | ||
| } | ||
| } | ||
| ], | ||
| "namespace": "org.openedx.learning.course.notification.requested.v1" | ||
| } |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.