Skip to content

refactor: drop dead ENABLE_MFE_CONFIG_API override in development.py - #39139

Merged
feanil merged 1 commit into
masterfrom
feanil/drop-dead-mfe-config-api-override
Sep 23, 2026
Merged

feanil merged 1 commit into
masterfrom
feanil/drop-dead-mfe-config-api-override

Conversation

@feanil

@feanil feanil commented Sep 22, 2026

Copy link
Copy Markdown
Contributor

Follow-up cleanup from #37444.

lms/envs/development.py set ENABLE_MFE_CONFIG_API = True so the dev MFEs could fetch their runtime config from the LMS. That toggle no longer exists. It was removed by the DEPR in #39019 on 2026-08-26, and #37444 merged afterwards on 2026-09-18, so the override was already dead when it landed.

MFEConfigView in lms/djangoapps/mfe_config_api/views.py serves /api/mfe_config/v1 with no toggle check, so the assignment has no effect. The comment above it is also wrong on its own terms: it says the API is off by default in common.py, and common.py no longer defines the flag at all. That comment asked for this removal once the DEPR landed, so this is that follow-up.

No behavior change. The only remaining references to the flag are the three historical mentions in lms/djangoapps/mfe_config_api/docs/decisions/0001-mfe-config-api.rst, which are intentional.

Verified 2026-09-22 against platform master bc38b6cbc1.

The ENABLE_MFE_CONFIG_API toggle was removed from the platform by the DEPR in
#39019, which merged on 2026-08-26.  The new development.py settings merged
afterwards in #37444 on 2026-09-18, so this override was already dead when it
landed.

Nothing reads the setting now.  MFEConfigView in
lms/djangoapps/mfe_config_api/views.py serves /api/mfe_config/v1 with no toggle
check, so assigning the name here has no effect.  The comment above it is also
wrong on its own terms: it says the API is off by default in common.py, and
common.py no longer defines the flag at all.

The comment asked for this cleanup once the DEPR landed, so this is that
follow-up.

DEPR: #38959

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@feanil
feanil requested a review from kdmccormick September 22, 2026 15:40
@feanil
feanil marked this pull request as ready for review September 22, 2026 15:40
@feanil
feanil merged commit c9d54ee into master Sep 23, 2026
46 checks passed
@feanil
feanil deleted the feanil/drop-dead-mfe-config-api-override branch September 23, 2026 14:37
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.

2 participants