Discrepancy in LMS and CMS modulestore course lists
UQ is having an issue with accessing insights in the run of BIOIMG101x which just completed. It gives an unauthenticated error, and from the insights dashboard this version of the course is not listed. Screenshot of error message attached. I am unable to reproduce.
They can access insights on these two other instances of the course
but not course-v1:UQx+BIOIMG101x+1T2015
The bug is not limited to UQx.
There are courses in LMS module store which are absent in CMS moduelstore, and vice versa.
Steps to Reproduce
1) Create split course
2) Create another split course
3) Drop into Mongo shell
4) update course 2's active_version entry such that its draft and publish branch point to course 1's draft and published branch
5) drop into django shell
6) set `store` to the split modulestore
7) run store.get_course on both courses, see that both return
8) run store.get_courses and see that one of the two courses isn't in it
Reason for Variance
User Impact Summary
, has been working on this issue, but he's been on vacation for the last week. There's a well known workaround for the bug though, so I don't think we should be terribly concerned about it. We'll still fix it, but I don't think it's anything to lose sleep over.
Is there an updated status for this?
I was working on this and found that version_guids have ids for both courses but the ids are same that's why find_structures_by_id() is returning only one.
And when i used self.database[collection + '.active_versions'] instead of self.database[collection + '.structures'], query is returning nothing.
Thank you for uncovering the issue!