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 column githubUsername to users table #4132

Merged
merged 4 commits into from
Nov 14, 2024
Merged

✨ add column githubUsername to users table #4132

merged 4 commits into from
Nov 14, 2024

Conversation

Marigold
Copy link
Contributor

@Marigold Marigold commented Nov 11, 2024

  • Add column users.githubUsername
  • Match detected Tailscale user on githubUsername rather than fullName
  • Add people with GitHub names different from their full names

TODO after merging:

  • Pull owid-grapher on all staging servers and run make migrate

@owidbot
Copy link
Contributor

owidbot commented Nov 11, 2024

Quick links (staging server):

Site Admin Wizard Docs

Login: ssh owid@staging-site-grapher-users

SVG tester:

Number of differences (default views): 134 (8c0e11) ❌
Number of differences (all views): 174 (ccecee) ❌

Edited: 2024-11-14 13:29:59 UTC
Execution time: 1.26 seconds

Copy link
Member

@marcelgerber marcelgerber left a comment

Choose a reason for hiding this comment

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

Hi! This makes sense to me, but I'm wondering why we're not just going all the way directly, and identifying all users by GH username always?

@Marigold
Copy link
Contributor Author

@marcelgerber sorry, what do you mean by that? (If your idea is out of scope, can we still merge this? It's needed for a fix with editing users in ETL)

@marcelgerber
Copy link
Member

Sorry, I should've been more clear.

Currently, we're still using GH's display name as the identifying feature, e.g. "Mojmir Vinkler". However, with this PR, we are sometimes falling back to GH usernames (e.g. "Marigold"), namely when such a display name is not set, or is not equal to the full name.

Would it not make sense to instead always use the GH username (e.g. "Marigold") instead?

Looking at the output of tailscale status --json, we do have that one available:

     "40781454737177829": {
       "ID": 40781454737177829,
       "LoginName": "Marigold@github",
       "DisplayName": "Mojmir Vinkler",
       "ProfilePicURL": "https://avatars.githubusercontent.com/u/1550888?v=4",
       "Roles": []
     },

If you don't want to change that, then feel free to merge it as-is. It's not too hard to change it in the future, too :)

@Marigold
Copy link
Contributor Author

@marcelgerber That's a good idea, I was stuck in my "display name" world and didn't see this. Made the change.

Copy link
Member

@marcelgerber marcelgerber left a comment

Choose a reason for hiding this comment

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

Nice, looks good now!

@Marigold Marigold merged commit bc40d1c into master Nov 14, 2024
12 of 15 checks passed
@Marigold Marigold deleted the grapher-users branch November 14, 2024 13:30
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.

3 participants