Skip to content

Commit

Permalink
refactor: Rename CollectionKey to LibCollectionKey and CollectionLoca…
Browse files Browse the repository at this point in the history
…tor to LibCollectionLocator
  • Loading branch information
ChrisChV committed Aug 27, 2024
1 parent 6e23233 commit a16a3ee
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion opaque_keys/edx/keys.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def make_asset_key(self, asset_type: str, path: str) -> AssetKey: # pragma: no
raise NotImplementedError()


class CollectionKey(LearningContextKey):
class LibCollectionKey(LearningContextKey):
"""
An :class:`opaque_keys.OpaqueKey` identifying a particular Library Collection object.
"""
Expand Down
2 changes: 1 addition & 1 deletion opaque_keys/edx/locator.py
Original file line number Diff line number Diff line change
Expand Up @@ -1623,7 +1623,7 @@ def html_id(self) -> str:
return str(self)


class CollectionLocator(CheckFieldMixin, CollectionKey):
class LibCollectionLocator(CheckFieldMixin, CollectionKey):
"""
When serialized, these keys look like:
lib-collection:org:lib:collection-id
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ def get_version(*file_paths):
'course-v1 = opaque_keys.edx.locator:CourseLocator',
'library-v1 = opaque_keys.edx.locator:LibraryLocator',
'lib = opaque_keys.edx.locator:LibraryLocatorV2',
'lib-collection = opaque_keys.edx.locator:CollectionLocator',
'lib-collection = opaque_keys.edx.locator:LibCollectionLocator',
# don't use slashes in any new code
'slashes = opaque_keys.edx.locator:CourseLocator',
],
Expand Down

0 comments on commit a16a3ee

Please sign in to comment.