Closed (fixed)
Project:
Version Control API
Version:
6.x-2.x-dev
Component:
API module
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
11 Jan 2011 at 02:19 UTC
Updated:
15 Apr 2014 at 22:25 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
webchickComment #2
eliza411 commentedAssign to you per your irc comment :)
Comment #3
mikey_p commentedStarted a fix for this in the views_handler, sadly this approach is kinda doomed until we get a way to join both author_uid and committer_uid to the users table.
Comment #4
mikey_p commentedHere's an approach that fixes this issue temporarily, albeit only by running another query in render :(
Comment #5
dwwUgh. ;)
A) I don't really understand why we need the multiple JOINs. I'll ask for clarification on that in IRC.
B) If we have to do a separate query, it's *WAY* better to do a single query for all the users we might need in pre_render(). Search for "pre_render" in project/release/views/handlers/* and you'll see lots of examples.
Comment #6
mikey_p commentedCommitting what we've got here to avoid additional bug reports.
The ugly code path here will probably be uncommon on drupal.org, at least for the initial launch.
Leaving at needs work so we don't forget to circle back.
Comment #7
marvil07 commentedI think this patch do the work cleanly.
It:
I have used dww B) idea (thanks for pointing there!).
BTW not sure why this was opened as bug.
Comment #8
mikey_p commentedI tried this patch and it's not working after applying this patch. The usernames are not used, and the link to the username fails as well.
This line looks wrong to me, it's setting an alias to the actual of a username (such as 'mikey_p') when used in $values->{$this->aliases['person_username']} it is always empty:
Comment #9
marvil07 commented@mikey_p: thanks for noticing it!
Peer review FTW ;-)
Attached the fixed version.
Comment #10
marvil07 commentedSorry, wrong patch, ignore "0001-task-994870-follow-up-Missing-controller.patch"
Comment #11
mikey_p commentedTesting this, and it looks good. RTBC
Comment #12
marvil07 commentedCommitted.
Comment #13
marvil07 commentedsdboyer added a fix, but it do not handle no users associated, so re-rolling this to actually fix that and commited it.
This was discovered in the middle of re-rolling #1030266: Single commit view should use revision in the title.
Comment #14
marvil07 commentedAnother follow-up after sdboyer suggestion committed.