Skip to content

[BB-4951] Implement feature flag to disable students un-enrollment - #29326

Merged
timmc-edx merged 3 commits into
openedx:masterfrom
open-craft:0x29a/bb4951/disable_unenrollment
Apr 22, 2022
Merged

[BB-4951] Implement feature flag to disable students un-enrollment#29326
timmc-edx merged 3 commits into
openedx:masterfrom
open-craft:0x29a/bb4951/disable_unenrollment

Conversation

@0x29a

@0x29a 0x29a commented Nov 15, 2021

Copy link
Copy Markdown
Contributor

Description

This PR Implements a feature flag DISABLE_UNENROLLMENT that is used to disable students un-enrollment for all courses. The Unenrollment option should be disabled when this feature is set to True

Supporting Information

BB-4951

Testing Instructions

  • Check out to this branch 0x29a/bb4951/disable_unenrollment in the edx-plaftorm repository on a lilac devstack
  • In the lms.yml file, add DISABLE_UNENROLLMENT: true to Features
  • Go to the LMS dashboard at http://localhost:18000/dashboard and click on the settings gear of a course
  • Confirm that there is no option to unenroll

@openedx-webhooks openedx-webhooks added needs triage open-source-contribution PR author is not from Axim or 2U labels Nov 15, 2021
@openedx-webhooks

Copy link
Copy Markdown

Thanks for the pull request, @0x29a! I've created OSPR-6225 to keep track of it in JIRA, where we prioritize reviews. Please note that it may take us up to several weeks or months to complete a review and merge your PR.

Feel free to add as much of the following information to the ticket as you can:

  • supporting documentation
  • Open edX discussion forum threads
  • timeline information ("this must be merged by XX date", and why that is)
  • partner information ("this is a course on edx.org")
  • any other information that can help Product understand the context for the PR

All technical communication about the code itself will be done via the GitHub pull request interface. As a reminder, our process documentation is here.

Please let us know once your PR is ready for our review and all tests are green.

@0x29a
0x29a force-pushed the 0x29a/bb4951/disable_unenrollment branch from 70b2c4a to f1c3e24 Compare November 15, 2021 22:51
@edx-status-bot

Copy link
Copy Markdown

Your PR has finished running tests. The following contexts failed:

  • jenkins/python

@natabene

Copy link
Copy Markdown
Contributor

@0x29a Thank you for your contribution. Is this ready for our review?

@natabene

Copy link
Copy Markdown
Contributor

@0x29a If you are still interested in pursuing this, can you please push a commit to kick the checks off?

@0x29a

0x29a commented Feb 7, 2022

Copy link
Copy Markdown
Contributor Author

@natabene, sorry for the silence here, I was on vacation till today.

Yes, I'm still interested. Will update branch, fix the CI failure in the coming weeks and let you know once it's ready for an upstream review.

@natabene natabene added waiting on author PR author needs to resolve review requests, answer questions, fix tests, etc. and removed needs triage labels Feb 7, 2022
@natabene

natabene commented Apr 5, 2022

Copy link
Copy Markdown
Contributor

@0x29a Just checking if you are still interested in finalizing this.

@0x29a
0x29a force-pushed the 0x29a/bb4951/disable_unenrollment branch from f1c3e24 to 678437c Compare April 11, 2022 10:27
Implements a feature flag DISABLE_UNENROLLMENT that is used to disable students un-enrollment for all courses. The Unenrollment option should be disabled when this feature is set to True.
@0x29a
0x29a force-pushed the 0x29a/bb4951/disable_unenrollment branch from 678437c to 44ccac1 Compare April 11, 2022 11:14
@0x29a

0x29a commented Apr 11, 2022

Copy link
Copy Markdown
Contributor Author

@natabene, sorry for the delay! This is updated, fixed and ready for your review.

