Skip to content
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

Merged
merged 8 commits into from
Jun 5, 2024
Merged

Add social handles #3412

merged 8 commits into from
Jun 5, 2024

Conversation

sjanssen2
Copy link
Contributor

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.
image
becomes:
image

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.

@sjanssen2 sjanssen2 changed the base branch from master to dev June 4, 2024 15:46
@sjanssen2
Copy link
Contributor Author

@antgonza do you have an idea why my PR errors with ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:1131)?

Copy link
Member

@antgonza antgonza left a 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.

Comment on lines 1891 to 1894
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.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

qiita_db/support_files/populate_test_db.sql Show resolved Hide resolved
@antgonza
Copy link
Member

antgonza commented Jun 4, 2024

Yup, we just merged the fix for that and these tests should run fine.

@antgonza
Copy link
Member

antgonza commented Jun 4, 2024

Looks like you have to pull from dev and then push; could you do that?

@coveralls
Copy link

Coverage Status

coverage: 92.803% (-0.05%) from 92.85%
when pulling 8491579 on jlab:add_social_handles
into ffe1ec8 on qiita-spots:dev.

@coveralls
Copy link

Coverage Status

coverage: 92.871% (+0.02%) from 92.85%
when pulling 8a0daec on jlab:add_social_handles
into ffe1ec8 on qiita-spots:dev.

@sjanssen2
Copy link
Contributor Author

Hi @antgonza I made the requested changes and added some tests. Can you give this PR another review?

@sjanssen2 sjanssen2 requested a review from antgonza June 4, 2024 21:03
Copy link
Contributor

@charles-cowart charles-cowart left a 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.

@charles-cowart charles-cowart merged commit 9de3f38 into qiita-spots:dev Jun 5, 2024
4 checks passed
@sjanssen2 sjanssen2 deleted the add_social_handles branch June 6, 2024 08:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants