Skip to content

Commit

Permalink
feat: add new signal to indicate new course import
Browse files Browse the repository at this point in the history
  • Loading branch information
navinkarkera committed Feb 5, 2025
1 parent 9b4d007 commit 3373d9a
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 1 deletion.
8 changes: 8 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,14 @@ Change Log
Unreleased
__________

[9.18.0] - 2025-02-06
---------------------

Added
~~~~~

* Added new course_authoring signal: ``POST_COURSE_IMPORT``.

[9.17.0] - 2025-01-30
---------------------

Expand Down
2 changes: 1 addition & 1 deletion openedx_events/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
more information about the project.
"""

__version__ = "9.17.0"
__version__ = "9.18.0"
13 changes: 13 additions & 0 deletions openedx_events/content_authoring/signals.py
Original file line number Diff line number Diff line change
Expand Up @@ -276,3 +276,16 @@
"library_collection": LibraryCollectionData
}
)

# .. event_type: org.openedx.content_authoring.course.post.import.v1
# .. event_name: POST_COURSE_IMPORT
# .. event_key_field: catalog_info.course_key
# .. event_description: Fired after a course is imported
# .. event_data: CourseData
# .. event_trigger_repository: openedx/edx-platform
POST_COURSE_IMPORT = OpenEdxPublicSignal(
event_type="org.openedx.content_authoring.course.post.import.v1",
data={
"course": CourseData,
}
)
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"name": "CloudEvent",
"type": "record",
"doc": "Avro Event Format for CloudEvents created with openedx_events/schema",
"fields": [
{
"name": "course",
"type": {
"name": "CourseData",
"type": "record",
"fields": [
{
"name": "course_key",
"type": "string"
}
]
}
}
],
"namespace": "org.openedx.content_authoring.course.post.import.v1"
}

0 comments on commit 3373d9a

Please sign in to comment.