Closed andymeneely closed 9 years ago
Author ID stuff should go right around this logic:
https://github.com/andymeneely/chromium-history/blob/master/lib/loaders/git_log_loader.rb#L182
This isn't fixed.
irb(main):002:0> Commit.take.author_id
Commit Load (0.8ms) SELECT "commits".* FROM "commits" LIMIT 1
=> nil
Oh weird, it is populated in chromium_real
though. I'm not sure what's going on here:
axmvse@archeology:~/chromium/history (master $)$ psql chromium_real
psql (9.3.6)
Type "help" for help.
chromium_real=# select author_id from commits limit 5;
author_id
-----------
64
7
141
87
27
(5 rows)
chromium_real=# select author_id from commits limit 500;
chromium_real=# select author_id from commits where author_id is null;
author_id
-----------
(0 rows)
In trying to join Developer and Commits, I realized that:
author_id
is not being populated. The git parser should be doing this.has_many :commits
field in the model