Skip to content

feat: General cleanup of legacy Studio page waffle flags and related code#38424

Draft
irfanuddinahmad wants to merge 1 commit intomasterfrom
iahmad/DEPR-36108-general-cleanup
Draft

feat: General cleanup of legacy Studio page waffle flags and related code#38424
irfanuddinahmad wants to merge 1 commit intomasterfrom
iahmad/DEPR-36108-general-cleanup

Conversation

@irfanuddinahmad
Copy link
Copy Markdown
Contributor

@irfanuddinahmad irfanuddinahmad commented Apr 23, 2026

This pull request removes the Course Waffle Flags API and its associated serializer, view, tests, and URL routing. This API endpoint previously provided a consolidated way to query the status of various feature toggles (waffle flags) for Studio course pages. The removal also includes cleaning up related imports throughout the codebase. The underlying toggle logic remains intact, so feature flag checks can still be performed directly where needed.

The most important changes are:

Removal of Course Waffle Flags API

  • Deleted the CourseWaffleFlagsView and its serializer (CourseWaffleFlagsSerializer), which provided an endpoint to retrieve the state of various course feature flags. This includes removing the files course_waffle_flags.py from both views and serializers directories. [1] [2]
  • Removed the test suite for the Course Waffle Flags API (test_course_waffle_flags.py).
  • Removed the API endpoint routing for course_waffle_flags from urls.py, including import statements and URL patterns. [1] [2] [3]

Cleanup of Related Imports

  • Removed now-unused imports for the deleted serializer and view from __init__.py files and from utility modules. [1] [2] [3]

This PR should be merged AFTER merging #38417 #38418 #38419 #38420 #38421 #38422 #38423

… 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.
@irfanuddinahmad irfanuddinahmad marked this pull request as draft April 23, 2026 08:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant