andymeneely / chromium-history

Scripts and data related Chromium's history
11 stars 4 forks source link

Author_id is not being populated on Commits #199

Closed andymeneely closed 9 years ago

andymeneely commented 9 years ago

In trying to join Developer and Commits, I realized that:

andymeneely commented 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

andymeneely commented 9 years ago

This isn't fixed.

andymeneely commented 9 years ago
irb(main):002:0> Commit.take.author_id
  Commit Load (0.8ms)  SELECT "commits".* FROM "commits" LIMIT 1
=> nil
andymeneely commented 9 years ago

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)