Skip to content

Store social IDs for user #3404

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

Closed
sjanssen2 opened this issue May 7, 2024 · 4 comments
Closed

Store social IDs for user #3404

sjanssen2 opened this issue May 7, 2024 · 4 comments

Comments

@sjanssen2
Copy link
Contributor

In our today's consortium meeting, the question was raised if a user can store social IDs for their qiita profile, e.g. ORCID. If I look at the DB structure, qiita can't at the moment. Have you any plans / opinions on doing so or would you welcome code contributions towards this end?

@antgonza
Copy link
Member

antgonza commented May 7, 2024

Any extra user information that can be public will be good to add. Contribution will be great!

@sjanssen2
Copy link
Contributor Author

I am thinking of ORCID, google scholar and researchgate. Do you want to add further services?
Regarding the DB architecture, I see two ways:

  1. simply extend the qiita.qiita_user table by additional columns. Pro: simple, con: too many changes as services might fluctuate relatively often
  2. create a new table to collect these infos. Pro: many to many relation possible (although one user should have only once accession), no changes in qiita.qiita_user table necessary. Con: more complicated SQL queries.

Any preference or maybe even suggestion of a third strategy?

@antgonza
Copy link
Member

I think those to start with sound good. What about adding a single jsonb column (maybe "socials"?) to the qiita.qiita_user table with those keys and empty values as default? That should allow us to modify as we need.

@sjanssen2
Copy link
Contributor Author

closing as #3412 was merged

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

No branches or pull requests

2 participants