Skip to content

DISABLE_UNENROLLMENT feature flag does not hide unenroll option in LMS Course Card #720

@colorsplash9

Description

@colorsplash9

I’m using Tutor v20.0.0 and trying to disable unenrollment for learners using the DISABLE_UNENROLLMENT feature flag.

Here’s the plugin code I added:

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"),
])

Observed behavior:

  • The unenroll option is still visible on the learner’s dashboard.

  • When I click it, the unenrollment feedback screen still shows up.

  • However, if I try to submit the unenrollment, it gets blocked (so the flag is partially working).

Expected behavior:

  • The unenroll dropdown and feedback option should be hidden/disabled for learners when DISABLE_UNENROLLMENT = True.

Questions:

  1. Am I missing an additional step in the configuration?

  2. Has this feature flag been deprecated or replaced in MFE?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions