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 +}