In working on a view for drupal.org as part of #1772152: Please evaluate profile spam view I ended up creating a "User: Comments authored" relationship. Very useful. Combined with aggregation and using "count distinct" it allows a user view to include # comments authored and # of nodes authored.

Patch attached.

Comments

Status: Needs review » Needs work

The last submitted patch, views-uid_comment_relationship.patch, failed testing.

Jason Dean’s picture

ooh really useful and working for me - thanks!

parisek’s picture

Priority: Normal » Major
Status: Needs work » Needs review
StatusFileSize
new771 bytes

I hope correct patch is attached and soon will be merged

pixelsweatshop’s picture

Priority: Major » Normal

I can confirm that the patch in #3 works. Moving from major to normal as this is a feature request, not a bug.

mstrelan’s picture

Issue summary: View changes
Status: Needs review » Reviewed & tested by the community
alan d.’s picture

+rtbtc - used with activity streams

albie001’s picture

Works great. Thanks

Scott Robertson’s picture

Working great for me as well.

sergeypavlenko’s picture

Hi all

Thanks @parisek. Patch worked for me. Issue created a long time ago, but not commited, need to fix this!

Kimberley_p’s picture

Working well for me too. Hopefully be committed soon...?

colan’s picture

We've recently switched our testing from the old qa.drupal.org to DrupalCI. Because of a bug in the new system, #2623840: Views (D7) patches not being tested, older patches must be re-uploaded. On re-uploading the patch, please set the status to "Needs Review" so that the test bot will add it to its queue.

If all tests pass, change the Status back to "Reviewed & tested by the community". We'll most likely commit the patch immediately without having to go through another round of peer review.

We apologize for the trouble, and appreciate your patience.

Scott Robertson’s picture

Status: Reviewed & tested by the community » Needs review
StatusFileSize
new771 bytes

Re-uploading patch, per #11.

Scott Robertson’s picture

Status: Needs review » Reviewed & tested by the community

Marking as RTBC again now that the new tests have passed.

jurriaanroelofs’s picture

Good patch, tested and works great. +1

joshmiller’s picture

StatusFileSize
new778 bytes

Re-rolled.

damienmckenna’s picture

Status: Reviewed & tested by the community » Fixed
Parent issue: » #2960871: Plan for Views 7.x-3.23 release

Committed. Thanks!

Status: Fixed » Closed (fixed)

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