mitodl / mitxpro

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

Deferred user is still enrolled in original course #988

Open pdpinch opened 5 years ago

pdpinch commented 5 years ago

Steps to Reproduce

See this query: https://bi.odl.mit.edu/queries/777

The user was deferred from a spring run into a fall run. As far as I can tell, they are a) still enrolled in open edX and b) xPRO thinks they are still enrolled, even though the active field on the enrollment record is set to false.

I haven't been able to find any errors recorded in Sentry.

FYI @maxliu

gsidebo commented 5 years ago

a) still enrolled in open edX

We probably should have had an issue in this repo too, but we knew about this, and an issue exists in the edx-api-client repo: https://github.com/mitodl/edx-api-client/issues/60

b) xPRO things they are still enrolled

Ouch. I'll see if I can reproduce

pdpinch commented 5 years ago

Oh, that's right. You told me about that and I forgot.

gsidebo commented 5 years ago

@pdpinch Can you provide more detail re: "xPRO thinks they are still enrolled"? Does that mean the user dashboard is still showing that enrollment?

pdpinch commented 5 years ago

Specifically, the value for edx_enrolled was still True on the "from" enrollment record.

The issue cleared when I ran the retry_edx_enrollment command for the user. You can't see it any more in the query mentioned in the description.

maxliu commented 5 years ago

@pdpinch can you also fix other records with the same issue. you can find the order ids from the same query on BI https://bi.odl.mit.edu/queries/777

pdpinch commented 5 years ago

@gsidebo Can you take another look at this query? https://bi.odl.mit.edu/queries/777

It seems like for every user we deferred, they still have an edx_enrolled value of True on the deferred enrollments, even when active is False.

pdpinch commented 4 years ago

As of 9/13, we still have inconsistent data as demonstrated by the query https://bi.odl.mit.edu/queries/777

pdpinch commented 2 years ago

There is a project underway in mitxonline to allow for actually unenrolling users in open edX: https://github.com/mitodl/mitxonline/issues/312