From 28e827537df6b7ee3f5b543e45540d7eef75d4d1 Mon Sep 17 00:00:00 2001 From: Cristhian Garcia Date: Wed, 6 Nov 2024 12:22:31 -0500 Subject: [PATCH 1/2] fix: remove learner_downloadable field references --- openedx/core/djangoapps/content_libraries/api.py | 2 -- openedx/core/djangoapps/content_libraries/views.py | 1 - 2 files changed, 3 deletions(-) diff --git a/openedx/core/djangoapps/content_libraries/api.py b/openedx/core/djangoapps/content_libraries/api.py index 6c7189a1ac79..3a4b9535bbba 100644 --- a/openedx/core/djangoapps/content_libraries/api.py +++ b/openedx/core/djangoapps/content_libraries/api.py @@ -1014,7 +1014,6 @@ def import_staged_content_from_user_clipboard(library_key: LibraryLocatorV2, use component_version.pk, content.id, key=filename, - learner_downloadable=True, ) # Emit library block created event @@ -1084,7 +1083,6 @@ def _create_component_for_block(content_lib, usage_key, user_id=None): component_version.pk, content.id, key="block.xml", - learner_downloadable=False ) return component_version diff --git a/openedx/core/djangoapps/content_libraries/views.py b/openedx/core/djangoapps/content_libraries/views.py index c9330b167ddb..e30e58e75a26 100644 --- a/openedx/core/djangoapps/content_libraries/views.py +++ b/openedx/core/djangoapps/content_libraries/views.py @@ -1199,7 +1199,6 @@ def get_component_version_asset(request, component_version_uuid, asset_path): component_version_uuid, asset_path, public=False, - learner_downloadable_only=False, ) # If there was any error, we return that response because it will have the From c3480d2b968ba21a15606e729eab17c90fb9dc22 Mon Sep 17 00:00:00 2001 From: Cristhian Garcia Date: Fri, 8 Nov 2024 12:28:00 -0500 Subject: [PATCH 2/2] chore: bump openedx-learning to v0.17.0 --- requirements/constraints.txt | 2 +- requirements/edx/base.txt | 2 +- requirements/edx/development.txt | 2 +- requirements/edx/doc.txt | 2 +- requirements/edx/testing.txt | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/requirements/constraints.txt b/requirements/constraints.txt index 83b5442ce8e9..8348603e93dc 100644 --- a/requirements/constraints.txt +++ b/requirements/constraints.txt @@ -139,7 +139,7 @@ optimizely-sdk<5.0 # Date: 2023-09-18 # pinning this version to avoid updates while the library is being developed # Issue for unpinning: https://github.com/openedx/edx-platform/issues/35269 -openedx-learning==0.16.3 +openedx-learning==0.17.0 # Date: 2023-11-29 # Open AI version 1.0.0 dropped support for openai.ChatCompletion which is currently in use in enterprise. diff --git a/requirements/edx/base.txt b/requirements/edx/base.txt index 67e4faf3c9b3..1b81540252bc 100644 --- a/requirements/edx/base.txt +++ b/requirements/edx/base.txt @@ -827,7 +827,7 @@ openedx-filters==1.11.0 # -r requirements/edx/kernel.in # lti-consumer-xblock # ora2 -openedx-learning==0.16.3 +openedx-learning==0.17.0 # via # -c requirements/edx/../constraints.txt # -r requirements/edx/kernel.in diff --git a/requirements/edx/development.txt b/requirements/edx/development.txt index 2d01af3c7928..0143d81709d1 100644 --- a/requirements/edx/development.txt +++ b/requirements/edx/development.txt @@ -1381,7 +1381,7 @@ openedx-filters==1.11.0 # -r requirements/edx/testing.txt # lti-consumer-xblock # ora2 -openedx-learning==0.16.3 +openedx-learning==0.17.0 # via # -c requirements/edx/../constraints.txt # -r requirements/edx/doc.txt diff --git a/requirements/edx/doc.txt b/requirements/edx/doc.txt index a0c91ddecb06..1ed8a41699b7 100644 --- a/requirements/edx/doc.txt +++ b/requirements/edx/doc.txt @@ -990,7 +990,7 @@ openedx-filters==1.11.0 # -r requirements/edx/base.txt # lti-consumer-xblock # ora2 -openedx-learning==0.16.3 +openedx-learning==0.17.0 # via # -c requirements/edx/../constraints.txt # -r requirements/edx/base.txt diff --git a/requirements/edx/testing.txt b/requirements/edx/testing.txt index db44f3f685a9..28e358a32cf7 100644 --- a/requirements/edx/testing.txt +++ b/requirements/edx/testing.txt @@ -1041,7 +1041,7 @@ openedx-filters==1.11.0 # -r requirements/edx/base.txt # lti-consumer-xblock # ora2 -openedx-learning==0.16.3 +openedx-learning==0.17.0 # via # -c requirements/edx/../constraints.txt # -r requirements/edx/base.txt