-
-
Notifications
You must be signed in to change notification settings - Fork 165
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
change introduction to feedback emails #2649
base: develop
Are you sure you want to change the base?
Conversation
b9d0a57
to
fafb1d9
Compare
Here is what an email looks like with this:
Maybe the What is supposed to be the point of the IP address? When I initiated this message, I was at home using PCC's VPN, logged in to a course on the Runestone WW server. I looked up this IP address and it's somewhere in New Jersey. I turned off the VPN and then I get the same IP address, so it's not some mysterious thing about PCC's VPN. Also, it is not the IP address for the Runestone WW server. |
I would be okay with simplifying the whole first paragraph. If someone prefers to include the users ip, maybe an option to not include it would be nice. I was thinking along the lines of of |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks fine to me.
I like the addition of the user name and login id to the email message. I would be fine with removing the remote host and port from the email. I doubt that is actually useful to anyone in reality. Remote host ip addresses rarely are anymore. |
Another idea would be to move the host ip and port down with the data about the user at the end of the email. |
Here are some more ideas, modify what you think is best, just thinking of other things that could be updated. If wanting to keep the ip address, maybe add that to the Also since you are editing this and the user's id and full name is now included by default, you might want to update the output for both |
I'm making a few changes to this now as suggested here. One more change I would like to make is have it so that when the email comes from a problem, the URL would include |
fafb1d9
to
4365cf9
Compare
Now an email looks like:
|
I just noticed something wrong with the feedback page. It is not caused by this pull request, and is also in develop. The "Cancel E-mail" link shown before email is sent, and the "Return to your work" link shown after sending an email also get the parameters from the Sorry, this is a sidetrack from what this pull request is about, but I wanted it noted. |
I think that you are misinterpreting what it means to pass the Note that many of the parameters are passed from the problem to the email form when the What you could do is change what is passed to the If you do that (and even if you don't) the |
By the way, you should note that there is actually never any reason that any of those parameters should be in the |
4365cf9
to
e7f0af0
Compare
OK, I followed your suggestion and changed Also I made some changes so that the query string part of the URL is shorter and pieces are in consistent order. For example what used to be:
is now
Pointless bits like |
lib/WeBWorK/ContentGenerator.pm
Outdated
} | ||
|
||
return %params ? $url->query(%params) : $url; | ||
return %params ? $url->query([ map { $_, $params{$_} } sort { $a cmp $b } keys %params ]) : $url; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove the change on this line. There is no need to sort the parameters. Removing the empty string parameters above is good, but the sorting here isn't needed.
I don't see the need to make the link particularly human readable. Most users don't look at URLs anymore anyway. In fact, perhaps it is time to think about changing to using HTML content for the feedback emails and making the link an actual link so that the URL is not shown, and instead a more friendly link name shown instead.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As long as the emails still directly show the URL, I do like having a consistent order. Although I looked again at the doc for query
and I think the outer brackets here are unnecessary.
Do you see moving to HTML in email before 2.20?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
However, this is used for every single URL generated throughout the webwork2 app numerous times on every request. The inefficiency of sorting here is a definite no.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You are correct that the brackets are not needed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As to moving to HTML before 2.20, that is possible. It wouldn't take much to add basic html formatting.
This way the parameters can be sorted in this one instance where this is desired.
@Alex-Jordan: I put in a pull request to your branch for this pull request with a suggested change. It changes this so that the |
OK, thanks for that. I was thinking of making a sortedParams option for I'm a bit slow to act on things last week and this week. I fractured a rib in a sledding incident testing out a run ahead of my kids, and between the pain, discomfort, and opioids, I'm not even sure what day it is. So it may be a while before I get to merging that. Or maybe I will be awake again at midnight with nothing to do except patrol WW/PG PRs :) |
Construct the emailable URL directly and don't use systemLink for that.
This changes some things about the opening lines to a feedback email.
This may be controversial. I'm happy to make changes. This started out simply as removing the double space that was there, but then I kept going. I think it's nicer this way, but not opposed to further changes or retractions.