Issue #1054436: Store commit date and authoring date renames the date field to author_date and introduces comitter_date.
However versioncontrol_project still relies on the old name causing errors like
User warning: Unknown column 'o.date' in 'field list' query: /* 93.223.254.51 node/1150302/edit/default-branch */ SELECT o.author_uid as uid, MIN(o.date) AS first_commit, MAX(o.date) AS last_commit, COUNT(o.vc_op_id) AS commits, u.name FROM versioncontrol_operations o INNER JOIN users u ON o.author_uid = u.uid WHERE o.repo_id = 22262 AND o.author_uid != 0 GROUP BY o.repo_id, o.author_uid ORDER BY last_commit DESC in _db_query() (line 150 of /var/www/dev/vcs-git-drupal.redesign.devdrupal.org/htdocs/includes/database.mysql.inc).
.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | 1328614-date-author-date-4.patch | 16.36 KB | Niklas Fiekas |
| #3 | 1328614-date-author-date.patch | 14.24 KB | Niklas Fiekas |
| #1 | 25e196a3ec0832dd58b0e3ec358881584d1dd52c.patch | 1.58 KB | Niklas Fiekas |
Comments
Comment #1
Niklas Fiekas commentedThe attached patch fixes the custom query that is using the field. I believe some views are using it too, but I don't know the Views API well enough to fix it (array key, if, field_name - what should be changed and more).
Comment #2
Niklas Fiekas commentedTagging.
Comment #3
Niklas Fiekas commentedLooks like that regex is doing the right (= http://drupalcode.org/project/versioncontrol.git/commitdiff/8a69d0297) thing, so here is a reroll with
perl -pi -e "s/'date'/'author_date'/g" $(find . -type f -name '*view.php').Comment #4
Niklas Fiekas commentedAdded tokens.
Comment #5
marvil07 commentedPatch commushed, thanks!
Comment #6
marvil07 commentedMinor followup of other related versioncontrol commit.