-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add new learning events for course grades and badges
- Loading branch information
Showing
16 changed files
with
622 additions
and
92 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
100 changes: 100 additions & 0 deletions
100
...edx_events/event_bus/avro/tests/schemas/org+openedx+learning+badge+awarded+v1_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,100 @@ | ||
{ | ||
"name": "CloudEvent", | ||
"type": "record", | ||
"doc": "Avro Event Format for CloudEvents created with openedx_events/schema", | ||
"fields": [ | ||
{ | ||
"name": "badge", | ||
"type": { | ||
"name": "BadgeData", | ||
"type": "record", | ||
"fields": [ | ||
{ | ||
"name": "uuid", | ||
"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": "template", | ||
"type": { | ||
"name": "BadgeTemplateData", | ||
"type": "record", | ||
"fields": [ | ||
{ | ||
"name": "uuid", | ||
"type": "string" | ||
}, | ||
{ | ||
"name": "origin", | ||
"type": "string" | ||
}, | ||
{ | ||
"name": "name", | ||
"type": [ | ||
"null", | ||
"string" | ||
], | ||
"default": null | ||
}, | ||
{ | ||
"name": "description", | ||
"type": [ | ||
"null", | ||
"string" | ||
], | ||
"default": null | ||
}, | ||
{ | ||
"name": "image_url", | ||
"type": [ | ||
"null", | ||
"string" | ||
], | ||
"default": null | ||
} | ||
] | ||
} | ||
} | ||
] | ||
} | ||
} | ||
], | ||
"namespace": "org.openedx.learning.badge.awarded.v1" | ||
} |
100 changes: 100 additions & 0 deletions
100
...edx_events/event_bus/avro/tests/schemas/org+openedx+learning+badge+revoked+v1_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,100 @@ | ||
{ | ||
"name": "CloudEvent", | ||
"type": "record", | ||
"doc": "Avro Event Format for CloudEvents created with openedx_events/schema", | ||
"fields": [ | ||
{ | ||
"name": "badge", | ||
"type": { | ||
"name": "BadgeData", | ||
"type": "record", | ||
"fields": [ | ||
{ | ||
"name": "uuid", | ||
"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": "template", | ||
"type": { | ||
"name": "BadgeTemplateData", | ||
"type": "record", | ||
"fields": [ | ||
{ | ||
"name": "uuid", | ||
"type": "string" | ||
}, | ||
{ | ||
"name": "origin", | ||
"type": "string" | ||
}, | ||
{ | ||
"name": "name", | ||
"type": [ | ||
"null", | ||
"string" | ||
], | ||
"default": null | ||
}, | ||
{ | ||
"name": "description", | ||
"type": [ | ||
"null", | ||
"string" | ||
], | ||
"default": null | ||
}, | ||
{ | ||
"name": "image_url", | ||
"type": [ | ||
"null", | ||
"string" | ||
], | ||
"default": null | ||
} | ||
] | ||
} | ||
} | ||
] | ||
} | ||
} | ||
], | ||
"namespace": "org.openedx.learning.badge.revoked.v1" | ||
} |
108 changes: 108 additions & 0 deletions
108
...vent_bus/avro/tests/schemas/org+openedx+learning+ccx+course+passing+status+v1_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,108 @@ | ||
{ | ||
"name": "CloudEvent", | ||
"type": "record", | ||
"doc": "Avro Event Format for CloudEvents created with openedx_events/schema", | ||
"fields": [ | ||
{ | ||
"name": "course_passing_status", | ||
"type": { | ||
"name": "CcxCoursePassingStatusData", | ||
"type": "record", | ||
"fields": [ | ||
{ | ||
"name": "status", | ||
"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", | ||
"type": { | ||
"name": "CcxCourseData", | ||
"type": "record", | ||
"fields": [ | ||
{ | ||
"name": "ccx_course_key", | ||
"type": "string" | ||
}, | ||
{ | ||
"name": "master_course_key", | ||
"type": "string" | ||
}, | ||
{ | ||
"name": "display_name", | ||
"type": "string" | ||
}, | ||
{ | ||
"name": "coach_email", | ||
"type": "string" | ||
}, | ||
{ | ||
"name": "start", | ||
"type": [ | ||
"null", | ||
"string" | ||
], | ||
"default": null | ||
}, | ||
{ | ||
"name": "end", | ||
"type": [ | ||
"null", | ||
"string" | ||
], | ||
"default": null | ||
}, | ||
{ | ||
"name": "max_students_allowed", | ||
"type": [ | ||
"null", | ||
"long" | ||
], | ||
"default": null | ||
} | ||
] | ||
} | ||
} | ||
] | ||
} | ||
} | ||
], | ||
"namespace": "org.openedx.learning.ccx.course.passing.status.v1" | ||
} |
Oops, something went wrong.