-
Notifications
You must be signed in to change notification settings - Fork 145
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
Populate the 'authors' table with unique commit authors. #386
base: master
Are you sure you want to change the base?
Conversation
Please don't pull this yet. These commits populate the db tables. But I need to add the code that maintains these tables when new commits are ingested. Otherwise, we will have to re-populate the tables. I will create a new commit and add it to this branch (which will add it to this pull request). |
…ngested. This also fills in the "author_id" field for new commits.
Okay, I believe this is ready to merge now. |
Wait, don't pull yet. I want to make a change to the migration that populates the author_id field in the commits table. |
Stop playing with my ❤️ |
…over the db commits (instead of Grit).
Okay, now it's ready. pretty sure ... :-) |
Actually, one more change is coming... |
Okay, now it's ready. For sure. I'd bet a nickel on it. |
This migration script finds the unique commit authors from the "master" branch in all of the known repos and inserts them into the "authors" table if they do not already exist (which they shouldn't, but adding a check was easy and allows the script to be run safely more than once). It also finds matching entries in the "users" table (by email) and fills in the "user_id" field.