Closed boonebgorges closed 5 years ago
cc @drdrew42 - Can you give me the format for the URL that will be needed for the first of these bullet points? I'm assuming it's just the question URL (where the original "Ask a Question" link was clicked)?
This is a link that should be provided as part of the POST data from WeBWorK when the "Ask for Help" button is clicked.
It is the URL for the question, with a few additional parameters - primarily euser=foobar
- which cause the URL to make "foobar" the effective user (showing their randomized version of the problem, along with making their previous responses available).
Thanks, @drdrew42. Can you confirm that it's returnUrl
in https://github.com/livinglab/webwork-for-wordpress/issues/119#issuecomment-447477832? That URL, which has the format /webwork2/AchievementTesting/MAAtutorial/5/?key=gC3lBzgIJa9dKLstW8EL5LuBOUBdCgK6&effectiveUser=aparker&displayMode=MathJax&showOldAnswers=1&user=aparker
, is relative to the web root, and contains user
and effectiveUser
params, but not euser
.
Looks like we need @drdrew42 's feedback for this one.
And is this something I can test on WeBWorK playground? Currently I don't see any email notifications in either the OpenLab email or my own email.
Thanks!
No, it is emailURL
that should be sent to the instructor. It only specifies effectiveUser, which allows for the instructor to log in with their own account (and still 'pretend' to be this student).
returnURL is only for immediate use, to return the user back to their previous page. The URL contains a key-value that will expire. I should actually remove it from being passed to OL in the first place. No one should be attempting to log into WeBWorK with a pre-defined user (especially if it is not yourself - that is why we have effectiveUser).
Thanks, @drdrew42 . A version of this is now ready to test on openlabdev.org. The relevant text of the instructor email is:
`To read and reply to the question, visit http://openlabdev.org/webwork-playground/wp-login.php?redirect_to=http%3A%2F%2Fopenlabdev.org%2Fwebwork-playground%2F%23%3AproblemId%3Dlocal%2FComplexFractions-Method2%2Fsingle-binomial-easy.pg%3AquestionId%3D11862.
To view the student's work on this question in WeBWorK, visit http://mathww.citytech.cuny.edu/webwork2/WW-Dev/ComplexFractions-Method2/16777216/?effectiveUser=bgorges.`
@bree-z The WW-Dev course on openlabdev.org wasn't associated with any email addresses. I've now associated it with your work bree.bz email, so you should get notifications.
Thanks, Boone! I am getting notifications, and can confirm the following:
One question though: I'm not sure what I'm supposed to see on the WW question page. I just see the question, but should there be anything else, like what the student has attempted? However, I'm not sure I'm doing the "attempted work" part correctly. Here's what I did:
This is working as it should - the key is noticing in the upper right-hand corner, "logged in as bzuckerman" and underneath "acting as student1"
If "student1" had actually submitted answers (only available during the "open" window for the problem set - this is due to certain unfortunate WeBWorK structures) instead of checking answers, then the student responses would appear in the answer blanks when viewing the problem as the instructor. Furthermore, there is the button at the bottom, "Show Past Answers", which again is unfortunately limited to viewing submitted answers, and does not show checked answers. UGH!
Your confusion here is certainly understandable.
Cool - it sounds like this is, in fact, working as expected :-D