Some feature toggles don't work

I am using Tutor v14.0.1 . I found that these 2 feature toggles don’t work for me. Do they work for you?
DISABLE_UNENROLLMENT
ENABLE_ACCOUNT_DELETION
The unenroll option still showing on learner’s dashboard
The delete account section still showing on the account page.
My plugin:

from tutor import hooks

hooks.Filters.ENV_PATCHES.add_items([
    (
    "openedx-lms-common-settings",
"""
FEATURES['ENABLE_ACCOUNT_DELETION'] = False
"""
    ),
    (
    "openedx-common-settings",
"""
FEATURES['DISABLE_UNENROLLMENT'] =  True
"""
    )
])
1 Like

This feature toggle was introduced on April 22nd, after the Nutmeg branch was cut: https://github.com/openedx/edx-platform/pull/29326
Thus, it is not available in Nutmeg :-/

As far as I understand the edx-platform source code, this feature flag is respected by the legacy account page, but not by the Account MFE. Evidence:

The account_settings_context uses this feature flag: https://github.com/openedx/edx-platform/blob/20de3c71b4951472947917d2388e8412f53f6bcc/openedx/core/djangoapps/user_api/accounts/settings_views.py#L142
But it is bypassed when we run the account MFE: https://github.com/openedx/edx-platform/blob/20de3c71b4951472947917d2388e8412f53f6bcc/openedx/core/djangoapps/user_api/accounts/settings_views.py#L74

The Account MFE does not make use of this feature flag at all: https://github.com/openedx/frontend-app-account/blob/c39fd332b670f92879db3d227aaba83a1ad44e26/src/account-settings/JumpNav.jsx#L65

I think this should be considered as a bug in the Account MFE. Thus, I filed this issue: There is no way to disable account deletion in the Account MFE · Issue #189 · openedx/wg-build-test-release · GitHub

2 Likes

Thank you for your clarification.