Skip to content

Commit d0bcd2f

Browse files
feat!: General cleanup of legacy Studio page waffle flags and related code.
Remove the waffle flags and helper functions for all legacy Studio pages that have been replaced by the Authoring MFE: - legacy_studio.schedule_details - legacy_studio.advanced_settings - legacy_studio.grading - legacy_studio.import - legacy_studio.export - legacy_studio.course_team - legacy_studio.certificates - legacy_studio.configurations Also removes the course_waffle_flags REST API endpoint (GET /api/contentstore/v1/course_waffle_flags) and its serializer, view, and tests, as these only existed to expose the now-removed flags. Simplifies URL helpers in utils.py to unconditionally return MFE URLs. This work is part of #36108 BREAKING CHANGE: All of the above waffle flags are removed. The GET /api/contentstore/v1/course_waffle_flags endpoint is removed.
1 parent 7e42ce3 commit d0bcd2f

8 files changed

Lines changed: 24 additions & 596 deletions

File tree

cms/djangoapps/contentstore/rest_api/v1/serializers/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
from .course_index import CourseIndexSerializer # noqa: F401
77
from .course_rerun import CourseRerunSerializer # noqa: F401
88
from .course_team import CourseTeamSerializer # noqa: F401
9-
from .course_waffle_flags import CourseWaffleFlagsSerializer # noqa: F401
109
from .grading import CourseGradingModelSerializer, CourseGradingSerializer # noqa: F401
1110
from .group_configurations import CourseGroupConfigurationsSerializer # noqa: F401
1211
from .home import CourseHomeTabSerializer, LibraryTabSerializer, StudioHomeSerializer # noqa: F401

cms/djangoapps/contentstore/rest_api/v1/serializers/course_waffle_flags.py

Lines changed: 0 additions & 224 deletions
This file was deleted.

cms/djangoapps/contentstore/rest_api/v1/urls.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
CourseTeamView,
1919
CourseTextbooksView,
2020
CourseVideosView,
21-
CourseWaffleFlagsView,
2221
HelpUrlsView,
2322
HomePageCoursesView,
2423
HomePageLibrariesView,
@@ -139,11 +138,6 @@
139138
ContainerChildrenView.as_view(),
140139
name="container_children"
141140
),
142-
re_path(
143-
fr'^course_waffle_flags(?:/{COURSE_ID_PATTERN})?$',
144-
CourseWaffleFlagsView.as_view(),
145-
name="course_waffle_flags"
146-
),
147141

148142
# Authoring API
149143
# Do not use under v1 yet (Nov. 23). The Authoring API is still experimental and the v0 versions should be used

cms/djangoapps/contentstore/rest_api/v1/views/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
from .course_index import ContainerChildrenView, CourseIndexView # noqa: F401
77
from .course_rerun import CourseRerunView # noqa: F401
88
from .course_team import CourseTeamView # noqa: F401
9-
from .course_waffle_flags import CourseWaffleFlagsView # noqa: F401
109
from .grading import CourseGradingView # noqa: F401
1110
from .group_configurations import CourseGroupConfigurationsView # noqa: F401
1211
from .help_urls import HelpUrlsView # noqa: F401

cms/djangoapps/contentstore/rest_api/v1/views/course_waffle_flags.py

Lines changed: 0 additions & 75 deletions
This file was deleted.

0 commit comments

Comments
 (0)