Skip to content

Commit

Permalink
fix: use collection_key (str) instead of id (int)
Browse files Browse the repository at this point in the history
  • Loading branch information
pomegranited committed Sep 4, 2024
1 parent dc8c283 commit 60ef0a3
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions openedx_events/content_authoring/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}

0 comments on commit 60ef0a3

Please sign in to comment.