Picture of Ryan Lehmann
Builder: Reassign courses to new user?
by Ryan Lehmann - Thursday, 22 October 2015, 2:32 PM
 

Hi, 

Long story short, I had some upgrade issues and ended up doing a full install the 0.1.3 release and doing a mongorestore of the database + assets folder.  A side effect of this seems to be that the courses we created in 0.1.1 show up in the Shared Courses section, but don't show up in the My Courses section anymore (even though we only have the one Super user account and it's the same user name as before). 

My guess why this is happening is that the course "owner" is defined by a key/id in the database, not the user name. So when I did a clean install, the super user was given a new key. Which means if I want to fix that, I need to spend some time learning RoboMongo and replace this value in each course with the new key?

It's not a blocking issue at all, and "changing course owner" is obviously not a feature I would expect to be present in the GUI before User Management is finished.  Just trying to understand how things work. :)  If anybody has done this before and can provide instructions, that's awesome. But I'd be perfectly happy if someone who knows the system better than me can say "you're on the right track" or "you idiot, you're not even close." 

Thanks,

Ryan

Picture of David Pesce
Re: Builder: Reassign courses to new user?
by David Pesce - Thursday, 22 October 2015, 3:54 PM
 

I'm not 100% sure, but your logic seems correct.

I'm always an advocate for learning something new. And seeing things in MongoDB is always an eye-opener for relational db users. Some tools that I find helpful are:

  • Robomongo - (free, cross platform, and open source) - http://robomongo.org/
  • MongoChef - (free for personal use) - http://3t.io/mongochef/

Both tools will allow you to do what you're saying above (and revert if it doesn't work).

Curious to hear your results, because I can see it being useful for myself and others.