Stanford-Online/class2go — pull request #801 by jbau (2012-09-23 23:44:55+00:00)
Title: piazza integration fixes #794

We're working on the assumption that Piazza will fix their stuff by tomorrow, so I'm submitting this pull request into prod as a hotfix.

This package is the feature to allow students to select a different piazza account than the one identified by their email field in c2g.

one migration with two add'l fields in the profile table: piazza name and piazza email

email is used as the identifier to link up with piazza, name is actually the handle, so this goes to enhance #578. these fields are initialized as empty

when the forum link is clicked and these either of these fields are empty, the dialog will prefill with first name + last name for name and c2g email for email. Students get to change if they want.

If they click submit, we AJAX these values to save them, and then do LTI form submit to Piazza.

The profile page has also been changed to allow students to change these values from there. If they change them, we'll submit different values to Piazza when they click Forum.