Skip to content

Commit cd733fe

Browse files
authored
refactor: Remove capa folders (#38045)
This commit removes the following folders: * `xmodule/capa/` * `common/static/applets/capa/` * `common/static/images/capa/` * `common/static/js/capa/` These directories have been moved to `xblocks-contrib/problem` as-is and will now be maintained and used from there. All relevant imports in openedx-platform have been updated to reference the new paths in `xblocks-contrib/problem`. This removes duplication and consolidates CAPA-related code and static assets within the same repository as the Problem XBlock. Part of: #36538
1 parent 4121681 commit cd733fe

217 files changed

Lines changed: 103 additions & 37732 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

cms/djangoapps/contentstore/rest_api/v2/views/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
from rest_framework.generics import GenericAPIView
66
from rest_framework import permissions
77
from cms.djangoapps.contentstore.rest_api.v2.serializers.utils import NumericalInputValidationRequestSerializer
8-
from xmodule.capa.inputtypes import preview_numeric_input
8+
from xblocks_contrib.problem.capa.inputtypes import preview_numeric_input
99

1010

1111
class NumericalInputValidationView(GenericAPIView):

cms/envs/common.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,6 @@
289289

290290
MAKO_TEMPLATE_DIRS_BASE.insert(3, COMMON_ROOT / 'static')
291291
MAKO_TEMPLATE_DIRS_BASE.append(CMS_ROOT / 'djangoapps' / 'pipeline_js' / 'templates')
292-
MAKO_TEMPLATE_DIRS_BASE.append(XMODULE_ROOT / 'capa' / 'templates')
293292

294293

295294
def make_lms_template_path(settings):

common/djangoapps/edxmako/services.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ def render_lms_template(self, template_file, dictionary):
5454
5555
Templates which are in these dirs will only work with this function:
5656
edx-platform/lms/templates/
57-
edx-platform/xmodule/capa/templates/
5857
openedx/features/course_experience/templates
5958
"""
6059
return render_to_string(template_file, dictionary, namespace=lms_mako_namespace)
-208 KB
Binary file not shown.
-222 KB
Binary file not shown.
-25.7 KB
Binary file not shown.
-50.5 KB
Binary file not shown.
-64.7 KB
Binary file not shown.
-64.1 KB
Binary file not shown.
-52.2 KB
Binary file not shown.

0 commit comments

Comments
 (0)