You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We need to be able to have a simpler way of determining which runs a learner has purchased. Currently you have to go through User -> Order -> Line -> Product -> CourseRun, which makes querying inefficient and messy.
I've proposed a join table that would track information on what course runs have been paid for, something like this:
We need to be able to have a simpler way of determining which runs a learner has purchased. Currently you have to go through
User
->Order
->Line
->Product
->CourseRun
, which makes querying inefficient and messy.I've proposed a join table that would track information on what course runs have been paid for, something like this:
This would simplify the joins down to
User
->PaidCourseRun
->CourseRun
.We would only create these for orders in the
FULFILLED
orREVIEW
state and keep the records in the event of a refund.Tasks
The text was updated successfully, but these errors were encountered: