mitodl / mitxonline

BSD 3-Clause "New" or "Revised" License
4 stars 2 forks source link

Enrollment issue when user unenrolls and enrolls again and pays #2225

Open annagav opened 1 month ago

annagav commented 1 month ago

Related to this issue https://github.com/mitodl/hq/issues/4367

the user has enrolled in audit then unenrolled from the run, then they enrolled in verified. As a result their status in the courseware is verified, but active is False.

Expected Behavior

When user pays and enrolls in verified track the enrollment in edx should be active.

Current Behavior

The user can't access the course bc their enrollment is not active.

collinpreston commented 1 month ago

@annagav, where you able to reproduce this issue locally or in RC?

annagav commented 1 month ago

no, I don't think so

collinpreston commented 1 month ago

I have not been able to reproduce this bug following the steps in this issue.

annagav commented 2 days ago

If a user has paid for a course run and they want to unenroll:

  1. Don't allow. Need to contact CS.
  2. Allow to unenroll. Decide what to do with the payment: Order, PaidCourseRun, etc.
annagav commented 2 days ago

I followed these steps:

  1. I enrolled in "verified" track my user in https://rc.mitxonline.mit.edu/courses/course-v1:MITxT+8.01.1x/
  2. I unenrolled from the course run through the dashboard
  3. The I went to course page again and enrolled in the free version. As a result, my enrollment is now set to audit and "change status" is null. In https://courses-qa.mitxonline.mit.edu/ my enrollment is now audit but active is False.