fix: content search last_published date [FC-0059] (#35195)

* fix: use versioning.last_publish_log for components
* chore: bump openedx-learning to 0.10.1
This commit is contained in:
Jillian
2024-08-02 02:48:31 +09:30
committed by GitHub
parent 2ba6fd5f69
commit 20f7dbda7a
7 changed files with 7 additions and 7 deletions

View File

@@ -206,7 +206,7 @@ class LibraryXBlockMetadata:
"""
Construct a LibraryXBlockMetadata from a Component object.
"""
last_publish_log = authoring_api.get_last_publish(component.pk)
last_publish_log = component.versioning.last_publish_log
return cls(
usage_key=LibraryUsageLocatorV2(

View File

@@ -441,7 +441,7 @@ class TestContentTagChildrenExport(TaggedCourseMixin): # type: ignore[misc]
"""
Test if we can export a library
"""
with self.assertNumQueries(11):
with self.assertNumQueries(8):
tagged_library = build_object_tree_with_objecttags(self.library.key, self.all_library_object_tags)
assert tagged_library == self.expected_library_tagged_xblock

View File

@@ -87,7 +87,7 @@ libsass==0.10.0
click==8.1.6
# pinning this version to avoid updates while the library is being developed
openedx-learning==0.10.0
openedx-learning==0.10.1
# Open AI version 1.0.0 dropped support for openai.ChatCompletion which is currently in use in enterprise.
openai<=0.28.1

View File

@@ -763,7 +763,7 @@ openedx-filters==1.9.0
# -r requirements/edx/kernel.in
# lti-consumer-xblock
# ora2
openedx-learning==0.10.0
openedx-learning==0.10.1
# via
# -c requirements/edx/../constraints.txt
# -r requirements/edx/kernel.in

View File

@@ -1303,7 +1303,7 @@ openedx-filters==1.9.0
# -r requirements/edx/testing.txt
# lti-consumer-xblock
# ora2
openedx-learning==0.10.0
openedx-learning==0.10.1
# via
# -c requirements/edx/../constraints.txt
# -r requirements/edx/doc.txt

View File

@@ -891,7 +891,7 @@ openedx-filters==1.9.0
# -r requirements/edx/base.txt
# lti-consumer-xblock
# ora2
openedx-learning==0.10.0
openedx-learning==0.10.1
# via
# -c requirements/edx/../constraints.txt
# -r requirements/edx/base.txt

View File

@@ -970,7 +970,7 @@ openedx-filters==1.9.0
# -r requirements/edx/base.txt
# lti-consumer-xblock
# ora2
openedx-learning==0.10.0
openedx-learning==0.10.1
# via
# -c requirements/edx/../constraints.txt
# -r requirements/edx/base.txt