Skip to content

Commit c12c08e

Browse files
feat!: Simplify import/export page redirects to always use MFE for courses.
The import and export pages in Studio have been replaced with new views in the Authoring MFE for courses. The legacy condition guarded by the 'legacy_studio.import' and 'legacy_studio.export' waffle flags is removed. Courses now always redirect to the MFE; libraries continue to use the legacy HTML page as v2 libraries are not yet fully rolled out. This work is part of #36108 BREAKING CHANGE: The 'legacy_studio.import' and 'legacy_studio.export' waffle flags will no longer be respected for courses. The system will behave as if the flags are set to false permanently for courses.
1 parent b041c0a commit c12c08e

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

cms/djangoapps/contentstore/views/import_export.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@
4343

4444
from ..storage import course_import_export_storage
4545
from ..tasks import CourseExportTask, CourseImportTask, export_olx, import_olx
46-
from ..toggles import use_new_export_page, use_new_import_page
4746
from ..utils import IMPORTABLE_FILE_TYPES, get_export_url, get_import_url, reverse_course_url, reverse_library_url
4847

4948
__all__ = [
@@ -99,7 +98,7 @@ def import_handler(request, course_key_string):
9998
return _write_chunk(request, courselike_key)
10099
elif request.method == 'GET': # assume html
101100

102-
if use_new_import_page(courselike_key) and not library:
101+
if not library:
103102
return redirect(get_import_url(courselike_key))
104103
status_url = reverse_course_url(
105104
"import_status_handler", courselike_key, kwargs={'filename': "fillerName"}
@@ -358,7 +357,7 @@ def export_handler(request, course_key_string):
358357
export_olx.delay(request.user.id, course_key_string, request.LANGUAGE_CODE)
359358
return JsonResponse({'ExportStatus': 1})
360359
elif 'text/html' in requested_format:
361-
if use_new_export_page(course_key) and not library:
360+
if not library:
362361
return redirect(get_export_url(course_key))
363362
return render_to_response('export.html', context)
364363
else:

0 commit comments

Comments
 (0)