-
Notifications
You must be signed in to change notification settings - Fork 80
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
Add social handles #3412
Add social handles #3412
Conversation
…RCID and ResearchGate
@antgonza do you have an idea why my PR errors with |
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.
Thank you, this looks good. Some minor comments.
receive_processing_job_emails boolean DEFAULT false, | ||
social_orcid character varying, | ||
social_researchgate character varying, | ||
social_googlescholar character varying |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
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.
done
Yup, we just merged the fix for that and these tests should run fine. |
Looks like you have to pull from dev and then push; could you do that? |
Hi @antgonza I made the requested changes and added some tests. Can you give this PR another review? |
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.
looks good! just need confirmation on one item.
Addressing #3404, I have extended the user profile edit page with three additional input fields to store social network handles for google scholar, research gate and orcid.
becomes:
Note that I have added WTForm validators to check user input and provide hints if he/she provides wrong inputs. That required a bit of changes in the HTML template as well as in the UserProfileHandler.post method. I've also added small icons for the social networks, which made be use CSS flex box mechanisms to properly align the icon with the label (are we legally allowed to display those?).
Since qiita already uses WTForm mechanism, I opted to simple extend the qiita.qiita_user table by three additional columns, namely those defined by adding additional
StringField
elements. Everything else (storing, retrieving, updating) came out of the box with existing code.