From dd710f70d3de2fa450fb69523575e76cc3928cea Mon Sep 17 00:00:00 2001 From: Maria Grimaldi Date: Wed, 15 Jan 2025 14:26:31 +0100 Subject: [PATCH] refactor: import authoring filter from content_authoring instead Correctly name authoring subdomain according to DDD docs: https://openedx.atlassian.net/wiki/spaces/AC/pages/663224968/edX+DDD+Bounded+Contexts --- cms/djangoapps/contentstore/asset_storage_handlers.py | 4 ++-- requirements/edx/base.txt | 2 +- requirements/edx/development.txt | 2 +- requirements/edx/doc.txt | 2 +- requirements/edx/testing.txt | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/cms/djangoapps/contentstore/asset_storage_handlers.py b/cms/djangoapps/contentstore/asset_storage_handlers.py index 97fcb3125745..e49c6fe1f7a0 100644 --- a/cms/djangoapps/contentstore/asset_storage_handlers.py +++ b/cms/djangoapps/contentstore/asset_storage_handlers.py @@ -25,7 +25,7 @@ from common.djangoapps.util.json_request import JsonResponse from openedx.core.djangoapps.contentserver.caching import del_cached_content from openedx.core.djangoapps.site_configuration import helpers as configuration_helpers -from openedx_filters.course_authoring.filters import LMSPageURLRequested +from openedx_filters.content_authoring.filters import LMSPageURLRequested from xmodule.contentstore.content import StaticContent # lint-amnesty, pylint: disable=wrong-import-order from xmodule.contentstore.django import contentstore # lint-amnesty, pylint: disable=wrong-import-order from xmodule.exceptions import NotFoundError # lint-amnesty, pylint: disable=wrong-import-order @@ -717,7 +717,7 @@ def get_asset_json(display_name, content_type, date, location, thumbnail_locatio asset_url = StaticContent.serialize_asset_key_with_slash(location) ## .. filter_implemented_name: LMSPageURLRequested - ## .. filter_type: org.openedx.course_authoring.lms.page.url.requested.v1 + ## .. filter_type: org.openedx.content_authoring.lms.page.url.requested.v1 lms_root, _ = LMSPageURLRequested.run_filter( url=configuration_helpers.get_value('LMS_ROOT_URL', settings.LMS_ROOT_URL), org=location.org, diff --git a/requirements/edx/base.txt b/requirements/edx/base.txt index 86431ca50e3e..6c9a74f41726 100644 --- a/requirements/edx/base.txt +++ b/requirements/edx/base.txt @@ -825,7 +825,7 @@ openedx-events==9.15.0 # edx-name-affirmation # event-tracking # ora2 -openedx-filters==1.12.0 +git+https://github.com/openedx/openedx-filters.git@MJG/fix-authoring-subdomain # via # -r requirements/edx/kernel.in # lti-consumer-xblock diff --git a/requirements/edx/development.txt b/requirements/edx/development.txt index e328b6dcb1f2..3cf5accd5e78 100644 --- a/requirements/edx/development.txt +++ b/requirements/edx/development.txt @@ -1383,7 +1383,7 @@ openedx-events==9.15.0 # edx-name-affirmation # event-tracking # ora2 -openedx-filters==1.12.0 +git+https://github.com/openedx/openedx-filters.git@MJG/fix-authoring-subdomain # via # -r requirements/edx/doc.txt # -r requirements/edx/testing.txt diff --git a/requirements/edx/doc.txt b/requirements/edx/doc.txt index 97c9de68dfd9..c4c5869a0699 100644 --- a/requirements/edx/doc.txt +++ b/requirements/edx/doc.txt @@ -1002,7 +1002,7 @@ openedx-events==9.15.0 # edx-name-affirmation # event-tracking # ora2 -openedx-filters==1.12.0 +git+https://github.com/openedx/openedx-filters.git@MJG/fix-authoring-subdomain # via # -r requirements/edx/base.txt # lti-consumer-xblock diff --git a/requirements/edx/testing.txt b/requirements/edx/testing.txt index 5e99738b3cc8..41bb6584a41d 100644 --- a/requirements/edx/testing.txt +++ b/requirements/edx/testing.txt @@ -1049,7 +1049,7 @@ openedx-events==9.15.0 # edx-name-affirmation # event-tracking # ora2 -openedx-filters==1.12.0 +git+https://github.com/openedx/openedx-filters.git@MJG/fix-authoring-subdomain # via # -r requirements/edx/base.txt # lti-consumer-xblock