DISABLE_UNENROLLMENT Feature flag toggle does not seem to be working

I am using Tutor V20.0.0 . I found that this feature flag does not work for me. Am i doing something wrong.

DISABLE_UNENROLLMENT

Here is the plugin code for reference.

from tutor import hooks 

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


The unenroll option still showing on learner’s dashboard. Am I doing something wrong or this feature flag no longer works.

Edit: Using this feature flag blocks me from unenrolling but the dropdown for unenrollment and the unenrollment feedback still show.

Hi @Ryan_Pais

I’m not entirely certain on this, perhaps someone else would be better positioned to answer, but as far as I can tell there’s no code in the MFE that specifically uses the value of DISABLE_UNENROLLMENT in this case, so I think its a case of this functionality not yet being brought into the respective MFE which I’m assuming would be frontend-app-learner-dashboard

My best guess is that some work would need to be done on the shouldShowUnenrollItem function to expand upon the conditions under which it shows, making DISABLE_UNENROLLMENT a condition.

Not sure if that’s necessarily the right approach but appears likely (or at least in the right direction) to me

1 Like

I was going to suggest you create an issue for the bug but I see you already did - DISABLE_UNENROLLMENT feature flag does not hide unenroll option in LMS Course Card · Issue #720 · openedx/frontend-app-learner-dashboard · GitHub

1 Like