-
Notifications
You must be signed in to change notification settings - Fork 5
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 username table #347
Add username table #347
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
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.
@kamicut I added some notes, let me know if you need support with the testing approach.
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.
@kamicut thanks for the changes, this looks good 👍
This allows us to cache requests to OSM in a username table. I've added an updated_at table column so that we can run a subroutine to backfill missing usernames and also update them on a regular basis from OSM. For example, we could have a subroutine that picks the 10 least recent and request the usernames from OSM and update the database every x minutes.