openedx / openedx/frontend-app-learner-dashboard
DISABLE_UNENROLLMENT feature flag does not hide unenroll option in LMS Course Card
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 14
- Forks
- 208
- Avg merge
- 59m
- Merged PRs (30d)
- 2
Description
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:
-
Am I missing an additional step in the configuration?
-
Has this feature flag been deprecated or replaced in MFE?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the issue in the learner dashboard with DISABLE_UNENROLLMENT enabled, then trace how the unenroll dropdown and feedback screen consume the flag. Compare that UI handling with the submission blocking behavior. Done means both learner-facing unenrollment options are hidden or disabled when the flag is true.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100