{"action":"created","issue":{"url":"https://api.github.com/repos/marshall62/mathspring/issues/227","labels_url":"https://api.github.com/repos/marshall62/mathspring/issues/227/labels{/name}","comments_url":"https://api.github.com/repos/marshall62/mathspring/issues/227/comments","events_url":"https://api.github.com/repos/marshall62/mathspring/issues/227/events","html_url":"https://github.com/marshall62/mathspring/issues/227","id":111869904,"number":227,"title":"First time training a teacher: some bugs","user":{"login":"IvonArroyo","id":5631787,"avatar_url":"https://avatars.githubusercontent.com/u/5631787?v=3","gravatar_id":"","url":"https://api.github.com/users/IvonArroyo","html_url":"https://github.com/IvonArroyo","followers_url":"https://api.github.com/users/IvonArroyo/followers","following_url":"https://api.github.com/users/IvonArroyo/following{/other_user}","gists_url":"https://api.github.com/users/IvonArroyo/gists{/gist_id}","starred_url":"https://api.github.com/users/IvonArroyo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IvonArroyo/subscriptions","organizations_url":"https://api.github.com/users/IvonArroyo/orgs","repos_url":"https://api.github.com/users/IvonArroyo/repos","events_url":"https://api.github.com/users/IvonArroyo/events{/privacy}","received_events_url":"https://api.github.com/users/IvonArroyo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-10-16T16:55:52Z","updated_at":"2015-10-16T23:09:59Z","closed_at":null,"body":"Hi David,\r\n\r\nI faced some bugs in the teacher tools today after trying to train a teacher on how to create a user, classes, etc.\r\n\r\nWe first created a teacher user, and when she logged in with that user, she was an administrator instead of a normal teacher. This screwed things up, as we created a new class 1193 and got a lot of pedagogies and such. Then I realized that if she logged in again, she would get the standard mode instead of administrator, so I had her do that.\r\n\r\nI tried to delete the class she created from the DB so that she would start over, but didn't manage, probably because of foreign keys. I quit that idea and had her modify the class instead and class 1193 is still there in the class table.\r\n\r\nFrom there on, that class started behaving weird and generating exceptions all over the place. The teacher user is fmohsin/twins123. The class with issues is: 1193: MathSpring club-A\r\n\r\nChanging settings on this class gives blank screens, which I assume are exceptions.\r\n\r\nCan you take a look at this class and see what is going on?   Creating new classes now is apparently fine, even for that user.  \r\n\r\nMaybe because we created the class as an administrator it is giving bugs?\r\n\r\n--Ivon"},"comment":{"url":"https://api.github.com/repos/marshall62/mathspring/issues/comments/148862619","html_url":"https://github.com/marshall62/mathspring/issues/227#issuecomment-148862619","issue_url":"https://api.github.com/repos/marshall62/mathspring/issues/227","id":148862619,"user":{"login":"marshall62","id":5559387,"avatar_url":"https://avatars.githubusercontent.com/u/5559387?v=3","gravatar_id":"","url":"https://api.github.com/users/marshall62","html_url":"https://github.com/marshall62","followers_url":"https://api.github.com/users/marshall62/followers","following_url":"https://api.github.com/users/marshall62/following{/other_user}","gists_url":"https://api.github.com/users/marshall62/gists{/gist_id}","starred_url":"https://api.github.com/users/marshall62/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marshall62/subscriptions","organizations_url":"https://api.github.com/users/marshall62/orgs","repos_url":"https://api.github.com/users/marshall62/repos","events_url":"https://api.github.com/users/marshall62/events{/privacy}","received_events_url":"https://api.github.com/users/marshall62/received_events","type":"User","site_admin":false},"created_at":"2015-10-16T23:09:59Z","updated_at":"2015-10-16T23:09:59Z","body":"I just released a new Mathspring that should behave correctly in the\nteacher tools when you login.\nThe teacher tools don't work so well for teachers who have 0 classes (new\nteachers) and I had only tested them with teachers that had existing\nclasses and admins.   So I used the \"create class\" sequence of actions as\nboth types of users (teachers and admins) and for a teacher with No classes\nand one with some classes and it does the correct thing.\n\nThe key thing, I guess, is that you have to be an admin if you want to use\nthe advanced pedagogy selection.   I'm going to add some other features to\nthe admin login so you can delete/add teachers and delete/add classes and\nmaybe students too.   It would be nice if we had a way to do some cleanup\nwhen we wanted to.   And if its under admin users only, we shouldn't have\nanybody using it who isn't aware of the risks.\n\nOn Fri, Oct 16, 2015 at 3:54 PM, IvonArroyo <notifications@github.com>\nwrote:\n\n> OK, gotcha. --I\n>\n> -----------\n> Ivon Arroyo\n> Assistant Professor\n> Learning Sciences and Technologies\n> Social Sciences and Policy Studies\n> Salisbury Labs 317A\n> Worcester Polytechnic Institute\n>\n> On Fri, Oct 16, 2015 at 2:55 PM, marshall62 <notifications@github.com> <\n> SRS0=1nZ4=KU=sgmail.github.com=bounces+848413-2b0e-iarroyo=\n> wpi.edu@srs.wpi.edu\n> > wrote:\n>\n> > OK. I reproduced the error where the teacher logs in and gets the admin\n> > screens. I'm working on it.\n> >\n> > On Fri, Oct 16, 2015 at 2:32 PM, David Marshall <marshall@cs.umass.edu>\n> > wrote:\n> >\n> >\n> > > Ok. It sounds like a real mess. How do you go about creating the\n> > > teacher? Do you add a row into the database by hand? There is a table\n> > > called administrator and that should only be used for people like you,\n> > me,\n> > > tom and lynn. Teachers should all go in the teacher table and then they\n> > > would login with the username and password in that table which should\n> > then\n> > > make the display be for a teacher and not an admin. When you login with\n> > > your admin user/password it finds those in the administrator table and\n> > > that's how it knows to show you that interface. I wouldn't be surprised\n> > > if there are bugs but I'm not sure I'll be able to find them without\n> > > knowing more about what users were logging in.\n> > >\n> > > On Fri, Oct 16, 2015 at 12:55 PM, IvonArroyo <notifications@github.com\n> >\n> > > wrote:\n> > >\n> > >> Hi David,\n> > >>\n> > >> I faced some bugs in the teacher tools today after trying to train a\n> > >> teacher on how to create a user, classes, etc.\n> > >>\n> > >> We first created a teacher user, and when she logged in with that\n> user,\n> > >> she was an administrator instead of a normal teacher. This screwed\n> > things\n> > >> up, as we created a new class 1193 and got a lot of pedagogies and\n> such.\n> > >> Then I realized that if she logged in again, she would get the\n> standard\n> > >> mode instead of administrator, so I had her do that.\n> > >>\n> > >> I tried to delete the class she created from the DB so that she would\n> > >> start over, but didn't manage, probably because of foreign keys. I\n> quit\n> > >> that idea and had her modify the class instead and class 1193 is still\n> > >> there in the class table.\n> > >>\n> > >> From there on, that class started behaving weird and generating\n> > >> exceptions all over the place. The teacher user is fmohsin/twins123.\n> The\n> > >> class with issues is: 1193: MathSpring club-A\n> > >>\n> > >> Changing settings on this class gives blank screens, which I assume\n> are\n> > >> exceptions.\n> > >>\n> > >> Can you take a look at this class and see what is going on? Creating\n> new\n> > >> classes now is apparently fine, even for that user.\n> > >>\n> > >> Maybe because we created the class as an administrator it is giving\n> > bugs?\n> > >>\n> > >> --Ivon\n> > >>\n> > >> —\n> > >> Reply to this email directly or view it on GitHub\n> > >> <https://github.com/marshall62/mathspring/issues/227>.\n> > >>\n> > >\n> > >\n> >\n> > —\n> > Reply to this email directly or view it on GitHub\n> > <\n> https://github.com/marshall62/mathspring/issues/227#issuecomment-148806293\n> >\n> > .\n>\n> >\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/marshall62/mathspring/issues/227#issuecomment-148818892>\n> .\n>\n"}}