@openedx-webhooks openedx-webhooks added awaiting prioritization and removed waiting on author PR author needs to resolve review requests, answer questions, fix tests, etc. labels Apr 12, 2022
Comment thread cms/envs/common.py Outdated
Comment thread common/djangoapps/student/views/dashboard.py

@schenedx schenedx left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me on the logic.

timmc-edx
timmc-edx previously approved these changes Apr 21, 2022

@timmc-edx timmc-edx left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Thanks to Simon for the domain-specific review. :-)

@timmc-edx
timmc-edx dismissed their stale review April 21, 2022 20:10

forgot I had some questions

@openedx-webhooks openedx-webhooks added waiting on author PR author needs to resolve review requests, answer questions, fix tests, etc. and removed awaiting prioritization labels Apr 21, 2022
@0x29a
0x29a force-pushed the 0x29a/bb4951/disable_unenrollment branch from 7633c99 to cdeee9c Compare April 22, 2022 10:29
@timmc-edx

Copy link
Copy Markdown
Contributor

Looks great, thank you!

@timmc-edx
timmc-edx merged commit da4a6d6 into openedx:master Apr 22, 2022
@openedx-webhooks

Copy link
Copy Markdown

@0x29a 🎉 Your pull request was merged! Please take a moment to answer a two question survey so we can improve your experience in the future.

@openedx-webhooks openedx-webhooks added merged and removed waiting on author PR author needs to resolve review requests, answer questions, fix tests, etc. labels Apr 22, 2022
@0x29a
0x29a deleted the 0x29a/bb4951/disable_unenrollment branch April 22, 2022 14:02
@edx-pipeline-bot

Copy link
Copy Markdown
Contributor

EdX Release Notice: This PR has been deployed to the staging environment in preparation for a release to production.

@edx-pipeline-bot

Copy link
Copy Markdown
Contributor

EdX Release Notice: This PR has been deployed to the production environment.

@0x29a
0x29a restored the 0x29a/bb4951/disable_unenrollment branch May 5, 2022 12:05
@0x29a
0x29a deleted the 0x29a/bb4951/disable_unenrollment branch May 5, 2022 12:05
0x29a added a commit to open-craft/openedx-platform that referenced this pull request May 5, 2022
…dx#29326)

Implements a feature flag DISABLE_UNENROLLMENT that is used to disable students un-enrollment for all courses. The Unenrollment option should be disabled when this feature is set to True.

ref: BB-4951

Co-authored-by: tinumide <tinuade@opencraft.com>
Co-authored-by: Tim McCormack <tmccormack@edx.org>
(cherry picked from commit da4a6d6)
nedbat pushed a commit that referenced this pull request May 24, 2022
Implements a feature flag DISABLE_UNENROLLMENT that is used to disable students un-enrollment for all courses. The Unenrollment option should be disabled when this feature is set to True.

ref: BB-4951

Co-authored-by: tinumide <tinuade@opencraft.com>
Co-authored-by: Tim McCormack <tmccormack@edx.org>
(cherry picked from commit da4a6d6)
jawad-khan pushed a commit that referenced this pull request Jun 14, 2022
Implements a feature flag DISABLE_UNENROLLMENT that is used to disable students un-enrollment for all courses. The Unenrollment option should be disabled when this feature is set to True.

ref: BB-4951

Co-authored-by: tinumide <tinuade@opencraft.com>
Co-authored-by: Tim McCormack <tmccormack@edx.org>
0x29a added a commit to open-craft/openedx-platform that referenced this pull request Oct 5, 2022
…dx#29326)

Implements a feature flag DISABLE_UNENROLLMENT that is used to disable students un-enrollment for all courses. The Unenrollment option should be disabled when this feature is set to True.

ref: BB-4951

Co-authored-by: tinumide <tinuade@opencraft.com>
Co-authored-by: Tim McCormack <tmccormack@edx.org>
(cherry picked from commit da4a6d6)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merged open-source-contribution PR author is not from Axim or 2U

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants