Comments

webchick’s picture

eliza411’s picture

Assigned: Unassigned » mikey_p

Assign to you per your irc comment :)

mikey_p’s picture

Status: Active » Needs review
StatusFileSize
new2.62 KB

Started 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.

mikey_p’s picture

Here's an approach that fixes this issue temporarily, albeit only by running another query in render :(

dww’s picture

Status: Needs review » Needs work

Ugh. ;)

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.

mikey_p’s picture

Issue tags: +git sprint 9

Committing 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.

marvil07’s picture

Assigned: mikey_p » marvil07
Category: bug » task
Status: Needs work » Needs review
StatusFileSize
new6.08 KB

I think this patch do the work cleanly.

It:

  • Revert the last patch committed
  • Adds one person_username alias for getting the username, and handle it in a special way(set it) for attribution handler.

I have used dww B) idea (thanks for pointing there!).

BTW not sure why this was opened as bug.

mikey_p’s picture

Status: Needs review » Needs work

I 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:

$this->aliases['person_username'] = $this->usernames[$author_uid];
marvil07’s picture

Status: Needs work » Needs review
StatusFileSize
new1.6 KB
new3.32 KB

@mikey_p: thanks for noticing it!

Peer review FTW ;-)

Attached the fixed version.

marvil07’s picture

Sorry, wrong patch, ignore "0001-task-994870-follow-up-Missing-controller.patch"

mikey_p’s picture

Status: Needs review » Reviewed & tested by the community

Testing this, and it looks good. RTBC

marvil07’s picture

Status: Reviewed & tested by the community » Fixed
marvil07’s picture

sdboyer 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.

marvil07’s picture

Another follow-up after sdboyer suggestion committed.

Status: Fixed » Closed (fixed)
Issue tags: -git phase 2, -git sprint 8, -git sprint 9, -Git Community Testing Blocker

Automatically closed -- issue fixed for 2 weeks with no activity.

  • Commit 7baabb3 on repository-families, drush-vc-sync-unlock by mikey_p:
    #1022308 by mikey_p: Temporary fix for global and specific commit logs...
  • Commit 1d89604 on repository-families, drush-vc-sync-unlock by marvil07:
    task #1022308 follow-up by marvil07 | mikey_p: Use {users}.name as the...
  • Commit 8335997 on repository-families, drush-vc-sync-unlock by marvil07:
    task #1022308 follow-up: Handle no users mapped on operation attribution...
  • Commit 38d632d on repository-families, drush-vc-sync-unlock by marvil07:
    task #1022308 follow-up by sdboyer: Re-add placeholder replacement as...

  • Commit 7baabb3 on repository-families by mikey_p:
    #1022308 by mikey_p: Temporary fix for global and specific commit logs...
  • Commit 1d89604 on repository-families by marvil07:
    task #1022308 follow-up by marvil07 | mikey_p: Use {users}.name as the...
  • Commit 8335997 on repository-families by marvil07:
    task #1022308 follow-up: Handle no users mapped on operation attribution...
  • Commit 38d632d on repository-families by marvil07:
    task #1022308 follow-up by sdboyer: Re-add placeholder replacement as...