-
Notifications
You must be signed in to change notification settings - Fork 2
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
Update avatar URL for a user + refactoring #15
base: master
Are you sure you want to change the base?
Conversation
Add domainname to avatar URL + refactoring so that the URL is now defined on a single location.
public String setAvatarURL(String userName) | ||
{ | ||
/* Below URL is of the Crucible ( codereview ) server */ | ||
this.avatarURL = "http://srv-ind-scrat.vanenburg.com:8060/avatar/" + userName; |
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.
Shouldn't the ?s=number be part of this code as well? That'd make it trivial to switch to another avatar source (like Jira).
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.
The required size of the avatar (requested with the ?s=number GET parameter) is dependent on the location where it is used. Currently three times 32, and one time 40.
If you really think it is valuable to make that split right now, maybe 'avatarURLSmall' and avatarURLMedium' or something like that can be introduced for that.
JSONOutputFilter is added because 'stdout' in /job/junitTestJob/1/testReport/api/json ( 'suites[cases[stdout]]]' ) can blow up returned JSON response above 1GB but it is never used
|
This reverts commit f03348f.
Add domainname to avatar URL + refactoring so that the URL is now
defined on a single location.