[01:24] sdboyer: mikey_p: something that's been nagging at me for a while but i keep forgetting. wonder if you might be able to touch up the logic that generates the commit credit list in a user's profile to exclude sandboxes on which the person is not a maintainer
[01:24] sdboyer: otherwise...Dries is gonna have a lot of commits :)
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | 1068654-dont-list-sandbox-commit-on-profile-1.patch | 1.49 KB | mikey_p |
Comments
Comment #1
mikey_p commentedSo here's the query that I came up with, not sure if it's ideal:
Here's the explain when run on git-dev.drupal.org:
Comment #2
mikey_p commentedstatus
Comment #3
johnalbinDries is up 19,000 commits already. He's gonna be a 837 on CTR by Drupalcon. ;-)
http://drupal.org/user/1
Comment #4
dwwIt's both possible and likely that people will give out "write to VCS" access to other people who want to collaborate together on a sandbox. So we should probably be checking that, too. Unfortunately, there's no way to really do that in a query, since we don't have a separate mapping table for uid/nid maintainer status. versioncontrol_project is just directly adding/removing folks from the VCAPI repo auth handler plugin. That makes sense (since we don't have to keep these things in sync) but it makes is tricky/impossible to do get this query right without a huge headache.
Not sure exactly what to do here. I guess the uid=%d check from #1 is a good first step, so I'm going to leave #1 at needs review, but I wanted to raise this before calling this fixed... ;)
Comment #5
mikey_p commentedWell there are some other problems with this listing if we want to fix it up right while we're at it, namely that it isn't paged and for folks like dww, and a few others it's quite slow to load. I'd really like to see this be a short list of top 100 maybe, with more link linking off to another paged view of projects (maybe load the more by ajax?).
Given how slow this query is we should also maybe think about caching similar to the maintainers block as well?
Comment #6
mikey_p commentedCommitted.
Comment #7
dwwThis should have been tagged "needs drupal.org deployment", but if it was, I'd remove that tag now since this is live:
http://drupal.org/user/1
Yay. ;)
Thanks,
-Derek