From 8101eb46d15717e7d5390af0901b8314a2c7da25 Mon Sep 17 00:00:00 2001 From: Yusuf Musleh Date: Sun, 25 Aug 2024 08:39:02 +0300 Subject: [PATCH 1/7] feat: Add Content Library Collections signals --- CHANGELOG.rst | 4 +++ openedx_events/__init__.py | 2 +- openedx_events/content_authoring/data.py | 14 ++++++++ openedx_events/content_authoring/signals.py | 34 +++++++++++++++++++ ...+library+collection+created+v1_schema.avsc | 25 ++++++++++++++ ...+library+collection+deleted+v1_schema.avsc | 25 ++++++++++++++ ...+library+collection+updated+v1_schema.avsc | 25 ++++++++++++++ 7 files changed, 128 insertions(+), 1 deletion(-) create mode 100644 openedx_events/event_bus/avro/tests/schemas/org+openedx+content_authoring+content+library+collection+created+v1_schema.avsc create mode 100644 openedx_events/event_bus/avro/tests/schemas/org+openedx+content_authoring+content+library+collection+deleted+v1_schema.avsc create mode 100644 openedx_events/event_bus/avro/tests/schemas/org+openedx+content_authoring+content+library+collection+updated+v1_schema.avsc diff --git a/CHANGELOG.rst b/CHANGELOG.rst index c49ab2c7..6f22ea47 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -14,6 +14,10 @@ Change Log Unreleased ---------- +Added +~~~~~ +* Added new ``LIBRARY_COLLECTION_CREATED``, ``LIBRARY_COLLECTION_UPDATED`` and ``LIBRARY_COLLECTION_DELETED`` events in content_authoring. + [9.12.0] - 2024-07-31 --------------------- diff --git a/openedx_events/__init__.py b/openedx_events/__init__.py index 434522ad..445806a0 100644 --- a/openedx_events/__init__.py +++ b/openedx_events/__init__.py @@ -5,4 +5,4 @@ more information about the project. """ -__version__ = "9.12.0" +__version__ = "9.13.0" diff --git a/openedx_events/content_authoring/data.py b/openedx_events/content_authoring/data.py index 1483ddbc..c48a0b5a 100644 --- a/openedx_events/content_authoring/data.py +++ b/openedx_events/content_authoring/data.py @@ -194,3 +194,17 @@ class ContentObjectData: """ object_id = attr.ib(type=str) + + +@attr.s(frozen=True) +class LibraryCollectionData: + """ + Data about changed content library Collection. + + Arguments: + library_key (LibraryLocatorV2): a key that represents a Blockstore-based content library. + collection_id (int): an id (pk) that represents a collection associated with the content library. + """ + + library_key = attr.ib(type=LibraryLocatorV2) + collection_id = attr.ib(type=int) diff --git a/openedx_events/content_authoring/signals.py b/openedx_events/content_authoring/signals.py index 495d14d9..2b00ea15 100644 --- a/openedx_events/content_authoring/signals.py +++ b/openedx_events/content_authoring/signals.py @@ -15,6 +15,7 @@ CourseData, DuplicatedXBlockData, LibraryBlockData, + LibraryCollectionData, XBlockData, ) from openedx_events.tooling import OpenEdxPublicSignal @@ -210,3 +211,36 @@ "content_object": ContentObjectData } ) + +# .. event_type: org.openedx.content_authoring.content.library.collection.created.v1 +# .. event_name: LIBRARY_COLLECTION_CREATED +# .. event_description: emitted when a content library collection is created +# .. event_data: LibraryCollectionData +LIBRARY_COLLECTION_CREATED = OpenEdxPublicSignal( + event_type="org.openedx.content_authoring.content.library.collection.created.v1", + data={ + "library_collection": LibraryCollectionData + } +) + +# .. event_type: org.openedx.content_authoring.content.library.collection.updated.v1 +# .. event_name: LIBRARY_COLLECTION_UPDATED +# .. event_description: emitted when when a content library collection is updated +# .. event_data: LibraryCollectionData +LIBRARY_COLLECTION_UPDATED = OpenEdxPublicSignal( + event_type="org.openedx.content_authoring.content.library.collection.updated.v1", + data={ + "library_collection": LibraryCollectionData + } +) + +# .. event_type: org.openedx.content_authoring.content.library.collection.deleted.v1 +# .. event_name: LIBRARY_COLLECTION_DELETED +# .. event_description: emitted when an when a content library collection is deleted +# .. event_data: LibraryCollectionData +LIBRARY_COLLECTION_DELETED = OpenEdxPublicSignal( + event_type="org.openedx.content_authoring.content.library.collection.deleted.v1", + data={ + "library_collection": LibraryCollectionData + } +) diff --git a/openedx_events/event_bus/avro/tests/schemas/org+openedx+content_authoring+content+library+collection+created+v1_schema.avsc b/openedx_events/event_bus/avro/tests/schemas/org+openedx+content_authoring+content+library+collection+created+v1_schema.avsc new file mode 100644 index 00000000..f42a800f --- /dev/null +++ b/openedx_events/event_bus/avro/tests/schemas/org+openedx+content_authoring+content+library+collection+created+v1_schema.avsc @@ -0,0 +1,25 @@ +{ + "name": "CloudEvent", + "type": "record", + "doc": "Avro Event Format for CloudEvents created with openedx_events/schema", + "fields": [ + { + "name": "library_collection", + "type": { + "name": "LibraryCollectionData", + "type": "record", + "fields": [ + { + "name": "library_key", + "type": "string" + }, + { + "name": "collection_id", + "type": "long" + } + ] + } + } + ], + "namespace": "org.openedx.content_authoring.content.library.collection.created.v1" +} \ No newline at end of file diff --git a/openedx_events/event_bus/avro/tests/schemas/org+openedx+content_authoring+content+library+collection+deleted+v1_schema.avsc b/openedx_events/event_bus/avro/tests/schemas/org+openedx+content_authoring+content+library+collection+deleted+v1_schema.avsc new file mode 100644 index 00000000..0541f58d --- /dev/null +++ b/openedx_events/event_bus/avro/tests/schemas/org+openedx+content_authoring+content+library+collection+deleted+v1_schema.avsc @@ -0,0 +1,25 @@ +{ + "name": "CloudEvent", + "type": "record", + "doc": "Avro Event Format for CloudEvents created with openedx_events/schema", + "fields": [ + { + "name": "library_collection", + "type": { + "name": "LibraryCollectionData", + "type": "record", + "fields": [ + { + "name": "library_key", + "type": "string" + }, + { + "name": "collection_id", + "type": "long" + } + ] + } + } + ], + "namespace": "org.openedx.content_authoring.content.library.collection.deleted.v1" +} \ No newline at end of file diff --git a/openedx_events/event_bus/avro/tests/schemas/org+openedx+content_authoring+content+library+collection+updated+v1_schema.avsc b/openedx_events/event_bus/avro/tests/schemas/org+openedx+content_authoring+content+library+collection+updated+v1_schema.avsc new file mode 100644 index 00000000..074fb7e8 --- /dev/null +++ b/openedx_events/event_bus/avro/tests/schemas/org+openedx+content_authoring+content+library+collection+updated+v1_schema.avsc @@ -0,0 +1,25 @@ +{ + "name": "CloudEvent", + "type": "record", + "doc": "Avro Event Format for CloudEvents created with openedx_events/schema", + "fields": [ + { + "name": "library_collection", + "type": { + "name": "LibraryCollectionData", + "type": "record", + "fields": [ + { + "name": "library_key", + "type": "string" + }, + { + "name": "collection_id", + "type": "long" + } + ] + } + } + ], + "namespace": "org.openedx.content_authoring.content.library.collection.updated.v1" +} \ No newline at end of file From 60ef0a3e7e0752cdeab24ed17675b562e81df973 Mon Sep 17 00:00:00 2001 From: Jillian Vogel Date: Wed, 4 Sep 2024 10:46:36 +0930 Subject: [PATCH 2/7] fix: use collection_key (str) instead of id (int) --- openedx_events/content_authoring/data.py | 4 ++-- ...horing+content+library+collection+created+v1_schema.avsc | 6 +++--- ...horing+content+library+collection+deleted+v1_schema.avsc | 6 +++--- ...horing+content+library+collection+updated+v1_schema.avsc | 6 +++--- 4 files changed, 11 insertions(+), 11 deletions(-) diff --git a/openedx_events/content_authoring/data.py b/openedx_events/content_authoring/data.py index c48a0b5a..e55cc871 100644 --- a/openedx_events/content_authoring/data.py +++ b/openedx_events/content_authoring/data.py @@ -203,8 +203,8 @@ class LibraryCollectionData: Arguments: library_key (LibraryLocatorV2): a key that represents a Blockstore-based content library. - collection_id (int): an id (pk) that represents a collection associated with the content library. + collection_key (str): identifies the collection within the library's learning package """ library_key = attr.ib(type=LibraryLocatorV2) - collection_id = attr.ib(type=int) + collection_key = attr.ib(type=str) diff --git a/openedx_events/event_bus/avro/tests/schemas/org+openedx+content_authoring+content+library+collection+created+v1_schema.avsc b/openedx_events/event_bus/avro/tests/schemas/org+openedx+content_authoring+content+library+collection+created+v1_schema.avsc index f42a800f..c32c7546 100644 --- a/openedx_events/event_bus/avro/tests/schemas/org+openedx+content_authoring+content+library+collection+created+v1_schema.avsc +++ b/openedx_events/event_bus/avro/tests/schemas/org+openedx+content_authoring+content+library+collection+created+v1_schema.avsc @@ -14,12 +14,12 @@ "type": "string" }, { - "name": "collection_id", - "type": "long" + "name": "collection_key", + "type": "string" } ] } } ], "namespace": "org.openedx.content_authoring.content.library.collection.created.v1" -} \ No newline at end of file +} diff --git a/openedx_events/event_bus/avro/tests/schemas/org+openedx+content_authoring+content+library+collection+deleted+v1_schema.avsc b/openedx_events/event_bus/avro/tests/schemas/org+openedx+content_authoring+content+library+collection+deleted+v1_schema.avsc index 0541f58d..13dd59fe 100644 --- a/openedx_events/event_bus/avro/tests/schemas/org+openedx+content_authoring+content+library+collection+deleted+v1_schema.avsc +++ b/openedx_events/event_bus/avro/tests/schemas/org+openedx+content_authoring+content+library+collection+deleted+v1_schema.avsc @@ -14,12 +14,12 @@ "type": "string" }, { - "name": "collection_id", - "type": "long" + "name": "collection_key", + "type": "string" } ] } } ], "namespace": "org.openedx.content_authoring.content.library.collection.deleted.v1" -} \ No newline at end of file +} diff --git a/openedx_events/event_bus/avro/tests/schemas/org+openedx+content_authoring+content+library+collection+updated+v1_schema.avsc b/openedx_events/event_bus/avro/tests/schemas/org+openedx+content_authoring+content+library+collection+updated+v1_schema.avsc index 074fb7e8..aa09a6c5 100644 --- a/openedx_events/event_bus/avro/tests/schemas/org+openedx+content_authoring+content+library+collection+updated+v1_schema.avsc +++ b/openedx_events/event_bus/avro/tests/schemas/org+openedx+content_authoring+content+library+collection+updated+v1_schema.avsc @@ -14,12 +14,12 @@ "type": "string" }, { - "name": "collection_id", - "type": "long" + "name": "collection_key", + "type": "string" } ] } } ], "namespace": "org.openedx.content_authoring.content.library.collection.updated.v1" -} \ No newline at end of file +} From b6ab39964e75254a366f46116b4ff59f679f3e3d Mon Sep 17 00:00:00 2001 From: Jillian Vogel Date: Wed, 4 Sep 2024 12:46:00 +0930 Subject: [PATCH 3/7] docs: update CHANGELOG --- CHANGELOG.rst | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 6f22ea47..6d939d1a 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -11,11 +11,19 @@ Change Log .. There should always be an "Unreleased" section for changes pending release. + + Unreleased ----------- +__________ + + + +[9.13.0] - 2024-09-05 +--------------------- Added ~~~~~ + * Added new ``LIBRARY_COLLECTION_CREATED``, ``LIBRARY_COLLECTION_UPDATED`` and ``LIBRARY_COLLECTION_DELETED`` events in content_authoring. [9.12.0] - 2024-07-31 From 65701f11a450bbb8e97aac9aa0481ca2af8b6c79 Mon Sep 17 00:00:00 2001 From: Jillian Date: Fri, 6 Sep 2024 12:20:17 +0930 Subject: [PATCH 4/7] feat: Deprecates CONTENT_OBJECT_TAGS_CHANGED in favor of CONTENT_OBJECT_ASSOCIATIONS_CHANGED https://github.com/open-craft/openedx-events/pull/66 * feat: adds event CONTENT_OBJECT_ASSOCIATOONS_CHANGED and ContentObjectChangedData, which has a field for indicating what has changed. * chore: updates changelog --- CHANGELOG.rst | 15 ++++++++++ openedx_events/__init__.py | 2 +- openedx_events/content_authoring/data.py | 19 ++++++++++++- openedx_events/content_authoring/signals.py | 13 +++++++++ ...object+associations+changed+v1_schema.avsc | 28 +++++++++++++++++++ .../event_bus/avro/tests/test_avro.py | 1 + 6 files changed, 76 insertions(+), 2 deletions(-) create mode 100644 openedx_events/event_bus/avro/tests/schemas/org+openedx+content_authoring+content+object+associations+changed+v1_schema.avsc diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 6d939d1a..4d35ddd0 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -18,6 +18,21 @@ __________ +[9.14.0] - 2024-09-12 +--------------------- + +Added +~~~~~ + +* Adds event ``CONTENT_OBJECT_ASSOCIATIONS_CHANGED`` +* Adds ``ContentObjectChangedData``, which inherits from ContentObjectData and adds an optional list of string ``changes``. + +Deprecated +~~~~~~~~~~ + +* Deprecated event ``CONTENT_OBJECT_TAGS_CHANGED`` in favor of ``CONTENT_OBJECT_ASSOCIATIONS_CHANGED`` + Plan to remove after Sumac. + [9.13.0] - 2024-09-05 --------------------- diff --git a/openedx_events/__init__.py b/openedx_events/__init__.py index 445806a0..40b95950 100644 --- a/openedx_events/__init__.py +++ b/openedx_events/__init__.py @@ -5,4 +5,4 @@ more information about the project. """ -__version__ = "9.13.0" +__version__ = "9.14.0" diff --git a/openedx_events/content_authoring/data.py b/openedx_events/content_authoring/data.py index e55cc871..4e76bcd7 100644 --- a/openedx_events/content_authoring/data.py +++ b/openedx_events/content_authoring/data.py @@ -185,7 +185,7 @@ class LibraryBlockData: @attr.s(frozen=True) class ContentObjectData: """ - Data about changed content object. + Data about a content object. Arguments: object_id (str): identifier of the Content object. This represents the id of the course or library block @@ -196,6 +196,23 @@ class ContentObjectData: object_id = attr.ib(type=str) +@attr.s(frozen=True) +class ContentObjectChangedData(ContentObjectData): + """ + Data about a changed content object. + + Arguments: + object_id (str): identifier of the Content object. This represents the id of the course or library block + as a string. For example: + block-v1:SampleTaxonomyOrg2+STC1+2023_1+type@vertical+block@f8de78f0897049ce997777a3a31b6ea0 + + changes: list of changes made to this ContentObject, e.g. "tags", "collections" + If list is empty, assume everything has changed. + """ + + changes = attr.ib(type=List[str], factory=list) + + @attr.s(frozen=True) class LibraryCollectionData: """ diff --git a/openedx_events/content_authoring/signals.py b/openedx_events/content_authoring/signals.py index 2b00ea15..664c4ed1 100644 --- a/openedx_events/content_authoring/signals.py +++ b/openedx_events/content_authoring/signals.py @@ -10,6 +10,7 @@ from openedx_events.content_authoring.data import ( CertificateConfigData, ContentLibraryData, + ContentObjectChangedData, ContentObjectData, CourseCatalogData, CourseData, @@ -201,9 +202,21 @@ } ) +# .. event_type: org.openedx.content_authoring.content.object.associations.changed.v1 +# .. event_name: CONTENT_OBJECT_ASSOCIATIONS_CHANGED +# .. event_description: emitted when an object's associations are changed, e.g tags, collections +# .. event_data: ContentObjectData +CONTENT_OBJECT_ASSOCIATIONS_CHANGED = OpenEdxPublicSignal( + event_type="org.openedx.content_authoring.content.object.associations.changed.v1", + data={ + "content_object": ContentObjectChangedData + } +) + # .. event_type: org.openedx.content_authoring.content.object.tags.changed.v1 # .. event_name: CONTENT_OBJECT_TAGS_CHANGED # .. event_description: emitted when an object's tags are changed +# DEPRECATED: please use CONTENT_OBJECT_ASSOCIATIONS_CHANGED instead. # .. event_data: ContentObjectData CONTENT_OBJECT_TAGS_CHANGED = OpenEdxPublicSignal( event_type="org.openedx.content_authoring.content.object.tags.changed.v1", diff --git a/openedx_events/event_bus/avro/tests/schemas/org+openedx+content_authoring+content+object+associations+changed+v1_schema.avsc b/openedx_events/event_bus/avro/tests/schemas/org+openedx+content_authoring+content+object+associations+changed+v1_schema.avsc new file mode 100644 index 00000000..5f3cfb2c --- /dev/null +++ b/openedx_events/event_bus/avro/tests/schemas/org+openedx+content_authoring+content+object+associations+changed+v1_schema.avsc @@ -0,0 +1,28 @@ +{ + "name": "CloudEvent", + "type": "record", + "doc": "Avro Event Format for CloudEvents created with openedx_events/schema", + "fields": [ + { + "name": "content_object", + "type": { + "name": "ContentObjectChangedData", + "type": "record", + "fields": [ + { + "name": "object_id", + "type": "string" + }, + { + "name": "changes", + "type": { + "type": "array", + "items": "string" + } + } + ] + } + } + ], + "namespace": "org.openedx.content_authoring.content.object.associations.changed.v1" +} \ No newline at end of file diff --git a/openedx_events/event_bus/avro/tests/test_avro.py b/openedx_events/event_bus/avro/tests/test_avro.py index 4d564b27..87634067 100644 --- a/openedx_events/event_bus/avro/tests/test_avro.py +++ b/openedx_events/event_bus/avro/tests/test_avro.py @@ -108,6 +108,7 @@ def generate_test_event_data_for_data_type(data_type): # pragma: no cover LibraryLocatorV2: LibraryLocatorV2.from_string('lib:MITx:reallyhardproblems'), LibraryUsageLocatorV2: LibraryUsageLocatorV2.from_string('lb:MITx:reallyhardproblems:problem:problem1'), List[int]: [1, 2, 3], + List[str]: ["hi", "there"], datetime: datetime.now(), CCXLocator: CCXLocator(org='edx', course='DemoX', run='Demo_course', ccx='1'), UUID: uuid4(), From b4e6e76442215ecdf2efef9733d7fa2ebe4dca7b Mon Sep 17 00:00:00 2001 From: Jillian Vogel Date: Fri, 6 Sep 2024 16:40:58 +0930 Subject: [PATCH 5/7] fix: fix conflicts in CHANGELOG --- CHANGELOG.rst | 8 -------- 1 file changed, 8 deletions(-) diff --git a/CHANGELOG.rst b/CHANGELOG.rst index ce68113b..9bbc94bf 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -36,14 +36,6 @@ Deprecated [9.13.0] - 2024-09-05 --------------------- -Added -~~~~~ - -* Added new ``LIBRARY_COLLECTION_CREATED``, ``LIBRARY_COLLECTION_UPDATED`` and ``LIBRARY_COLLECTION_DELETED`` events in content_authoring. - -[9.13.0] - 2024-09-05 ---------------------- - Added ~~~~~~~ From 5e89cbe11e2794c7e444320dbca3954fdfcede3e Mon Sep 17 00:00:00 2001 From: Jillian Vogel Date: Fri, 6 Sep 2024 16:45:43 +0930 Subject: [PATCH 6/7] fix: use content_library subdomain for new events --- openedx_events/content_authoring/signals.py | 12 ++++++------ ...ontent_library+collection+created+v1_schema.avsc} | 4 ++-- ...ontent_library+collection+deleted+v1_schema.avsc} | 4 ++-- ...ontent_library+collection+updated+v1_schema.avsc} | 4 ++-- 4 files changed, 12 insertions(+), 12 deletions(-) rename openedx_events/event_bus/avro/tests/schemas/{org+openedx+content_authoring+content+library+collection+created+v1_schema.avsc => org+openedx+content_authoring+content_library+collection+created+v1_schema.avsc} (88%) rename openedx_events/event_bus/avro/tests/schemas/{org+openedx+content_authoring+content+library+collection+deleted+v1_schema.avsc => org+openedx+content_authoring+content_library+collection+deleted+v1_schema.avsc} (88%) rename openedx_events/event_bus/avro/tests/schemas/{org+openedx+content_authoring+content+library+collection+updated+v1_schema.avsc => org+openedx+content_authoring+content_library+collection+updated+v1_schema.avsc} (88%) diff --git a/openedx_events/content_authoring/signals.py b/openedx_events/content_authoring/signals.py index 664c4ed1..dc323827 100644 --- a/openedx_events/content_authoring/signals.py +++ b/openedx_events/content_authoring/signals.py @@ -225,34 +225,34 @@ } ) -# .. event_type: org.openedx.content_authoring.content.library.collection.created.v1 +# .. event_type: org.openedx.content_authoring.content_library.collection.created.v1 # .. event_name: LIBRARY_COLLECTION_CREATED # .. event_description: emitted when a content library collection is created # .. event_data: LibraryCollectionData LIBRARY_COLLECTION_CREATED = OpenEdxPublicSignal( - event_type="org.openedx.content_authoring.content.library.collection.created.v1", + event_type="org.openedx.content_authoring.content_library.collection.created.v1", data={ "library_collection": LibraryCollectionData } ) -# .. event_type: org.openedx.content_authoring.content.library.collection.updated.v1 +# .. event_type: org.openedx.content_authoring.content_library.collection.updated.v1 # .. event_name: LIBRARY_COLLECTION_UPDATED # .. event_description: emitted when when a content library collection is updated # .. event_data: LibraryCollectionData LIBRARY_COLLECTION_UPDATED = OpenEdxPublicSignal( - event_type="org.openedx.content_authoring.content.library.collection.updated.v1", + event_type="org.openedx.content_authoring.content_library.collection.updated.v1", data={ "library_collection": LibraryCollectionData } ) -# .. event_type: org.openedx.content_authoring.content.library.collection.deleted.v1 +# .. event_type: org.openedx.content_authoring.content_library.collection.deleted.v1 # .. event_name: LIBRARY_COLLECTION_DELETED # .. event_description: emitted when an when a content library collection is deleted # .. event_data: LibraryCollectionData LIBRARY_COLLECTION_DELETED = OpenEdxPublicSignal( - event_type="org.openedx.content_authoring.content.library.collection.deleted.v1", + event_type="org.openedx.content_authoring.content_library.collection.deleted.v1", data={ "library_collection": LibraryCollectionData } diff --git a/openedx_events/event_bus/avro/tests/schemas/org+openedx+content_authoring+content+library+collection+created+v1_schema.avsc b/openedx_events/event_bus/avro/tests/schemas/org+openedx+content_authoring+content_library+collection+created+v1_schema.avsc similarity index 88% rename from openedx_events/event_bus/avro/tests/schemas/org+openedx+content_authoring+content+library+collection+created+v1_schema.avsc rename to openedx_events/event_bus/avro/tests/schemas/org+openedx+content_authoring+content_library+collection+created+v1_schema.avsc index c32c7546..58b77a50 100644 --- a/openedx_events/event_bus/avro/tests/schemas/org+openedx+content_authoring+content+library+collection+created+v1_schema.avsc +++ b/openedx_events/event_bus/avro/tests/schemas/org+openedx+content_authoring+content_library+collection+created+v1_schema.avsc @@ -21,5 +21,5 @@ } } ], - "namespace": "org.openedx.content_authoring.content.library.collection.created.v1" -} + "namespace": "org.openedx.content_authoring.content_library.collection.created.v1" +} \ No newline at end of file diff --git a/openedx_events/event_bus/avro/tests/schemas/org+openedx+content_authoring+content+library+collection+deleted+v1_schema.avsc b/openedx_events/event_bus/avro/tests/schemas/org+openedx+content_authoring+content_library+collection+deleted+v1_schema.avsc similarity index 88% rename from openedx_events/event_bus/avro/tests/schemas/org+openedx+content_authoring+content+library+collection+deleted+v1_schema.avsc rename to openedx_events/event_bus/avro/tests/schemas/org+openedx+content_authoring+content_library+collection+deleted+v1_schema.avsc index 13dd59fe..473d4163 100644 --- a/openedx_events/event_bus/avro/tests/schemas/org+openedx+content_authoring+content+library+collection+deleted+v1_schema.avsc +++ b/openedx_events/event_bus/avro/tests/schemas/org+openedx+content_authoring+content_library+collection+deleted+v1_schema.avsc @@ -21,5 +21,5 @@ } } ], - "namespace": "org.openedx.content_authoring.content.library.collection.deleted.v1" -} + "namespace": "org.openedx.content_authoring.content_library.collection.deleted.v1" +} \ No newline at end of file diff --git a/openedx_events/event_bus/avro/tests/schemas/org+openedx+content_authoring+content+library+collection+updated+v1_schema.avsc b/openedx_events/event_bus/avro/tests/schemas/org+openedx+content_authoring+content_library+collection+updated+v1_schema.avsc similarity index 88% rename from openedx_events/event_bus/avro/tests/schemas/org+openedx+content_authoring+content+library+collection+updated+v1_schema.avsc rename to openedx_events/event_bus/avro/tests/schemas/org+openedx+content_authoring+content_library+collection+updated+v1_schema.avsc index aa09a6c5..54733048 100644 --- a/openedx_events/event_bus/avro/tests/schemas/org+openedx+content_authoring+content+library+collection+updated+v1_schema.avsc +++ b/openedx_events/event_bus/avro/tests/schemas/org+openedx+content_authoring+content_library+collection+updated+v1_schema.avsc @@ -21,5 +21,5 @@ } } ], - "namespace": "org.openedx.content_authoring.content.library.collection.updated.v1" -} + "namespace": "org.openedx.content_authoring.content_library.collection.updated.v1" +} \ No newline at end of file From 13999084f663206cedcab3116c2211ef30a936eb Mon Sep 17 00:00:00 2001 From: Navin Karkera Date: Fri, 6 Sep 2024 14:58:33 +0530 Subject: [PATCH 7/7] fix: add library collection events to changelog --- CHANGELOG.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 9bbc94bf..65d1abbb 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -25,6 +25,7 @@ Added ~~~~~ * Adds event ``CONTENT_OBJECT_ASSOCIATIONS_CHANGED`` +* Added new ``LIBRARY_COLLECTION_CREATED``, ``LIBRARY_COLLECTION_UPDATED`` and ``LIBRARY_COLLECTION_DELETED`` events in content_authoring. * Adds ``ContentObjectChangedData``, which inherits from ContentObjectData and adds an optional list of string ``changes``. Deprecated